diff options
author | Alex Yang <yangyang1@zte.com.cn> | 2017-09-16 00:24:08 +0800 |
---|---|---|
committer | Alex Yang <yangyang1@zte.com.cn> | 2017-09-16 00:24:08 +0800 |
commit | 799e1323c05853e83ba01a54ac42818b4309c591 (patch) | |
tree | 44362df61597e072838813e762df4f31882d530e /ci | |
parent | 47793931c795f6b8246a6dec7704c28db3c464bf (diff) |
Use virsh reset instead of reboot
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>
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/deploy/deploy.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/deploy/deploy.sh b/ci/deploy/deploy.sh index b73c80f9..e60cdd54 100755 --- a/ci/deploy/deploy.sh +++ b/ci/deploy/deploy.sh @@ -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 |