mgr/volumes: allow disabling async job threads#54396
Conversation
1d5d5ea to
6a9abba
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
6a9abba to
58a4b7a
Compare
58a4b7a to
7bb0d8b
Compare
vshankar
left a comment
There was a problem hiding this comment.
@rishabh-d-dave What about comment 6b9f3cf#r1386395240 ?
7bb0d8b to
c86bfca
Compare
|
@rishabh-d-dave Is this ready for review? |
c86bfca to
559825b
Compare
559825b to
1bc601f
Compare
1bc601f to
fc539cb
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
qa/tasks/cephfs/test_volumes.py
Outdated
|
|
||
| self.run_ceph_cmd(f'fs subvolume rm {v} {sv}') | ||
| self._assert_trashed_sv_is_unpurged(sv, sv_path, sv_files) | ||
| time.sleep(7) |
There was a problem hiding this comment.
ping?? (unresolved comment)
|
@vshankar PTAL |
On this now... |
|
This PR is under test in https://tracker.ceph.com/issues/69939. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
vshankar
left a comment
There was a problem hiding this comment.
I'm seeing a couple of test failures related to volume plugin. This change is the only mgr/volumes related changes in the test branch.
- https://pulpito.ceph.com/vshankar-2025-02-27_13:15:04-fs-wip-vshankar-testing-20250227.075314-debug-testing-default-smithi/8158600/
- https://pulpito.ceph.com/vshankar-2025-02-27_13:15:04-fs-wip-vshankar-testing-20250227.075314-debug-testing-default-smithi/8158621/
@rishabh-d-dave - could you please check the failures to assess if those are related to this change? If not, I will create trackers for the same and proceed with merging.
|
@vshankar Issue has been fixed. All tests in fs:volumes are passing now - https://pulpito.ceph.com/rishabh-2025-03-10_02:36:23-fs:volumes-rishabh-mgr-vol-no-del-testing-default-smithi/ |
|
about last push: removed DNM commit |
Could you explain what the issue was and the commit (new or existing) where the fix has been made? |
|
jenkins test make check |
|
This PR is under test in https://tracker.ceph.com/issues/70394. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
@rishabh-d-dave please rebase. |
Add mechansim that allows pausing/resuming of the entire async job machinery that queues, launches and picks next async job; both async jobs, clones as well as purges. And then add mgr/vol config option pause_purging and pause_cloning so that both of these async jobs can be paused and resumed individually. Fixes: https://tracker.ceph.com/issues/61903 Fixes: https://tracker.ceph.com/issues/68630 Signed-off-by: Rishabh Dave <ridave@redhat.com>
Whitespace is not removed from the end of the stdout returned by the method get_ceph_cmd_stdout(). Follow the same policy here since it is better to not do so (this whitespace can be useful, when copying Ceph auth keyrings from stdout to a file) and also for sake of uniformity of interfaces. Signed-off-by: Rishabh Dave <ridave@redhat.com>
Setting MGR config option mgr/volumes/pause_purging to true halts all ongoing purges and allows no new purging to begin until this option is changed to false. Add tests for this. Signed-off-by: Rishabh Dave <ridave@redhat.com>
Trash directory for a volume is not created by default. If _wait_for_trash_empty() in test_volumes.py encounters absence of trash directory, return true. Signed-off-by: Rishabh Dave <ridave@redhat.com>
mgr/vol config option pause_cloning allows pausing of cloner threads. Add tests for this. Signed-off-by: Rishabh Dave <ridave@redhat.com>
Update documentation for add information about mgr/vol config options "pause_purging" and "pause_cloning". Signed-off-by: Rishabh Dave <ridave@redhat.com>
Added release notes for mgr/vol config option "pause_purging and "pause_cloning". Signed-off-by: Rishabh Dave <ridave@redhat.com>
|
jenkins test make check |
|
jenkins test api |
|
fs:volumes run: https://pulpito.ceph.com/vshankar-2025-03-13_10:45:26-fs:volumes-wip-vshankar-testing-20250313.072951-debug-testing-default-smithi/ I'm running the entire fs suite too, but for this change fs:volumes test would suffice and can be merged once that passes. I will link the run wiki entry later. |
@vshankar he tests linked above have passed. |
Add a new mgr config options that allows pausing async purge threads and async cloner threads.
Fixes: https://tracker.ceph.com/issues/61903
Fixes: https://tracker.ceph.com/issues/68630
TODO
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. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
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 toxjenkins test windows