← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1260738] [NEW] image is creating with option size= a negative number

 

Public bug reported:

I just try to create an image by giving size =-1
and the image is creating succesfully. 


 glance image-create --name cirros --is-public true --container-format
bare --disk-format qcow2 --location
https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk
--size -1


+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | bare                                 |
| created_at       | 2013-12-13T13:48:07                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | qcow2                                |
| id               | 2da4e4f9-5f1a-4c8d-a67c-272588e2efbc |
| is_public        | True                                 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | cirros                               |
| owner            | 6a2db75adb964c5b84010fa22b464715     |
| protected        | False                                |
| size             | -1                                   |
| status           | active                               |
| updated_at       | 2013-12-13T13:48:38                  |
+------------------+--------------------------------------+

** Affects: glance
     Importance: Undecided
     Assignee: anju Tiwari (anjutiwari5)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => anju Tiwari (anjutiwari5)

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

Title:
  image is creating with option size= a negative number

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

Bug description:
  I just try to create an image by giving size =-1
  and the image is creating succesfully. 


   glance image-create --name cirros --is-public true --container-format
  bare --disk-format qcow2 --location
  https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk
  --size -1


  +------------------+--------------------------------------+
  | Property         | Value                                |
  +------------------+--------------------------------------+
  | checksum         | None                                 |
  | container_format | bare                                 |
  | created_at       | 2013-12-13T13:48:07                  |
  | deleted          | False                                |
  | deleted_at       | None                                 |
  | disk_format      | qcow2                                |
  | id               | 2da4e4f9-5f1a-4c8d-a67c-272588e2efbc |
  | is_public        | True                                 |
  | min_disk         | 0                                    |
  | min_ram          | 0                                    |
  | name             | cirros                               |
  | owner            | 6a2db75adb964c5b84010fa22b464715     |
  | protected        | False                                |
  | size             | -1                                   |
  | status           | active                               |
  | updated_at       | 2013-12-13T13:48:38                  |
  +------------------+--------------------------------------+

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


Follow ups

References