can update image size to smaller number even though cannot create it like that in the first place
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Unassigned |
Bug Description
if you try to create an image from file using the --size and giving a smaller size the source image we would fail
but we can use glance image-update to change the file after we create it.
so wither we do not need the size check to begin with or both should fail.
create image from a file (since this is the only time we currently check the size)
glance image-create --name image_size_file --disk-format qcow2 --container-format bare --file /tmp/39f89a6a-
[root@opens-vdsb ~(keystone_admin)]# glance image-list
+------
| ID | Name | Disk Format | Container Format | Size | Status |
+------
| 23bf4915-
[root@opens-XXXX ~(keystone_admin)]# glance image-update 23bf4915-
+------
| Property | Value |
+------
| checksum | 18b7d574b7a1f00
| container_format | bare |
| created_at | 2013-09-04T15:47:55 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 23bf4915-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | image_size_file |
| owner | ad326a6c11a742c
| protected | False |
| size | 1 |
| status | active |
| updated_at | 2013-09-04T15:49:26 |
+------
[root@opens-vdsb ~(keystone_admin)]# glance image-list
+------
| ID | Name | Disk Format | Container Format | Size | Status |
+------
| 23bf4915-
Admin is allowed to change the image size.