diff options
author | root <zhou.ya@zte.com.cn> | 2017-07-24 15:20:29 +0800 |
---|---|---|
committer | root <zhou.ya@zte.com.cn> | 2017-07-24 15:20:41 +0800 |
commit | 7ac1730803aac27f1c9bbc2e83f158fbb77ffab6 (patch) | |
tree | 11e46d80e9560056543ead041b0dcc6566c5e600 /deploy | |
parent | 31f3c22980904fbdbe01c85be1c7d9d5f06b8c7f (diff) |
when deploy have failed print the api log
Change-Id: I6047340f7f0d2c7b6b175335bdbf836a2a8d0a9c
Signed-off-by: root <zhou.ya@zte.com.cn>
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy/check_openstack_progress.sh | 4 | ||||
-rwxr-xr-x | deploy/check_os_progress.sh | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/deploy/check_openstack_progress.sh b/deploy/check_openstack_progress.sh index 15dbcdda..7fa16524 100755 --- a/deploy/check_openstack_progress.sh +++ b/deploy/check_openstack_progress.sh @@ -52,6 +52,10 @@ while true; do break elif [ $openstack_install_failed -gt 0 ]; then echo "openstack installing have failed..." + echo "this is the daisy api log" + cat /var/log/daisy/api.log |grep -v wsgi + echo "----------------------------------------------------" + echo "this is the kolla install log" tail -n 200 /var/log/daisy/kolla_$cluster_id* exit 1 else diff --git a/deploy/check_os_progress.sh b/deploy/check_os_progress.sh index e742467c..fe452503 100755 --- a/deploy/check_os_progress.sh +++ b/deploy/check_os_progress.sh @@ -62,6 +62,8 @@ while true; do break elif [ $os_install_failed -gt 0 ]; then echo "os installing have failed..." + echo "this is the daisy api log" + cat /var/log/daisy/api.log |grep -v wsgi exit 1 else progress=`daisy host-list --cluster-id $cluster_id |grep DISCOVERY_SUCCESSFUL |awk -F "|" '{print $7}'|sed s/[[:space:]]//g|sed ':a;N;$ s/\n/ /g;ba'` |