Skip to content

Commit

Permalink
Merge "Add CONF.compute_feature_enabled.volume_backed_live_migration"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Dec 16, 2017
2 parents 3f697b3 + 334f313 commit 43b942d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
@@ -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``.
4 changes: 3 additions & 1 deletion tempest/api/compute/admin/test_live_migration.py
Expand Up @@ -132,7 +132,9 @@ def test_live_block_migration(self):
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):
Expand Down
4 changes: 4 additions & 0 deletions tempest/config.py
Expand Up @@ -473,6 +473,10 @@ def register_opt_group(conf, opt_group, options):
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?'),
]


Expand Down

0 comments on commit 43b942d

Please sign in to comment.