From 690d8f3d4061443b149b13f96116ad72e5dcb06c Mon Sep 17 00:00:00 2001 From: Alessandro Pilotti Date: Sun, 3 Mar 2013 01:40:11 +0200 Subject: [PATCH] Fixes live migration with attached volumes issue Fixes Bug: 1140917 Live migration fails when there are volumes attached to the instance Change-Id: I27b39ac41e97840d2a60006b1c74f6d256bc53b7 --- nova/compute/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/compute/api.py b/nova/compute/api.py index 27a9bed5cc62..53bba667ed00 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -2425,7 +2425,7 @@ class API(base.Base): bdms = self.get_instance_bdms(context, instance) for bdm in bdms: - if (block_device.strip_dev(bdm.device_name) == + if (block_device.strip_dev(bdm['device_name']) == block_device.strip_dev(instance['root_device_name'])): return True else: