From: Walter A. Boring IV Date: Wed, 2 Sep 2015 02:10:43 +0000 (+0000) Subject: Cloudbyte fix create_cloned_volume parent id X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=c1632465e8b240a38d1774649cdbf1d8d90da165;p=openstack-build%2Fcinder-build.git Cloudbyte fix create_cloned_volume parent id 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 --- diff --git a/cinder/volume/drivers/cloudbyte/cloudbyte.py b/cinder/volume/drivers/cloudbyte/cloudbyte.py index 7ac680cf8..56a8c3c08 100644 --- a/cinder/volume/drivers/cloudbyte/cloudbyte.py +++ b/cinder/volume/drivers/cloudbyte/cloudbyte.py @@ -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