Repository navigation
tools/cephfs: provide an estimate completion time for offline tools - #65495
Conversation
7845306 to
1500c07
Compare
e579b4e to
f96f10b
Compare
|
jenkins test make check arm64 |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test make check |
1 similar comment
|
jenkins test make check |
|
jenkins test make check arm64 |
f96f10b to
aa87ae0
Compare
|
jenkins test make check arm64 |
|
jenkins test make check |
3bce69c to
2371199
Compare
|
jenkins test make check arm64 |
|
@rishabh-d-dave - PTAL for reviews. |
|
jenkins test api |
|
jenkins test make check |
|
You were asking about how to apply clang-format to files as we go. Tragically, clang-format is making changes to the actual line content (ie, moving line breaks in variable lists), so we can't really check it without actually reading every function (which probably won't happen). So can you share the exact invocation used in the commit message, for future reproducibility/checking? |
|
I ran "git clang-format" on the changes, which applies the formatting rules just to the changed lines. I figured it might be controversial which is why I kept it a separate SHA. Thats the incremental approach that avoids having a massive formatting only change that messes up blame history, though there is an option '--ignore-revs-file' that can help with that. |
|
jenkins test make check arm64 |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
@edwinzrodriguez - mind rebasing this please? Also PTAL at comment #65495 (comment). I want to put this to test this week. |
|
I will run this through tests @edwinzrodriguez. Also regarding comment #65495 (comment), I need to have a closer look at that part of the code. |
|
This PR is under test in https://tracker.ceph.com/issues/74090. |
|
@edwinzrodriguez - I'm seeing a related test failure: https://pulpito.ceph.com/vshankar-2025-12-05_01:29:03-fs-wip-vshankar-testing-20251204.133709-debug-for-linus-default-smithi/8642368/ From the logs: I haven't worked with |
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
How could a mgr not support a module unless we’re mid-upgrade and it doesn’t exist yet? This seems like something we need to properly debug. |
|
@gregsfortytwo Looking at the code in src/mon/MgrMonitor.cc I think the likely cause is that not all mgr nodes are up when the call to enable the module is made. I suppose its also possible there is version mismatch between mgr nodes that could cause a problem. |
I checked the monitor log: ./remote/smithi172/log/ceph-mon.a.log.gz This is coming from src/mon/MgrMonitor.cc::prepare_command():
So, it's possible that |
|
@edwinzrodriguez - I think for now, to test the PR, it might suffice to introduce a slight delay before enabling the module rather than using |
Adding a new progress tracking class in the cephfs offline tools dir that is consumed by multiple utilities namely cephfs-data-scan, cephfs-journal-tool, cephfs-table-tool. Multiple commands under each utility now have progress tracking included by default. The progress tracking is not option based- i.e. no "--progress" option required. This is because if we keep it option based and the user forgets to include the option while firing the command, then the only recourse is to kill the execution and restart. This is not suitable for state changing operations, hence better to include progress tracking by default. Exact command list where progress tracking is included is specified in the tracker. Testing updates also posted in tracker, initial testing with single and multi-threaded loads on FS with 4M objects succeeded for cephfs-data-scan. - Updated DataScan to use worker_n and worker_m for better clarity and functionality. - Added set_progress_operation_name method to manage operation names during progress tracking. - Enhanced ProgressTracker with new methods for detailed progress reporting and ETA calculations. - Improved thread safety and performance in progress updates. - Added terminal width detection and line padding for better display. - Introduced write_console_line function to manage console output. - Updated progress display logic to throttle updates based on time. - Removed display_interval variable to streamline progress updates. Fixes: https://tracker.ceph.com/issues/63191 Signed-off-by: Edwin Rodriguez <[email protected]> Signed-off-by: Edwin Rodriguez <[email protected]>
Basic progress tracking - Tests that scan_extents and scan_inodes report progress Event completion - Verifies events transition to completed state Multiple workers - Tests progress with parallel execution Graceful degradation - Ensures scans work without cli_api module Unique event IDs - Verifies each process creates unique progress events with PID ETA calculation - Checks that progress messages include time estimates Rate limiting - Verifies progress updates respect the 5-second interval Fixes: https://tracker.ceph.com/issues/63191 Signed-off-by: Edwin Rodriguez <[email protected]>
Apply clang-format changes to modified lines Fixes: https://tracker.ceph.com/issues/63191 Signed-off-by: Edwin Rodriguez <[email protected]>
|
@vshankar I added a 2 sec delay before trying to enable cli_api |
Test fails with the same reason. https://pulpito.ceph.com/vshankar-2025-12-10_13:32:17-fs-wip-vshankar-testing-20251204.133709-debug-for-linus-default-smithi/8649438/ I'm sure I used the latest update from this PR where a 2 second delay is added. I will have a look closely. |
|
I have tested this locally since I still don't have access to the (new) lab. I plan to merge this and then fix any bugs (at least one related to timing mentioned here: #65495 (comment)) over the coming weeks. |
|
jenkins test rook e2e |
|
jenkins test dashboard |
|
jenkins retest this please |
|
jenkins test windows |
Implement ProgressTracker to calculate percentage and ETA for operations
Add support to report progress using ceph mgr cli to make progress visible with ceph status
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition