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

https://rpm.rancher.io/k3s/... responds with 404 #7607

Closed
HouzuoGuo opened this issue May 25, 2023 · 18 comments
Closed

https://rpm.rancher.io/k3s/... responds with 404 #7607

HouzuoGuo opened this issue May 25, 2023 · 18 comments
Assignees

Comments

@HouzuoGuo
Copy link

Environmental Info:
K3s Version: I wish to install the latest stable version.

Node(s) CPU architecture, OS, and Version:

Linux ora-arm-2-202302 5.15.0-101.103.2.1.el9uek.aarch64 #2 SMP Mon May 1 19:45:54 PDT 2023 aarch64 aarch64 aarch64 GNU/Linux

The OS is hosted on a free-tier oracle ARM VM.

Cluster Configuration: Nothing, I'm just running the installer.

Steps To Reproduce:

[root@ora-arm-2-202302 ~]# curl -sfL https://get.k3s.io | sh -
[INFO]  Finding release for channel stable
[INFO]  Using v1.26.4+k3s1 as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.26.4+k3s1/sha256sum-arm64.txt
[INFO]  Skipping binary downloaded, installed k3s matches hash
[INFO]  Finding available k3s-selinux versions
[WARN]  Failed to get available versions of k3s-selinux..defaulting to k3s-selinux-1.2-2.el9.noarch.rpm
Rancher K3s Common (stable)                                                                                                                                                                415  B/s | 388  B     00:00
Errors during downloading metadata for repository 'rancher-k3s-common-stable':
  - Status code: 404 for https://rpm.rancher.io/k3s/stable/common/centos/9/noarch/repodata/repomd.xml (IP: 104.21.2.160)
Error: Failed to download metadata for repo 'rancher-k3s-common-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Additional context / logs:

Apparently everything under the path https://rpm.rancher.io/k3s/... is responding with HTTP 404.

@brandond
Copy link
Member

Use: curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=testing sh -

The el9 rpms are in a transitional state at the moment due to distros releasing an incompatible version container-selinux.

@brandond brandond moved this from New to In Triage in K3s Development May 25, 2023
@shivangbhar
Copy link

curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=testing sh -

This works for me. Thankyou @brandond

@gaifo
Copy link

gaifo commented May 25, 2023

I have same issue for fedora 38 to install k3s selinux.

@galal-hussein
Copy link
Contributor

the issue should be fixed now by this PR #7608

@francoposa
Copy link

francoposa commented Jun 1, 2023

Not working on Fedora 38 that I can tell unless I misunderstood the solutions here

 os      Fedora Linux 38 (Workstation Edition)
 host    21D4000KUS ThinkPad Z16 Gen 1
 kernel  6.3.4-201.fc38.x86_64
 uptime  2h 1m
% curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=testing INSTALL_K3S_SKIP_SELINUX_RPM=true] sh -
[INFO]  Finding release for channel testing
[INFO]  Using v1.27.2-rc3+k3s1 as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.27.2-rc3+k3s1/sha256sum-amd64.txt
[INFO]  Skipping binary downloaded, installed k3s matches hash
[INFO]  Finding available k3s-selinux versions
Rancher K3s Common (testing)                                                                            15 kB/s | 2.9 kB     00:00    
Error: 
 Problem: conflicting requests
  - nothing provides container-selinux >= 3:2.167.0-1 needed by k3s-selinux-1.3-7.el9.noarch from rancher-k3s-common-testing
  - nothing provides container-selinux >= 3:2.167.0-1 needed by k3s-selinux-1.3-8.el9.noarch from rancher-k3s-common-testing
  - nothing provides container-selinux >= 3:2.191.0-1 needed by k3s-selinux-1.3-9.el9.noarch from rancher-k3s-common-testing
  - nothing provides container-selinux >= 3:2.191.0-1 needed by k3s-selinux-1.3-10.el9.noarch from rancher-k3s-common-testing
(try to add '--skip-broken' to skip uninstallable packages)

without the skip RPM:

% curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=testing sh -                                   
[INFO]  Finding release for channel testing
[INFO]  Using v1.27.2-rc3+k3s1 as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.27.2-rc3+k3s1/sha256sum-amd64.txt
[INFO]  Skipping binary downloaded, installed k3s matches hash
[INFO]  Finding available k3s-selinux versions
Rancher K3s Common (testing)                                                                            15 kB/s | 2.9 kB     00:00    
Error: 
 Problem: conflicting requests
  - nothing provides container-selinux >= 3:2.167.0-1 needed by k3s-selinux-1.3-7.el9.noarch from rancher-k3s-common-testing
  - nothing provides container-selinux >= 3:2.167.0-1 needed by k3s-selinux-1.3-8.el9.noarch from rancher-k3s-common-testing
  - nothing provides container-selinux >= 3:2.191.0-1 needed by k3s-selinux-1.3-9.el9.noarch from rancher-k3s-common-testing
  - nothing provides container-selinux >= 3:2.191.0-1 needed by k3s-selinux-1.3-10.el9.noarch from rancher-k3s-common-testing
