Project

General

Profile

Actions

Bug #59471

closed

Object Ownership Inconsistent

Added by Aidan Damerell about 1 year ago. Updated 1 day ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

100%

Source:
Community (user)
Tags:
backport_processed
Backport:
pacific quincy reef
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The `owner` returned via the S3 API is not the same as that returned using `radosgw-admin bi list`. Example below:

```
[root@6369abc6056f /]# radosgw-admin bi list --bucket=repository-4
[ {
"type": "plain",
"idx": "test",
"entry": {
"name": "test",
"instance": "",
"ver": {
"pool": 7,
"epoch": 2
},
"locator": "",
"exists": true,
"meta": {
"category": 1,
"size": 0,
"mtime": "2023-04-17T13:41:05.436888Z",
"etag": "d41d8cd98f00b204e9800998ecf8427e",
"storage_class": "",
"owner": "nautilus",
"owner_display_name": "nautilus",
"content_type": "",
"accounted_size": 0,
"user_data": "",
"appendable": false
},
"tag": "7ad03645-e807-4784-be60-3f6ee0d323aa.5486.9422426110878657515",
"flags": 0,
"pending_map": [],
"versioned_epoch": 0
}
}
]
```

S3 API response:

```

<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/&quot;>
<Name>
repository-4</Name>
<Prefix>
</Prefix>
<MaxKeys>
1000</MaxKeys>
<Delimiter>
/</Delimiter>
<IsTruncated>
false</IsTruncated>
<Contents>
<Key>
test</Key>
<LastModified>
2023-04-17T13:41:05.436Z</LastModified>
<ETag>
"d41d8cd98f00b204e9800998ecf8427e"</ETag>
<Size>
0</Size>
<StorageClass>
STANDARD</StorageClass>
<Owner>
<ID>
user-4</ID>
<DisplayName>
</DisplayName>
</Owner>
<Type>
Normal</Type>
</Contents>
<KeyCount>
1</KeyCount>
</ListBucketResult>

```

It would appear the requestor is simply returned by the S3 API, rather than reading the metadata on the object.


Related issues 3 (0 open3 closed)

Copied to rgw - Backport #61351: pacific: Object Ownership InconsistentResolvedCasey BodleyActions
Copied to rgw - Backport #61352: reef: Object Ownership InconsistentResolvedCasey BodleyActions
Copied to rgw - Backport #61353: quincy: Object Ownership InconsistentResolvedCasey BodleyActions
Actions #1

Updated by Daniel Gryniewicz about 1 year ago

  • Assignee set to Daniel Gryniewicz
Actions #2

Updated by Daniel Gryniewicz about 1 year ago

So, I've looked into this on main, and this works correctly. The resulting owner in the S3 list (as shown by s3cmd -d ls) is the owner of the object, not the submitter of the request. What version of ceph did you use to test this?

Actions #3

Updated by Daniel Gryniewicz about 1 year ago

  • Status changed from New to Need More Info
Actions #4

Updated by Casey Bodley about 1 year ago

  • Status changed from Need More Info to Fix Under Review
  • Backport set to pacific quincy reef
  • Pull request ID set to 51265
Actions #5

Updated by Casey Bodley 11 months ago

  • Status changed from Fix Under Review to Pending Backport
  • Assignee changed from Daniel Gryniewicz to Casey Bodley
Actions #6

Updated by Backport Bot 11 months ago

Actions #7

Updated by Backport Bot 11 months ago

Actions #8

Updated by Backport Bot 11 months ago

Actions #9

Updated by Backport Bot 11 months ago

  • Tags set to backport_processed
Actions #10

Updated by Aidan Damerell 11 months ago

I've just tried this from the container build (https://quay.io/repository/ceph/daemon?tab=tags&tag=latest-devel) (SHA256: 4a90a6835932) and it still appears to be returning whoever performs the request. Based on the build time I assumed this build included this patch, but I could be wrong?

Actions #11

Updated by Konstantin Shalygin 1 day ago

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100
  • Source set to Community (user)
Actions

Also available in: Atom PDF