This patch adds a functional test that reproduces a race between
incoming migration and the update_available_resource periodic
Conflicts: fixed conflict on test_numa_server to only add test case for
1953359
Fixes:
- Changed 'start_compute' call to 'start_computes', since the former
is not present in Ussuri
- Added more memory to mock 'host_info', since the default would not
fit the instance. Default was changed in later releases
- Bumped the API version from 2.0 to 2.1 in the test, since microversion 2.47 is required creating an instance
in a specific host and 2.0 is not supporting microversions. This
was not needed for later releases, because the API version was
bumped with some changes made by [1]
- Reset the original microversion in 'create_server' after the POST
request, so that subsequent calls are not affected
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /822047 /opendev. org/openstack/ nova/commit/ c92e7821e3b97c8 469fc2a68621428 549d36d755
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/ussuri
commit c92e7821e3b97c8 469fc2a68621428 549d36d755
Author: Balazs Gibizer <email address hidden>
Date: Mon Dec 6 16:36:41 2021 +0100
Reproduce bug 1953359
This patch adds a functional test that reproduces a race between available_ resource periodic
incoming migration and the update_
Conflicts: fixed conflict on test_numa_server to only add test case for
1953359
Fixes:
microversion 2.47 is required creating an instance
- Changed 'start_compute' call to 'start_computes', since the former
is not present in Ussuri
- Added more memory to mock 'host_info', since the default would not
fit the instance. Default was changed in later releases
- Bumped the API version from 2.0 to 2.1 in the test, since
in a specific host and 2.0 is not supporting microversions. This
was not needed for later releases, because the API version was
bumped with some changes made by [1]
- Reset the original microversion in 'create_server' after the POST
request, so that subsequent calls are not affected
[1] Later change that bumps API version on parent classes /review. opendev. org/c/openstack /nova/+ /741282
https:/
Co-Authored-By: Gabriel Silva Trevisan <email address hidden>
Change-Id: I4be429c56aaa15 ee12f448978c382 14e741eae63 8f40f72cf4e37ef dc990e4d7e) f826cfced75c2fb 06fdb379a8) 20c844d914f2716 cba047630e) e6e21ee5138bf06 142a71e71a)
Related-Bug: #1953359
(cherry picked from commit c59224d715a2199
(cherry picked from commit f0a6d946aaa6c30
(cherry picked from commit d8859e4f95f5abb
(cherry picked from commit e549fec76fd2015