]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/suites/orch/cephadm/with-work: add key rotation test
authorSage Weil <sage@newdream.net>
Wed, 27 Oct 2021 15:57:46 +0000 (11:57 -0400)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 12 Sep 2022 17:03:32 +0000 (17:03 +0000)
Signed-off-by: Sage Weil <sage@newdream.net>
qa/suites/orch/cephadm/with-work/tasks/rotate-keys.yaml [new file with mode: 0644]

diff --git a/qa/suites/orch/cephadm/with-work/tasks/rotate-keys.yaml b/qa/suites/orch/cephadm/with-work/tasks/rotate-keys.yaml
new file mode 100644 (file)
index 0000000..5b91c6e
--- /dev/null
@@ -0,0 +1,16 @@
+tasks:
+- cephadm.shell:
+    mon.a:
+    - |
+      set -ex
+      for f in osd.0 osd.1 osd.2 osd.3 osd.4 osd.5 osd.6 osd.7 mgr.y mgr.x
+      do
+          echo "rotating key for $f"
+          K=$(ceph auth get-key $f)
+          NK="$K"
+          ceph orch daemon rotate-key $f
+          while [ "$K" == "$NK" ]; do
+              sleep 5
+              NK=$(ceph auth get-key $f)
+          done
+      done