Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
74b688dc
Commit
74b688dc
authored
Jun 02, 2015
by
Filip Grzadkowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9115 from fgrzadkowski/fix_startup
Retry downloading binary tars in case of unpack failure
parents
d7f242b8
caafd282
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
configure-vm.sh
cluster/gce/configure-vm.sh
+5
-4
No files found.
cluster/gce/configure-vm.sh
View file @
74b688dc
...
...
@@ -437,8 +437,9 @@ function download-release() {
# store it when we download, and then when it's different infer that
# a push occurred (otherwise it's a simple reboot).
# In case of failure of unpacking Salt tree (the last command in the
# "until" block) retry downloading both release and Salt tars.
# In case of failure of unpacking Salt tree or checking integrity of
# binary release tar (the last command in the "until" block) retry
# downloading both release and Salt tars.
until
echo
"Downloading binary release tar (
$SERVER_BINARY_TAR_URL
)"
download-or-bust
"
$SERVER_BINARY_TAR_URL
"
...
...
@@ -446,9 +447,9 @@ function download-release() {
echo
"Downloading Salt tar (
$SALT_TAR_URL
)"
download-or-bust
"
$SALT_TAR_URL
"
echo
"Unpacking Salt tree"
echo
"Unpacking Salt tree
and checking integrity of binary release tar
"
rm
-rf
kubernetes
tar
xzf
"
${
SALT_TAR_URL
##*/
}
"
tar
xzf
"
${
SALT_TAR_URL
##*/
}
"
&&
tar
tzf
"
${
SERVER_BINARY_TAR_URL
##*/
}
"
>
/dev/null
do
sleep
15
echo
"Couldn't unpack Salt tree. Retrying..."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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