Bug 1222094 - rgw: broken manifest when resending part
Summary: rgw: broken manifest when resending part
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 1.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 1.3.0
Assignee: ceph-eng-bugs
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On: 1222091 1222093
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-15 18:21 UTC by Yehuda Sadeh
Modified: 2022-02-21 18:14 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1222093
Environment:
Last Closed: 2015-06-24 15:53:01 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 11622 0 None None None Never
Red Hat Issue Tracker RHCEPH-3277 0 None None None 2022-02-21 18:14:28 UTC
Red Hat Product Errata RHBA-2015:1183 0 normal SHIPPED_LIVE Ceph bug fix and enhancement update 2015-06-24 19:49:46 UTC

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


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