Repository navigation
mds: comply with the valid range for mds_log_max_segments - #56634
Conversation
leonid-s-usov
left a comment
There was a problem hiding this comment.
There are more places to be addressed post #48732. The new minimum of 8 also invalidates some tests that try to set the property to 1. I found two such cases:
qa/tasks/cephfs/test_meta_injection.py:TestMetaInjection.test_meta_injectionqa/workunits/restart/test-backtraces.py:flush()
I'm not ready to say whether those tests will need a more significant refactoring or just set the value to the new minimum (8)
batrick
left a comment
There was a problem hiding this comment.
Use mds: for the component please.
And I echo @leonid-s-usov 's comment.
|
I find it suspicious that the updated tests weren't failing before this change. @neesingh-rh, could you please verify that the tests are being run by teuthology? |
mds_log_max_segments
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
As asked by @leonid-s-usov , I did check some of the runs to check why the tests weren't failing before. I did check the code and we should be getting the error caught here: https://github.com/ceph/ceph/blob/main/src/common/ceph_context.cc#L613 . I didn't find this test being run in teuthology. @vshankar Any reason? Or Am I wrong somewhere. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
@neesingh-rh Do you plan to refurbish this change? As far as #56634 (comment) is concerned, please look into one of the latest fs suite runs to assess if the tests are being run and the relevant config (set to 1) is indeed getting exercised. |
|
@neesingh-rh ping |
The PR addresses the requirements of the respective tracker. Need to look one of the latest runs for this comment:#56634 (comment) |
|
@neesingh-rh Looks like test_meta_injection isn't run from anywhere color me surprised o_O |
yes, May be it was added to test it locally. I am not sure about the reason. But yeah, the PR updates the config option with its new min value. So, we can go ahead with this. What say? |
Then let's add changes to start running the test. The type of the config is unsigned int, so setting to -1 should fail. |
ae5be6b to
24fa6e2
Compare
@vshankar I have created a yaml file in |
|
@neesingh-rh Do you know where |
Oh, this also needs to be taken care of!! I have no idea where should it be added. |
Have you checked the commit history for this file? It may give some insights as where it was intended to be used. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
|
Reopened for Umbrella release. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This PR is under test in https://tracker.ceph.com/issues/76560. |
|
jenkins retest this please |
Since we use unsigned integer for the config option `mds_log_max_segments` , the value '-1' is not permitted. And there's no need to disable this limit. Hence removing this statement from the its description. Fixes: https://tracker.ceph.com/issues/64064 Signed-off-by: Neeraj Pratap Singh <[email protected]>
…g 'test_meta_injection' into test suite Fixes: https://tracker.ceph.com/issues/64064 Signed-off-by: Neeraj Pratap Singh <[email protected]>
|
Just rebased |
Config Diff Tool Output! changed: mds_log_max_segments: old: The maximum number of segments (objects) in the journal before we initiate trimming. Set to ``-1`` to disable limits. (mds.yaml.in)
! changed: mds_log_max_segments: new: The maximum number of segments (objects) in the journal before we initiate trimming. (mds.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
| - cephfs_test_runner: | ||
| fail_on_skip: false | ||
| modules: | ||
| - tasks.cephfs.test_meta_injection |
There was a problem hiding this comment.
OK, so this change starts testing TestMetaInjection which was previously untested but has the python test case just lying around :/
While that is good, unfortunately, the test fails here: https://pulpito.ceph.com/vshankar-2026-05-25_09:01:16-fs-wip-vshankar-testing-20260525.053031-distro-default-trial/236151/w
with the cephfs-meta-injection tool not found
2026-05-25T13:45:55.371 INFO:teuthology.orchestra.run.trial016.stderr:2026-05-25T13:45:55 stdin-killer INFO: command exited with status 0: exiting normally with same code!
2026-05-25T13:45:55.376 DEBUG:teuthology.orchestra.run.trial016:> cephfs-meta-injection --debug-mds=1 --debug-objecter=1 --rank cephfs:0 showm -i 1099511627777 -o /tmp/meta_out
2026-05-25T13:45:55.433 DEBUG:teuthology.orchestra.run:got remote process result: 127
2026-05-25T13:45:55.433 INFO:teuthology.orchestra.run.trial016.stderr:bash: line 1: cephfs-meta-injection: command not found
There was a problem hiding this comment.
I think we are not packaging cephfs-meta-injection tool. I see that it's included in cephfs_testing under src/CMakeLists.txt though. @neesingh-rh can you check please?
|
@neesingh-rh - since this is a yaml change for the most part, I think we can merge this as it is and work on the failing test case. WDYT? |
@vshankar It came from DS, where the issue was that it wasn't taking value -1, which is not an acceptable value as its min value is 8 now and it was wrongly documented in the desc of config. I think we should atleast merge this and proceed with the DS stuff, and follow the test failure as a new tracker. What do u say? |
Yes, that's what I suggested. I have a tracker assigned to you. This change will be merged soon. |
Comments addressed.
|
/config check ok |
Fixes: https://tracker.ceph.com/issues/64064
Signed-off-by: Neeraj Pratap Singh [email protected]
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 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 windowsjenkins test rook e2e