New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
radosgw-admin: allow 'bi purge' to delete index if entrypoint doesn't exist #43591
Conversation
|
when multisite is enabled, bucket deletion only deletes the bucket's entrypoint, preserving the bucket instance metadata and its index objects in case sync isn't finished these deleted bucket instances show up in |
|
jenkins test api |
src/rgw/rgw_admin.cc
Outdated
| @@ -1149,7 +1149,7 @@ static int init_bucket(rgw::sal::User* user, | |||
| b.tenant = tenant_name; | |||
| b.name = bucket_name; | |||
| if (!bucket_id.empty()) { | |||
| b.bucket_id = bucket_name + ":" + bucket_id; | |||
| b.bucket_id = bucket_id; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a constructor for rgw_bucket that takes these 3 parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, updated
|
jenkins test api |
Fixes: https://tracker.ceph.com/issues/52976 Signed-off-by: Casey Bodley <cbodley@redhat.com>
we may get -ENOENT looking up cur_bucket here. we look up cur_bucket so we can avoid purging the 'current' bucket instance. but if that entrypoint doesn't exist, there is no current instance and that shouldn't prevent us from purging Fixes: https://tracker.ceph.com/issues/52976 Signed-off-by: Casey Bodley <cbodley@redhat.com>
|
jenkins test api |
1 similar comment
|
jenkins test api |
|
jenkins test api |
two separate fixes:
Fixes: https://tracker.ceph.com/issues/52976
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox