Actions
Bug #41010
closedrgw s3 lifecycle expiration header does not return the rule with the earliest date
% Done:
0%
Source:
Community (dev)
Tags:
backport_processed
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
- The bucket lifecycle ruleset
s3_connection.put_bucket_lifecycle_configuration(
Bucket=bucket_name,
LifecycleConfiguration= {
"Rules": [ {
"Filter": {
"Tag": {"Key": "suffix2", "Value": "WMV2"}
},
"Status": "Enabled",
"Expiration": {
"Date": "2017-01-01"
},
"ID": "WMV2"
}, {
"Filter": {
"Tag": {"Key": "suffix", "Value": "WMV"}
},
"Status": "Enabled",
"Expiration": {
"Date": "2021-01-01"
},
"ID": "WMV"
}
]
}
) - tagging on the object
s3_connection.put_object_tagging(
Bucket=bucket_name,
Key=object_key,
Tagging={'TagSet': [{'Key': 'suffix', 'Value': 'WMV'},{'Key': 'suffix2', 'Value': 'WMV2'}]}
)
returns:
the expiration date of rule WMV and the name of the WMV rule.
Actions