image is creating with option min_disk and min_ram as negative number
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
Yanis Guenane |
Bug Description
I try to create a image with the min_ram and min_disk as negative number, and create image operation is successful.
I use the glance api V2 to create image.
curl -i -X POST -H "X-Auth-Token: $token" -H "content-type: application/json" -d '{"name": "image-7", "type": "kernel", "foo": "bar", "disk_format": "aki", "container_format": "aki", "protected": false, "tags": ["test","image"], "visibility": "public", "min_ram":-1, "min_disk":-1' \
http://
glance image-show image-7
+------
| Property | Value |
+------
| Property 'foo' | bar |
| Property 'type' | kernel |
| container_format | aki |
| created_at | 2014-01-03T06:01:14 |
| deleted | False |
| disk_format | aki |
| id | aaa8e463-
| is_public | True |
| min_disk | -1 |
| min_ram | -1 |
| name | image-7 |
| owner | 25adaa8f93ee419
| protected | False |
| status | queued |
| updated_at | 2014-01-03T06:01:14 |
+------
I think glance need to check the value of min_ram and min_disk. They need to be greater than or equal 0.
summary: |
- mage is creating with option min_disk and min_ram as negative number + image is creating with option min_disk and min_ram as negative number |
Changed in glance: | |
assignee: | nobody → Yanis Guenane (yanis-guenane) |
Changed in glance: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in glance: | |
milestone: | none → icehouse-2 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | icehouse-2 → 2014.1 |
Can you help verify if v1 has the same issue? Thanks.