summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-09-19 16:10:55 -0400
committerFeng Pan <fpan@redhat.com>2016-09-21 02:40:41 +0000
commitc825ac05423d31bb26a2b6b6781e8031817ee5a2 (patch)
treeff1aac4952654e30e3dc03cb80f0976783dde270
parent5408f23f3c0e41e162890199eec1ca83ae837bf4 (diff)
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 <fpan@redhat.com> (cherry picked from commit f8b642fcbd7433957b14aaed9b16f54f981f522b)
-rwxr-xr-xci/deploy.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 764f8fcf..a041a926 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -224,11 +224,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