]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
stop.sh: stop osd before mon
authorKefu Chai <kchai@redhat.com>
Sat, 25 Jul 2020 07:45:26 +0000 (15:45 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 27 Jul 2020 03:29:10 +0000 (11:29 +0800)
osd sends a MOSDMarkMeDown message to monitor and waits for its ack
before timeout, so if we can stop osd before stopping mon, stop.sh can
return sooner without waiting until the timeout.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/stop.sh

index 4afc7bcdbe355c93809b182113a184e2192c58d2..e736cb9f232808ad6ddd34d9f78f4e57429844de 100755 (executable)
@@ -161,7 +161,7 @@ if [ $stop_all -eq 1 ]; then
         do_killcephadm
     fi
 
-    for p in ceph-mon ceph-mds $ceph_osd ceph-mgr radosgw lt-radosgw apache2 ganesha.nfsd ; do
+    for p in $ceph_osd ceph-mon ceph-mds ceph-mgr radosgw lt-radosgw apache2 ganesha.nfsd ; do
         for try in 0 1 1 1 1 ; do
             if ! pkill -u $MYUID $p ; then
                 break