Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 889732 - sys-cluster/kubeadm appears to require app-containers/cri-tools to operate
Summary: sys-cluster/kubeadm appears to require app-containers/cri-tools to operate
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on: 891507
Blocks:
  Show dependency tree
 
Reported: 2023-01-04 18:17 UTC by Alex Orange
Modified: 2023-01-20 21:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Orange 2023-01-04 18:17:14 UTC
Running kubeadm-1.22.15 (yes, an old version I know, but this represents the point that k8s moved to cri over docker) requires crictl in order to upgrade a cluster. I assume that it also requires crictl in order to init a cluster.


Failing (without cri-tools):
[upgrade/config] Making sure the configuration is correct:
W0104 10:43:30.425936    8623 common.go:95] WARNING: Usage of the --config flag with kubeadm config types for reconfiguring the cluster during upgrade is not recommended!
[config] WARNING: Ignored YAML document with GroupVersionKind kubeadm.k8s.io/v1beta2, Kind=ClusterStatus
[preflight] Running pre-flight checks.
[upgrade] Running cluster health checks
[upgrade/version] You have chosen to change the cluster version to "v1.22.15"
[upgrade/versions] Cluster version: v1.21.1
[upgrade/versions] kubeadm version: v1.22.15
[upgrade/confirm] Are you sure you want to proceed with the upgrade? [y/N]: y
[upgrade/prepull] Pulling images required for setting up a Kubernetes cluster
[upgrade/prepull] This might take a minute or two, depending on the speed of your internet connection
[upgrade/prepull] You can also perform this action in beforehand using 'kubeadm config images pull'
crictl is required for container runtime: exec: "crictl": executable file not found in $PATH
To see the stack trace of this error execute with --v=5 or higher



Having installed app-containers/cri-tools I get:
kubeadm upgrade apply v1.22.15 --config=clusterconfig.yaml 
[upgrade/config] Making sure the configuration is correct:
W0104 11:09:13.086436   26087 common.go:95] WARNING: Usage of the --config flag with kubeadm config types for reconfiguring the cluster during upgrade is not recommended!
[config] WARNING: Ignored YAML document with GroupVersionKind kubeadm.k8s.io/v1beta2, Kind=ClusterStatus
[preflight] Running pre-flight checks.
[upgrade] Running cluster health checks
[upgrade/version] You have chosen to change the cluster version to "v1.22.15"
[upgrade/versions] Cluster version: v1.21.1
[upgrade/versions] kubeadm version: v1.22.15
[upgrade/confirm] Are you sure you want to proceed with the upgrade? [y/N]: y
[upgrade/prepull] Pulling images required for setting up a Kubernetes cluster
[upgrade/prepull] This might take a minute or two, depending on the speed of your internet connection
[upgrade/prepull] You can also perform this action in beforehand using 'kubeadm config images pull'
<long delay>
[upgrade/apply] Upgrading your Static Pod-hosted control plane to version "v1.22.15"...



Suggest adding an RDEPEND of "app-containers/cri-tools".
Comment 1 Larry the Git Cow gentoo-dev 2023-01-20 21:05:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7621ffe2a3cf3f5123c7d213f81e0c8f91b4ef89

commit 7621ffe2a3cf3f5123c7d213f81e0c8f91b4ef89
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2023-01-20 21:00:46 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2023-01-20 21:00:46 +0000

    sys-cluster/kubeadm: add 1.26.1
    
    Bug: https://bugs.gentoo.org/889732
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 sys-cluster/kubeadm/Manifest              |  1 +
 sys-cluster/kubeadm/kubeadm-1.26.1.ebuild | 35 +++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b518cb5c739a052dc9fbdc58c3e59f6f0f4bf42f

commit b518cb5c739a052dc9fbdc58c3e59f6f0f4bf42f
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2023-01-20 21:00:43 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2023-01-20 21:00:43 +0000

    sys-cluster/kubeadm: add 1.25.6
    
    Bug: https://bugs.gentoo.org/889732
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 sys-cluster/kubeadm/Manifest              |  1 +
 sys-cluster/kubeadm/kubeadm-1.25.6.ebuild | 35 +++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4df5fd73c36c224172e60b999958b378b4b7de28

commit 4df5fd73c36c224172e60b999958b378b4b7de28
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2023-01-20 21:00:39 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2023-01-20 21:00:39 +0000

    sys-cluster/kubeadm: add 1.24.10
    
    Bug: https://bugs.gentoo.org/889732
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 sys-cluster/kubeadm/Manifest               |  1 +
 sys-cluster/kubeadm/kubeadm-1.24.10.ebuild | 35 ++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7beb297ac769c714f2edbe6111eec1471702fefd

commit 7beb297ac769c714f2edbe6111eec1471702fefd
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2023-01-20 21:00:36 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2023-01-20 21:00:36 +0000

    sys-cluster/kubeadm: add 1.23.16
    
    Bug: https://bugs.gentoo.org/889732
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 sys-cluster/kubeadm/Manifest               |  1 +
 sys-cluster/kubeadm/kubeadm-1.23.16.ebuild | 35 ++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)