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.
(commit changed in favor of Python 2.6/2.7 compatibility)
Reviewed: https:/ /review. fuel-infra. org/11398 ci/fuel- 6.1/2014. 2
Submitter: Vitaly Sedelnik <email address hidden>
Branch: openstack-
Commit: 51da211434b7a3d 9faaaab19189f84 a7599462d1
Author: Denis V. Meltsaykin <email address hidden>
Date: Thu Sep 17 10:24:51 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.
(commit changed in favor of Python 2.6/2.7 compatibility)
Closes-Bug: #1421439
Change-Id: Ib54bb6759b2733 4294fb2c6d2c0bf e4eae3d0920