release: Upgrade to v18.4 failed, cannot install both kubelet-1.18.4-1.x86_64 and kubelet-1.18.4-0.x86_64

What happened: on the master centos-8 there is the following error message when trying to update the packages.

Problem: cannot install both kubelet-1.18.4-1.x86_64 and kubelet-1.18.4-0.x86_64
  - cannot install the best update candidate for package kubernetes-cni-0.7.5-0.x86_64
  - cannot install the best update candidate for package kubelet-1.18.3-0.x86_64

We don’t see this problem in the nodes centos-7 Likewise, we did not see this error in the master centtos-8 in the last update to v18.3.

How to reproduce it (as minimally and precisely as possible): yum update / dnf update

Environment:

  • Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:52:00Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:43:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
  • Cloud provider or hardware configuration: vmware
  • OS (e.g: cat /etc/os-release): centos-8

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 1
  • Comments: 55 (17 by maintainers)

Commits related to this issue

Most upvoted comments

I add follow config to /etc/yum.conf to exclude conflict kubelet

exclude=kubelet-1.18.4-0 kubelet-1.17.7-0 kubelet-1.16.11-0

then use dnf upgrade to upgrade kubelet 1.19.0 without problem.

I hope it can help you.

I add follow config to /etc/yum.conf to exclude conflict kubelet

exclude=kubelet-1.18.4-0 kubelet-1.17.7-0 kubelet-1.16.11-0

then use dnf upgrade to upgrade kubelet 1.19.0 without problem.

I hope it can help you.

It did help, quite a lot. Thanks for this.

What I ended up doing, was to exclude=kubelet-1.1*

I am adding this to my ansible kubernetes deployment playbooks. Sweet and short.

Thanks a ton!

As new repositories do not include Kubernetes 1.16, 1.17, or 1.18 this issue can be closed.

1.18 reach the end of life and we are not supporting this version anymore. I guess we can close this issue.

last supported version is 1.24 https://kubernetes.io/releases/

There is no support for upgrading since 1.18 to any of the supported versions https://kubernetes.io/releases/version-skew-policy/#supported-component-upgrade-order

/close