Bug 1371197
| Summary: | Glance v2 Image Data API responds to Content-Range request with wrong Content-Length header | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Sam Lucidi <slucidi> |
| Component: | openstack-glance | Assignee: | Cyril Roelandt <cyril> |
| Status: | CLOSED ERRATA | QA Contact: | nlevinki <nlevinki> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.0 (Liberty) | CC: | aavraham, cyril, egafford, eglynn, ekuvaja, fpercoco, fvollero, scohen, srevivo, tzumainn |
| Target Milestone: | Upstream M3 | ||
| Target Release: | 11.0 (Ocata) | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 14.0.0-2 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-05-17 19:32:31 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: | |||
|
Description
Sam Lucidi
2016-08-29 14:28:54 UTC
By the looks of it, the error happens here [0] when the range is specified. [0] https://github.com/openstack/glance/blob/master/glance/api/v2/image_data.py#L320 According to the Content-Range RFC, the Content-Length should be equal to the number of bytes transmitted, in this case it'd be the size of the chunk: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html Can this please be reported upstream and fixed there? I agree, must be filled upstream, but we should also have a way to track it here so please after you open the bug, add here the bug id on the external bug tracker. @Flavio If not given the range in the correct form, should not just return 412 Precondition Failed and exit? I've reported a bug upstream and added the bug ID here. I'm on it :) Out of curiosity, is it possible to somehow tell through the API whether or not the version of Glance v2 contains the fix or not? We're trying to figure out the best way to have our code support both OpenStacks with and without the fix. No recent progress on this issue. Moving to RHOS 11 for triage. The fix seems to be in stable/ocata upstream, and in our downstream packages as well, so let's push this to QA. verified RPM : openstack-glance-14.0.0-2.el7ost.noarch image was successfully downloaded 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://access.redhat.com/errata/RHEA-2017:1245 |