(try to add '--skip-broken' to skip uninstallable packages)

@brandond
Copy link
Member

brandond commented Jun 1, 2023

@francoposa only Fedora 38 and newer use EL9 packages, which require container-selinux >= 3:2.191.0-1. What versions of container-selinux do you see as available on your host?

@francoposa
Copy link

@brandond

dnf --releasever=38 --showduplicates list container-selinux

Installed Packages
container-selinux.noarch                                           2:2.216.0-1.fc38                                            @updates
Available Packages
container-selinux.noarch                                           2:2.209.0-1.fc38                                            fedora  
container-selinux.noarch                                           2:2.216.0-1.fc38                                            updates

@brandond
Copy link
Member

brandond commented Jun 1, 2023

why is the package epoch 2 instead of 3 on fedora? It is 3 on all the EL distros. I don't recall this previously being a problem.

@francoposa
Copy link

I am not sure but all repos are fully updated, that's what's available

@brandond
Copy link
Member

brandond commented Jun 1, 2023

We're not planning on adding separate package channels for the various Fedora releases; you're probably best off just installing the container-selinux and k3s-selinux packages manually for the time being.

@francoposa
Copy link

Are there any working instructions for installing the packages separately? Nothing I have found in docs or issues yet has worked.

I am hesitant to stick with k3s if it is treating support for one of the largest desktop distros as a second-class citizen. Minikube and kind both work great without any extra steps.

@brandond
Copy link
Member

brandond commented Jun 1, 2023

Are there any working instructions for installing the packages separately? Nothing I have found in docs or issues yet has worked.

  1. install container-selinux from dnf
  2. install the EL8 k3s-selinux RPM from https://github.com/k3s-io/k3s-selinux/releases/tag/v1.3.stable.1

I am hesitant to stick with k3s if it is treating support for one of the largest desktop distros as a second-class citizen. Minikube and kind both work great without any extra steps.

They don't support selinux, as far as I know. You can always just skip installing the k3s-selinux package and run without it enabled in the configuration, for parity with minikube and kind. selinux isn't mandatory, we just try to be nice and install it for you if it is enabled on the host.

You could also try rancher desktop, which embeds k3s and is more designed around the desktop use case. It also doesn't support selinux though.

@brandond
Copy link
Member

brandond commented Jun 1, 2023

It looks like FC38 should use EL8 packages, not EL9. There was some unresolved discussion about this at #7443 (comment) but since we don't test on Fedora (support is best-effort) we didn't get it resolved before merging the install script change.

@francoposa
Copy link

francoposa commented Jun 1, 2023

install the EL8 k3s-selinux RPM from https://github.com/k3s-io/k3s-selinux/releases/tag/v1.3.stable.1

it's not available

% dnf --releasever=38 --showduplicates list k3s-selinux      
Rancher K3s Common (stable)                                                                             11 kB/s | 2.9 kB     00:00    
created by dnf config-manager from https://rpm.rancher.io/                                             2.9 kB/s | 1.5 kB     00:00    
Available Packages
k3s-selinux.noarch                                       0.1.1-rc1.el7                                        rpm.rancher.io_          
k3s-selinux.noarch                                       0.1.1-rc2.el7                                        rpm.rancher.io_          
k3s-selinux.noarch                                       1.3-1.el9                                            rancher-k3s-common-stable

@francoposa
Copy link

You can always just skip installing the k3s-selinux package

I have not found working instructions for installing with skipping selinux either

@brandond
Copy link
Member

brandond commented Jun 1, 2023

install the EL8 k3s-selinux RPM from https://github.com/k3s-io/k3s-selinux/releases/tag/v1.3.stable.1

it's not available

You have to click the link, and find the EL8 RPM in the artifact list.... either that or update your repo file to point at the EL8 repo instead of EL9?

I have not found working instructions for installing with skipping selinux either

k3s/install.sh

Lines 83 to 84 in 7c0a768

# - INSTALL_K3S_SKIP_SELINUX_RPM
# If set to true will skip automatic installation of the k3s RPM.

You had a typo in your command that you showed above:

% curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=testing INSTALL_K3S_SKIP_SELINUX_RPM=true] sh -

true is not the same as true].

@francoposa
Copy link

It finally works by combining the two flags for skipping and turning SELinux install issues to warning level:

% curl -sfL https://get.k3s.io | INSTALL_K3S_SKIP_SELINUX_RPM=true INSTALL_K3S_SELINUX_WARN=true sh -

@brandond
Copy link
Member

brandond commented Jun 1, 2023

the install script should now offer EL8 (container-selinux package epoch 2) RPMs for FC37/38/39 (rawhide).

@brandond brandond closed this as completed Jun 1, 2023
@github-project-automation github-project-automation bot moved this from In Triage to Done Issue in K3s Development Jun 1, 2023
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

6 participants