Hello,
I have a problem that old versions of S3 objects are not being deleted. Can anyone advise
as to why? I'm using Ceph 14.2.9.
I expect old versions of S3 objects to be deleted after 3 days as per my lifecycle config
on the bucket:
{
"Rules": [
{
"Status": "Enabled",
"Prefix": "",
"NoncurrentVersionExpiration": {
"NoncurrentDays": 3
},
"Expiration": {
"ExpiredObjectDeleteMarker": true
},
"ID": "S3 scsdata bucket: Tidy up old versions"
}
]
}
I have an object with 3 versions below (and is much older than 3 days):
[root@hera hera_sdc] /usr/bin> aws s3api --endpoint
http://127.3.3.3:7480
list-object-versions --bucket hera-scsdata --key
84/46/2020060508501821902143658709-Subscriber | grep -B 4 -A 6
84/46/2020060508501821902143658709-Subscriber
"LastModified": "2020-06-05T08:58:19.644Z",
"VersionId": "FUdZIehBu3sgRbNJSmZwj3VHWs1ednH",
"ETag": "\"a18286c50a7323efe58497eb97d6dc9d\"",
"StorageClass": "STANDARD",
"Key": "84/46/2020060508501821902143658709-Subscriber",
"Owner": {
"DisplayName": "hera EAS S3 user",
"ID": "hera"
},
"IsLatest": true,
"Size": 4440
--
"LastModified": "2020-06-05T08:58:17.943Z",
"VersionId": "JVKGMJQS-l7xKQuqdfn4QsEY5WLEosj",
"ETag": "\"87e9953af436b702afb80d457f1d73cb\"",
"StorageClass": "STANDARD",
"Key": "84/46/2020060508501821902143658709-Subscriber",
"Owner": {
"DisplayName": "hera EAS S3 user",
"ID": "hera"
},
"IsLatest": false,
"Size": 4408
--
"LastModified": "2020-06-05T08:50:19.167Z",
"VersionId": "-RSNSCDvGj83f4DZ11s8YZ2KaxT8T.a",
"ETag": "\"a68ec68ce825e009ee9a70cfdae9c794\"",
"StorageClass": "STANDARD",
"Key": "84/46/2020060508501821902143658709-Subscriber",
"Owner": {
"DisplayName": "hera EAS S3 user",
"ID": "hera"
},
"IsLatest": false,
"Size": 4256
--
],
"NextKeyMarker":
"85/49/20200604163626B4C712312312302641-Subscriber",
"MaxKeys": 1000,
"Prefix": "",
"KeyMarker": "84/46/2020060508501821902143658709-Subscriber",
"DeleteMarkers": [
{
"Owner": {
"DisplayName": "hera EAS S3 user",
"ID": "hera"
},
So those objects still being present seems to be in conflict with the config I have set?
Thanks,
Alex