Nova API should present deleted flavors (instance_types) in some cases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Unassigned |
Bug Description
In certain cases Nova API should return instance flavors (instance_types) that are deleted. Notably if there is an instance that is "active" and the flavor has been deleted, we need to pull the instance_type data down to ensure that we can apply network specifics attached to that instance_type on startup of nova-compute.
The second case that a deleted flavor should be returned is if the instance_type is being requested by ID, as IDs should not be reused. This is important for Horizon to be able to properly retrieve "instances" for a given project (in Nova Dashboard and Syspanel Dashboard).
Example traceback you can see if you delete a flavor and restart nova compute:
resource: 'NoneType' object is not subscriptable
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
2012-04-13 19:31:18 TRACE nova.api.
Thanks for the patch! It needs to be submitted through gerrit, though.
http:// wiki.openstack. org/HowToContri bute
See "If you're a developer, start here:"