Skip to content

rgw/multisite: bucket instance cleanup after deletion#53799

Merged
smanjara merged 23 commits intoceph:mainfrom
smanjara:wip-shilpa-cleanup-bi
Apr 4, 2025
Merged

rgw/multisite: bucket instance cleanup after deletion#53799
smanjara merged 23 commits intoceph:mainfrom
smanjara:wip-shilpa-cleanup-bi

Conversation

@smanjara
Copy link
Contributor

@smanjara smanjara commented Oct 3, 2023

https://tracker.ceph.com/issues/20802

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@smanjara smanjara requested a review from a team as a code owner October 3, 2023 20:05
@github-actions github-actions bot added the rgw label Oct 3, 2023
@smanjara
Copy link
Contributor Author

smanjara commented Oct 3, 2023

@cbodley this isn't ready yet. but I would like to get your feedback on the layout stuff.

@smanjara smanjara force-pushed the wip-shilpa-cleanup-bi branch from 096c552 to 8836ca1 Compare October 4, 2023 17:21
@smanjara smanjara force-pushed the wip-shilpa-cleanup-bi branch from 8836ca1 to 005214c Compare November 8, 2023 02:56
Copy link
Contributor

@cbodley cbodley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the bucket layout and trim stuff looks great 👍

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@smanjara
Copy link
Contributor Author

to-do: test the trim logic added and think about test cases.

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@smanjara smanjara force-pushed the wip-shilpa-cleanup-bi branch from e2909e6 to 409bdc0 Compare November 28, 2023 21:46
@cbodley
Copy link
Contributor

cbodley commented Nov 29, 2023

looking great except for the s3select submodule change

@mattbenjamin
Copy link
Contributor

this is amazing progress, shilpa!

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@smanjara
Copy link
Contributor Author

smanjara commented Apr 3, 2025

with 6544c69 the tests are passing: https://pulpito.ceph.com/smanjara-2024-12-17_09:39:58-rgw:multisite-wip-shilpa-cleanup-bi-distro-default-smithi/

i do love to see green multisite runs!
the test coverage for cleanup on bilog autotrim looks good, but we don't have any coverage for the new BucketNotEmpty check. i was hoping we could copy one of Soumya's sync policy test cases for this, but it looks like they're all disabled with fails_with_rgw :( maybe we could still add a test case and make sure it passes locally, but use fails_with_rgw if it's not reliable in teuthology?

i added a few more testcases after this to test sync policy checks. they pass locally. waiting on shaman to build so I can run another round of multisite suite.

multisite run looks ok. these are the same failures that are on main.
https://qa-proxy.ceph.com/teuthology/smanjara-2025-04-03_17:42:14-rgw:multisite-wip-shilpa-cleanup-bi-distro-default-smithi/8223188/teuthology.log
I had to disable sync policy related tests as they are quite flaky on teuthology. passes reliably when tested locally.

@github-actions
Copy link

github-actions bot commented Apr 4, 2025

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

Shilpa Jagannath added 23 commits April 4, 2025 13:16
…stanceMetadataHandler.

create an async cr for removing bucket instance info in bilog trimming logic

Signed-off-by: Shilpa Jagannath <[email protected]>
…stance info.

- get rid of the helper function that adds the 'deleted' log layout.

Signed-off-by: Shilpa Jagannath <[email protected]>
- handle the case when StatusShards returns -ENOENT

Signed-off-by: Shilpa Jagannath <[email protected]>
we may end up orphaning objects on remote zones when a delete bucket
is issued on metadata master. to avoid this, list the buckets on remote
zones and delete bucket only when empty. if a zone is unreachable we
drop that zone and continue with bucket deletion. such zones might have
orphaned objects that will have to be cleaned up using radosgw-admin tool

Signed-off-by: Shilpa Jagannath <[email protected]>
…anceMetadataHandler

Signed-off-by: Shilpa Jagannath <[email protected]>
removal should happen locally

Signed-off-by: Shilpa Jagannath <[email protected]>
only handle them when the bucket metadata is deleted. there is a case
when we get enoent when status objects have not been created yet,
for example when bucket metadata is created and synced but no data
exists yet and bucket sync status won't be initialized. these don't
need special handling.

Signed-off-by: Shilpa Jagannath <[email protected]>
…andler::remove

- fix testcase

Signed-off-by: Shilpa Jagannath <[email protected]>
when returning enotempty during bucket deletion

Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
during bucket deletion

Signed-off-by: Shilpa Jagannath <[email protected]>
@smanjara smanjara force-pushed the wip-shilpa-cleanup-bi branch from 42b6782 to 8fbef97 Compare April 4, 2025 17:20
@smanjara smanjara merged commit e0958b5 into ceph:main Apr 4, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants