Commit dd0782ea authored by atj's avatar atj
Browse files

reboot through OpenStack client instead of ssh

parent 8970ece6
Pipeline #11534 failed with stages
in 19 minutes and 35 seconds
......@@ -56,7 +56,8 @@ while ! ssh_is_up; do
# Reboot to fix a strange issue with apt-get update: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
ssh -o StrictHostKeyChecking=no -i ${KEY_FILE} cades@${VM_IP} 'sudo reboot'
echo "Reboot the server to work around /var/lib/apt/lists/lock issue when using apt"
openstack server reboot --wait ${VM_UUID}
sleep 10
function ssh_is_up() {
ssh -o StrictHostKeyChecking=no -i ${KEY_FILE} cades@${VM_IP} exit &> /dev/null
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment