]> 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 31842/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Tue, 5 Nov 2019 10:40:14 +0000 (16:10 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Thu, 26 Mar 2020 11:36:12 +0000 (17:06 +0530)
commit6da921e873989f2cff2c337b002b392b1d546c11
treef04c2ef9f0f702fa7b0d1d234236d8301d59e13f
parent69290c72865ba972af546ced85a0217ced4eb0ad
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>
(cherry picked from commit 33c647e8114b37404d8d62a08c85664cea709118)

 Conflicts:
PendingReleaseNotes
- Added release notes under 14.2.9
qa/standalone/mon/health-mute.sh
- Deleted the script as 'health mute/unmute' cmd is unavailable in nautilus
qa/tasks/ceph.conf.template
- Removed a flag not available in nautilus
src/common/options.cc
- Removed a flag not available in nautilus
src/osd/OSDMap.cc
PendingReleaseNotes
doc/rados/configuration/mon-config-ref.rst
qa/tasks/ceph.conf.template
src/common/options.cc
src/osd/OSDMap.cc