-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refs/pull/44228/head: qa/suites/orch/cephadm/osds: test 'ceph cephadm osd activate' mgr/cephadm/services/osd: skip found osds that already have daemons mgr/cephadm: allow activation of OSDs that have previously started Reviewed-by: Sebastian Wagner <[email protected]>
- Loading branch information
Showing
4 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters