Actions
Bug #12781
closedceph-disk list fails on dmcrypt devices
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
ceph-disk list fails on dmcrypt devices
ceph-disk --verbose list DEBUG:ceph-disk:Mounting /dev/vdb1 on /var/lib/ceph/tmp/mnt.1xezZz with fstype None options Traceback (most recent call last): File "/tmp/ceph/src/ceph-disk", line 2342, in <module> main() File "/tmp/ceph/src/ceph-disk", line 2331, in main args.func(args) File "/tmp/ceph/src/ceph-disk", line 2015, in main_list tpath = mount(dev=dev, fstype=fs_type, options='') File "/tmp/ceph/src/ceph-disk", line 678, in mount path, File "/usr/lib/python2.7/subprocess.py", line 535, in check_call retcode = call(*popenargs, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 522, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception TypeError: execv() arg 2 must contain only strings root@target160075:~/ceph/qa/workunits# blkid -s TYPE /dev/vdb1 root@target160075:~/ceph/qa/workunits# mount | grep ceph-0 /dev/mapper/d159d559-8ef2-400c-86d3-eaebf259d2d1 on /var/lib/ceph/osd/ceph-0 type xfs (rw,noatime,inode64) root@target160075:~/ceph/qa/workunits# cat /sys/block/dm-0/dm/name d159d559-8ef2-400c-86d3-eaebf259d2d1 root@target160075:~/ceph/qa/workunits# ls /sys/block/dm-0/slaves/ vdb1 root@target160075:~/ceph/qa/workunits# root@target160075:~/ceph/qa/workunits# sgdisk -i 1 /dev/vdb Partition GUID code: 4FBD7E29-9D25-41B8-AFD0-5EC00CEFF05D (Unknown)
Because it tries blkid on /dev/vdb1 although it is of type DMCRYPT_OSD_UUID = '4fbd7e29-9d25-41b8-afd0-5ec00ceff05d'. It returns None and fails the mount. It should skip it instead.
Actions