Skip to content

mds: comply with the valid range for mds_log_max_segments#56634

Open
neesingh-rh wants to merge 2 commits intoceph:mainfrom
neesingh-rh:wip-64064
Open

mds: comply with the valid range for mds_log_max_segments#56634
neesingh-rh wants to merge 2 commits intoceph:mainfrom
neesingh-rh:wip-64064

Conversation

@neesingh-rh
Copy link
Contributor

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

Fixes: https://tracker.ceph.com/issues/64064
Signed-off-by: Neeraj Pratap Singh neesingh@redhat.com

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
Copy link
Contributor

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

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)

Copy link
Member

@batrick batrick left a comment

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.

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 <neesingh@redhat.com>
@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
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
Copy link

github-actions bot commented Jun 3, 2024

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

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
Copy link
Contributor

vshankar commented Sep 6, 2024

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

@neesingh-rh ping

@neesingh-rh
Copy link
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
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
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
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
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
Copy link
Contributor

vshankar commented Nov 5, 2024

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

@neesingh-rh
Copy link
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.

@neesingh-rh neesingh-rh reopened this May 29, 2025
@neesingh-rh
Copy link
Contributor Author

@mchangir Your testing label has been added, any updates?

@github-actions github-actions bot removed the stale label May 29, 2025
@mchangir
Copy link
Contributor

mchangir commented Jun 2, 2025

@mchangir Your testing label has been added, any updates?

probably this wasn't put to test
I'll remove the testing label, somebody else can pick it up

@mchangir mchangir removed the wip-mchangir-testing not yet production ready label Jun 2, 2025
@neesingh-rh
Copy link
Contributor Author

@rishabh-d-dave Can this be added in any of your runs?

@rishabh-d-dave rishabh-d-dave added the wip-rishabh-testing Rishabh's testing label label Jun 13, 2025
@rishabh-d-dave
Copy link
Contributor

jenkins test windows

@rishabh-d-dave
Copy link
Contributor

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

@rishabh-d-dave rishabh-d-dave removed the wip-rishabh-testing Rishabh's testing label label Jun 16, 2025
@rishabh-d-dave
Copy link
Contributor

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

A large number of jobs failed to an unrelated error, deferring QA run until it is fixed.

@rishabh-d-dave rishabh-d-dave added the wip-rishabh-testing Rishabh's testing label label Jun 17, 2025
@rishabh-d-dave
Copy link
Contributor

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

Copy link
Contributor

@rishabh-d-dave rishabh-d-dave left a comment

Choose a reason for hiding this comment

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

@rishabh-d-dave rishabh-d-dave removed needs-qa wip-rishabh-testing Rishabh's testing label labels Jun 25, 2025
…g 'test_meta_injection' into test suite

Fixes: https://tracker.ceph.com/issues/64064
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
@neesingh-rh
Copy link
Contributor Author

@rishabh-d-dave ping?

@rishabh-d-dave
Copy link
Contributor

Had a chat with Neeraj regarding this PR. He misread this comment - #56634 (review) and will be taking a look into the failed QA job.

@github-actions
Copy link

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 Sep 22, 2025
@github-actions
Copy link

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
Contributor

Reopened for Umbrella release.

@github-actions github-actions bot removed the stale label Jan 28, 2026
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