Skip to content

Commit

Permalink
qa/suites/orch/cephadm/osds: test 'ceph cephadm osd activate'
Browse files Browse the repository at this point in the history
Make sure this command behaves when the /var/lib/ceph osd.NNN dir is
removed.

Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Dec 16, 2021
1 parent dc3d45b commit 867bf04
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions qa/suites/orch/cephadm/osds/2-ops/rmdir-reactivate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
tasks:
- cephadm.shell:
host.a:
- |
set -e
set -x
ceph orch ps
HOST=$(hostname -s)
OSD=$(ceph orch ps $HOST | grep osd | head -n 1 | awk '{print $1}')
echo "host $HOST, osd $OSD"
ceph orch daemon stop $OSD
while ceph orch ps | grep $OSD | grep running ; do sleep 5 ; done
ceph auth export $OSD > k
ceph orch daemon rm $OSD --force
ceph orch ps --refresh
while ceph orch ps | grep $OSD ; do sleep 5 ; done
ceph auth add $OSD -i k
ceph cephadm osd activate $HOST
while ! ceph orch ps | grep $OSD | grep running ; do sleep 5 ; done
- cephadm.healthy:

0 comments on commit 867bf04

Please sign in to comment.