attachment_reserve shouldn't change status of in-use volumes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
John Griffith |
Bug Description
There are a number of places on the Nova side where we need to do things with volume connections like remove an attachment and immediately reserve a new one. This introduces a protential race where bad things can happen. To deal with that, we actually want to to create a new attachment to do a reserve, BEFORE we delete the current attachment.
The problem is that the new Attachment code currently will toggle the volume status and attach status such that you will then not be able to remove the attachment in the future, and it also makes things such that the true state of the volume is not reflected properly.
We should either allow delete of reserved volume.status or we should not set reserved on a volume that's still in use. The second option here seems like it would be a better fit for when we do multi-attach so we should probably fix it that way.
Fix proposed to branch: master /review. openstack. org/504467
Review: https:/