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
8970ece6
Commit
8970ece6
authored
Jan 28, 2018
by
AdamSimpson
Browse files
try to get around weird locking issue when using apt-get on new VM
parent
b9e16db5
Pipeline
#11532
failed with stages
in 121 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Scripts/create-builder-image.sh
View file @
8970ece6
...
...
@@ -55,6 +55,16 @@ while ! ssh_is_up; do
sleep
1
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'
sleep
10
function
ssh_is_up
()
{
ssh
-o
StrictHostKeyChecking
=
no
-i
${
KEY_FILE
}
cades@
${
VM_IP
}
exit
&> /dev/null
}
while
!
ssh_is_up
;
do
sleep
1
done
echo
"Fixing ORNL TCP timeout issue for current session"
ssh
-o
StrictHostKeyChecking
=
no
-i
${
KEY_FILE
}
cades@
${
VM_IP
}
'sudo bash -s'
<
${
SCRIPT_DIR
}
/disable-TCP-timestamps.sh
...
...
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