← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1472449] [NEW] download error when the image locations is blank

 

Public bug reported:


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-367f-4a26-ae7a-045db3cb7332
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | None                                 |
| created_at       | 2015-07-02T09:09:22Z                 |
| disk_format      | None                                 |
| id               | 9be94a27-367f-4a26-ae7a-045db3cb7332 |
| locations        | []                                   |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | test                                 |
| owner            | e4b36a5b654942328943a835339a6289     |
| protected        | False                                |
| size             | None                                 |
| status           | queued                               |
| tags             | []                                   |
| updated_at       | 2015-07-02T09:09:22Z                 |
| virtual_size     | None                                 |
| visibility       | private                              |
+------------------+--------------------------------------+
[root@vm134 pe]# glance image-download 9be94a27-367f-4a26-ae7a-045db3cb7332 --file myimg
iter() returned non-iterator of type 'NoneType'

** Affects: glance
     Importance: Undecided
     Assignee: Long Quan Sha (shalq)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Long Quan Sha (shalq)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1472449

Title:
  download error when the image locations is blank

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

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-367f-4a26-ae7a-045db3cb7332
  +------------------+--------------------------------------+
  | Property         | Value                                |
  +------------------+--------------------------------------+
  | checksum         | None                                 |
  | container_format | None                                 |
  | created_at       | 2015-07-02T09:09:22Z                 |
  | disk_format      | None                                 |
  | id               | 9be94a27-367f-4a26-ae7a-045db3cb7332 |
  | locations        | []                                   |
  | min_disk         | 0                                    |
  | min_ram          | 0                                    |
  | name             | test                                 |
  | owner            | e4b36a5b654942328943a835339a6289     |
  | protected        | False                                |
  | size             | None                                 |
  | status           | queued                               |
  | tags             | []                                   |
  | updated_at       | 2015-07-02T09:09:22Z                 |
  | virtual_size     | None                                 |
  | visibility       | private                              |
  +------------------+--------------------------------------+
  [root@vm134 pe]# glance image-download 9be94a27-367f-4a26-ae7a-045db3cb7332 --file myimg
  iter() returned non-iterator of type 'NoneType'

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1472449/+subscriptions


Follow ups