Merge "Add CONF.compute_feature_enabled.volume_backed_live_migration"

This commit is contained in:
Zuul 2017-12-16 02:24:08 +00:00 committed by Gerrit Code Review
commit 43b942db5a
3 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,7 @@
---
features:
- |
A new boolean configuration option
``[compute-feature-enabled]/volume_backed_live_migration`` has been added.
If enabled, tests which validate the behavior of Nova's *volume-backed live
migration* feature will be executed. The option defaults to ``False``.

View File

@ -132,7 +132,9 @@ class LiveMigrationTest(base.BaseV2ComputeAdminTest):
def test_live_block_migration_paused(self):
self._test_live_migration(state='PAUSED')
@decorators.skip_because(bug="1524898")
@testtools.skipUnless(CONF.compute_feature_enabled.
volume_backed_live_migration,
'Volume-backed live migration not available')
@decorators.idempotent_id('5071cf17-3004-4257-ae61-73a84e28badd')
@utils.services('volume')
def test_volume_backed_live_migration(self):

View File

@ -473,6 +473,10 @@ ComputeFeaturesGroup = [
default=False,
help='Does the test environment support in-place swapping of '
'volumes attached to a server instance?'),
cfg.BoolOpt('volume_backed_live_migration',
default=False,
help='Does the test environment support volume-backed live '
'migration?'),
]