Fix volume upload failure with glance_api_version=2
When the volume has additional image properties, upload-to-image
using glance API version 2 will fail with the following error.
Failed validation u'type' in schema[u'additionalProperties']:
{u'type': u'string'}
This is due to non core properties passed as a dict to the key
'properties'. It is valid in Image API v1, but the additional
properties must be passed just like core properties in v2.
Reviewed: https:/ /review. fuel-infra. org/14842 ci/fuel- 8.0/liberty
Submitter: Pkgs Jenkins <email address hidden>
Branch: openstack-
Commit: be714801f056952 f89ced4b44fb125 d1dc3f88ab
Author: Tomoki Sekiyama <email address hidden>
Date: Thu Dec 24 16:14:06 2015
Fix volume upload failure with glance_ api_version= 2
When the volume has additional image properties, upload-to-image
using glance API version 2 will fail with the following error.
Failed validation u'type' in schema[ u'additionalPro perties' ]:
{u'type': u'string'}
This is due to non core properties passed as a dict to the key
'properties'. It is valid in Image API v1, but the additional
properties must be passed just like core properties in v2.
Closes-Bug: #1523457 bdd4e3cfd82ebb9 b3546915706
Change-Id: I69b6ddd8823916