Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use raw tarfile for AmazonLinux2 + Containerd 1.2.10 #9032

Merged
merged 1 commit into from
May 1, 2020

Conversation

justinsb
Copy link
Member

The rpm containerd 1.2.10 package depends on containerd-selinux, which
isn't available on amazonlinux2. We can't just skip it, because we
can't install the package without its dependencies.

Instead, install from a binary package.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 30, 2020
@justinsb
Copy link
Member Author

Should fix e.g. https://k8s-testgrid.appspot.com/google-aws#kops-grid-flannel-amzn2-k16 . I think k16 && amzn2 will always fail right now.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: justinsb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added area/nodeup approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 30, 2020
@justinsb
Copy link
Member Author

cc @hakman

Copy link
Member

@hakman hakman left a comment

Choose a reason for hiding this comment

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

Interesting way to fix support for 1.16 and 1.17.
I think it needs a few tweaks, but it should work. The proposed changes should also fix the tests.

nodeup/pkg/model/containerd.go Show resolved Hide resolved
nodeup/pkg/model/docker.go Show resolved Hide resolved
nodeup/pkg/model/docker.go Show resolved Hide resolved
nodeup/pkg/model/docker.go Show resolved Hide resolved
@@ -439,11 +439,12 @@ var dockerVersions = []packageVersion{
},
},

// 18.09.9 - CentOS / Rhel7
// 18.09.9 - CentOS7 / Rhel7
// (relies on container-selinux, so not suitable for amazonlinux2)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this will help much in the future.

Suggested change
// (relies on container-selinux, so not suitable for amazonlinux2)

Copy link
Member Author

Choose a reason for hiding this comment

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

Because 18.09 goes away, or because container-selinux will be supported on amazonlinux2?

If it's the confusing phrasing, re-reading, I definitely agree... perhaps "(we can't use this package on amazonlinux2, because it relies on container-selinux)"

Copy link
Member

Choose a reason for hiding this comment

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

With this fix we create a separate section for Amazon Linux 2. I think it is enough. Maybe add the comment to the Amazon Linux 2 section?
Starting 1.18, we use only the static package and there is no need for extra explanations.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah gotcha. I'll add the comment there!

Copy link
Member

Choose a reason for hiding this comment

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

Great. Thanks!

@justinsb
Copy link
Member Author

justinsb commented May 1, 2020

/wip

The rpm containerd 1.2.10 package depends on container-selinux, which
isn't available on amazonlinux2.  We can't just skip it, because we
can't install the package without its dependencies.

Instead, install from a binary package (tar.gz).

We do the same for dockker 18.09.9 and 19.03.4, as these would
otherwise depend on containerd 1.2.10.

Co-authored-by: Ciprian Hacman <ciprianhacman@gmail.com>
@hakman
Copy link
Member

hakman commented May 1, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 1, 2020
@k8s-ci-robot k8s-ci-robot merged commit 65eda42 into kubernetes:master May 1, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/nodeup cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants