]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephfs,mon: require confirmation to fail unhealthy FS
authorRishabh Dave <ridave@redhat.com>
Wed, 13 Mar 2024 09:31:02 +0000 (15:01 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 12 Jun 2024 10:21:13 +0000 (15:51 +0530)
commit53d63e246dfd2d5930fb4a559e7352cf44478223
tree64ca36744ac6751f9ae3026d7e729cb238ceb5c1
parent39d8885932fb0e5589ee27dbda8bdc7cd07d9263
cephfs,mon: require confirmation to fail unhealthy FS

Confirmation flag must be passed when running the command "ceph fs fail"
when the MDS for this FS has either of the two health warnings: MDS_TRIM
or MDS_CACHE_OVERSIZED. Else, the command will fail and print an
appropriate error message.

Restarting an MDS with these health warnings is not recommened since it
will have a slow recovery during restart which will create new problems.

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

Conflicts:
- src/mon/FSCommands.cc
  -  lines surrounding the patch are different in reef compared to main.
     the reef code was still accessing "mds_map" directly instead of
     accessing it using "get_mds_map()".
  - return value of get_filesystem() is different in main.
src/mon/FSCommands.cc
src/mon/MonCommands.h