Fix ipmi info updating in OS installation 57/30157/1
authorAlex Yang <yangyang1@zte.com.cn>
Thu, 9 Mar 2017 11:51:57 +0000 (19:51 +0800)
committerAlex Yang <yangyang1@zte.com.cn>
Thu, 9 Mar 2017 11:51:57 +0000 (19:51 +0800)
1. No need for virtual deploy to update ipmi info
2. Print host details in virtual deploy

Change-Id: Ie1f16f869440191458c7f672fc3cea2393b76245
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
deploy/check_os_progress.sh

index b7b0570..3022684 100755 (executable)
@@ -40,13 +40,19 @@ hosts_id=`daisy host-list | awk -F "|" '{print $2}'| grep -o "[^ ]\+\( \+[^ ]\+\
 skip=false
 if [ $deploy_env == 0 ];then
     skip=true
+    for host_id in $hosts_id
+    do
+        echo "detail info of host $host_id:"
+        daisy host-detail $host_id
+    done
+else
     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
+        echo "update host $host_id ipmi user and passwd"
+        daisy host-update $host_id --ipmi-user zteroot --ipmi-passwd superuser
     done
+    echo "update all hosts ipmi user and passwd ok!"
 fi
-echo "update all hosts ipmi user and passwd ok!"
 
 echo "run daisy install command"
 daisy install $cluster_id --skip-pxe-ipmi $skip