Skip to content

Commit

Permalink
qa/suites/orch/cephadm/with-work: add key rotation test
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas authored and rzarzynski committed Sep 12, 2022
1 parent 4916fd2 commit 48f8c8a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions qa/suites/orch/cephadm/with-work/tasks/rotate-keys.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 48f8c8a

Please sign in to comment.