Add validations to Compute API for block device mappings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Rohit Karajgi |
Bug Description
While booting an instance with block device mappings, certain scenarios need to be
taken care of in the Compute API so that Invalid user inputs are avoided and instances do not
land up in inconsistent states.
We need to add validations in the API to ensure the request body contain correct combinations
of num_instances and block_device_
For example:
1. Boot multiple instances using a single block device mapping.
Current behavior: Only one instance boots successfully with the volume attached to it.
The other instances fail block device mapping and land up in ERROR state as the volume is "in-use".
User needs to cleanup ERROR instances.
API Response: 202 Accepted
Expected behavior: API should not allow multiple instances to boot from same volume.
2. Boot multiple instances from a list of block device mappings (snapshots or volumes):
Current behavior: Only one instance boots successfully. Only the second volume in list gets attached to the instance (first one) on vda.
The other instances fail block device mapping and land up in ERROR state as the volume is "in-use".
No 1:1 mapping between volume list and instance list
User needs to cleanup ERROR instances.
API Response: 202 Accepted
Expected behavior: API should not allow multiple instances to boot from a list of BDMs
This was discussed on the mailing list and a need for appropriate API level validations was accepted.
http://
Changed in nova: | |
assignee: | nobody → Rohit Karajgi (rohitkarajgi) |
Changed in nova: | |
milestone: | none → grizzly-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-3 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/18716
Review: https:/