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

k3s installer wants to install wrong k3s-selinux #9107

Closed
Nadyita opened this issue Jan 1, 2024 · 1 comment
Closed

k3s installer wants to install wrong k3s-selinux #9107

Nadyita opened this issue Jan 1, 2024 · 1 comment

Comments

@Nadyita
Copy link

Nadyita commented Jan 1, 2024

Environmental Info:
K3s Version: v1.28.4+k3s2

Node(s) CPU architecture, OS, and Version: Linux control0.kube.nadybot.org 6.5.11-300.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 8 22:37:57 UTC 2023 x86_64 GNU/Linux

Cluster Configuration: 3 servers, 3 agents

Describe the bug:
I'm trying to install k3s on my CoreOS machine like this:

curl -sfL https://get.k3s.io | INSTALL_K3S_SKIP_START=true K3S_DATASTORE_ENDPOINT=etcd K3S_CLUSTER_DOMAIN=kube.nadybot.org K3S_TOKEN=XXX K3S_FLANNEL_IFACE=netmaker K3S_NODE_IP=10.23.0.1 K3S_TLS_SAN=lb.kube.nadybot.org K3S_SELINUX=true sh -s - server --cluster-init

The installer adds the correct repository:

[rancher-k3s-common-stable]
name=Rancher K3s Common (stable)
baseurl=https://rpm.rancher.io/k3s/stable/common/coreos/noarch
enabled=1
gpgcheck=1
repo_gpgcheck=0
gpgkey=https://rpm.rancher.io/public.key

but something goes wrong and rpm-ostree tries to install the wrong rpm:

[INFO]  Finding release for channel stable
[INFO]  Using v1.28.4+k3s2 as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.28.4+k3s2/sha256sum-amd64.txt
[INFO]  Skipping binary downloaded, installed k3s matches hash
[INFO]  Finding available k3s-selinux versions
Checking out tree cd3ab59... done
Enabled rpm-md repositories: fedora-cisco-openh264 updates fedora rancher-k3s-common-stable rancher-k3s-common-stable updates-archive
Importing rpm-md... done
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2023-03-14T10:57:01Z solvables: 4
rpm-md repo 'updates' (cached); generated: 2024-01-01T01:34:11Z solvables: 17336
rpm-md repo 'fedora' (cached); generated: 2023-11-01T00:12:39Z solvables: 70825
rpm-md repo 'rancher-k3s-common-stable' (cached); generated: 2023-06-02T16:54:05Z solvables: 9
rpm-md repo 'rancher-k3s-common-stable' (cached); generated: 2023-06-02T16:54:05Z solvables: 9
rpm-md repo 'updates-archive' (cached); generated: 2024-01-01T01:50:43Z solvables: 20099
Resolving dependencies... done
Will download: 1 package (20.7 kB)
Downloading from 'rancher-k3s-common-stable'... done
error: Downloading from 'rancher-k3s-common-stable': Cannot download k3s-selinux-1.4-1.el8.noarch.rpm: All mirrors were tried; Last error: Status code: 404 for https://rpm.rancher.io/k3s/stable/common/coreos/noarch/k3s-selinux-1.4-1.el8.noarch.rpm (IP: 104.21.2.160)

and the correct rpm would be k3s-selinux-1.4-1.coreos.noarch.rpm of course.

Steps To Reproduce:

  • Try to install k3s with the same flags as given above on latest CoreOS

Expected behavior:
rpm-ostree would try to install the correct coreos-rpm

Actual behavior:
rpm-ostree tried to install the el8-rpm fromthe coreos-repository

Additional context / logs:
nothing

@Nadyita
Copy link
Author

Nadyita commented Jan 1, 2024

Please ignore, someone manually installed the el8 rpm on the machine and so it always tried to upgrade that one

@Nadyita Nadyita closed this as completed Jan 1, 2024
@github-project-automation github-project-automation bot moved this from New to Done Issue in K3s Development Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant