]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix properties extracting from image with glance api v2
authorAnton Arefiev <aarefiev@mirantis.com>
Tue, 31 Mar 2015 16:44:57 +0000 (19:44 +0300)
committerAnton Arefiev <aarefiev@mirantis.com>
Fri, 10 Jul 2015 10:40:32 +0000 (13:40 +0300)
commitf20643ca44e139e3384b9dea638b54c2235b1169
tree2cf01284a2bdf2209d77f552f522d8f99250a823
parent98599d462d09de3b5292b45d3bcc0f84b159e861
Fix properties extracting from image with glance api v2

When a volume is created using the glance v1 API, the non based
properties places in 'properties' dict, and nova is expected
to find them here. Otherwise api's v2 return custom image properties
as base properties, so nova can't find them in volume 'image
properties'.

This change add new glance call to get image schema, it allows
extract custom properties from image.

Closes-Bug: 1323660

Change-Id: Ib54bb6759b27334294fb2c6d2c0bfe4eae3d0920
cinder/image/glance.py
cinder/tests/unit/glance/stubs.py
cinder/tests/unit/image/test_glance.py