summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-08-01 11:24:59 -0400
committerRussell Bryant <rbryant@redhat.com>2012-08-01 12:22:53 -0400
commit9893c3eb5794e689736e881ec0551bdfeda48d8f (patch)
tree6607d3c1bbbe34c3d7bd3b982a0c67703628ad3b /nova/compute
parent3905d66dae8c4bc08079ffd4bff67ebed8044d8f (diff)
Remove agent_update from the compute manager.
It appears that this method of the compute method has never been used since it was added in fa0b64b500f3a196044459ba4bf8ed0dea214e92, so just remove it. It was also added to the virt driver API, but the only use is internally to the xenapi driver, so leave it as an internal thing to that driver only. Part of blueprint no-db-messaging. Change-Id: Idb2c823421e714fa364affbbb80d28175b9b5b4e
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 4540b76cf..134983f01 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):
"""