Strange behavior when no image at all is provided
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-
+------
| Property | Value |
+------
| checksum | 1feea91bd5bb1c5
| container_format | bare |
| created_at | 2013-04-21T17:55:53 |
| deleted | False |
| deleted_at | None |
| disk_format | raw |
| id | 0f598641-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | void_image |
| owner | 0654bc1968bc4e4
| 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-
and the image will remain in this status at vitam eternam.
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.