Project

General

Profile

Actions

Bug #11272

closed

ceph-disk zap should ensure block device

Added by Travis Rhoden about 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% 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

Related issues 1 (0 open1 closed)

Copied to Ceph - Backport #12589: ceph-disk zap should ensure block deviceResolvedLoïc Dachary03/30/2015Actions
Actions #1

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
Actions #2

Updated by Loïc Dachary almost 9 years ago

  • Status changed from Fix Under Review to Resolved
Actions #3

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!

Actions #4

Updated by Loïc Dachary over 8 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF