- Notifications
You must be signed in to change notification settings - Fork 137
Fix releasever to 7 for RHEL and CentOS in yum docker repository #826
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
Fix releasever to 7 for RHEL and CentOS in yum docker repository #826
Conversation
It's impossible to deduct CentOS release from the kubelet version, this logic is flawed. For now I propose to patch .repo unconditionally, once we have somehow figured out OS versioning we could return to this part. |
@kron4eg I'm not deducing the CentOS release from the kubelet version, I'm unconditionally patching the repo for docker versions that are not present in both CentOS 7 and 8 repos, that is all but 19.03.13-3. The problem is that kubernetes versions previous to 1.17 do not work with this docker version. |
d1aff12
to 718c7e4
Compare
[root@bc944ddd6770 ~]# yum install docker-ce-${DOCKER_VERSION} docker-ce-cli-${DOCKER_VERSION} Failed to set locale, defaulting to C.UTF-8 Last metadata expiration check: 0:01:02 ago on Thu Sep 24 20:00:30 2020. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: docker-ce x86_64 3:19.03.13-3.el7 docker-ce-stable 24 M docker-ce-cli x86_64 1:19.03.13-3.el7 docker-ce-stable 38 M This is with patched .repo file. Latest an greatest |
I'm not sure to understand your point, let me try to explain my logic again. At the moment Unfortunately k8s versions < 1.17 do not support docker versions more recent than 18.06, in those cases we are obliged to use centos 7 repo. |
My point is that we have everything what we need in |
When there are no downsides to always using the repo for 7, I would prefer the simpler solution. It doesn't introduce a preliminary OS versioning hack that we would have to revert later on. |
@xrstf Well using the repository for another version and doing a hack for installing docker is something I consider a downside. It's true that it is slightly more complex, but has the benefit of using the appropriate repository for all k8s versions >= 1.17 and it's already implemented. What kind of risks you foresee with this approach? |
718c7e4
to a5185c3
Compare There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
LGTM label has been added. Git tree hash: e22dbed172348a3149c8f41af1373013cffae0e6 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: irozzo-1A, xrstf 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 |
/cherry-pick release/v1.14 |
@irozzo-1A: #826 failed to apply on top of branch "release/v1.14":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…ermatic#826) * Fix releasever to 7 for RHEL and CentOS in yum docker repository * Fix e2e tests
…ory (#826) (#828) * Fix releasever to 7 for RHEL and CentOS in yum docker repository (#826) * Fix releasever to 7 for RHEL and CentOS in yum docker repository * Fix e2e tests * Disable CoreOS E2E tests on GCE and DigitalOcean (#822) * Disable CoreOS E2E tests on DigitalOcean * Disable CoreOS E2E tests on GCE * adjust the source url for the registry server (#794) Signed-off-by: Moath Qasim <moad.qassem@gmail.com> Signed-off-by: Moath Qasim <moad.qassem@gmail.com> Co-authored-by: Marko Mudrinić <mudrinic.mare@gmail.com> Co-authored-by: Moath Qasim <moad.qassem@gmail.com>
What this PR does / why we need it:
Recently docker introduced
docker-ce
repository for CentOS 8 it only contains docker version19.03.13-3
. This caused a regression when using RHEL/CentOS 8, because previously we were using CentOS 7 repo indistinctly for CentOS/RHEL 7/8 but now the docker versions we were installing are no longer available in CentOS 8 repo.As we do not have OS versioning yet the quick and dirty solution is to always use CentOS 7 repo for the docker versions that are not available on both repos.
https://download.docker.com/linux/centos/8/x86_64/stable/Packages/
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
Which issue(s) this PR fixes (optional, in
fixes #<issue number>
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Optional Release Note: