Project

General

Profile

Bug #41010

rgw s3 lifecycle expiration header does not return the rule with the earliest date

Added by Or Friedmann 25 days ago. Updated 2 days ago.

Status:
Need Test
Priority:
Normal
Assignee:
-
Target version:
Start date:
07/30/2019
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:

Description

  1. 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"
    }
    ]
    }
    )
  2. 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.

History

#1 Updated by Mark Kogan 25 days ago

  • Pull request ID set to 29399

#3 Updated by Patrick Donnelly 5 days ago

  • Project changed from Ceph to rgw
  • Status changed from New to Need Review

#4 Updated by Matt Benjamin 2 days ago

  • Status changed from Need Review to Need Test

Also available in: Atom PDF