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.
Reviewed: https:/ /review. openstack. org/263081 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=16f1dc862e9 771f7b26d094bdc f41791c9fc5a8c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 16f1dc862e9771f 7b26d094bdcf417 91c9fc5a8c
Author: Tomoki Sekiyama <email address hidden>
Date: Tue Dec 29 12:35:52 2015 +0900
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 tList is required
(Exception: An object of type VolumeAttachmen
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: Ia416cb6686312e 1591de7fe40a7ce 7d6aa2fce7d
Closes-Bug: #1529762
Related-Bug: #1528087