diff options
Diffstat (limited to 'ci/deploy.sh')
-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 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 |