From: Feng Pan Date: Mon, 19 Sep 2016 20:10:55 +0000 (-0400) Subject: Change NTP update failure to warning X-Git-Tag: danube.1.0~198^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F21509%2F1;p=apex.git Change NTP update failure to warning We don't want NTP update to fail the entire deployment, as the ntp server is hard coded in deploy.sh and the server is not always accessible. Change-Id: I044484e4f81d7580ce4d4824a4bcc4b6b8f7d0f1 Signed-off-by: Feng Pan --- diff --git a/ci/deploy.sh b/ci/deploy.sh index 0a2eec2e..ee0ea3ba 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -225,11 +225,10 @@ main() { exit 1 fi #Correct the time on the server prior to launching any VMs - ntpdate $ntp_server - if [ $? == 0 ]; then + if ntpdate $ntp_server; then hwclock --systohc - else - echo -e "${red} ERROR: ntpdate failed to update the time on the server. ${reset}" + else + echo "${blue}WARNING: ntpdate failed to update the time on the server. ${reset}" fi setup_undercloud_vm if [ "$virtual" == "TRUE" ]; then