unable to destroy bare-metal instance when flavor is deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Paul Murray | ||
Juno |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Get error if delete flavor before delete instance.
This is caused by ironic driver in nova.
We have below code in _cleanup_deploy function in nova/virt/
if flavor is None:
# TODO(mrda): It would be better to use instance.
# but right now that doesn't include extra_specs which are required
flavor = objects.
So if the flavor is deleted before we destroy bare metal node, we get FlavorNotFoud exception without handling.
At same time, I found the flavor is used to clean deploy ramdisk/kernel in driver_info, which was plan to remove in Kilo, are we ready for that?
Changed in nova: | |
assignee: | nobody → Tan Lin (tan-lin-good) |
Changed in ironic: | |
assignee: | nobody → Tan Lin (tan-lin-good) |
description: | updated |
no longer affects: | ironic |
tags: | added: juno-backport-potential |
Changed in nova: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-2 → 2015.1.0 |
Thank you for reporting. This bug should be fixed within Nova tree, as to my best knowledge Ironic is not even aware of flavor concept.