Skip to content

qa/workunits/fs/misc: remove data pool cleanup#62901

Merged
batrick merged 1 commit intoceph:mainfrom
batrick:i70919
Apr 25, 2025
Merged

qa/workunits/fs/misc: remove data pool cleanup#62901
batrick merged 1 commit intoceph:mainfrom
batrick:i70919

Conversation

@batrick
Copy link
Member

@batrick batrick commented Apr 21, 2025

This cleanup is at the very least incorrect as it can cause the MDS to throw read-only errors because the data pool is removed before it can write out backtraces.

We've not yet finalized a truly safe workflow to remove a data pool -- even flushing the MDS journals first may not be enough (considering a large purge queue).

Fixes: https://tracker.ceph.com/issues/70919

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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

This cleanup is at the very least incorrect as it can cause the MDS to throw
read-only errors because the data pool is removed before it can write out
backtraces.

We've not yet finalized a truly safe workflow to remove a data pool -- even
flushing the MDS journals first may not be enough (considering a large purge
queue).

Fixes: https://tracker.ceph.com/issues/70919
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
@github-actions github-actions bot added the tests label Apr 21, 2025
@batrick batrick added cephfs Ceph File System needs-review labels Apr 21, 2025
@batrick batrick requested a review from a team April 21, 2025 15:23
Comment on lines -12 to -13
ceph fs rm_data_pool cephfs foo.$$
ceph osd pool rm foo.$$ foo.$$ --yes-i-really-really-mean-it
Copy link
Contributor

Choose a reason for hiding this comment

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

after flushing the journal, isn't there a way to check if the purge queue is empty to eventually decide on removing the data pool ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, we could add a manual check to look at perf counters but how can we expect users/admins to do that? Until we have a proper interface, I don't see a point adding this to the tests.

@batrick
Copy link
Member Author

batrick commented Apr 21, 2025

jenkins test api

@batrick
Copy link
Member Author

batrick commented Apr 21, 2025

jenkins test make check arm64

@batrick
Copy link
Member Author

batrick commented Apr 21, 2025

jenkins test api

@batrick
Copy link
Member Author

batrick commented Apr 21, 2025

This PR is under test in https://tracker.ceph.com/issues/71000.

@batrick
Copy link
Member Author

batrick commented Apr 21, 2025

jenkins test api

@batrick
Copy link
Member Author

batrick commented Apr 21, 2025

jenkins test make check arm64

@batrick
Copy link
Member Author

batrick commented Apr 25, 2025

@batrick
Copy link
Member Author

batrick commented Apr 25, 2025

jenkins test make check arm64

Copy link
Member

@gregsfortytwo gregsfortytwo left a comment

Choose a reason for hiding this comment

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

LGTM

@batrick batrick merged commit 6c01b91 into ceph:main Apr 25, 2025
17 checks passed
@batrick batrick deleted the i70919 branch April 25, 2025 19:02
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.

3 participants