Project

General

Profile

Actions

Bug #36512

closed

Lifecycle doesn't remove delete markers

Added by Sean Purdy over 5 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
High
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
nautilus, mimic, luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I have a versioned bucket with a lifecycle. Files get deleted and delete markers added. A lifecycle configuration deletes the non-current versions, but doesn't remove the delete markers.

Lifecycle configuration:

{ 
  "Rules": [
    {
      "ID": "Test expiry 2",
      "Status": "Enabled",
      "Prefix": "",
      "NoncurrentVersionExpiration": {
        "NoncurrentDays": 1
      },
      "Expiration": {
        "ExpiredObjectDeleteMarker": true
      }
    }
  ]
}

I delete a file in the bucket. Delete marker is added:

{
    "DeleteMarkers": [
        {
            "Owner": {
                "DisplayName": "Sean Test", 
                "ID": "seantest" 
            }, 
            "IsLatest": true, 
            "VersionId": "H7pb8jPght20pKQd.b-m3nZPEvdW.Vd", 
            "Key": "00008000.txt", 
            "LastModified": "2018-10-16T15:29:48.105Z" 
        }
    ], 
    "Versions": [
        {
            "LastModified": "2018-10-16T14:36:54.717Z", 
            "VersionId": "bZEYkUaJLcgVFEZCWAOZwvpPrCHBhRt", 
            "ETag": "\"f262eaa559613b0eaaf53983ff880ec9\"", 
            "StorageClass": "STANDARD", 
            "Key": "00008000.txt", 
            "Owner": {
                "DisplayName": "Sean Test", 
                "ID": "seantest" 
            }, 
            "IsLatest": false, 
            "Size": 243
        }
    ]
}

When the lifecycle triggers, I get this:

{
    "DeleteMarkers": [
        {
            "Owner": {
                "DisplayName": "Sean Test", 
                "ID": "seantest" 
            }, 
            "IsLatest": true, 
            "VersionId": "H7pb8jPght20pKQd.b-m3nZPEvdW.Vd", 
            "Key": "00008000.txt", 
            "LastModified": "2018-10-16T15:29:48.105Z" 
        }
    ]
}

So why didn't the lifecycle remove the delete markers? The non-current version was removed.

Tested on 12.2.7 on debian stretch and 12.2.8 on debian jessie.

Thanks,

Sean Purdy


Related issues 3 (0 open3 closed)

Copied to rgw - Backport #38882: mimic: Lifecycle doesn't remove delete markersRejectedActions
Copied to rgw - Backport #38883: nautilus: Lifecycle doesn't remove delete markersResolvedAbhishek LekshmananActions
Copied to rgw - Backport #38884: luminous: Lifecycle doesn't remove delete markersResolvedActions
Actions

Also available in: Atom PDF