Bug #19632
closedBucket lifecycles stick around after buckets are deleted
0%
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.
Updated by Ben Hines about 7 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)
Updated by Nathan Cutler about 7 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
Updated by hongwei xu over 6 years 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"
}
]
Updated by hongwei xu over 6 years 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)
Updated by Orit Wasserman almost 6 years ago
Updated by Orit Wasserman almost 6 years ago
- Status changed from New to Pending Backport
Updated by Nathan Cutler almost 6 years ago
- Copied to Backport #24477: luminous: Bucket lifecycles stick around after buckets are deleted added
Updated by Nathan Cutler almost 6 years ago
- Status changed from Pending Backport to Resolved