Use virsh reset instead of reboot 29/42229/1
authorAlex Yang <yangyang1@zte.com.cn>
Fri, 15 Sep 2017 16:24:08 +0000 (00:24 +0800)
committerAlex Yang <yangyang1@zte.com.cn>
Mon, 18 Sep 2017 09:05:46 +0000 (09:05 +0000)
Sometimes the VMs do not reboot when using "virsh reboot".
The virtual depoyment CI jobs failed recently.

Change-Id: Id8b3ef638a7ba8f584c6e4c03d11e77d2919a35b
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
(cherry picked from commit 799e1323c05853e83ba01a54ac42818b4309c591)

ci/deploy/deploy.sh

index b73c80f..e60cdd5 100755 (executable)
@@ -553,10 +553,10 @@ sleep 10
 
 if [ $IS_BARE == 0 ];then
     if [ $TARGET_HOSTS_NUM == 1 ];then
-        virsh reboot all_in_one
+        virsh reset all_in_one
     else
         for ((i=0;i<${#VM_MULTINODE[@]};i++));do
-            virsh reboot ${VM_MULTINODE[$i]}
+            virsh reset ${VM_MULTINODE[$i]}
         done
     fi
 fi