diff options
author | Artom Lifshitz <alifshit@redhat.com> | 2020-05-01 13:47:44 -0400 |
---|---|---|
committer | Amit Uniyal <auniyal@redhat.com> | 2022-11-23 09:53:22 +0000 |
commit | d3b46af01b7afa1a9051cb440a7986bfcb1a59b1 (patch) | |
tree | 2c90c1da79a92b5ecce217c4e56ec6892a05d723 | |
parent | 6786e9630b10c0c01c8797a4e2e0a1a35fd3ca94 (diff) | |
download | nova-d3b46af01b7afa1a9051cb440a7986bfcb1a59b1.tar.gz |
func: Add _live_migrate helper to InstanceHelperMixin
This is a partial backport of I70c4715de05d64fabc498b02d5c757af9450fbe9
that introduced this helper will addressing feedback on
Ia3d7351c1805d98bcb799ab0375673c7f1cb8848 and
I78e79112a9c803fb45d828cfb4641456da66364a that landed in Victoria.
Follow-up for NUMA live migration functional tests
This patch addresses outstanding feedback on
Ia3d7351c1805d98bcb799ab0375673c7f1cb8848 and
I78e79112a9c803fb45d828cfb4641456da66364a.
Related-Bug: #1628606
Change-Id: I70c4715de05d64fabc498b02d5c757af9450fbe9
(cherry picked from commit ca8f1f422298b0a26cf30165595d256f4fa71135)
(cherry picked from commit 726ca4aec5ccea96748de88b2c2a2fd1a078cfc5)
-rw-r--r-- | nova/tests/functional/integrated_helpers.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nova/tests/functional/integrated_helpers.py b/nova/tests/functional/integrated_helpers.py index 47980d8703..2afafd0a22 100644 --- a/nova/tests/functional/integrated_helpers.py +++ b/nova/tests/functional/integrated_helpers.py @@ -376,6 +376,14 @@ class InstanceHelperMixin(object): self.fail('The line "%(log_line)s" did not appear in the log') + def _live_migrate(self, server, migration_final_status): + self.api.post_server_action( + server['id'], + {'os-migrateLive': {'host': None, + 'block_migration': 'auto'}}) + self._wait_for_state_change(self.api, server, 'ACTIVE') + self._wait_for_migration_status(server, [migration_final_status]) + class ProviderUsageBaseTestCase(test.TestCase, InstanceHelperMixin): """Base test class for functional tests that check provider usage |