Fix for authorization problem in nova

After restore snapshots ntp deamon doesn't work properly. We need to
restart it on all nodes.

Change-Id: I916a345c33e6462f1267115c970482b891e0baa1
This commit is contained in:
Artur Zarzycki 2016-11-08 13:23:30 +01:00
parent 38b0871fad
commit 756217f307
1 changed files with 4 additions and 3 deletions

View File

@ -80,9 +80,10 @@ ssh-keygen -R "${ADMIN_IP}"
# Store info about Jenkins job on VM:
echo "${BUILD_TAG}" | ${SSH_COMMAND} "tee -a JENKINS_INFO.TXT"
# FIXME(mzawadzki): adjust time brutally before proper solution with ntp is
# merged to packer scripts in fuel-ccp-installer:
${SSH_COMMAND} "sudo /sbin/hwclock --hctosys"
# After restore snapshot ntp service doesn't work and need restart on all nodes
${SSH_COMMAND} "sudo service ntp restart"
${SSH_COMMAND} "ssh -o StrictHostKeyChecking=no node2 sudo service ntp restart"
${SSH_COMMAND} "ssh -o StrictHostKeyChecking=no node3 sudo service ntp restart"
# Prepare env on "admin" VM:
if [ ${COMPONENT} == "full" ];then