Strange behavior when no image at all is provided

Bug #1171206 reported by Remi Ferrand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned

Bug Description

When creating an image without any image data source, the client send the request to the server and the image will remain "queued" in the catalog index.

$ glance image-create --name void_image --disk-format=raw --container-format=bare --is-public=False --checksum=1feea91bd5bb1c5e3aa7414d090f5e2f
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 1feea91bd5bb1c5e3aa7414d090f5e2f |
| container_format | bare |
| created_at | 2013-04-21T17:55:53 |
| deleted | False |
| deleted_at | None |
| disk_format | raw |
| id | 0f598641-953a-4cea-afbc-624f82d3a2fc |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | void_image |
| owner | 0654bc1968bc4e46932a5d97112aaf14 |
| protected | False |
| size | 0 |
| status | queued |
| updated_at | 2013-04-21T17:55:53 |
+------------------+--------------------------------------+

No checksum error is returned in this context even if the cheksum doesn't match the "void image" (the checksum used here is the md5sum of my glance client)

$ glance image-list |grep void
| 0f598641-953a-4cea-afbc-624f82d3a2fc | void_image | raw | bare | | queued |

and the image will remain in this status at vitam eternam.

Revision history for this message
Iccha Sethi (iccha-sethi) wrote :

In glance, you are allowed to create a placeholder for an image i.e. an image record without the actual data. That is what has happened here. since there is no data passed there is no checksum to verify against and this is just considered as a placeholder record.

Changed in glance:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.