From: Sage Weil Date: Wed, 23 Oct 2019 16:34:46 +0000 (-0500) Subject: test_ceph_daemon: test unit, enter, shell X-Git-Tag: v15.1.0~1179^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d7bd029b51851dc4c834dc08540b6e06191d5961;p=ceph.git test_ceph_daemon: test unit, enter, shell Signed-off-by: Sage Weil --- diff --git a/qa/standalone/test_ceph_daemon.sh b/qa/standalone/test_ceph_daemon.sh index db624424e806..444c005b6527 100755 --- a/qa/standalone/test_ceph_daemon.sh +++ b/qa/standalone/test_ceph_daemon.sh @@ -112,10 +112,31 @@ $SUDO $CEPH_DAEMON shell --fsid $FSID --config $CONFIG --keyring $KEYRING -- \ | jq '.mgrmap.num_standbys' | grep -q 1 ## run +# WRITE ME + +## adopt +# WRITE ME + +## unit +$SUDO $CEPH_DAEMON unit --fsid $FSID --name mon.a -- is-enabled +$SUDO $CEPH_DAEMON unit --fsid $FSID --name mon.a -- is-active +expect_false $SUDO $CEPH_DAEMON unit --fsid $FSID --name mon.xyz -- is-active +$SUDO $CEPH_DAEMON unit --fsid $FSID --name mon.a -- disable +expect_false $SUDO $CEPH_DAEMON unit --fsid $FSID --name mon.a -- is-enabled +$SUDO $CEPH_DAEMON unit --fsid $FSID --name mon.a -- enable +$SUDO $CEPH_DAEMON unit --fsid $FSID --name mon.a -- is-enabled + ## shell +$SUDO $CEPH_DAEMON --image $IMAGE shell -- true +$SUDO $CEPH_DAEMON --image $IMAGE shell --fsid $FSID -- test -d /var/log/ceph + ## enter -## unit -## adopt +expect_false $SUDO $CEPH_DAEMON enter +$SUDO $CEPH_DAEMON enter --fsid $FSID --name mon.a -- test -d /var/lib/ceph/mon/ceph-a +$SUDO $CEPH_DAEMON enter --fsid $FSID --name mgr.x -- test -d /var/lib/ceph/mgr/ceph-x +$SUDO $CEPH_DAEMON enter --fsid $FSID --name mon.a -- pidof ceph-mon +expect_false $SUDO $CEPH_DAEMON enter --fsid $FSID --name mgr.x -- pidof ceph-mon +$SUDO $CEPH_DAEMON enter --fsid $FSID --name mgr.x -- pidof ceph-mgr ## ceph-volume $SUDO $CEPH_DAEMON --image $IMAGE ceph-volume --fsid $FSID -- inventory --format=json \