removing a flavor in use leads to nova api failiure

Bug #1018788 reported by David Busby
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Medium
Unassigned
Essex
New
Undecided
Unassigned
Fedora
Unknown
Unknown

Bug Description

More information on this bug may be found a redhat bugzilla here: https://bugzilla.redhat.com/show_bug.cgi?id=836193

In short within the _get_flavor method of compute/views/servers.py if a flavor was removed but an instance is still associated with the removed flavor instance["instance_type"] will return None

As this is not checked before attempting to retrieve the flavour_id this throws a python exception.

Revision history for this message
Russell Bryant (russellb) wrote :

This bug was fixed in master by:

    https://review.openstack.org/#/c/8007/

related discussion here:

    https://lists.launchpad.net/openstack/msg12648.html

It's still a problem in Essex (what is in use for this bug). That patch is probably too invasive for a stable branch backport, though.

Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.