]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon,cephfs: require confirmation when changing max_mds on unhealthy cluster
authorRishabh Dave <ridave@redhat.com>
Fri, 23 Aug 2024 12:49:43 +0000 (18:19 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 15 Sep 2025 06:14:11 +0000 (11:44 +0530)
commit58728257fa70a231ff46c06dde7e2f804b6b218c
tree713c4592a8e1b5f0238deb189d3c87cb73baa4a1
parent54ed148c1a9cc415b6ad1853fe4bd80db9a26ece
mon,cephfs: require confirmation when changing max_mds on unhealthy cluster

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

Conflicts:

src/mon/FSCommands.cc
- Method set_val() is present in this file on main branch but not on
  Reef branch
src/mon/FSCommands.cc
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h