Merge "Simplify test_live_migration"

This commit is contained in:
Zuul 2021-08-27 17:43:12 +00:00 committed by Gerrit Code Review
commit 90f5d9d0d9

View File

@ -49,18 +49,6 @@ class LiveMigrationBase(base.BaseWhiteboxComputeTest):
raise cls.skipException(
"Less than 2 compute nodes, skipping migration test.")
@classmethod
def setup_credentials(cls):
# These tests don't attempt any SSH validation nor do they use
# floating IPs on the instance, so all we need is a network and
# a subnet so the instance being migrated has a single port, but
# we need that to make sure we are properly updating the port
# host bindings during the live migration.
# TODO(mriedem): SSH validation before and after the instance is
# live migrated would be a nice test wrinkle addition.
cls.set_network_resources(network=True, subnet=True)
super(LiveMigrationBase, cls).setup_credentials()
class LiveMigrationTest(LiveMigrationBase):
# First support for block_migration='auto': since Mitaka (OSP9)