summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-06-14 20:12:29 +0800
committerzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-06-14 20:12:29 +0800
commit6a824a9090fbaea265259671dba3c8529df41e77 (patch)
treeeedbcc85c8b21bb2d8aeeb332246cdcf399d0e5e
parent35c6b0f1be38844870ad75ef5fdc08cb56d4d0e4 (diff)
Fix the "The controller is not up" problem caused by the fuel9.0 changing the online state form "True" to "1".
JIRA:QTIP-85 Change-Id: Iaa07af84954bb590801336f2ca44e621c97baeb9 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
-rwxr-xr-xutils/fetch_os_creds.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fetch_os_creds.sh b/utils/fetch_os_creds.sh
index 88e6b4a69..8f5aa0800 100755
--- a/utils/fetch_os_creds.sh
+++ b/utils/fetch_os_creds.sh
@@ -82,7 +82,7 @@ if [ "$installer_type" == "fuel" ]; then
# Check if controller is alive (online='True')
controller_ip=$(sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
- 'fuel node | grep controller | grep True | awk "{print \$10}" | tail -1') &> /dev/null
+ 'fuel node | grep controller | grep "True\| 1" | awk "{print \$10}" | tail -1') &> /dev/null
if [ -z $controller_ip ]; then
error "The controller $controller_ip is not up. Please check that the POD is correctly deployed."