summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-05-22 08:49:43 +0000
committerGerrit Code Review <review@openstack.org>2013-05-22 08:49:43 +0000
commitd6f2611285382bc59ba0ff23518c4f0b08fb4855 (patch)
tree213b7b50ba8cacd8b88e0eab213dc042ea79e2ce
parent311fd5e0bd542468d610db5fdf0ae67506195de6 (diff)
parent6682d1617e7085c8f956ff6b23ea6932ec986a3e (diff)
downloadnova-d6f2611285382bc59ba0ff23518c4f0b08fb4855.tar.gz
nova-d6f2611285382bc59ba0ff23518c4f0b08fb4855.tar.xz
nova-d6f2611285382bc59ba0ff23518c4f0b08fb4855.zip
Merge "Adds live migration support to cells API"
-rw-r--r--nova/compute/cells_api.py10
-rw-r--r--nova/tests/compute/test_compute_cells.py3
2 files changed, 10 insertions, 3 deletions
diff --git a/nova/compute/cells_api.py b/nova/compute/cells_api.py
index 7168313ec..4beeaeb3d 100644
--- a/nova/compute/cells_api.py
+++ b/nova/compute/cells_api.py
@@ -559,6 +559,16 @@ class ComputeCellsAPI(compute_api.API):
pass
return rv
+ @validate_cell
+ def live_migrate(self, context, instance, block_migration,
+ disk_over_commit, host_name):
+ """Migrate a server lively to a new host."""
+ super(ComputeCellsAPI, self).live_migrate(context,
+ instance, block_migration, disk_over_commit, host_name)
+
+ self._cast_to_cells(context, instance, 'live_migrate',
+ block_migration, disk_over_commit, host_name)
+
class HostAPI(compute_api.HostAPI):
"""HostAPI() class for cells.
diff --git a/nova/tests/compute/test_compute_cells.py b/nova/tests/compute/test_compute_cells.py
index 40ae4e3de..ad4e6c754 100644
--- a/nova/tests/compute/test_compute_cells.py
+++ b/nova/tests/compute/test_compute_cells.py
@@ -145,9 +145,6 @@ class CellsComputeAPITestCase(test_compute.ComputeAPITestCase):
def test_instance_metadata(self):
self.skipTest("Test is incompatible with cells.")
- def test_live_migrate(self):
- self.skipTest("Test is incompatible with cells.")
-
def test_snapshot_given_image_uuid(self):
self.skipTest("Test doesn't apply to API cell.")