From 9893c3eb5794e689736e881ec0551bdfeda48d8f Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 1 Aug 2012 11:24:59 -0400 Subject: 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 --- nova/compute/manager.py | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'nova/compute') 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 @@ -1303,24 +1303,6 @@ class ComputeManager(manager.SchedulerDependentManager): instance=instance) self.driver.inject_file(instance, path, file_contents) - @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 -- cgit