Actions
Bug #11272
closedceph-disk zap should ensure block device
% Done:
0%
Source:
other
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
If you try to zap a directory, you get an ugly traceback:
[gqas014][INFO ] Running command: sudo /usr/sbin/ceph-disk zap /dev/sdc [gqas014][WARNIN] Traceback (most recent call last): [gqas014][WARNIN] File "/usr/sbin/ceph-disk", line 2768, in <module> [gqas014][WARNIN] main() [gqas014][WARNIN] File "/usr/sbin/ceph-disk", line 2746, in main [gqas014][WARNIN] args.func(args) [gqas014][WARNIN] File "/usr/sbin/ceph-disk", line 2464, in main_zap [gqas014][WARNIN] zap(dev) [gqas014][WARNIN] File "/usr/sbin/ceph-disk", line 1013, in zap [gqas014][WARNIN] with file(dev, 'wb') as dev_file: [gqas014][WARNIN] IOError: [Errno 21] Is a directory: '/dev/sdc' [gqas014][ERROR ] RuntimeError: command returned non-zero exit status: 1 [ceph_deploy][ERROR ] RuntimeError: Failed to execute command: /usr/sbin/ceph-disk zap /dev/sdc
Updated by Loïc Dachary almost 9 years ago
- Status changed from New to Fix Under Review
- Assignee set to Loïc Dachary
- Regression set to No
Updated by Loïc Dachary almost 9 years ago
- Status changed from Fix Under Review to Resolved
Updated by Ken Dreyer over 8 years ago
- Status changed from Resolved to Pending Backport
- Backport set to hammer
We're cherry-picking this downstream in RHCS 1.3, so it would be great to get it fixed upstream in Hammer too!
Updated by Loïc Dachary over 8 years ago
- Status changed from Pending Backport to Resolved
Actions