Attempting to Manage an Already Managed Cinder Volume Will Succeed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Anton Arefiev |
Bug Description
When issuing a manage command to a volume that is already managed by Cinder, the operation does not fail and you will wind up in an unexpected state. The operation will succeed, the backend storage will be renamed, and there will be two Cinder volumes in the available state with only one of them being valid. This appears to affect all Cinder drivers.
Steps to Reproduce on LVM Driver:
1) Create a Cinder volume using "cinder create" command.
2) Look at the name of the backing logical volume using "lvdisplay" command
3) Using the logical volume name issue the manage command "cinder manage <host> --source-name <name_of_lv>"
This will produce two Cinder volumes in the available state (with only one being truly backed by a logical volume) and the logical volume being renamed to match the new cinder volume.
Changed in cinder: | |
assignee: | nobody → Anton Arefiev (aarefiev) |
Changed in cinder: | |
status: | Triaged → In Progress |
Changed in cinder: | |
status: | Confirmed → Incomplete |
Changed in cinder: | |
status: | Incomplete → Confirmed |
Changed in cinder: | |
status: | In Progress → Fix Released |
I was trying to reproduce that, but seems I'm in a soup doing that! As an admin user, I'm successfully able to unmanage a volume, but can't "manage" it back. It says 404 service not found with devstack. :(