]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/cephadm/test_cephadm: mark services unmanaged for test 34027/head
authorSage Weil <sage@redhat.com>
Wed, 18 Mar 2020 15:12:59 +0000 (10:12 -0500)
committerSage Weil <sage@redhat.com>
Wed, 18 Mar 2020 15:44:42 +0000 (10:44 -0500)
We are deploying containers manually.  Mark them unmanaged so that we
do not fight against mgr/cephadm cleaning up orphan daemons.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/cephadm/test_cephadm.sh

index a1320e030710b0467d38af47987d23c580e8a0d9..b6c6cad306cfb47f1e9f6a7ada72a69c3532351b 100755 (executable)
@@ -214,6 +214,11 @@ systemctl | grep system-ceph | grep -q .slice  # naming is escaped and annoying
 $CEPHADM shell --fsid $FSID --config $CONFIG --keyring $KEYRING -- \
       ceph -s | grep $FSID
 
+for t in mon mgr node-exporter prometheus grafana; do
+    $CEPHADM shell --fsid $FSID --config $CONFIG --keyring $KEYRING -- \
+            ceph orch apply $t --unmanaged
+done
+
 ## ls
 $CEPHADM ls | jq '.[]' | jq 'select(.name == "mon.a").fsid' \
     | grep $FSID
@@ -302,6 +307,8 @@ $CEPHADM shell --fsid $FSID --config $CONFIG --keyring $KEYRING -- \
         ceph osd pool create $nfs_rados_pool 64
 $CEPHADM shell --fsid $FSID --config $CONFIG --keyring $KEYRING -- \
         rados --pool nfs-ganesha --namespace nfs-ns create conf-nfs.a
+$CEPHADM shell --fsid $FSID --config $CONFIG --keyring $KEYRING -- \
+        ceph orch pause
 $CEPHADM deploy --name nfs.a \
       --fsid $FSID \
       --keyring $KEYRING \
@@ -309,6 +316,8 @@ $CEPHADM deploy --name nfs.a \
       --config-json ${CEPHADM_SAMPLES_DIR}/nfs.json
 cond="$SUDO ss -tlnp '( sport = :nfs )' | grep 'ganesha.nfsd'"
 is_available "nfs" "$cond" 10
+$CEPHADM shell --fsid $FSID --config $CONFIG --keyring $KEYRING -- \
+        ceph orch resume
 
 ## run
 # WRITE ME