Project

General

Profile

Actions

Fix #11116

open

ceph-disk breaks when using non-existing disks

Added by Alfredo Deza about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Had the wrong path to a device and ceph-disk broke with a traceback, when it should
just point out that the device does not exist:

[node2][INFO  ] Running command: sudo /usr/sbin/ceph-disk zap /dev/sdb
[node2][WARNIN] Traceback (most recent call last):
[node2][WARNIN]   File "/usr/sbin/ceph-disk", line 2769, in <module>
[node2][WARNIN]     main()
[node2][WARNIN]   File "/usr/sbin/ceph-disk", line 2747, in main
[node2][WARNIN]     args.func(args)
[node2][WARNIN]   File "/usr/sbin/ceph-disk", line 2465, in main_zap
[node2][WARNIN]     zap(dev)
[node2][WARNIN]   File "/usr/sbin/ceph-disk", line 1014, in zap
[node2][WARNIN]     dev_file.seek(-size, os.SEEK_END)
[node2][WARNIN] IOError: [Errno 22] Invalid argument
[node2][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: /usr/sbin/ceph-disk zap /dev/sdb

Ceph version:

$ ceph --version
ceph version 0.87.1 (283c2e7cfa2457799f534744d7d549f83ea1335e)

No data to display

Actions

Also available in: Atom PDF