]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes create rbd volume from image v1 glance api
authorEdward Hope-Morley <edward.hope-morley@canonical.com>
Mon, 5 Aug 2013 21:57:09 +0000 (22:57 +0100)
committerEdward Hope-Morley <edward.hope-morley@canonical.com>
Tue, 6 Aug 2013 08:27:26 +0000 (09:27 +0100)
commit0f11f016c56db89188051661ad9dce8f0ef920f7
treee89a9097eb3e238f1a25d96bb2166f859d631cf0
parent18e4ea29ed35f9564d93de47d3774dedcdc3ebd9
Fixes create rbd volume from image v1 glance api

The RBD driver supports two methods of image cloning;
thin copy i.e. copy-on-write (requires v2 Glance API)
and full copy (default if v2 Glance API is not available).

clone_image() was failing in the Glance V1 API case because
it was not returning a tuple, as expected by the volume
manager. Glance V2 support works fine.

Fixes: bug #1208617
Change-Id: I2e8605eaacfe8b65bdf47cb6ea40ef62d6f6b895
cinder/tests/test_rbd.py
cinder/volume/drivers/rbd.py