Bug 1043929
Summary: | Openstack Glance: user_total_quota calculated incorrectly | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Tzach Shefi <tshefi> |
Component: | openstack-glance | Assignee: | Flavio Percoco <fpercoco> |
Status: | CLOSED ERRATA | QA Contact: | Tzach Shefi <tshefi> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 4.0 | CC: | abaron, breeler, eglynn, fpercoco, mlopes, sclewis, sradvan, yeylon |
Target Milestone: | z1 | Keywords: | Triaged, ZStream |
Target Release: | 4.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-glance-2013.2.1-3.el6ost | Doc Type: | Bug Fix |
Doc Text: |
Previously in OpenStack Image, the quota space limit summed non-active images during the limit enforcement. As a result, used space never decreased even when images were deleted or killed.
Now, images with a status of 'killed', 'pending_delete', or 'deleted' won't be added to the final storage used count. As a result, used space count is more accurate and will decrease as expected, when, for instance, images are deleted or killed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2014-01-23 14:23:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 985139 |
Description
Tzach Shefi
2013-12-17 13:00:42 UTC
This is indeed a bug. Looking at the code, it seems that the sqlalchemy driver is not filtering deleted / killed images out when calculating the disk usage. https://github.com/openstack/glance/blob/master/glance/db/sqlalchemy/api.py#L709 Will work on a fix for this. Tested AIO setup, RHEL 6.5 openstack-glance-2013.2.1-3.el6ost.noarch Image quota calculated correctly now. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2014-0046.html |