Project

General

Profile

Bug #19632

Bucket lifecycles stick around after buckets are deleted

Added by Ben Hines almost 2 years ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/14/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

1. Create a rgw bucket.
2. Create a bucket lifecycle on the bucket
3. Delete the bucket.
4. Type 'radosgw-admin lc list'

->> Notice the lifecycle is still listed there.

I expected the lifecycle to go away / not be listed anymore once the bucket was deleted.


Related issues

Copied to rgw - Backport #24477: luminous: Bucket lifecycles stick around after buckets are deleted Resolved

History

#1 Updated by Ben Hines almost 2 years ago

(also let me know if there is a way to clean up these old garbage lifecycles -- they seem to have the full path to the bucket, so i suspect just recreating a bucket with the same name and then deleting it will not work)

#2 Updated by Nathan Cutler almost 2 years ago

  • Project changed from Ceph to rgw
  • Subject changed from kraken: rgw: Bucket lifecycles stick around after buckets are deleted to Bucket lifecycles stick around after buckets are deleted

#3 Updated by hongwei xu over 1 year ago

Ben Hines wrote:

1. Create a rgw bucket.
2. Create a bucket lifecycle on the bucket
3. Delete the bucket.
4. Type 'radosgw-admin lc list'

->> Notice the lifecycle is still listed there.

I expected the lifecycle to go away / not be listed anymore once the bucket was deleted.

(1) # ./bin/radosgw-admin lc list
[]

(2)# s3cmd setlifecycle /home/xhw/Downloads/lc.xml s3://test --signature-v2
s3://test/: Lifecycle Policy updated

(3) # ./bin/radosgw-admin lc list
[ {
"bucket": ":test:f2b2cd49-73b8-444e-9df2-6e1fde4c90d4.4161.1",
"status": "COMPLETE"
}
]

(4) # s3cmd dellifecycle s3://test
s3://test/: Lifecycle Policy deleted

(5) # s3cmd rb s3://test
Bucket 's3://test/' removed

(6)# ./bin/radosgw-admin lc list
[ {
"bucket": ":test:f2b2cd49-73b8-444e-9df2-6e1fde4c90d4.4161.1",
"status": "COMPLETE"
}
]

#4 Updated by hongwei xu over 1 year ago

Ben Hines wrote:

(also let me know if there is a way to clean up these old garbage lifecycles -- they seem to have the full path to the bucket, so i suspect just recreating a bucket with the same name and then deleting it will not work)

https://github.com/ceph/ceph/pull/17046

#6 Updated by Orit Wasserman 10 months ago

  • Backport set to luminous

#7 Updated by Orit Wasserman 10 months ago

  • Status changed from New to Pending Backport

#8 Updated by Nathan Cutler 9 months ago

  • Copied to Backport #24477: luminous: Bucket lifecycles stick around after buckets are deleted added

#9 Updated by Nathan Cutler 9 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF