From: Patrick Donnelly Date: Sat, 1 May 2021 02:31:35 +0000 (-0700) Subject: qa,pybind/mgr: allow disabling .mgr pool X-Git-Tag: v17.1.0~1668^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d6c66f3fa6141bbb50a782c15196bdeb0e80e21d;p=ceph-ci.git qa,pybind/mgr: allow disabling .mgr pool This is mostly for testing: a lot of tests assume that there are no existing pools. These tests relied on a config to turn off creating the "device_health_metrics" pool which generally exists for any new Ceph cluster. It would be better to make these tests tolerant of the new .mgr pool but clearly there's a lot of these. So just convert the config to make it work. Signed-off-by: Patrick Donnelly --- diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index f0ba10f76a4..71201b3ee98 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -556,7 +556,7 @@ function run_mgr() { shift local data=$dir/$id - ceph config set mgr mgr/devicehealth/enable_monitoring off --force + ceph config set mgr mgr_pool false --force ceph-mgr \ --id $id \ $EXTRA_OPTS \ diff --git a/qa/suites/rados/multimon/no_pools.yaml b/qa/suites/rados/multimon/no_pools.yaml index dc6c769ca07..32ef2439f4b 100644 --- a/qa/suites/rados/multimon/no_pools.yaml +++ b/qa/suites/rados/multimon/no_pools.yaml @@ -2,4 +2,4 @@ overrides: ceph: create_rbd_pool: false pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force diff --git a/qa/suites/rados/singleton-nomsgr/all/admin_socket_output.yaml b/qa/suites/rados/singleton-nomsgr/all/admin_socket_output.yaml index 04c40197a85..a9f8316172d 100644 --- a/qa/suites/rados/singleton-nomsgr/all/admin_socket_output.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/admin_socket_output.yaml @@ -19,7 +19,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force - rgw: - client.0 - exec: diff --git a/qa/suites/rados/singleton-nomsgr/all/balancer.yaml b/qa/suites/rados/singleton-nomsgr/all/balancer.yaml index d4c6e3ca5da..eb30c663a72 100644 --- a/qa/suites/rados/singleton-nomsgr/all/balancer.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/balancer.yaml @@ -4,7 +4,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force fs: xfs log-ignorelist: - \(PG_AVAILABILITY\) diff --git a/qa/suites/rados/singleton-nomsgr/all/cache-fs-trunc.yaml b/qa/suites/rados/singleton-nomsgr/all/cache-fs-trunc.yaml index f998c51c9ec..d7699d042c1 100644 --- a/qa/suites/rados/singleton-nomsgr/all/cache-fs-trunc.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/cache-fs-trunc.yaml @@ -8,7 +8,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - overall HEALTH_ - \(CACHE_POOL_NO_HIT_SET\) diff --git a/qa/suites/rados/singleton-nomsgr/all/ceph-kvstore-tool.yaml b/qa/suites/rados/singleton-nomsgr/all/ceph-kvstore-tool.yaml index e116b5ae0e8..a3085ad3d9c 100644 --- a/qa/suites/rados/singleton-nomsgr/all/ceph-kvstore-tool.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/ceph-kvstore-tool.yaml @@ -8,7 +8,7 @@ roles: overrides: ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - but it is still running - overall HEALTH_ diff --git a/qa/suites/rados/singleton-nomsgr/all/export-after-evict.yaml b/qa/suites/rados/singleton-nomsgr/all/export-after-evict.yaml index ee800e5a72c..7785f2453e6 100644 --- a/qa/suites/rados/singleton-nomsgr/all/export-after-evict.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/export-after-evict.yaml @@ -13,7 +13,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - overall HEALTH_ - \(CACHE_POOL_NO_HIT_SET\) diff --git a/qa/suites/rados/singleton-nomsgr/all/full-tiering.yaml b/qa/suites/rados/singleton-nomsgr/all/full-tiering.yaml index 8d26cd32384..a3704069f9d 100644 --- a/qa/suites/rados/singleton-nomsgr/all/full-tiering.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/full-tiering.yaml @@ -18,7 +18,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force conf: global: osd max object name len: 460 diff --git a/qa/suites/rados/singleton-nomsgr/all/health-warnings.yaml b/qa/suites/rados/singleton-nomsgr/all/health-warnings.yaml index bc57a9cd926..7b7bf592ff2 100644 --- a/qa/suites/rados/singleton-nomsgr/all/health-warnings.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/health-warnings.yaml @@ -4,7 +4,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force conf: osd: # we may land on ext4 diff --git a/qa/suites/rados/singleton-nomsgr/all/large-omap-object-warnings.yaml b/qa/suites/rados/singleton-nomsgr/all/large-omap-object-warnings.yaml index b08ab343f81..e1e9d34ef9f 100644 --- a/qa/suites/rados/singleton-nomsgr/all/large-omap-object-warnings.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/large-omap-object-warnings.yaml @@ -7,7 +7,7 @@ roles: overrides: ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - \(OSDMAP_FLAGS\) - \(OSD_FULL\) diff --git a/qa/suites/rados/singleton-nomsgr/all/lazy_omap_stats_output.yaml b/qa/suites/rados/singleton-nomsgr/all/lazy_omap_stats_output.yaml index 7228522be05..61c2fa66333 100644 --- a/qa/suites/rados/singleton-nomsgr/all/lazy_omap_stats_output.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/lazy_omap_stats_output.yaml @@ -12,7 +12,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force - exec: client.0: - ceph_test_lazy_omap_stats diff --git a/qa/suites/rados/singleton-nomsgr/all/librados_hello_world.yaml b/qa/suites/rados/singleton-nomsgr/all/librados_hello_world.yaml index f670a0849e0..0c0a071e9af 100644 --- a/qa/suites/rados/singleton-nomsgr/all/librados_hello_world.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/librados_hello_world.yaml @@ -17,7 +17,7 @@ tasks: - libradospp-devel - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force - workunit: clients: all: diff --git a/qa/suites/rados/singleton-nomsgr/all/msgr.yaml b/qa/suites/rados/singleton-nomsgr/all/msgr.yaml index d1852ae2bd3..4eb376fcf62 100644 --- a/qa/suites/rados/singleton-nomsgr/all/msgr.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/msgr.yaml @@ -17,7 +17,7 @@ openstack: overrides: ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force conf: client: debug ms: 20 diff --git a/qa/suites/rados/singleton-nomsgr/all/multi-backfill-reject.yaml b/qa/suites/rados/singleton-nomsgr/all/multi-backfill-reject.yaml index a3ce46e6aca..8b95603d166 100644 --- a/qa/suites/rados/singleton-nomsgr/all/multi-backfill-reject.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/multi-backfill-reject.yaml @@ -16,7 +16,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - overall HEALTH_ - \(PG_ diff --git a/qa/suites/rados/singleton-nomsgr/all/osd_stale_reads.yaml b/qa/suites/rados/singleton-nomsgr/all/osd_stale_reads.yaml index 408268a0962..5beb2015f80 100644 --- a/qa/suites/rados/singleton-nomsgr/all/osd_stale_reads.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/osd_stale_reads.yaml @@ -23,7 +23,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force - exec: client.0: - ceph_test_osd_stale_read diff --git a/qa/suites/rados/singleton-nomsgr/all/pool-access.yaml b/qa/suites/rados/singleton-nomsgr/all/pool-access.yaml index 6485a687179..e79e1aaf570 100644 --- a/qa/suites/rados/singleton-nomsgr/all/pool-access.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/pool-access.yaml @@ -8,7 +8,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force - workunit: clients: all: diff --git a/qa/suites/rados/singleton-nomsgr/all/recovery-unfound-found.yaml b/qa/suites/rados/singleton-nomsgr/all/recovery-unfound-found.yaml index 9cf4eec89a8..d949a5005d3 100644 --- a/qa/suites/rados/singleton-nomsgr/all/recovery-unfound-found.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/recovery-unfound-found.yaml @@ -13,7 +13,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force fs: xfs conf: osd: diff --git a/qa/suites/rados/singleton-nomsgr/all/version-number-sanity.yaml b/qa/suites/rados/singleton-nomsgr/all/version-number-sanity.yaml index 6d48796f03a..daeeeef4eba 100644 --- a/qa/suites/rados/singleton-nomsgr/all/version-number-sanity.yaml +++ b/qa/suites/rados/singleton-nomsgr/all/version-number-sanity.yaml @@ -8,7 +8,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force - workunit: clients: all: diff --git a/qa/suites/rados/singleton/all/deduptool.yaml b/qa/suites/rados/singleton/all/deduptool.yaml index 616a0b33cad..3a34cb309a6 100644 --- a/qa/suites/rados/singleton/all/deduptool.yaml +++ b/qa/suites/rados/singleton/all/deduptool.yaml @@ -13,7 +13,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - but it is still running - had wrong client addr diff --git a/qa/suites/rados/singleton/all/divergent_priors.yaml b/qa/suites/rados/singleton/all/divergent_priors.yaml index 24b42557f98..81d68654a95 100644 --- a/qa/suites/rados/singleton/all/divergent_priors.yaml +++ b/qa/suites/rados/singleton/all/divergent_priors.yaml @@ -24,5 +24,5 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force - divergent_priors: diff --git a/qa/suites/rados/singleton/all/divergent_priors2.yaml b/qa/suites/rados/singleton/all/divergent_priors2.yaml index 6bef639582f..baac3110cf1 100644 --- a/qa/suites/rados/singleton/all/divergent_priors2.yaml +++ b/qa/suites/rados/singleton/all/divergent_priors2.yaml @@ -24,5 +24,5 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force - divergent_priors2: diff --git a/qa/suites/rados/singleton/all/dump-stuck.yaml b/qa/suites/rados/singleton/all/dump-stuck.yaml index c1d28ee8e72..eb70b70fff4 100644 --- a/qa/suites/rados/singleton/all/dump-stuck.yaml +++ b/qa/suites/rados/singleton/all/dump-stuck.yaml @@ -11,7 +11,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - but it is still running - overall HEALTH_ diff --git a/qa/suites/rados/singleton/all/ec-lost-unfound.yaml b/qa/suites/rados/singleton/all/ec-lost-unfound.yaml index 9c423c8d879..050365ff4df 100644 --- a/qa/suites/rados/singleton/all/ec-lost-unfound.yaml +++ b/qa/suites/rados/singleton/all/ec-lost-unfound.yaml @@ -16,7 +16,7 @@ tasks: - ceph: create_rbd_pool: false pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - objects unfound and apparently lost - overall HEALTH_ diff --git a/qa/suites/rados/singleton/all/lost-unfound-delete.yaml b/qa/suites/rados/singleton/all/lost-unfound-delete.yaml index bb170b5069a..e4b7b11e2e1 100644 --- a/qa/suites/rados/singleton/all/lost-unfound-delete.yaml +++ b/qa/suites/rados/singleton/all/lost-unfound-delete.yaml @@ -14,7 +14,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - objects unfound and apparently lost - overall HEALTH_ diff --git a/qa/suites/rados/singleton/all/lost-unfound.yaml b/qa/suites/rados/singleton/all/lost-unfound.yaml index fceee20c04e..280dac87b52 100644 --- a/qa/suites/rados/singleton/all/lost-unfound.yaml +++ b/qa/suites/rados/singleton/all/lost-unfound.yaml @@ -14,7 +14,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - objects unfound and apparently lost - overall HEALTH_ diff --git a/qa/suites/rados/singleton/all/max-pg-per-osd.from-mon.yaml b/qa/suites/rados/singleton/all/max-pg-per-osd.from-mon.yaml index e5999bc9b9f..7ab94589893 100644 --- a/qa/suites/rados/singleton/all/max-pg-per-osd.from-mon.yaml +++ b/qa/suites/rados/singleton/all/max-pg-per-osd.from-mon.yaml @@ -11,7 +11,7 @@ overrides: ceph: create_rbd_pool: False pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force conf: mon: osd pool default size: 2 diff --git a/qa/suites/rados/singleton/all/max-pg-per-osd.from-primary.yaml b/qa/suites/rados/singleton/all/max-pg-per-osd.from-primary.yaml index 075d6be1f7a..a51e8921f92 100644 --- a/qa/suites/rados/singleton/all/max-pg-per-osd.from-primary.yaml +++ b/qa/suites/rados/singleton/all/max-pg-per-osd.from-primary.yaml @@ -13,7 +13,7 @@ overrides: ceph: create_rbd_pool: False pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force conf: mon: osd pool default size: 2 diff --git a/qa/suites/rados/singleton/all/max-pg-per-osd.from-replica.yaml b/qa/suites/rados/singleton/all/max-pg-per-osd.from-replica.yaml index db2856484ef..e3658ef77b6 100644 --- a/qa/suites/rados/singleton/all/max-pg-per-osd.from-replica.yaml +++ b/qa/suites/rados/singleton/all/max-pg-per-osd.from-replica.yaml @@ -13,7 +13,7 @@ overrides: ceph: create_rbd_pool: False pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force conf: mon: osd pool default size: 2 diff --git a/qa/suites/rados/singleton/all/mon-auth-caps.yaml b/qa/suites/rados/singleton/all/mon-auth-caps.yaml index 8c23c0bc9dc..f7c45d43fd4 100644 --- a/qa/suites/rados/singleton/all/mon-auth-caps.yaml +++ b/qa/suites/rados/singleton/all/mon-auth-caps.yaml @@ -9,7 +9,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - overall HEALTH_ - \(AUTH_BAD_CAPS\) diff --git a/qa/suites/rados/singleton/all/mon-config-key-caps.yaml b/qa/suites/rados/singleton/all/mon-config-key-caps.yaml index f987f3c9898..f254754e270 100644 --- a/qa/suites/rados/singleton/all/mon-config-key-caps.yaml +++ b/qa/suites/rados/singleton/all/mon-config-key-caps.yaml @@ -9,7 +9,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - overall HEALTH_ - \(AUTH_BAD_CAPS\) diff --git a/qa/suites/rados/singleton/all/mon-config-keys.yaml b/qa/suites/rados/singleton/all/mon-config-keys.yaml index 7d8b920cb41..117b6d05549 100644 --- a/qa/suites/rados/singleton/all/mon-config-keys.yaml +++ b/qa/suites/rados/singleton/all/mon-config-keys.yaml @@ -15,7 +15,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force - workunit: clients: all: diff --git a/qa/suites/rados/singleton/all/mon-config.yaml b/qa/suites/rados/singleton/all/mon-config.yaml index 3627e17dfc0..15d48f2380f 100644 --- a/qa/suites/rados/singleton/all/mon-config.yaml +++ b/qa/suites/rados/singleton/all/mon-config.yaml @@ -15,7 +15,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force - workunit: clients: all: diff --git a/qa/suites/rados/singleton/all/mon-memory-target-compliance.yaml.disabled b/qa/suites/rados/singleton/all/mon-memory-target-compliance.yaml.disabled index 120e073a723..e1f79c16811 100644 --- a/qa/suites/rados/singleton/all/mon-memory-target-compliance.yaml.disabled +++ b/qa/suites/rados/singleton/all/mon-memory-target-compliance.yaml.disabled @@ -43,7 +43,7 @@ tasks: - ceph: create_rbd_pool: false pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - overall HEALTH_ - \(OSDMAP_FLAGS\) diff --git a/qa/suites/rados/singleton/all/osd-backfill.yaml b/qa/suites/rados/singleton/all/osd-backfill.yaml index bbbd9b4b357..1a24f4a2938 100644 --- a/qa/suites/rados/singleton/all/osd-backfill.yaml +++ b/qa/suites/rados/singleton/all/osd-backfill.yaml @@ -14,7 +14,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - but it is still running - overall HEALTH_ diff --git a/qa/suites/rados/singleton/all/osd-recovery-incomplete.yaml b/qa/suites/rados/singleton/all/osd-recovery-incomplete.yaml index 15a0ea34246..7ade95c9ece 100644 --- a/qa/suites/rados/singleton/all/osd-recovery-incomplete.yaml +++ b/qa/suites/rados/singleton/all/osd-recovery-incomplete.yaml @@ -15,7 +15,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - but it is still running - overall HEALTH_ diff --git a/qa/suites/rados/singleton/all/osd-recovery.yaml b/qa/suites/rados/singleton/all/osd-recovery.yaml index 75cea6a94b9..94ab85a778d 100644 --- a/qa/suites/rados/singleton/all/osd-recovery.yaml +++ b/qa/suites/rados/singleton/all/osd-recovery.yaml @@ -14,7 +14,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - but it is still running - overall HEALTH_ diff --git a/qa/suites/rados/singleton/all/peer.yaml b/qa/suites/rados/singleton/all/peer.yaml index 24fd74b82ed..99183c460f1 100644 --- a/qa/suites/rados/singleton/all/peer.yaml +++ b/qa/suites/rados/singleton/all/peer.yaml @@ -14,7 +14,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force config: global: osd pool default min size : 1 diff --git a/qa/suites/rados/singleton/all/pg-autoscaler-progress-off.yaml b/qa/suites/rados/singleton/all/pg-autoscaler-progress-off.yaml index 042c3d78e7d..90fb128f0b9 100644 --- a/qa/suites/rados/singleton/all/pg-autoscaler-progress-off.yaml +++ b/qa/suites/rados/singleton/all/pg-autoscaler-progress-off.yaml @@ -21,7 +21,7 @@ tasks: - ceph: create_rbd_pool: false pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - overall HEALTH_ - \(OSDMAP_FLAGS\) diff --git a/qa/suites/rados/singleton/all/pg-autoscaler.yaml b/qa/suites/rados/singleton/all/pg-autoscaler.yaml index abc6f7bd1ab..c7c7e68e355 100644 --- a/qa/suites/rados/singleton/all/pg-autoscaler.yaml +++ b/qa/suites/rados/singleton/all/pg-autoscaler.yaml @@ -21,7 +21,7 @@ tasks: - ceph: create_rbd_pool: false pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - overall HEALTH_ - \(OSDMAP_FLAGS\) diff --git a/qa/suites/rados/singleton/all/pg-removal-interruption.yaml b/qa/suites/rados/singleton/all/pg-removal-interruption.yaml index b3f11264fe7..2c00192f137 100644 --- a/qa/suites/rados/singleton/all/pg-removal-interruption.yaml +++ b/qa/suites/rados/singleton/all/pg-removal-interruption.yaml @@ -13,7 +13,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - but it is still running - slow request diff --git a/qa/suites/rados/singleton/all/radostool.yaml b/qa/suites/rados/singleton/all/radostool.yaml index fa3a1b0f7e3..6a3998ed26e 100644 --- a/qa/suites/rados/singleton/all/radostool.yaml +++ b/qa/suites/rados/singleton/all/radostool.yaml @@ -13,7 +13,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - but it is still running - had wrong client addr diff --git a/qa/suites/rados/singleton/all/random-eio.yaml b/qa/suites/rados/singleton/all/random-eio.yaml index 782b906d62a..258ae90edbf 100644 --- a/qa/suites/rados/singleton/all/random-eio.yaml +++ b/qa/suites/rados/singleton/all/random-eio.yaml @@ -16,7 +16,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - missing primary copy of - objects unfound and apparently lost diff --git a/qa/suites/rados/singleton/all/rebuild-mondb.yaml b/qa/suites/rados/singleton/all/rebuild-mondb.yaml index f678d08ce98..a6c0b7839a1 100644 --- a/qa/suites/rados/singleton/all/rebuild-mondb.yaml +++ b/qa/suites/rados/singleton/all/rebuild-mondb.yaml @@ -15,7 +15,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - no reply from - overall HEALTH_ diff --git a/qa/suites/rados/singleton/all/recovery-preemption.yaml b/qa/suites/rados/singleton/all/recovery-preemption.yaml index 7438f9e775c..ce51688e50a 100644 --- a/qa/suites/rados/singleton/all/recovery-preemption.yaml +++ b/qa/suites/rados/singleton/all/recovery-preemption.yaml @@ -15,7 +15,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force conf: osd: osd recovery sleep: .1 diff --git a/qa/suites/rados/singleton/all/resolve_stuck_peering.yaml b/qa/suites/rados/singleton/all/resolve_stuck_peering.yaml index 2756ebe8269..41a011bd468 100644 --- a/qa/suites/rados/singleton/all/resolve_stuck_peering.yaml +++ b/qa/suites/rados/singleton/all/resolve_stuck_peering.yaml @@ -6,7 +6,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force fs: xfs log-ignorelist: - overall HEALTH_ diff --git a/qa/suites/rados/singleton/all/test-crash.yaml b/qa/suites/rados/singleton/all/test-crash.yaml index beb83f0bb0b..deab84a5a32 100644 --- a/qa/suites/rados/singleton/all/test-crash.yaml +++ b/qa/suites/rados/singleton/all/test-crash.yaml @@ -5,7 +5,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - Reduced data availability - OSD_.*DOWN diff --git a/qa/suites/rados/singleton/all/test_envlibrados_for_rocksdb.yaml b/qa/suites/rados/singleton/all/test_envlibrados_for_rocksdb.yaml index a76f6a8f03e..fcdd2f7f9f8 100644 --- a/qa/suites/rados/singleton/all/test_envlibrados_for_rocksdb.yaml +++ b/qa/suites/rados/singleton/all/test_envlibrados_for_rocksdb.yaml @@ -12,7 +12,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - overall HEALTH_ - \(POOL_APP_NOT_ENABLED\) diff --git a/qa/suites/rados/singleton/all/thrash-backfill-full.yaml b/qa/suites/rados/singleton/all/thrash-backfill-full.yaml index 0f2924db3f8..eb1d5eb83ba 100644 --- a/qa/suites/rados/singleton/all/thrash-backfill-full.yaml +++ b/qa/suites/rados/singleton/all/thrash-backfill-full.yaml @@ -23,7 +23,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - but it is still running - missing primary copy of diff --git a/qa/suites/rados/singleton/all/thrash-eio.yaml b/qa/suites/rados/singleton/all/thrash-eio.yaml index 5d9770061d1..5ae8e69635c 100644 --- a/qa/suites/rados/singleton/all/thrash-eio.yaml +++ b/qa/suites/rados/singleton/all/thrash-eio.yaml @@ -21,7 +21,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - but it is still running - missing primary copy of diff --git a/qa/suites/rados/singleton/all/thrash_cache_writeback_proxy_none.yaml b/qa/suites/rados/singleton/all/thrash_cache_writeback_proxy_none.yaml index ab210abd777..d61ad0c421b 100644 --- a/qa/suites/rados/singleton/all/thrash_cache_writeback_proxy_none.yaml +++ b/qa/suites/rados/singleton/all/thrash_cache_writeback_proxy_none.yaml @@ -16,7 +16,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force log-ignorelist: - but it is still running - slow request diff --git a/qa/suites/rados/singleton/all/watch-notify-same-primary.yaml b/qa/suites/rados/singleton/all/watch-notify-same-primary.yaml index eeb585c88fc..1ff69c300cc 100644 --- a/qa/suites/rados/singleton/all/watch-notify-same-primary.yaml +++ b/qa/suites/rados/singleton/all/watch-notify-same-primary.yaml @@ -15,7 +15,7 @@ tasks: - install: - ceph: pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force config: global: osd pool default min size : 1 diff --git a/qa/suites/rados/thrash-erasure-code/thrashers/minsize_recovery.yaml b/qa/suites/rados/thrash-erasure-code/thrashers/minsize_recovery.yaml index 8362b6b1d5a..2e375c7aa95 100644 --- a/qa/suites/rados/thrash-erasure-code/thrashers/minsize_recovery.yaml +++ b/qa/suites/rados/thrash-erasure-code/thrashers/minsize_recovery.yaml @@ -5,7 +5,7 @@ overrides: - objects unfound and apparently lost create_rbd_pool: False pre-mgr-commands: - - sudo ceph config set mgr mgr/devicehealth/enable_monitoring false --force + - sudo ceph config set mgr mgr_pool false --force conf: osd: osd debug reject backfill probability: .3 diff --git a/src/common/options/mgr.yaml.in b/src/common/options/mgr.yaml.in index ff120736db5..6fc8cb2e1c6 100644 --- a/src/common/options/mgr.yaml.in +++ b/src/common/options/mgr.yaml.in @@ -12,6 +12,15 @@ options: - mgr flags: - no_mon_update +- name: mgr_pool + type: bool + level: dev + desc: Allow use/creation of .mgr pool. + default: true + services: + - mgr + flags: + - startup - name: mgr_stats_period type: int level: basic diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 79f5aa8e66b..610fb4eb911 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -1127,6 +1127,9 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin): assert self._db_lock.locked() if self._db is not None: return self._db + db_allowed = self.get_ceph_option("mgr_pool") + if not db_allowed: + raise MgrDBNotReady(); self._db = self.open_db() if self._db is None: raise MgrDBNotReady();