Glance v2: Image property quotas are unforgiving when quota is exceeded
Bug #1258331 reported by
Alex Meade
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
David Koo |
Bug Description
Glance v2 image property quota enforcement can be unintuitive.
There are a number of reasons an image may have more properties than the image_propery_quota allows. E.g. if the quota is lowered or when it is first created. If this happens then any request to modify an image must result in the image being under the new quota. This means that even if the user is removing quotas they can still get an 413 overlimit from glance if the result would still be over the limit.
This is not a great user experience and is unintuitive. Ideally a user should be able to remove properties or any other action except for adding a property when they are over their quota for a given image.
Changed in glance: | |
assignee: | nobody → David Koo (kpublicmail) |
Changed in glance: | |
status: | New → In Progress |
Changed in glance: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | juno-2 → 2014.2 |
To post a comment you must log in.
One proposal, I think can we add a function to db, just like what you did at [1], and use that to check and skip quota checking if user required to remove a property but add at [2].
[1] https:/ /github. com/openstack/ glance/ blob/master/ glance/ db/sqlalchemy/ api.py# L1082 /github. com/openstack/ glance/ blob/master/ glance/ quota/_ _init__ .py#L58
[2] https:/