https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2016-09-20T18:52:44ZCeph Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=787282016-09-20T18:52:44ZVikhyat Umrao
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/78728/diff?detail_id=75505">diff</a>)</li></ul> Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=787962016-09-21T11:07:07ZVikhyat Umrao
<ul></ul><p>We do have below given message in /var/log/messages when we see this issue in command line while running 'ceph-disk list':</p>
<pre>
kernel: SELinux: mount invalid. Same superblock, different security settings for (dev sdc1, type xfs)
</pre> Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=788352016-09-21T23:24:50ZBrad Hubbardbhubbard@redhat.com
<ul><li><strong>Assignee</strong> set to <i>Brad Hubbard</i></li></ul> Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=789422016-09-26T07:57:30ZBrad Hubbardbhubbard@redhat.com
<ul></ul><p>A minimal reproducer using a dev cluster. Make sure selinux is enforcing.</p>
<pre>
# dd if=/dev/zero of=/tmp/dummyhdd bs=1M count=1536
# losetup /dev/loop0 /tmp/dummyhdd
# parted /dev/loop0 mklabel gpt
# parted /dev/loop0 mkpart primary 1 1000
# parted -s /dev/loop0 mkpart primary 1001 1500
# sgdisk --typecode=1:4fbd7e29-9d25-41b8-afd0-062c0ceff05d -- /dev/loop0
# partprobe
# MON=1 MDS=0 OSD=0 ../src/vstart.sh -n -l
# mkdir dev/osd0
# echo osd_journal_size = 500 >> ceph.conf
# bin/ceph osd create b367c360-b364-4b1d-8fc6-09408a9cda7a //should return "0" for osd0
# mkfs.xfs /dev/loop0p1
# mount -o noatime,context=unconfined_u:object_r:var_lib_t:s0 /dev/loop0p1 dev/osd0/
# bin/ceph-osd -i 0 --mkfs --mkkey --osd-uuid b367c360-b364-4b1d-8fc6-09408a9cda7a
# PATH=$PATH:./bin/ src/ceph-disk/ceph_disk/main.py --sysconfdir . list
mount: wrong fs type, bad option, bad superblock on /dev/loop0p1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
/dev/dm-0 other, xfs, mounted on /
/dev/dm-1 swap, swap
/dev/loop0 :
/dev/loop0p1 ceph data, active, cluster ceph, osd.0
/dev/loop0p2 other, 0fc63daf-8483-4772-8e79-3d69d8477de4
...
</pre> Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=883262017-04-03T04:33:14ZBrad Hubbardbhubbard@redhat.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul> Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=883272017-04-03T04:34:39ZBrad Hubbardbhubbard@redhat.com
<ul><li><strong>Release</strong> deleted (<del><i>hammer</i></del>)</li><li><strong>Release</strong> set to <i>master</i></li></ul> Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=883282017-04-03T04:34:54ZBrad Hubbardbhubbard@redhat.com
<ul></ul><p><a class="external" href="https://github.com/ceph/ceph/pull/14293">https://github.com/ceph/ceph/pull/14293</a></p>
<p>Merged</p> Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=885252017-04-06T06:37:09ZBrad Hubbardbhubbard@redhat.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Pending Backport</i></li><li><strong>Backport</strong> set to <i>hammer,jewel,kraken</i></li></ul> Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=885952017-04-06T18:47:18ZNathan Cutlerncutler@suse.cz
<ul><li><strong>Copied to</strong> <i><a class="issue tracker-9 status-6 priority-4 priority-default closed" href="/issues/19535">Backport #19535</a>: hammer: ceph-disk list reports mount error for OSD having mount options with SELinux context</i> added</li></ul> Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=885972017-04-06T18:47:20ZNathan Cutlerncutler@suse.cz
<ul><li><strong>Copied to</strong> <i><a class="issue tracker-9 status-3 priority-4 priority-default closed" href="/issues/19536">Backport #19536</a>: jewel: ceph-disk list reports mount error for OSD having mount options with SELinux context</i> added</li></ul> Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=885992017-04-06T18:47:23ZNathan Cutlerncutler@suse.cz
<ul><li><strong>Copied to</strong> <i><a class="issue tracker-9 status-3 priority-4 priority-default closed" href="/issues/19537">Backport #19537</a>: kraken: ceph-disk list reports mount error for OSD having mount options with SELinux context</i> added</li></ul> Ceph - Bug #17331: ceph-disk list reports mount error for OSD having mount options with SELinux contexthttps://tracker.ceph.com/issues/17331?journal_id=981592017-09-04T09:23:49ZNathan Cutlerncutler@suse.cz
<ul><li><strong>Status</strong> changed from <i>Pending Backport</i> to <i>Resolved</i></li></ul>