]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
rbd driver in cinder does not manage glance images multi-location
authorAlfredo Moralejo <amoralej@redhat.com>
Wed, 13 May 2015 10:50:43 +0000 (12:50 +0200)
committerAlfredo Moralejo <amoralej@redhat.com>
Sun, 31 May 2015 13:57:16 +0000 (15:57 +0200)
commit53448f2f494718f93d2f854867d4658ee6f084c9
tree176907562b5417b3e7f15ed4b33cc0e30e70b2d8
parent4e88ddf2e9a289881347c68c95d38eab6651473f
rbd driver in cinder does not manage glance images multi-location

Currently, rbd driver in cinder does not manage properly glance images with
multiple locations when creating a volume from image.

With multi-location feature in glance, a image can have multiple rbd URIs
associated, even in different ceph clusters. When rbd driver tries to create a
volume as a CoW clone from the image, it only check the direct_url URI instead
of all available locations for the image.

This patch iterates over both direct_url and locations URIs looking for a
clonable one.

Change-Id: I2d50b8af7f8f772ffa10d968616309d81e6940ec
Closes-Bug: 1454638
cinder/tests/unit/test_rbd.py
cinder/volume/drivers/rbd.py