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

kubelet not installale on SUSE #3689

Closed
simonc6372 opened this issue Jul 24, 2024 · 4 comments
Closed

kubelet not installale on SUSE #3689

simonc6372 opened this issue Jul 24, 2024 · 4 comments
Labels
area/release-eng Issues or PRs related to the Release Engineering subproject kind/bug Categorizes issue or PR as related to a bug. needs-priority sig/release Categorizes an issue or PR as relevant to SIG Release.

Comments

@simonc6372
Copy link

What happened:

The kubelet rpm at https://pkgs.k8s.io/core:/stable:/v1.30/rpm/ does not install on SUSE based linux systems due to a dependency difference between RH and SUSE .
I've included a suggested solution in the details of this issue.

Installing kubelet on openSUSE produces a dependency error

~ # zypper in kubelet
Retrieving repository 'Main Repository (NON-OSS)' metadata ..........................................................................................[done]
Building repository 'Main Repository (NON-OSS)' cache ...............................................................................................[done]
Retrieving repository 'Main Repository (OSS)' metadata ..............................................................................................[done]
Building repository 'Main Repository (OSS)' cache ...................................................................................................[done]
Retrieving repository 'openSUSE-20230803-0' metadata ................................................................................................[done]
Building repository 'openSUSE-20230803-0' cache .....................................................................................................[done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: 1: nothing provides 'conntrack' needed by the to be installed kubelet-1.30.3-150500.1.1.x86_64
 Solution 1: do not install kubelet-1.30.3-150500.1.1.x86_64
 Solution 2: break kubelet-1.30.3-150500.1.1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c/d/?] (c):

This is because SUSE splits up conntrack into conntrack-tools, and conntrackd packages, neither advertise they provide the conntrack capability to the rpm database, but conntrackd requried conntrack-tools

OpenSUSE tumbleweed:

~> rpm -q --whatprovides conntrack
no package provides conntrack

~> rpm -qa |grep conntrack
# rpm -qa |grep conntrack
libnetfilter_conntrack3-1.0.9-1.9.x86_64
conntrackd-1.4.8-2.1.x86_64
conntrack-tools-1.4.8-2.1.x86_64


~> rpm -q --whatrequires conntrackd
no package requires conntrackd
~> rpm -q --whatrequires conntrack-tools
cri-o-1.24.3-2.4.x86_64
conntrackd-1.4.8-2.1.x86_64

RHEL 9.4

~> rpm -q --whatprovides conntrack
conntrack-tools-1.4.7-2.el9.x86_64

What you expected to happen:

kubelet to install without dependency error

How to reproduce it (as minimally and precisely as possible):

  1. Install an opensuse base system
  2. add the kubernetes repo e.g.
cat <<EOF | sudo tee /etc/zypp/repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/
enabled=1
gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/repodata/repomd.xml.key
EOF
  1. install kubelet
zypper in --from kubernetes  kubelet

Anything else we need to know?:

Changing the Requires line here
from Requires: conntrack to Requires: /sbin/conntrack should resolve this, while keeping it working in RHEL.

OpenSUSE:

rpm -q --whatprovides /sbin/conntrack
conntrack-tools-1.4.8-2.1.x86_64

RHEL 9.4:

~> rpm -q --whatprovides /sbin/conntrack
conntrack-tools-1.4.7-2.el9.x86_64

Environment:

  • Cloud provider or hardware configuration:
    6HT cores * Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    32 GB ram local system

  • OS (e.g: cat /etc/os-release):

# cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20240716"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20240716"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
# CPE 2.3 format, boo#1217921
CPE_NAME="cpe:2.3:o:opensuse:tumbleweed:20240716:*:*:*:*:*:*:*"
#CPE 2.2 format
#CPE_NAME="cpe:/o:opensuse:tumbleweed:20240716"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
  • Kernel (e.g. uname -a):
~> uname -a
Linux worker1.domain 6.9.9-1-default #1 SMP PREEMPT_DYNAMIC Thu Jul 11 11:31:54 UTC 2024 (8c0f797) x86_64 x86_64 x86_64 GNU/Linux
  • Others:
 # cat /etc/zypp/repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/
enabled=1
gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/repodata/repomd.xml.key
@simonc6372 simonc6372 added area/release-eng Issues or PRs related to the Release Engineering subproject kind/bug Categorizes issue or PR as related to a bug. sig/release Categorizes an issue or PR as relevant to SIG Release. labels Jul 24, 2024
@xmudrii
Copy link
Member

xmudrii commented Aug 27, 2024

This should be fixed by #3712. The upcoming patch releases scheduled for September will have the fix implemented. If the issue persists even with the September patch releases, please let us know.
/close

@k8s-ci-robot
Copy link
Contributor

@xmudrii: Closing this issue.

In response to this:

This should be fixed by #3712. The upcoming patch releases scheduled for September will have the fix implemented. If the issue persists even with the September patch releases, please let us know.
/close

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-sigs/prow repository.

@nitinjagjivan
Copy link

We are still facing this issue.

@nitinjagjivan
Copy link

We are still facing this issue.

Working fine with v1.30.6
Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/release-eng Issues or PRs related to the Release Engineering subproject kind/bug Categorizes issue or PR as related to a bug. needs-priority sig/release Categorizes an issue or PR as relevant to SIG Release.
Projects
None yet
Development

No branches or pull requests

4 participants