diff options
author | Dan Radez <dradez@redhat.com> | 2016-09-13 18:19:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-09-13 18:19:07 +0000 |
commit | bb7442fbfec5918126840e2ac2694621eb839530 (patch) | |
tree | af0ef4f73dfed06482d99bde988eb4d9d442c246 /ci | |
parent | 19d23f8ebd047a22229ccfad38f7a01be5766fec (diff) | |
parent | c0932570ffd81fdd603a8961b5034916c76edc2e (diff) |
Merge "Correct time on jump host prior to launching VMs"
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/deploy.sh | 7 |
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 |