Image not deleted after upload when exceeding image_size_cap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Benard Okolie |
Bug Description
When specifying a maximum size cap in glance-api.conf using 'image_size_cap', and then trying to upload an image that exceeds that size cap a warning is returned that the image is too large and it is not actually uploaded into the backend, however the entry for the image will stay in the glance database as queued until it is manually deleted
+------
| Property | Value |
+------
| checksum | None |
| container_format | bare |
| created_at | 2017-10-
| disk_format | qcow2 |
| id | 83ffbe5a-
| locations | [] |
| min_disk | 0 |
| min_ram | 0 |
| name | cap_test |
| owner | db03a56c279b4c9
| protected | False |
| size | None |
| status | queued |
| tags | [] |
| updated_at | 2017-10-
| virtual_size | None |
| visibility | private |
+------
413 Request Entity Too Large: Image exceeds the storage quota: The size of the data None will exceed the limit. None bytes remaining. (HTTP 413)
=======
+------
| Field | Value |
+------
| checksum | None |
| container_format | bare |
| created_at | 2017-10-
| disk_format | qcow2 |
| file | /v2/images/
| id | 83ffbe5a-
| min_disk | 0 |
| min_ram | 0 |
| name | cap_test |
| owner | db03a56c279b4c9
| properties | locations='[]' |
| protected | False |
| schema | /v2/schemas/image |
| size | None |
| status | queued |
| tags | |
| updated_at | 2017-10-
| virtual_size | None |
| visibility | private |
+------
This behaviour is undesirable. When a user attempts to upload an image that exceeds the size cap the entry should not be added to the glance image database, and should not appear in 'glance image-list'.
Changed in glance: | |
status: | New → Opinion |
tags: | added: image upload |
Changed in glance: | |
assignee: | nobody → Benard Okolie (benokolie) |
Could you please clarify this bug? I may be misreading this, but the introductory paragraph and the concluding paragraph seem to contradict each other:
Intro:
> a warning is returned that the image is too large and it is not actually uploaded into the backend, however the entry for the image will stay in the glance database as queued until it is manually deleted
Conclusion:
> when a user attempts to upload an image that exceeds the size cap the entry should not be added/autoremoved without manual intervention from the user