When we unshelve an offloaded instance, the scheduler
creates allocations in placement when picking a host.
If the unshelve fails on the host, due to either the
instance claim failing or the guest spawn failing, we
need to remove the allocations since the instance isn't
actually running on that host.
Reviewed: https:/ /review. openstack. org/506458 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f18202185d0 5e3f7e89fca6bbc 17daf3c5dc4b98
Committed: https:/
Submitter: Jenkins
Branch: master
commit f18202185d05e3f 7e89fca6bbc17da f3c5dc4b98
Author: Matt Riedemann <email address hidden>
Date: Thu Sep 21 22:25:53 2017 -0400
Remove allocations when unshelve fails on host
When we unshelve an offloaded instance, the scheduler
creates allocations in placement when picking a host.
If the unshelve fails on the host, due to either the
instance claim failing or the guest spawn failing, we
need to remove the allocations since the instance isn't
actually running on that host.
Change-Id: Id2c7b7b3b4abda 8a3b878fdee6806 bcfe096e12e
Closes-Bug: #1713796