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.
Reviewed: https:/ /review. fuel-infra. org/9834 ci/fuel- 7.0/2015. 1.0
Submitter: mos-infra-ci <>
Branch: openstack-
Commit: 03d438c691764c2 2b8bfaaa07dc232 5951366324
Author: Anton Arefiev <email address hidden>
Date: Fri Jul 24 08:37:10 2015
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: 1421439
Change-Id: Ib54bb6759b2733 4294fb2c6d2c0bf e4eae3d0920