]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: revise health checks for _FAILED/_DEGRADED
authorJohn Spray <john.spray@redhat.com>
Sun, 16 Jul 2017 16:08:32 +0000 (12:08 -0400)
committerJohn Spray <john.spray@redhat.com>
Tue, 1 Aug 2017 10:57:49 +0000 (06:57 -0400)
commitd0192e59623f0ad06496f7ddfd647c028607c665
treeac7d4a5119e28052d9a3e6f31107d11029127cf7
parentbeb4c38ae77d07a25b2de24f61eea6378435112b
mds: revise health checks for _FAILED/_DEGRADED

No longer output MDS_* versions as well as FS_* versions,
because it was noisy and the important message is about
the availability (or not) of the filesystem.

Revise the _FAILED check to only raise the message if
there are not suitable replacements available for failed
ranks.  This avoids a spurious health check failure when
a rank has been failed (e.g. by the admin) but it will
be replaced at the next tick().

After this change, doing a "ceph mds fail" when a standby
is available just gives you a single FS_DEGRADED health
check from the point of the "fail" to when the replacement
is active.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/FSMap.cc
src/mds/MDSMap.cc