diff options
author | Alessandro Pilotti <ap@pilotti.it> | 2013-03-03 01:40:11 +0200 |
---|---|---|
committer | Alessandro Pilotti <ap@pilotti.it> | 2013-03-03 01:40:11 +0200 |
commit | 690d8f3d4061443b149b13f96116ad72e5dcb06c (patch) | |
tree | 63933f95f919b48f9b9304bc4f49a688ed0b5724 | |
parent | d5e728ca08e250ee537f5bbf0f7c2df4c899c76b (diff) | |
download | nova-690d8f3d4061443b149b13f96116ad72e5dcb06c.tar.gz nova-690d8f3d4061443b149b13f96116ad72e5dcb06c.tar.xz nova-690d8f3d4061443b149b13f96116ad72e5dcb06c.zip |
Fixes live migration with attached volumes issue
Fixes Bug: 1140917
Live migration fails when there are volumes attached to the instance
Change-Id: I27b39ac41e97840d2a60006b1c74f6d256bc53b7
-rw-r--r-- | nova/compute/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 27a9bed5c..53bba667e 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: |