Project

General

Profile

Bug #41652

rgw lc does not delete objects that do not have the same tags

Added by Or Friedmann 7 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
% Done:

0%

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

Description

It is possible that object will have multiple tags more than the rule that applied on.

For example:

Example 4: Tag-based Filtering and Resulting Conflicting Lifecycle Actions

Suppose that you have the following lifecycle policy that has two rules, each specifying a tag filter:

Rule 1 specifies a tag-based filter (tag1/value1). This rule directs Amazon S3 to transition objects to the GLACIER storage class 365 days after creation.

Rule 2 specifies a tag-based filter (tag2/value2). This rule directs Amazon S3 to expire objects 14 days after creation.

The lifecycle configuration is shown following:

<LifecycleConfiguration>
<Rule>
<ID>Rule 1</ID>
<Filter>
<Tag>
<Key>tag1</Key>
<Value>value1</Value>
</Tag>
</Filter>
<Status>Enabled</Status>
<Transition>
<StorageClass>GLACIER<StorageClass>
<Days>365</Days>
</Transition>
</Rule>
<Rule>
<ID>Rule 2</ID>
<Filter>
<Tag>
<Key>tag2</Key>
<Value>value1</Value>
</Tag>
</Filter>
<Status>Enabled</Status>
<Expiration>
<Days>14</Days>
</Expiration>
</Rule>
</LifecycleConfiguration>
The policy is fine, but if there is an object with both tags, then S3 has to decide what to do. That is, both rules apply to an object and in effect you are directing Amazon S3 to perform conflicting actions. In this case, Amazon S3 expires the object 14 days after creation. The object is removed, and therefore the transition action does not come into play.

Object is not being deleted if not all tags exactly the same as in the rule.

History

#1 Updated by Abhishek Lekshmanan 7 months ago

  • Assignee set to Abhishek Lekshmanan

#2 Updated by Abhishek Lekshmanan 7 months ago

  • Assignee changed from Abhishek Lekshmanan to Or Friedmann

#3 Updated by Abhishek Lekshmanan 7 months ago

  • Status changed from New to 12

#4 Updated by Patrick Donnelly 4 months ago

  • Status changed from 12 to New

Also available in: Atom PDF