summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-09-21 02:40:17 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-21 02:40:17 +0000
commit5408f23f3c0e41e162890199eec1ca83ae837bf4 (patch)
tree73fa87b975330d1abef85532f6b9fd27df8e7f5d
parenta2d80d355b023112ab1e39145732b03f2a091ca8 (diff)
parentfca00dfa3ef9415c517ef6f2819a6b69cd1d4e5a (diff)
Merge "Correct time on jump host prior to launching VMs" into stable/colorado
-rwxr-xr-xci/deploy.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 71433683..764f8fcf 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -223,6 +223,13 @@ main() {
echo -e "${red}Dependency Validation Failed, Exiting.${reset}"
exit 1
fi
+ #Correct the time on the server prior to launching any VMs
+ ntpdate $ntp_server
+ if [ $? == 0 ]; then
+ hwclock --systohc
+ else
+ echo -e "${red} ERROR: ntpdate failed to update the time on the server. ${reset}"
+ fi
setup_undercloud_vm
if [ "$virtual" == "TRUE" ]; then
setup_virtual_baremetal $VM_CPUS $VM_RAM