Skip to content

mds: comply with the valid range for mds_log_max_segments - #56634

Merged
vshankar merged 2 commits into
ceph:mainfrom
neesingh-rh:wip-64064
Jun 8, 2026
Merged

vshankar merged 2 commits into
ceph:mainfrom
neesingh-rh:wip-64064

Conversation

@neesingh-rh

@neesingh-rh neesingh-rh commented Apr 2, 2024 •

Copy link
Copy Markdown
Contributor

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 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
  • 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
  • jenkins test rook e2e

@github-actions github-actions Bot added the common label Apr 2, 2024
@neesingh-rh neesingh-rh added the cephfs Ceph File System label Apr 2, 2024
@neesingh-rh
neesingh-rh requested a review from a team April 2, 2024 12:02

@leonid-s-usov leonid-s-usov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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_injection
  • qa/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
batrick previously requested changes Apr 4, 2024

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Use mds: for the component please.

And I echo @leonid-s-usov 's comment.

@github-actions github-actions Bot added the tests label Apr 4, 2024
@neesingh-rh neesingh-rh changed the title src : correction in the description of mds_log_max_segments config mds : correction in the description of mds_log_max_segments config Apr 4, 2024
@leonid-s-usov

Copy link
Copy Markdown
Contributor

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?

@leonid-s-usov leonid-s-usov changed the title mds : correction in the description of mds_log_max_segments config mds: comply with the valid range for mds_log_max_segments Apr 4, 2024
@github-actions

github-actions Bot commented Jun 3, 2024

Copy link
Copy Markdown

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.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Jun 3, 2024
@neesingh-rh

Copy link
Copy Markdown
Contributor Author

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_injection`

* `qa/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)

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.

@github-actions github-actions Bot removed the stale label Jun 12, 2024
@github-actions

Copy link
Copy Markdown

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.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Aug 11, 2024
@vshankar vshankar removed the stale label Sep 6, 2024
@vshankar

vshankar commented Sep 6, 2024

Copy link
Copy Markdown
Contributor

@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.

@vshankar

Copy link
Copy Markdown
Contributor

@neesingh-rh ping

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

@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)

@vshankar

Copy link
Copy Markdown
Contributor

@neesingh-rh Looks like test_meta_injection isn't run from anywhere

git grep test_meta_injection
qa/tasks/cephfs/test_meta_injection.py:    def test_meta_injection(self):

color me surprised o_O

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

@neesingh-rh Looks like test_meta_injection isn't run from anywhere

git grep test_meta_injection
qa/tasks/cephfs/test_meta_injection.py:    def test_meta_injection(self):

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?

@vshankar

Copy link
Copy Markdown
Contributor

@neesingh-rh Looks like test_meta_injection isn't run from anywhere

git grep test_meta_injection
qa/tasks/cephfs/test_meta_injection.py:    def test_meta_injection(self):

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.

@neesingh-rh
neesingh-rh force-pushed the wip-64064 branch 2 times, most recently from ae5be6b to 24fa6e2 Compare November 5, 2024 06:20
@neesingh-rh

Copy link
Copy Markdown
Contributor Author

@neesingh-rh Looks like test_meta_injection isn't run from anywhere

git grep test_meta_injection
qa/tasks/cephfs/test_meta_injection.py:    def test_meta_injection(self):

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.

@vshankar I have created a yaml file in suites/fs/functional/tasks to include it in test

@vshankar vshankar self-assigned this Nov 5, 2024
@vshankar

vshankar commented Nov 5, 2024

Copy link
Copy Markdown
Contributor

@neesingh-rh Do you know where qa/workunits/restart/test-backtraces.py is run from?

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

@neesingh-rh Do you know where qa/workunits/restart/test-backtraces.py is run from?

Oh, this also needs to be taken care of!! I have no idea where should it be added.

@vshankar

vshankar commented Nov 5, 2024

Copy link
Copy Markdown
Contributor

@neesingh-rh Do you know where qa/workunits/restart/test-backtraces.py is run from?

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.

@github-actions

Copy link
Copy Markdown

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!

@github-actions github-actions Bot closed this Oct 22, 2025
@vshankar vshankar reopened this Jan 28, 2026
@vshankar

Copy link
Copy Markdown
Contributor

Reopened for Umbrella release.

@github-actions github-actions Bot removed the stale label Jan 28, 2026
@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown

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.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@vshankar

Copy link
Copy Markdown
Contributor

@vshankar

Copy link
Copy Markdown
Contributor

jenkins retest this please

neeraj pratap singh added 2 commits June 3, 2026 17:04
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]>
@neesingh-rh

Copy link
Copy Markdown
Contributor Author

Just rebased

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

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.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

- cephfs_test_runner:
fail_on_skip: false
modules:
- tasks.cephfs.test_meta_injection

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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?

@vshankar

vshankar commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@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

vshankar commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@neesingh-rh

neesingh-rh commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor Author

@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?

@vshankar

vshankar commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@vshankar It came from downstream, 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 jira, 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.

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@vshankar
vshankar dismissed stale reviews from rishabh-d-dave, batrick, and leonid-s-usov June 8, 2026 08:54

Comments addressed.

@vshankar

vshankar commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

/config check ok

@vshankar
vshankar merged commit 44f1f41 into ceph:main Jun 8, 2026
5 of 6 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.

8 participants