Bug 1055550
| Summary: | glance: no error reported in api.log when image create is killed on quota | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Dafna Ron <dron> | ||||
| Component: | openstack-glance | Assignee: | Jon Bernard <jobernar> | ||||
| Status: | CLOSED ERRATA | QA Contact: | nlevinki <nlevinki> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 4.0 | CC: | breeler, eglynn, fpercoco, nlevinki, scohen, sgordon, sgotliv, yeylon | ||||
| Target Milestone: | z1 | Keywords: | Reopened, ZStream | ||||
| Target Release: | 5.0 (RHEL 7) | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | storage | ||||||
| Fixed In Version: | openstack-glance-2014.1.2-1.el7ost | Doc Type: | Bug Fix | ||||
| Doc Text: |
Previously, if an image was uploaded to the Image service which exceeded the user's current quota setting, no message appeared in the glance-api log to indicate this, even though the request was rejected.
This has been fixed, now there is an "INFO" message in the glance-api log that indicates that the user's "image create" command was rejected because the quota was exceeded.
|
Story Points: | --- | ||||
| Clone Of: | |||||||
| : | 1141302 (view as bug list) | Environment: | |||||
| Last Closed: | 2014-09-30 17:16:16 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: | 1141302 | ||||||
| Attachments: |
|
||||||
|
Description
Dafna Ron
2014-01-20 14:23:32 UTC
mmh, this is strange: @Jon FYI: you may want to look here: API v1: https://github.com/openstack/glance/blob/master/glance/api/v1/upload_utils.py#L213 API v2 Looks like a log line is missing here: https://github.com/openstack/glance/blob/master/glance/quota/__init__.py#L276 The failure is now logged but it's logged as INFO: 2014-09-12 18:54:58.921 21663 INFO glance.api.common [-] User 2bcd197108b44efe84f3c5a19d40a716 attempted to upload an image of size 6442450945 that will exceeed the quota. 2 bytes remaining. 2014-09-12 18:54:58.923 21663 INFO glance.api.v1.upload_utils [-] Denying attempt to upload image because it exceeds the .quota: The size of the data 6442450945 will exceed the limit. 2 bytes remaining. 2014-09-12 18:55:01.980 21671 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.35.160.123 2014-09-12 18:55:02.152 21671 INFO glance.wsgi.server [25188ae9-2a1d-4791-b6ba-23051cb90e8b 2bcd197108b44efe84f3c5a19d40a716 8f8749df409d4bbab5d982384b0d6ab0 - - -] 10.35.160.123 - - [12/Sep/2014 18:55:02] "GET /v1/images/detail?sort_key=name&sort_dir=asc&limit=20 HTTP/1.1" 200 671 0.175247 However speaking to Flavio, we do not log user errors as errors and only software errors should be logged as ERRORs. 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. http://rhn.redhat.com/errata/RHSA-2014-1337.html |