]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix image volume creation error
authorTomoki Sekiyama <tomoki.sekiyama.qu@hitachi.com>
Tue, 29 Dec 2015 03:35:52 +0000 (12:35 +0900)
committerTomoki Sekiyama <tomoki.sekiyama.qu@hitachi.com>
Wed, 6 Jan 2016 05:13:34 +0000 (14:13 +0900)
commit16f1dc862e9771f7b26d094bdcf41791c9fc5a8c
tree30c66c1965b0207976226e3c878d8122b75c3977
parent0b0b59109db5f718477a6152366d354f28a9c30e
Fix image volume creation error

When "image_upload_use_cinder_backend = True" is specified to
the volume backend and the Glance cinder store is enabled,
upload-to-image command fails with the following error:

  Create clone_image_volume: xxx for image xxx failed
  (Exception: An object of type VolumeAttachmentList is required
   in field volume_attachment, not a )

This is due to unnecessary attributes specified in the volume
params, such as 'volume_attachment' or 'consistencygroup'.
This patch removes the unnecessary attributes from the params.

Change-Id: Ia416cb6686312e1591de7fe40a7ce7d6aa2fce7d
Closes-Bug: #1529762
Related-Bug: #1528087
cinder/tests/unit/test_volume.py
cinder/volume/manager.py