summaryrefslogtreecommitdiffstats
path: root/qa/suites/orch/cephadm/with-work/tasks/rotate-keys.yaml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--qa/suites/orch/cephadm/with-work/tasks/rotate-keys.yaml16
1 files changed, 16 insertions, 0 deletions
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
index 000000000..5b91c6ed3
--- /dev/null
+++ b/qa/suites/orch/cephadm/with-work/tasks/rotate-keys.yaml
@@ -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