summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorzhouya <zhou.ya@zte.com.cn>2018-01-08 14:57:59 +0800
committerZhijiang Hu <hu.zhijiang@zte.com.cn>2018-01-15 00:24:11 +0000
commit1591bb64f538e0a51ee2e80995d94443711edb99 (patch)
treec4d8a0871fea7f242e7c0e727ea04e492bd9e63d /deploy
parent000de110af9e38d6bfce5cc930b91b46298f23e6 (diff)
modify check openstack installation progress
Due to the add of 'role' column in host-list check openstack progress shell script has to change the num in filter line Merge after this commit been merged. https://review.openstack.org/#/c/531105/ Change-Id: If089eafeb8b30883f9310ebdc2fe912352031e7f Signed-off-by: zhouya <zhou.ya@zte.com.cn>
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/check_openstack_progress.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/deploy/check_openstack_progress.sh b/deploy/check_openstack_progress.sh
index 1aa3570a..ea7819a5 100755
--- a/deploy/check_openstack_progress.sh
+++ b/deploy/check_openstack_progress.sh
@@ -79,8 +79,8 @@ while true; do
count=$[count + 1]
# get 'Role_status' column
- openstack_install_active=`daisy host-list --cluster-id $cluster_id | awk -F "|" '{print $13}' | grep -c "active" `
- openstack_install_failed=`daisy host-list --cluster-id $cluster_id | awk -F "|" '{print $13}' | grep -c "install-failed" `
+ openstack_install_active=`daisy host-list --cluster-id $cluster_id | awk -F "|" '{print $14}' | grep -c "active" `
+ openstack_install_failed=`daisy host-list --cluster-id $cluster_id | awk -F "|" '{print $14}' | grep -c "install-failed" `
if [ $openstack_install_active -eq $hosts_num ]; then
echo "openstack installation succeded ..."
break
@@ -90,7 +90,7 @@ while true; do
exit 1
else
# get 'Role_progress' column
- progress=`daisy host-list --cluster-id $cluster_id |grep DISCOVERY_SUCCESSFUL |awk -F "|" '{print $12}'|sed s/[[:space:]]//g|sed ':a;N;$ s/\n/ /g;ba'`
+ progress=`daisy host-list --cluster-id $cluster_id |grep DISCOVERY_SUCCESSFUL |awk -F "|" '{print $13}'|sed s/[[:space:]]//g|sed ':a;N;$ s/\n/ /g;ba'`
echo " openstack in installing , progress of each node is $progress%"
sleep 30
fi