summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/check_openstack_progress.sh4
-rwxr-xr-xdeploy/check_os_progress.sh7
2 files changed, 9 insertions, 2 deletions
diff --git a/deploy/check_openstack_progress.sh b/deploy/check_openstack_progress.sh
index bbd631b6..e50eb332 100755
--- a/deploy/check_openstack_progress.sh
+++ b/deploy/check_openstack_progress.sh
@@ -23,8 +23,8 @@ while true; do
tail -n 200 /var/log/daisy/kolla_$cluster_id*
exit 1
else
- progress=`daisy host-list --cluster-id $cluster_id |grep DISCOVERY_SUCCESSFUL |awk -F "|" '{print $11}'|sed s/[[:space:]]//g`
- echo " openstack in installing , progress is $progress%"
+ progress=`daisy host-list --cluster-id $cluster_id |grep DISCOVERY_SUCCESSFUL |awk -F "|" '{print $11}'|sed s/[[:space:]]//g|sed ':a;N;$ s/\n/ /g;ba'`
+ echo " openstack in installing , progress of each node is $progress%"
sleep 30
fi
done
diff --git a/deploy/check_os_progress.sh b/deploy/check_os_progress.sh
index c631a713..b7b05700 100755
--- a/deploy/check_os_progress.sh
+++ b/deploy/check_os_progress.sh
@@ -36,10 +36,17 @@ done
source /root/daisyrc_admin
cluster_id=`daisy cluster-list | awk -F "|" '{print $2}' | sed -n '4p'`
+hosts_id=`daisy host-list | awk -F "|" '{print $2}'| grep -o "[^ ]\+\( \+[^ ]\+\)*"|tail -n +2`
skip=false
if [ $deploy_env == 0 ];then
skip=true
+ for host_id in $hosts_id;
+ do
+ echo "update host $host_id ipmi user and passwd"
+ daisy host-update $host_id --ipmi-user zteroot --ipmi-passwd superuser
+ done
fi
+echo "update all hosts ipmi user and passwd ok!"
echo "run daisy install command"
daisy install $cluster_id --skip-pxe-ipmi $skip