From 6383fa5b3004a606c15efd2be1b7ce5d57f05086 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 24 Sep 2017 14:05:14 -0400 Subject: [PATCH] qa/workunits/mgr/test_localpool: simple test for localpool mode Signed-off-by: Sage Weil --- qa/suites/rados/mgr/tasks/workunits.yaml | 16 ++++++++++++++++ qa/workunits/mgr/test_localpool.sh | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 qa/suites/rados/mgr/tasks/workunits.yaml create mode 100755 qa/workunits/mgr/test_localpool.sh diff --git a/qa/suites/rados/mgr/tasks/workunits.yaml b/qa/suites/rados/mgr/tasks/workunits.yaml new file mode 100644 index 00000000000..d7261f44bea --- /dev/null +++ b/qa/suites/rados/mgr/tasks/workunits.yaml @@ -0,0 +1,16 @@ +tasks: + - install: + - ceph: + # tests may leave mgrs broken, so don't try and call into them + # to invoke e.g. pg dump during teardown. + wait-for-scrub: false + log-whitelist: + - overall HEALTH_ + - \(MGR_DOWN\) + - \(PG_ + - replacing it with standby + - No standby daemons available + - workunit: + clients: + client.0: + - mgr \ No newline at end of file diff --git a/qa/workunits/mgr/test_localpool.sh b/qa/workunits/mgr/test_localpool.sh new file mode 100755 index 00000000000..c5a56a6d59e --- /dev/null +++ b/qa/workunits/mgr/test_localpool.sh @@ -0,0 +1,21 @@ +#!/bin/sh -ex + +ceph config-key set mgr/localpool/subtree host +ceph config-key set mgr/localpool/failure_domain osd +ceph mgr module enable localpool + +while ! ceph osd pool ls | grep '^by-host-' +do + sleep 5 +done + +ceph mgr module disable localpool +for p in `ceph osd pool ls | grep '^by-host-'` +do + ceph osd pool rm $p $p --yes-i-really-really-mean-it +done + +ceph config-key rm mgr/localpool/subtree +ceph config-key rm mgr/localpool/failure_domain + +echo OK -- 2.39.5