Skip to content

squid: mon,cephfs: require confirmation when changing max_mds on unhealthy cluster#60398

Merged
neesingh-rh merged 4 commits intoceph:squidfrom
rishabh-d-dave:wip-68621-squid
Jan 19, 2026
Merged

squid: mon,cephfs: require confirmation when changing max_mds on unhealthy cluster#60398
neesingh-rh merged 4 commits intoceph:squidfrom
rishabh-d-dave:wip-68621-squid

Conversation

@rishabh-d-dave
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/68621


backport of #59420
parent tracker: https://tracker.ceph.com/issues/66301

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

Copy link
Contributor

@anthonyeleven anthonyeleven left a comment

Choose a reason for hiding this comment

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

docs lgtm

@rishabh-d-dave
Copy link
Contributor Author

docs lgtm

Thank you for the review!

@vshankar vshankar added the wip-vshankar-testing2-squid Squid Backport Testing #2 label Nov 6, 2024
@vshankar
Copy link
Contributor

vshankar commented Nov 6, 2024

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

@github-actions
Copy link

github-actions bot commented Jan 5, 2025

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 Jan 5, 2025
@github-actions
Copy link

github-actions bot commented Feb 4, 2025

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

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@vshankar vshankar removed the wip-vshankar-testing2-squid Squid Backport Testing #2 label May 30, 2025
@kotreshhr
Copy link
Contributor

@rishabh-d-dave please rebase this

…luster

User must pass the confirmation flag (--yes-i-really-mean-it) to change
the value of CephFS setting variable "max_mds" when the Ceph cluster is
unhealthy.

This measure was decided upon to prevent users from changing "max_mds"
as a measure of troubleshotoing unhealthy cluster.

Fixes: https://tracker.ceph.com/issues/66301
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit a55a75c)

Conflicts:

src/mon/FSCommands.cc
- Method set_val() in present in this file in main branch but it's
  absent in Squid branch.
Add tests to ensure that when cluster has any health warning, especially
MDS_TRIM, confirmation flag is mandatory to change max_mds.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 4d5ec87)

Conflicts:
qa/tasks/cephfs/test_admin.py
- This file is bit different than main branch version which led to
  conflict in applying the patch in this commit.
Update the documentation for CephFs admininstration as well
troubleshooting.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 2d28faa)

Conflicts:
doc/cephfs/troubleshooting.rst
- This patch was skipped because it was (erroneously) included by a
  different PR author in its PR.
@rishabh-d-dave
Copy link
Contributor Author

@rishabh-d-dave please rebase this

@kotreshhr Done.

@joscollin
Copy link
Member

jenkins test api

@rishabh-d-dave
Copy link
Contributor Author

@joscollin All CI jobs passed.

@joscollin
Copy link
Member

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

Add a release note for the fact that users now need to pass the
confirmation flag for modifying "max_mds" when cluster is unhealthy.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit a71c8e8)
@neesingh-rh
Copy link
Contributor

@neesingh-rh neesingh-rh merged commit 06acd16 into ceph:squid Jan 19, 2026
9 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.

6 participants