Bug 1181915
| Summary: | Request for object over 512K using range header fails when using swift api. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | JuanJose Galvez <jgalvez> | ||||
| Component: | RGW | Assignee: | Yehuda Sadeh <yehuda> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Tamil <tmuthami> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 1.2.2 | CC: | cbodley, ceph-eng-bugs, flucifre, hnallurv, icolle, jgalvez, kbader, kdreyer, mbenjamin, nlevine, owasserm, smanjara, sweil, warren_wang, yehuda | ||||
| Target Milestone: | pre-dev-freeze | ||||||
| Target Release: | 1.3.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1214854 (view as bug list) | Environment: | |||||
| Last Closed: | 2015-06-24 15:50:06 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: | 1210037 | ||||||
| Bug Blocks: | 1214854 | ||||||
| Attachments: |
|
||||||
|
Description
JuanJose Galvez
2015-01-14 04:38:26 UTC
Pushed a fix to wip-105530-firefly: https://github.com/ceph/ceph/commit/755950104eba68e25bd09d9e6088a2ff6b406b88 Looks like fixed upstream if I read Yehuda correctly. Not clear why this was not merged in 1.2 since it is in Firefly upstream since January. Yehuda, please set level_ack to + if this is OK for Stockwell. This is fixed in 0.80.9. (In reply to Federico Lucifredi from comment #2) > Not clear why this was not merged in 1.2 since it is in Firefly upstream > since January. (It's because we haven't rebased the RH Ceph Storage product's 1.2 series to 0.80.9 yet.) I'll clone this bug so we can make sure this fix lands in RHCeph 1.2.z as well. QE ACKing the bug for 1.3.0. Tested and verified on 1.3.0. Created an object with 600K size and made a GET request for partial content greater than 512K of an object. It worked successfully without an error. Container: test-bucket Object: test.txt Content Type: binary/octet-stream Content Length: 614400 Data sets with partial request > 512k # curl -v -X GET 'http://10.x.x.x/swift/v1/test-bucket/test.txt' -H 'Range: bytes=0-524288' -H "X-Auth-Token: AUTH_rgwtkxxx" > text * About to connect() to 10.x.x.x port 80 (#0) * Trying 10.x.x.x... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 10.x.x.x (10.x.x.x) port 80 (#0) > GET /swift/v1/test-bucket/test.txt HTTP/1.1 > User-Agent: curl/7.29.0 > Host: 10.x.x.x > Accept: */* > Range: bytes=0-524288 > X-Auth-Token: AUTH_rgwtxxx > < HTTP/1.1 206 Partial Content < Content-Range: bytes 0-524288/614400 < Content-Length: 524289 < Accept-Ranges: bytes < Last-Modified: Mon, 15 Jun 2015 15:02:56 GMT < X-Timestamp: 1434380576 < etag: d22097bf4b8e31d2eeb5a7ee984c62ad < X-Object-Meta-mtime: 1434380553.383925 < Content-type: binary/octet-stream < { [data not shown] 100 512k 100 512k 0 0 8527k 0 --:--:-- --:--:-- --:--:-- 8677k * Connection #0 to host 10.x.x.x left intact # curl -v -X GET 'http://10.x.x.x/swift/v1/test-bucket/test.txt' -H 'Range: bytes=0-524300' -H "X-Auth-Token: AUTH_rgwtkxxx" > text * About to connect() to 10.x.x.x port 80 (#0) * Trying 10.12.27.11... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 10.x.x.x (10.x.x.x) port 80 (#0) > GET /swift/v1/test-bucket/test.txt HTTP/1.1 > User-Agent: curl/7.29.0 > Host: 10.x.x.x > Accept: */* > Range: bytes=0-524300 > X-Auth-Token: AUTH_rgwtkxxx > < HTTP/1.1 206 Partial Content < Content-Range: bytes 0-524300/614400 < Content-Length: 524301 < Accept-Ranges: bytes < Last-Modified: Mon, 15 Jun 2015 15:02:56 GMT < X-Timestamp: 1434380576 < etag: d22097bf4b8e31d2eeb5a7ee984c62ad < X-Object-Meta-mtime: 1434380553.383925 < Content-type: binary/octet-stream < { [data not shown] 100 512k 100 512k 0 0 18.4M 0 --:--:-- --:--:-- --:--:-- 20.0M * Connection #0 to host 10.12.27.11 left intact 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/RHBA-2015:1183 |