Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

fix clear containers cc-proxy #2686

Merged
merged 1 commit into from
Apr 16, 2018
Merged

fix clear containers cc-proxy #2686

merged 1 commit into from
Apr 16, 2018

Conversation

jessfraz
Copy link
Contributor

@ghost ghost assigned jessfraz Apr 14, 2018
@ghost ghost added the in progress label Apr 14, 2018
@@ -229,7 +233,7 @@ function installContainerd() {
CRI_CONTAINERD_VERSION="1.1.0-rc.0"
local download_uri="https://storage.googleapis.com/cri-containerd-release/cri-containerd-${CRI_CONTAINERD_VERSION}.linux-amd64.tar.gz"

curl -sSL "$download_uri" | tar -xz -C /
curl -sSL --retry 5 --retry-delay 10 --retry-max-time 30 "$download_uri" | tar -xz -C /
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was a fix for free :)

@@ -217,10 +217,14 @@ function installClearContainersRuntime() {
apt-get update && apt-get install --no-install-recommends -y \
cc-runtime

# Install the systemd service and socket files.
local repo_uri="https://raw.githubusercontent.com/clearcontainers/proxy/3.0.23"
curl -sSL --retry 5 --retry-delay 10 --retry-max-time 30 "${repo_uri}/cc-proxy.service.in" | sed 's#@libexecdir@#/usr/libexec#' > /etc/systemd/system/cc-proxy.service
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend doing all the curls as separate commands (curl w/ its own retry doesn't retry every possible, error, such as a corrupt/partly-finished download). We have a retrycmd_get_tarball convenience inside kubernetesprovisionsource.sh that you could use to resiliently get a "valid tarball" (see the code to understand our definition of valid tarball) to disk. Of course for the above because it's not a tarball you'll need another some other way to validate that the downloaded file is "valid".

Thanks for fixing this!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the tarball one to use retrycmd_get_tarball I think the other is ok, no?

Signed-off-by: Jess Frazelle <[email protected]>
@jessfraz
Copy link
Contributor Author

Copy link
Member

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jackfrancis jackfrancis merged commit 102e394 into Azure:master Apr 16, 2018
@ghost ghost removed the in progress label Apr 16, 2018
@jessfraz jessfraz deleted the cc-fix branch April 16, 2018 20:35
jackfrancis pushed a commit that referenced this pull request Apr 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants