Fix functional regression/recreate test for bug 1671648
There are a couple of issues with the test:
1. It doesn't consider both hosts from the two compute services
during scheduling.
2. There is a race where sometimes claims.Claim.__init__ won't
be called because if the RT instance_claim runs before update_available_resource has run, it will create a claims.NopClaim instead.
This adds the RetryFilter to enabled_filters, adds set_nodes() calls
to set the nodenames of each compute service to match its host,
resulting in consideration of both hosts for scheduling, and stubs
resource_tracker.ResourceTracker.instance_claim instead of
claims.Claim.__init__.
Reviewed: https:/ /review. openstack. org/446685 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=b6b5438c3dd eedab6c7f83d199 8d283f1bb503bc
Committed: https:/
Submitter: Jenkins
Branch: master
commit b6b5438c3ddeeda b6c7f83d1998d28 3f1bb503bc
Author: melanie witt <email address hidden>
Date: Thu Mar 16 18:24:23 2017 +0000
Fix functional regression/recreate test for bug 1671648
There are a couple of issues with the test:
1. It doesn't consider both hosts from the two compute services
during scheduling.
2. There is a race where sometimes claims. Claim._ _init__ won't
update_ available_ resource has run, it will create a
claims. NopClaim instead.
be called because if the RT instance_claim runs before
This adds the RetryFilter to enabled_filters, adds set_nodes() calls tracker. ResourceTracker .instance_ claim instead of Claim._ _init__ .
to set the nodenames of each compute service to match its host,
resulting in consideration of both hosts for scheduling, and stubs
resource_
claims.
Related-Bug: #1671648
Change-Id: I541c03a7960b8f 135b005c43cb5c7 bcb0b63b9ae