glance image-download error
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Glance |
Fix Released
|
High
|
jiaopengju | ||
Bug Description
When use command ' glance image-download --file xxx.raw <image-id>' to download the image, it will fail with error code 500. glance-api log info as below:
File "/opt/stack/
response = self.process_
File "/opt/stack/
return method(request, image_id, image_iterator, image_metadata)
File "/opt/stack/
self.
File "/opt/stack/
image_
TypeError: 'ImageTarget' object does not support item assignment
This should be fixed.
| Changed in glance: | |
| assignee: | nobody → jiaopengju (pj-jiao) |
| status: | New → In Progress |

The way to reproduce this bug.
1. Create a nova instance which boot from volume or snapshot.
2. Do snapshot of the nova instance, this will generate a new image with id xxx.
3. Use command 'glance image-download --file 134.raw xxx' to download the image.
4. Error occurred.