Project

General

Profile

Actions

Bug #21390

closed

ceph-deploy running invalid blkid command arguments.

Added by Alexander von Gluck IV over 6 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
ceph cli
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
ceph-deploy
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Seeing this on Fedora 26 server with a pretty stock deployment of CEPH:

# ceph-deploy osd activate $CEPH_HOST:/dev/sdc
.
.
[s100.hou.terarocket.io][DEBUG ] find the location of an executable
[s100.hou.terarocket.io][INFO  ] Running command: /usr/sbin/ceph-disk -v activate --mark-init systemd --mount /dev/sdc
[s100.hou.terarocket.io][WARNIN] main_activate: path = /dev/sdc
[s100.hou.terarocket.io][WARNIN] get_dm_uuid: get_dm_uuid /dev/sdc uuid path is /sys/dev/block/8:32/dm/uuid
[s100.hou.terarocket.io][WARNIN] command: Running command: /sbin/blkid -p -s TYPE -o value -- /dev/sdc
[s100.hou.terarocket.io][WARNIN] Traceback (most recent call last):
[s100.hou.terarocket.io][WARNIN]   File "/usr/sbin/ceph-disk", line 11, in <module>
[s100.hou.terarocket.io][WARNIN]     load_entry_point('ceph-disk==1.0.0', 'console_scripts', 'ceph-disk')()
[s100.hou.terarocket.io][WARNIN]   File "/usr/lib/python2.7/site-packages/ceph_disk/main.py", line 5047, in run
[s100.hou.terarocket.io][WARNIN]     main(sys.argv[1:])
[s100.hou.terarocket.io][WARNIN]   File "/usr/lib/python2.7/site-packages/ceph_disk/main.py", line 4998, in main
[s100.hou.terarocket.io][WARNIN]     args.func(args)
[s100.hou.terarocket.io][WARNIN]   File "/usr/lib/python2.7/site-packages/ceph_disk/main.py", line 3357, in main_activate
[s100.hou.terarocket.io][WARNIN]     reactivate=args.reactivate,
[s100.hou.terarocket.io][WARNIN]   File "/usr/lib/python2.7/site-packages/ceph_disk/main.py", line 3067, in mount_activate
[s100.hou.terarocket.io][WARNIN]     e,
[s100.hou.terarocket.io][WARNIN] ceph_disk.main.FilesystemTypeError: Cannot discover filesystem type: device /dev/sdc: Line is truncated: 
[s100.hou.terarocket.io][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: /usr/sbin/ceph-disk -v activate --mark-init systemd --mount /dev/sdc

It appears that ceph-deploy is attempting to determine the partition table type and failing:

[root@s100 ceph-deploy]# /sbin/blkid -p -s TYPE -o value -- /dev/sdc
[root@s100 ceph-deploy]#

I noticed that it appears TYPE has changed to PTYPE:

[root@s100 ceph-deploy]# /sbin/blkid -p -- /dev/sdc
/dev/sdc: PTUUID="063cc6d0-3f27-4172-af82-3d2dd0192aa4" PTTYPE="gpt" 
[root@s100 ceph-deploy]# /sbin/blkid -p -s PTTYPE -o value -- /dev/sdc
gpt

Here are the versions in use:

[root@s100 ceph-deploy]# rpm -qa | grep ceph
ceph-mon-10.2.7-2.fc26.x86_64
ceph-radosgw-10.2.7-2.fc26.x86_64
ceph-base-10.2.7-2.fc26.x86_64
ceph-10.2.7-2.fc26.x86_64
libcephfs1-10.2.7-2.fc26.x86_64
ceph-selinux-10.2.7-2.fc26.x86_64
ceph-osd-10.2.7-2.fc26.x86_64
ceph-common-10.2.7-2.fc26.x86_64
ceph-deploy-1.5.32-3.fc26.noarch
python-cephfs-10.2.7-2.fc26.x86_64
ceph-mds-10.2.7-2.fc26.x86_64

Actions #1

Updated by Alexander von Gluck IV over 6 years ago

Actually... I just realized i'm using the tool wrong after looking at the python module for ceph-disk. Changing /dev/sdc to /dev/sdc1 fixed the issue since it is indeed looking for TYPE (filesystem) vs PTTYPE (table)

The error could be better though :-)

Actions #2

Updated by Sage Weil almost 3 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF