Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
olcf
container-builder
Commits
dd0782ea
Commit
dd0782ea
authored
Jan 29, 2018
by
atj
Browse files
reboot through OpenStack client instead of ssh
parent
8970ece6
Pipeline
#11534
failed with stages
in 19 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Scripts/create-builder-image.sh
View file @
dd0782ea
...
...
@@ -56,7 +56,8 @@ while ! ssh_is_up; do
done
# 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment