summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-10-31 19:06:50 +0000
committerGerrit Code Review <review@openstack.org>2012-10-31 19:06:50 +0000
commit4ce8401ae206c292fce758ae280c169038ff8310 (patch)
tree10ca1a64b814a9705f1d56da03f23170f6b65366
parenta93f67c2accd48970d2a0154100a49728f5994dc (diff)
parent19cc9ec6926e8b9028527c56fb1f4c7f883a08a1 (diff)
Merge "Remove redundant code from PowerVM driver"
-rw-r--r--nova/virt/powervm/driver.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/nova/virt/powervm/driver.py b/nova/virt/powervm/driver.py
index 5fc73b4a9..cd91a7299 100644
--- a/nova/virt/powervm/driver.py
+++ b/nova/virt/powervm/driver.py
@@ -70,20 +70,7 @@ class PowerVMDriver(driver.ComputeDriver):
def init_host(self, host):
"""Initialize anything that is necessary for the driver to function,
including catching up with currently running VM's on the given host."""
- context = nova_context.get_admin_context()
- instances = db.instance_get_all_by_host(context, host)
- powervm_instances = self.list_instances()
- # Looks for db instances that don't exist on the host side
- # and cleanup the inconsistencies.
- for db_instance in instances:
- task_state = db_instance['task_state']
- if db_instance['name'] in powervm_instances:
- continue
- if task_state in [task_states.DELETING, task_states.SPAWNING]:
- db.instance_update(context, db_instance['uuid'],
- {'vm_state': vm_states.DELETED,
- 'task_state': None})
- db.instance_destroy(context, db_instance['uuid'])
+ pass
def get_info(self, instance):
"""Get the current status of an instance."""