diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-06-06 22:29:03 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-06-06 22:29:03 +0000 |
| commit | eeffd582f77db0160a075d84c34b82e5403f9ab2 (patch) | |
| tree | e4c32bd6f81ab604148a6844b57b13159cd7a4c6 /nova/api | |
| parent | f1243fb1e2e2d088b10d3776839c627665977e3e (diff) | |
| parent | 53cb7ea71409dc7ecfe36f92df63e11231022455 (diff) | |
| download | nova-eeffd582f77db0160a075d84c34b82e5403f9ab2.tar.gz nova-eeffd582f77db0160a075d84c34b82e5403f9ab2.tar.xz nova-eeffd582f77db0160a075d84c34b82e5403f9ab2.zip | |
Merge "Make live_migration a first-class compute API."
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/contrib/admin_actions.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/nova/api/openstack/compute/contrib/admin_actions.py b/nova/api/openstack/compute/contrib/admin_actions.py index 7cda220db..18adf8377 100644 --- a/nova/api/openstack/compute/contrib/admin_actions.py +++ b/nova/api/openstack/compute/contrib/admin_actions.py @@ -25,7 +25,6 @@ from nova import compute from nova import exception from nova import flags from nova import log as logging -from nova.scheduler import rpcapi as scheduler_rpcapi FLAGS = flags.FLAGS @@ -41,7 +40,6 @@ class AdminActionsController(wsgi.Controller): def __init__(self, *args, **kwargs): super(AdminActionsController, self).__init__(*args, **kwargs) self.compute_api = compute.API() - self.scheduler_rpcapi = scheduler_rpcapi.SchedulerAPI() # TODO(bcwaldon): These action names should be prefixed with 'os-' @@ -275,12 +273,8 @@ class AdminActionsController(wsgi.Controller): try: instance = self.compute_api.get(context, id) - self.scheduler_rpcapi.live_migration(context, - block_migration, - disk_over_commit, - instance["id"], - host, - topic=FLAGS.compute_topic) + self.compute_api.live_migrate(context, instance, block_migration, + disk_over_commit, host) except Exception: msg = _("Live migration of instance %(id)s to host %(host)s" " failed") % locals() |
