summaryrefslogtreecommitdiffstats
path: root/ci/deploy.sh
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2016-09-13 18:19:07 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-13 18:19:07 +0000
commitbb7442fbfec5918126840e2ac2694621eb839530 (patch)
treeaf0ef4f73dfed06482d99bde988eb4d9d442c246 /ci/deploy.sh
parent19d23f8ebd047a22229ccfad38f7a01be5766fec (diff)
parentc0932570ffd81fdd603a8961b5034916c76edc2e (diff)
Merge "Correct time on jump host prior to launching VMs"
Diffstat (limited to 'ci/deploy.sh')
-rwxr-xr-xci/deploy.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 00441975..0a2eec2e 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -224,6 +224,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