]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix exception on uploading a volume to image with glance v2 API
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Tue, 28 Jul 2015 18:08:15 +0000 (14:08 -0400)
committerTomoki Sekiyama <tomoki.sekiyama@hds.com>
Tue, 28 Jul 2015 18:18:10 +0000 (14:18 -0400)
commitbeef71d0f8edf5770f8fe95d85e5ea230ddd6f10
treec7a57b6c49c240bc35d81548f6f94a09caacdf6a
parentd620337353ee9470824d5f07798ee8d01c4c88fc
Fix exception on uploading a volume to image with glance v2 API

This fixes an exception on uploading a volume to image when
the glance v2 api is enabled. Also, this adds the unit tests
for updating metadata and data both with glance API v1 and v2.

Change-Id: Id70eff82837c0af1f033a2bb749ef367cd9e32fb
Closes-bug: #1478737
cinder/image/glance.py
cinder/tests/unit/glance/stubs.py
cinder/tests/unit/image/test_glance.py