Allow Volume Operations When Shelved
This spec-less blueprint enables the attach volume and detach volume operations when an instance is in shelved or shelved_offloaded states.
At the moment volumes cannot be attached or detached when an instance has been shelved. These operations can be done when the instance is paused or stopped so it seems odd not to do it for shelved instances as well.
The case for the shelved state is similar to stopped or paused because the instance is still on the host, so this is covered by changing the allowed states for detach_volume() and attach_volume() in the compute API.
The case for the shelved_offloaded state requires a couple of new methods for attach and detach similar to the way bdms are dealt with in _local_delete() in the compute API class which deletes instances that have been offloaded.
Blueprint information
- Status:
- Complete
- Approver:
- John Garbutt
- Priority:
- Low
- Drafter:
- Paul Murray
- Direction:
- Approved
- Assignee:
- Paul Murray
- Definition:
- Approved
- Series goal:
- Accepted for mitaka
- Implementation:
-
Implemented
- Milestone target:
-
mitaka-3
- Started by
- Paul Murray
- Completed by
- Paul Murray
Related branches
Related bugs
Sprints
Whiteboard
Because this changes the API, this will need a spec. --johnthetubaguy 20141104
Done - see below. -- PaulMurray
Gerrit topic: https:/
Addressed by: https:/
Allow volume operations when shelved
Addressed by: https:/
Adding guard on None value for some helpers method
Addressed by: https:/
Adding volume operations for shelved instances
Addressed by: https:/
Enable volume operations for shelved instances
This spec is complete - but we are adding a functional test because of issues with CI not working properly with micro versions.
Addressed by: https:/
Add tests to attach/detach vols for shelved server
Gerrit topic: https:/
Addressed by: https:/
Call terminate_
Work Items
Dependency tree

* Blueprints in grey have been implemented.