Project

General

Profile

Actions

Bug #61770

open

rgw: PutObjectACL should not modify mtime

Added by Soumya Koduri 11 months ago. Updated 11 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

For any metadata changes on versioned objects (current/non-current), its bucket index entry (mtime) is not updated. For eg.,

date --utc; aws  --no-verify-ssl --endpoint-url http://localhost:8000 s3api put-object-acl --bucket bucket1 --key lc_obj1  --acl private --version-id=AWsTipKl2P.Scy4DktmwISbHz3pr-9e
Wed Jun 21 09:31:49 AM UTC 2023
aws  --no-verify-ssl --endpoint-url http://localhost:8000 s3api head-object --bucket bucket1 --key lc_obj1 --version-id=AWsTipKl2P.Scy4DktmwISbHz3pr-9e
{
"AcceptRanges": "bytes",
"LastModified": "Wed, 21 Jun 2023 09:31:49 GMT", >>>>>>>>>>>> 'updated mtime'
"ContentLength": 12,
"ETag": "\"ed076287532e86365e841e92bfc50d8c\"",
"VersionId": "AWsTipKl2P.Scy4DktmwISbHz3pr-9e",
"ContentType": "text/plain",
"Metadata": {
"s3cmd-attrs": "atime:1687330800/ctime:1599663278/gid:0/gname:root/md5:ed076287532e86365e841e92bfc50d8c/mode:33188/mtime:1599663278/uid:0/uname:root"
},
"StorageClass": "STANDARD"
}
aws s3api --no-verify-ssl --endpoint http://localhost:8000 list-object-versions --bucket bucket1 --key lc_obj1 | grep "AWsTipKl2P.Scy4DktmwISbHz3pr-9e" -C 8
"ID": "cosbench"
}
}, {
"ETag": "\"ed076287532e86365e841e92bfc50d8c\"",
"Size": 12,
"StorageClass": "STANDARD",
"Key": "lc_obj1",
"VersionId": "AWsTipKl2P.Scy4DktmwISbHz3pr-9e",
"IsLatest": false,
"LastModified": "2023-06-21T09:23:24.052Z", >>>>>>>>>>>> 'old mtime'
"Owner": {
"DisplayName": "cosbench_user",
"ID": "cosbench"
}
}, {

Related issues 2 (2 open0 closed)

Copied to rgw - Backport #61877: quincy: rgw: PutObjectACL should not modify mtimeIn ProgressSoumya KoduriActions
Copied to rgw - Backport #61878: reef: rgw: PutObjectACL should not modify mtimeIn ProgressSoumya KoduriActions
Actions #1

Updated by Casey Bodley 11 months ago

  • Pull request ID set to 52160
Actions #2

Updated by Casey Bodley 11 months ago

  • Subject changed from rgw: bucket index entry not updated for versioned objects to rgw: PutObjectACL should not modify mtime
  • Status changed from In Progress to Fix Under Review
Actions #3

Updated by Soumya Koduri 11 months ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to quincy reef
Actions #4

Updated by Backport Bot 11 months ago

  • Copied to Backport #61877: quincy: rgw: PutObjectACL should not modify mtime added
Actions #5

Updated by Backport Bot 11 months ago

  • Copied to Backport #61878: reef: rgw: PutObjectACL should not modify mtime added
Actions #6

Updated by Backport Bot 11 months ago

  • Tags set to backport_processed
Actions

Also available in: Atom PDF