]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: Show health warning if a pool is configured with size 1 31416/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Tue, 5 Nov 2019 10:40:14 +0000 (16:10 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 11 Nov 2019 05:06:35 +0000 (10:36 +0530)
commit33c647e8114b37404d8d62a08c85664cea709118
tree939f5fe2b920e6661a714a6a0861c257d8b33cca
parent3e718d3f4f903e0a7810a3237f90a6306f66c729
osd/OSDMap: Show health warning if a pool is configured with size 1

Introduce a config option called 'mon_warn_on_pool_no_redundancy' that is
used to show a health warning if any pool in the ceph cluster is
configured with a size of 1. The user can mute/unmute the warning using
'ceph health mute/unmute POOL_NO_REDUNDANCY'.

Add standalone test to verify warning on setting pool size=1. Set the
associated warning to 'false' in ceph.conf.template under qa/tasks so
that existing tests do not break.

Fixes: https://tracker.ceph.com/issues/41666
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
PendingReleaseNotes
doc/rados/configuration/mon-config-ref.rst
qa/standalone/mon/health-mute.sh
qa/tasks/ceph.conf.template
src/common/options.cc
src/osd/OSDMap.cc