]> 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, 1 Oct 2024 07:15:28 +0000 (12:45 +0530)
commita55a75c57e7a42a1317e4d7fc86c1964b71137f0
tree3edb8829125e8a0da922fc083ebc7cd01f609c7a
parenta61eabead346db16cdadea7f7c502f8d1ad1b3b9
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>
src/mon/FSCommands.cc
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h