Project

General

Profile

Bug #19632

Bucket lifecycles stick around after buckets are deleted

Added by Ben Hines almost 7 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

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

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 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)

#2 Updated by Nathan Cutler almost 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

#3 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"
}
]

#4 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)

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

#6 Updated by Orit Wasserman almost 6 years ago

  • Backport set to luminous

#7 Updated by Orit Wasserman almost 6 years ago

  • Status changed from New to Pending Backport

#8 Updated by Nathan Cutler almost 6 years ago

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

#9 Updated by Nathan Cutler almost 6 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF