Bug #19632
closed
Bucket lifecycles stick around after buckets are deleted
Added by Ben Hines about 7 years ago.
Updated almost 6 years ago.
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.
(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)
- 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
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"
}
]
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
- Status changed from New to Pending Backport
- Copied to Backport #24477: luminous: Bucket lifecycles stick around after buckets are deleted added
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF