summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-02 01:34:12 +0000
committerGerrit Code Review <review@openstack.org>2012-08-02 01:34:12 +0000
commitfe21967c6afce187e250efc2976ecd0b06e724c8 (patch)
treecd3b600c981a4af5f7170120367692f903a15e1b /nova/compute
parent997250d43ee953ae25892213110b9a12860f8377 (diff)
parent9893c3eb5794e689736e881ec0551bdfeda48d8f (diff)
Merge "Remove agent_update from the compute manager."
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/manager.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 85a0a13ad..3d9e61186 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -1306,24 +1306,6 @@ class ComputeManager(manager.SchedulerDependentManager):
@exception.wrap_exception(notifier=notifier, publisher_id=publisher_id())
@checks_instance_lock
@wrap_instance_fault
- def agent_update(self, context, instance_uuid, url, md5hash):
- """Update agent running on an instance on this host."""
- context = context.elevated()
- instance_ref = self.db.instance_get_by_uuid(context, instance_uuid)
- current_power_state = self._get_power_state(context, instance_ref)
- expected_state = power_state.RUNNING
- if current_power_state != expected_state:
- LOG.warn(_('trying to update agent on a non-running '
- '(state: %(current_power_state)s '
- 'expected: %(expected_state)s)') % locals(),
- instance=instance_ref)
- LOG.audit(_('updating agent to %(url)s') % locals(),
- instance=instance_ref)
- self.driver.agent_update(instance_ref, url, md5hash)
-
- @exception.wrap_exception(notifier=notifier, publisher_id=publisher_id())
- @checks_instance_lock
- @wrap_instance_fault
def rescue_instance(self, context, instance=None, instance_uuid=None,
rescue_password=None):
"""