]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Cloudbyte fix create_cloned_volume parent id
authorWalter A. Boring IV <walter.boring@hp.com>
Wed, 2 Sep 2015 02:10:43 +0000 (02:10 +0000)
committerWalter A. Boring IV <walter.boring@hp.com>
Wed, 2 Sep 2015 02:10:43 +0000 (02:10 +0000)
The CloudByte driver is reading the parent's volume id from the
new volume's source_volid.  There are some cases when this isn't set.
The source volume object/dict is passed in, so just access the id
from there.

Change-Id: If6d3f50d11e36434e194a355e874d44f9d79f553
Closes-Bug: 1491206

cinder/volume/drivers/cloudbyte/cloudbyte.py

index 7ac680cf82ce17b6c6a60a19c6fa662cd44db345..56a8c3c08ed7f4aad368205d33209d8716707ed4 100644 (file)
@@ -909,7 +909,7 @@ class CloudByteISCSIDriver(san.SanISCSIDriver):
         """
 
         # Extract necessary information from input params
-        parent_volume_id = cloned_volume.get('source_volid')
+        parent_volume_id = src_volume.get('id')
 
         # Generating id for snapshot
         # as this is not user entered in this particular usecase