commit ee66c0436ba969adae519fa5033b8da0fd04a30f
Author: Paul Murray <email address hidden>
Date: Tue Dec 16 14:20:32 2014 +0000
Fix ironic delete fails when flavor deleted
The ironic virt driver looks up the flavor of an instance
when it is going to delete it. This is to obtain extra
specs details that are not available in the instance details.
If the flavor has been deleted this lookup fails and causes
the delete to fail.
The fix makes the lookup include deleted flavors. Note that
extra specs handling is changing in nova, so this code is
likely to become obsolete when they are available by
other means.
Change-Id: I47ba78abfe60e82226acc6a17752db503d9f21d8
Co-Authored-By: Nicholas Randon <email address hidden>
Co-Authored-By: Phil Day <email address hidden>
Closes-Bug: #1400269
(cherry picked from commit c4eab7062301b8f3b2de2358c589aee4c53074ef)
Conflicts: nova/tests/unit/virt/ironic/test_driver.py nova/virt/ironic/driver.py
Reviewed: https:/ /review. openstack. org/143132 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ee66c0436ba 969adae519fa503 3b8da0fd04a30f
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit ee66c0436ba969a dae519fa5033b8d a0fd04a30f
Author: Paul Murray <email address hidden>
Date: Tue Dec 16 14:20:32 2014 +0000
Fix ironic delete fails when flavor deleted
The ironic virt driver looks up the flavor of an instance
when it is going to delete it. This is to obtain extra
specs details that are not available in the instance details.
If the flavor has been deleted this lookup fails and causes
the delete to fail.
The fix makes the lookup include deleted flavors. Note that
extra specs handling is changing in nova, so this code is
likely to become obsolete when they are available by
other means.
Change-Id: I47ba78abfe60e8 2226acc6a17752d b503d9f21d8 3b2de2358c589ae e4c53074ef)
nova/ tests/unit/ virt/ironic/ test_driver. py
nova/ virt/ironic/ driver. py
Co-Authored-By: Nicholas Randon <email address hidden>
Co-Authored-By: Phil Day <email address hidden>
Closes-Bug: #1400269
(cherry picked from commit c4eab7062301b8f
Conflicts: