no error reported by client when image create is killed on quota
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Abhishek Kekane |
Bug Description
no ERROR is issued to user on quota violation:
root@tigris01 ~(keystone_admin)]# glance image-create --name dafna2 --disk-format qcow2 --container-format bare --copy-from <image>
+------
| Property | Value |
+------
| checksum | None |
| container_format | bare |
| created_at | 2014-09-12T15:54:58 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 7fd5545b-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | dafna2 |
| owner | 8f8749df409d4bb
| protected | False |
| size | 6442450945 |
| status | queued |
| updated_at | 2014-09-12T15:54:58 |
| virtual_size | None |
+------
[root@tigris01 ~(keystone_admin)]# glance image-list
+------
| ID | Name | Disk Format | Container Format | Size | Status |
+------
| c2c34a0f-
+------
The error is logged as INFO on api.log but user will not know why the image is not created.
2014-09-12 18:54:58.921 21663 INFO glance.api.common [-] User 2bcd197108b44ef
2014-09-12 18:54:58.923 21663 INFO glance.
2014-09-12 18:55:01.980 21671 INFO urllib3.
2014-09-12 18:55:02.152 21671 INFO glance.wsgi.server [25188ae9-
Changed in glance: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
In the above bug, error is not reported to client is because if copy-from is used then it starts new async process which downloads the image given in the copy-from option. /github. com/openstack/ glance/ blob/master/ glance/ api/v1/ images. py#L756
Please refer https:/
As the size of the image is unknown when the --copy-from option is specified its not possible to calculate quota is sufficient or not.
One solution for this is can we make size mandatory for --copy-from option which will help to calculate quota before triggering the download.
Please suggest.