Merge "Adds live migration support to cells API"
This commit is contained in:
commit
d6f2611285
|
@ -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.
|
||||
|
|
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Reference in New Issue