]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Tue, 17 Jun 2025 07:48:34 +0000 (13:18 +0530)
commitfe45c051dc7ff829d874ff0f0c1832122cff5e40
tree9d1636530486030be5adcbff36570063c3bf0a1b
parent7aea3f00a23a783657f92be7b327f2237dc5df2d
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() in present in this file in main branch but it's
  absent in Squid branch.
src/mon/FSCommands.cc
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h