The _destroy_evacuated_instances method on compute
startup tries to cleanup guests from the hypervisor
and allocations held against that compute node resource
provider by evacuated instances, but doesn't take into
account that those evacuated instances could have been
deleted in the meantime which leads to a lazy-load
InstanceNotFound error that kills the startup of the
compute service.
This change adds a functional regression test to recreate
the bug. A subsequent change with the fix will update
the test to show the bug is fixed.
Note that assertFlavorMatchesAllocation and
_boot_and_check_allocations are redefined in the test
class because If6aa37d9b6b48791e070799ab026c816fda4441c
refactored those methods which will cause problems with
backports of this test. The redefined methods will be
removed in a follow up cleanup patch.
NOTE(mriedem): The restart_compute_service() method
needed to be added to the functional test class because
change I17f67a02b27a90658df48856963ea3fb327e81dc is not
in Pike.
Change-Id: I19b0d8baea5440f5d5bc49a6956d9a97bf031a05
Related-Bug: #1794996
(cherry picked from commit d252f81573cdfe7a0966f134608bb85d17311e33)
(cherry picked from commit 83d74dbbb6b45bfeada0c0b9ac13385b126709bb)
(cherry picked from commit c3fd5e5061b837a78a95705074239c3d2e41e644)
Reviewed: https:/ /review. openstack. org/623358 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=91455a52273 8572def003dfe5e 4f0bec08255074
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 91455a522738572 def003dfe5e4f0b ec08255074
Author: Matt Riedemann <email address hidden>
Date: Fri Sep 28 10:58:48 2018 -0400
Add functional regression test for bug 1794996
The _destroy_ evacuated_ instances method on compute Found error that kills the startup of the
startup tries to cleanup guests from the hypervisor
and allocations held against that compute node resource
provider by evacuated instances, but doesn't take into
account that those evacuated instances could have been
deleted in the meantime which leads to a lazy-load
InstanceNot
compute service.
This change adds a functional regression test to recreate
the bug. A subsequent change with the fix will update
the test to show the bug is fixed.
Note that assertFlavorMat chesAllocation and and_check_ allocations are redefined in the test 91e070799ab026c 816fda4441c
_boot_
class because If6aa37d9b6b487
refactored those methods which will cause problems with
backports of this test. The redefined methods will be
removed in a follow up cleanup patch.
NOTE(mriedem): The restart_ compute_ service( ) method 658df48856963ea 3fb327e81dc is not
needed to be added to the functional test class because
change I17f67a02b27a90
in Pike.
Change-Id: I19b0d8baea5440 f5d5bc49a6956d9 a97bf031a05 a0966f134608bb8 5d17311e33) eada0c0b9ac1338 5b126709bb) 78a95705074239c 3d2e41e644)
Related-Bug: #1794996
(cherry picked from commit d252f81573cdfe7
(cherry picked from commit 83d74dbbb6b45bf
(cherry picked from commit c3fd5e5061b837a