]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
3PAR Fix create_cloned_volume source volume id
authorWalter A. Boring IV <walter.boring@hp.com>
Tue, 1 Sep 2015 23:22:40 +0000 (16:22 -0700)
committerWalter A. Boring IV <walter.boring@hp.com>
Wed, 2 Sep 2015 02:13:37 +0000 (02:13 +0000)
commita56511fd455c0f986781eb9bc437bb779ef278e4
tree94d730753a0c7051585866fcfcb5b119e9b8e125
parent80b0355dc23fcfa41b2f3504f67d2e2a808613a0
3PAR Fix create_cloned_volume source volume id

This patch fixes where we are getting the source volume id
from.  Previously we were reading the source volume id from
the destination volume object in volume['source_volid'].  There are
cases where this value doesn't exist.   We are now reading the value
from the src_vref['id'] instead.

Change-Id: I7cf3137048d4b46099077402ec76faf20bd66b83
Closes-Bug: 1491175
cinder/tests/unit/test_hp3par.py
cinder/volume/drivers/san/hp/hp_3par_common.py