download error when the image status is not active
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Darja Shakhray | ||
Liberty |
Fix Committed
|
Undecided
|
Unassigned | ||
Glance Client |
Fix Released
|
Medium
|
Long Quan Sha | ||
Liberty |
New
|
Undecided
|
Unassigned |
Bug Description
When the locations is blank, downloading image will show python error, but the error message is not correct.
[root@vm134 pe]# glance image-show 9be94a27-
+------
| Property | Value |
+------
| checksum | None |
| container_format | None |
| created_at | 2015-07-
| disk_format | None |
| id | 9be94a27-
| locations | [] |
| min_disk | 0 |
| min_ram | 0 |
| name | test |
| owner | e4b36a5b6549423
| protected | False |
| size | None |
| status | queued |
| tags | [] |
| updated_at | 2015-07-
| virtual_size | None |
| visibility | private |
+------
[root@vm134 pe]# glance image-download 9be94a27-
iter() returned non-iterator of type 'NoneType'
Changed in glance: | |
assignee: | nobody → Long Quan Sha (shalq) |
Changed in glance: | |
status: | New → In Progress |
summary: |
- download error when the image locations is blank + download error when the image status is not active |
Changed in glance: | |
assignee: | nobody → dshakhray (dshakhray) |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Thanks Long Quan Sha,
I added python-glanceclient into the bug and assigned that to you as that's where your patch is directed to, not glance.
I see two problems here, first you're correct and our client should be able to handle that situation, but foremost our server should not allow downloading image while it's still queued.