Bug 1222094

Summary: rgw: broken manifest when resending part
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Yehuda Sadeh <yehuda>
Component: RGWAssignee: ceph-eng-bugs <ceph-eng-bugs>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3.0CC: cbodley, ceph-eng-bugs, ceph-qe-bugs, hnallurv, kbader, kdreyer, mbenjamin, owasserm, smanjara, sweil
Target Milestone: rc   
Target Release: 1.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1222093 Environment:
Last Closed: 2015-06-24 15:53:01 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: 1222091, 1222093    
Bug Blocks:    

Description Yehuda Sadeh 2015-05-15 18:21:56 UTC
+++ This bug was initially created as a clone of Bug #1222093 +++

Description of problem:

In a multipart upload, when resending the first part of the object, and potentially other parts of the objects, the manifest created is broken.


Version-Release number of selected component (if applicable):


How reproducible:

always

Steps to Reproduce:
1. Create multipart upload
2. Resend the first part of the object
3. Finish multipart upload
4. radosgw-admin object stat --bucket=<bucket> --object=<object>

Actual results:

Manifest is broken, the prefix defines the first part correctly, but following parts do not hold override_prefix as needed.


Expected results:

Prefix should note the first object (prefix) appropriately, and subsequent parts should have correct override_prefix.



Additional info:

The s3-tests suite has a test that covers this one now.

Comment 2 Ken Dreyer (Red Hat) 2015-05-19 17:25:16 UTC
merged upstream at https://github.com/ceph/ceph/pull/4696

Comment 6 shilpa 2015-06-17 12:25:12 UTC
Tested and verified on ceph-radosgw-0.94.1-11.el7cp.x86_64


After uploading first part of the multipart twice, the override_prefix for the rest of the parts look ok.

  "head_size": 0,
        "max_head_size": 0,
        "prefix": "test.txt.Muq3pA6LJZC3Qsn3okboft13a7Cz16p",
        "tail_bucket": {
            "name": "testbucket",
            "pool": ".rgw.buckets",
            "data_extra_pool": ".rgw.buckets.extra",
            "index_pool": ".rgw.buckets.index",
            "marker": "default.16166.3",
            "bucket_id": "default.16166.3"
        },

  "rules": [
            {
                "key": 0,
                "val": {
                    "start_part_num": 1,
                    "start_ofs": 0,
                    "part_size": 52428800,
                    "stripe_max_size": 4194304,
                    "override_prefix": ""
                }
            },
            {
                "key": 52428800,
                "val": {
                    "start_part_num": 2,
                    "start_ofs": 52428800,
                    "part_size": 52428800,
                    "stripe_max_size": 4194304,
                    "override_prefix": "file.txt.2~EA0vMlcvAdDhYK51OwgUcvDQ2RhH5Gq"
                }
            },
            {
                "key": 262144000,
                "val": {
                    "start_part_num": 6,
                    "start_ofs": 262144000,
                    "part_size": 32780672,
                    "stripe_max_size": 4194304,
                    "override_prefix": "test.txt.2~EA0vMlcvAdDhYK51OwgUcvDQ2RhH5Gq"

Comment 8 errata-xmlrpc 2015-06-24 15:53:01 UTC
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