Actions
Bug #16649
closedceph-disk prepare fails when running blkid
Status:
Rejected
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
other
Tags:
ceph-disk, docker
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
ceph-disk
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Hi,
I'm using ceph-docker and when running
ceph-disk -v prepare ${OSD_DEVICE} ${OSD_JOURNAL}
i.e. this line: [[https://github.com/ceph/ceph-docker/blob/master/ceph-releases/jewel/ubuntu/14.04/daemon/entrypoint.sh#L436]]
It comes to the point where it's time to run blkid. But the problem is that prepare have earlier created /dev/sda1, and blkid is running against /dev/sda, which doesn't contain a xfs partition. So ceph-disk fails and the docker container ends up in a boot loop.
Referring to the original issue at the ceph-docker project [[https://github.com/ceph/ceph-docker/issues/324]]
command: Running command: /sbin/blkid -p -s TYPE -o value -- /dev/sda Traceback (most recent call last): File "/usr/sbin/ceph-disk", line 9, in <module> load_entry_point('ceph-disk==1.0.0', 'console_scripts', 'ceph-disk')() File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 4994, in run main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 4945, in main args.func(args) File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 3299, in main_activate reactivate=args.reactivate, File "/usr/lib/python2.7/dist-packages/ceph_disk/main.py", line 3009, in mount_activate e, ceph_disk.main.FilesystemTypeError: Cannot discover filesystem type: device /dev/sda: Line is truncated:
I wondering if it just shouldn't run blkid against /dev/sd?1..
Updated by Elias Abacioglu almost 8 years ago
I just realized it might be how ceph-disk activate is used in ceph-docker that causes this.
It can be that activate is running against /dev/sda instead of /dev/sda1.
Updated by Elias Abacioglu almost 8 years ago
It was a issue with ceph-docker.
Please close this issue.
Actions