summaryrefslogtreecommitdiff
path: root/nova/tests/functional/integrated_helpers.py
diff options
context:
space:
mode:
authorAmit Uniyal <auniyal@redhat.com>2022-08-25 05:08:44 +0000
committerAmit Uniyal <auniyal@redhat.com>2022-11-28 12:46:05 +0000
commit5e955b62fa63b72816369a21af283a2b64f4af27 (patch)
treed5526a2d6e5119e261ebac163b748c6d8e82143a /nova/tests/functional/integrated_helpers.py
parent90e65365ab608792c4b8d8c4c3a87798fccadeec (diff)
downloadnova-5e955b62fa63b72816369a21af283a2b64f4af27.tar.gz
Adds a repoducer for post live migration fail
Adds a regression test or repoducer for post live migration fail at destination, the possible casue can be fail to get instance network info or block device info changes: adds return server from _live_migrate in _integrated_helpers NOTE(auniyal): Differences * Replaced GlanceFixture with fake.stub_out_image_service in regression test, as GlanceFixture does not exist in Ussuri Related-Bug: #1628606 Change-Id: I48dbe0aae8a3943fdde69cda1bd663d70ea0eb19 (cherry picked from commit a20baeca1f5ebb0dfe9607335a6986e9ed0e1725) (cherry picked from commit 74a618a8118642c9fd32c4e0d502d12ac826affe) (cherry picked from commit 71e5a1dbcc22aeaa798d3d06ce392cf73364b8db) (cherry picked from commit 5efcc3f695e02d61cb8b881e009308c2fef3aa58) (cherry picked from commit ed1ea71489b60c0f95d76ab05f554cd046c60bac) (cherry picked from commit 6dda4f7ca3f25a11cd0178352ad24fe2e8b74785)
Diffstat (limited to 'nova/tests/functional/integrated_helpers.py')
-rw-r--r--nova/tests/functional/integrated_helpers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/tests/functional/integrated_helpers.py b/nova/tests/functional/integrated_helpers.py
index 53d10d2353..07d1f7b826 100644
--- a/nova/tests/functional/integrated_helpers.py
+++ b/nova/tests/functional/integrated_helpers.py
@@ -436,10 +436,10 @@ class InstanceHelperMixin:
server_expected_state='ACTIVE'):
self.api.post_server_action(
server['id'],
- {'os-migrateLive': {'host': None,
- 'block_migration': 'auto'}})
- self._wait_for_state_change(server, server_expected_state)
+ {'os-migrateLive': {'host': None, 'block_migration': 'auto'}})
+ server = self._wait_for_state_change(server, server_expected_state)
self._wait_for_migration_status(server, [migration_expected_state])
+ return server
def _evacuate_server(
self, server, extra_post_args=None, expected_host=None,