Error: You are not allowed to delete volume: $X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Confirmed
|
Low
|
Unassigned |
Bug Description
When using Ceph as the back end storage a snapshot of a volume is dependent upon the original volume meaning it is an illegal operation to delete the volume without first deleting the snapshot.
Should you try and delete such a volume horizon {kilo} reports back the error "Error: You are not allowed to delete volume:" - This error message is confusing and leaves the end user unsure why the volume can not be removed.
I think we should handle this by better checking what cinder API reports back and displaying a more user friendly error message.
The below is an example of the error that comes back from cinder, passing this up in horizon would be very helpful.
$ cinder delete 34feea60-
Delete for volume 34feea60-
ERROR: Unable to delete any of specified volumes.
$
Changed in horizon: | |
status: | New → Confirmed |
I just want to clarify, I was attempting to reproduce a bug in Nova and after cleaning up the volumes I'd created, in Horizon I received this error when I tried to delete the volume. I had not used Ceph, I just created a volume snapshot off of a volume I created off of the default cirros image. I think it's fair to say, this bug affects any volume with an associated snapshot.
From the command line, I ran "cinder delete foo" and got the message "Delete for volume foo failed: Invalid volume: Volume still has 1 dependent snapshots. (HTTP 400) (Request-ID: req-74c69b6d- f687-4738- b7c9-42bca6bf5a 5c)
ERROR: Unable to delete any of the specified volumes." In the Horizon UI, logged in as admin, I received the error listed in this bug when I tried to delete that volume. Once I had this information from cinder in the CLI, I returned to Horizon. I deleted the volume snapshot and then I was able to delete the volume.