← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1171206] Re: Strange behavior when no image at all is provided

 

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

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

Title:
  Strange behavior when no image at all is provided

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

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.

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