Cinder force-delete always sets exit code 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Invalid
|
Undecided
|
ugvddm |
Bug Description
a cinder force-delete command sets an exit status of '0' even if the command fails to delete the volume:
[root@ldtdsraio0009 cinder(
| ebf6d8e6-
[root@ldtdsraio0009 cinder(
[root@ldtdsraio0009 cinder(
0
[root@ldtdsraio0009 cinder(
| ebf6d8e6-
Note: The reason for the delete failing was valid (the volume was still mounted to the host).
Changed in cinder: | |
assignee: | nobody → ugvddm (271025598-9) |
affects: | cinder → python-cinderclient |
Assuming cinder API V1?
Running on V2: python- cinderclient/ cinderclient $ cinder force-delete 15b4e139- 2622-4cf9- 8907-f33a8a0f2b 42 2622-4cf9- 8907-f33a8a0f2b 42 failed: Volume 15b4e139- 2622-4cf9- 8907-f33a8a0f2b 42 is still attached, detach volume first. (HTTP 400) (Request-ID: req-c3b81c53- 9b8e-4501- b0ca-a36c4a26a3 49) python- cinderclient/ cinderclient :( $ echo $?
jgriffith@bdr-77 /opt/stack/
Delete for volume 15b4e139-
ERROR: Unable to force delete any of specified volumes.
jgriffith@bdr-77 /opt/stack/
1
I'll setup V1 later and verify it unless somebody beats me to it.