Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1339525 - A query on a static large object fails with 404 error
A query on a static large object fails with 404 error
Status: CLOSED ERRATA
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: RGW (Show other bugs)
2.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: 2.0
Assigned To: Matt Benjamin (redhat)
shilpa
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-25 05:04 EDT by shilpa
Modified: 2017-07-30 11:45 EDT (History)
9 users (show)

See Also:
Fixed In Version: RHEL: ceph-10.2.1-10.el7cp Ubuntu: ceph_10.2.1-8redhat1xenial
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-08-23 15:39:30 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Log file (1.78 MB, text/plain)
2016-05-25 05:04 EDT, shilpa
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Ceph Project Bug Tracker 16015 None None None 2016-05-25 05:41 EDT
Red Hat Product Errata RHBA-2016:1755 normal SHIPPED_LIVE Red Hat Ceph Storage 2.0 bug fix and enhancement update 2016-08-23 19:23:52 EDT

  None (edit)
Description shilpa 2016-05-25 05:04:40 EDT
Created attachment 1161356 [details]
Log file

Description of problem:
Split a large file into segments and upload each segment. Create a manifest file for all the segments and upload it. A HEAD on the manifest file fails with "404 Not found" error

Version-Release number of selected component (if applicable):
ceph-radosgw-10.2.1-7.el7cp.x86_64

How reproducible:
Always


Steps to Reproduce:
1. Split a file of about 1.5G into 3 parts
2. Upload each segment into the same container:
curl -v -X PUT -H "X-Auth-Token:token" -T segmentName accountURL/containerName/objectName
3. Create a manifest file with the object attribute content in json format
4. Now upload the manifest file with the query parameter: ?multipart-manifest=put
curl -v -X PUT -H "X-Auth-Token:token" "accountURL/containerName/StaticLargeFileName?multipart-manifest=put" -T ./manifest.json
5. Do a list to check if the SLO file is uploaded
6. Do a HEAD on the SLO file

Actual results:
A HEAD or GET on the SLO object fails even though we can list the file in the container:

# swift -A http://rgw:8080/auth/1.0 -U testuser:swift -K 'm00APyUFWGcWE4fMxOn6pmaT9OqZcpTvCcTVbbCv' list slo-container
big.txt
segment_aa
segment_ab
segment_ac

# curl -v -X HEAD -H "X-Auth-Token: Axxxxx" -L "http://rgw:8080/swift/v1/slo-container/big.txt"

> HEAD /swift/v1/slo-container/big.txt HTTP/1.1
> User-Agent: curl/7.29.0
> Host: rgw:8080
> Accept: */*
> X-Auth-Token:
> 
< HTTP/1.1 404 Not Found
< X-Trans-Id: tx00000000000000000001b-00574568b7-102e-default
< Content-Length: 9
< Accept-Ranges: bytes
< Content-Type: text/plain; charset=utf-8
< Date: Wed, 25 May 2016 08:56:23 GMT
< 

Whereas a HEAD on the segments work.  

Expected results:
We should be able to access the SLO object


Additional info:

2016-05-25 08:49:54.777202 7ff4897fa700  0 could not get bucket info for bucket=lo-container
2016-05-25 08:49:54.777212 7ff4897fa700  0 ERROR: failed to handle slo manifest ret=-2
2016-05-25 08:49:54.777291 7ff4897fa700  2 req 23:0.001865:swift:HEAD /swift/v1/slo-container/big.txt:get_obj:completing
2016-05-25 08:49:54.777300 7ff4897fa700  2 req 23:0.001874:swift:HEAD /swift/v1/slo-container/big.txt:get_obj:op status=-2
2016-05-25 08:49:54.777302 7ff4897fa700  2 req 23:0.001876:swift:HEAD /swift/v1/slo-container/big.txt:get_obj:http status=404
2016-05-25 08:49:54.777306 7ff4897fa700  1 ====== req done req=0x7ff4897f4710 op status=-2 http_status=404 ======
2016-05-25 08:49:54.777320 7ff4897fa700 20 process_request() returned -2

Procedure along with logs attached.
Comment 3 Yehuda Sadeh 2016-05-25 05:16:23 EDT
Can you create a ceph tracker bug and add info there?
Comment 12 shilpa 2016-06-15 08:08:35 EDT
Tested on 10.2.1-18. Works for me.
Comment 14 errata-xmlrpc 2016-08-23 15:39:30 EDT
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-2016-1755.html

Note You need to log in before you can comment on or make changes to this bug.