From 2c1bd79a202c868bfeee7ca92e817ad19ef06b76 Mon Sep 17 00:00:00 2001 From: Yang Yu Date: Mon, 6 May 2013 14:33:54 +0800 Subject: Nova evacuate failed when VM is in SHUTOFF status When the VM is in SHUTOFF status and the original compute host is down, issue the "nova evacuate" command to rebuild the VM on another host, it is failed due to a type error: string indices must be integers. Fix bug 1176773 Change-Id: I76ebce6882198365717167f29a484e4ec994db0c --- nova/compute/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/compute') diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 70d88117d..588837266 100755 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -1735,7 +1735,7 @@ class ComputeManager(manager.SchedulerDependentManager): task_state=task_states.STOPPING, terminated_at=timeutils.utcnow(), progress=0) - self.stop_instance(context, instance['uuid']) + self.stop_instance(context, instance) self._notify_about_instance_usage( context, instance, "rebuild.end", -- cgit