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

Support selinux on Tumbleweed #10876

Open
grisu48 opened this issue Sep 11, 2024 · 3 comments
Open

Support selinux on Tumbleweed #10876

grisu48 opened this issue Sep 11, 2024 · 3 comments
Labels
area/selinux kind/enhancement An improvement to existing functionality
Milestone

Comments

@grisu48
Copy link
Contributor

grisu48 commented Sep 11, 2024

Environmental Info:
K3s Version: 1.30.4

Node(s) CPU architecture, OS, and Version: Tumbleweed 20240909, x86_64

Cluster Configuration:

Single node server

Describe the bug:

Installation via the curl -sfL https://get.k3s.io | sh - script from https://k3s.io/ fails on a current Tumbleweed installation because the recommended installation link https://rpm.rancher.io/k3s/stable/common/microos/noarch/ throws a 404 error:

tumbleweed:~ # curl -sfL https://get.k3s.io | sh - 
[INFO]  Finding release for channel stable
[INFO]  Using v1.30.4+k3s1 as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.30.4+k3s1/sha256sum-amd64.txt
[INFO]  Downloading binary https://github.com/k3s-io/k3s/releases/download/v1.30.4+k3s1/k3s
[INFO]  Verifying binary download
[INFO]  Installing k3s to /usr/local/bin/k3s
[INFO]  Finding available k3s-selinux versions
[ERROR]  Failed to find the k3s-selinux policy, please install:
    zypper install -y container-selinux
    zypper install -y https://rpm.rancher.io/k3s/stable/common/microos/noarch/

tumbleweed:~ # zypper install -y container-selinux
Loading repository data...
Reading installed packages...
'container-selinux' is already installed.
No update candidate for 'container-selinux-2.232.1-1.1.noarch'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
tumbleweed:~ # zypper install -y https://rpm.rancher.io/k3s/stable/common/microos/noarch/
Loading repository data...
Reading installed packages...
'https://rpm.rancher.io/k3s/stable/common/microos/noarch/' not found in package names. Trying capabilities.
No provider of 'https://rpm.rancher.io/k3s/stable/common/microos/noarch/' found.

Note that https://rpm.rancher.io/k3s/stable/common/microos/noarch/ throws a 404 error.

Steps To Reproduce:

tumbleweed:~ # curl -sfL https://get.k3s.io | sh - 

Expected behavior:

k3s is being installed

Actual behavior:

k3s fails to install

Additional context / logs:

@brandond
Copy link
Member

brandond commented Sep 11, 2024

The install script distro detection does not support tumbleweed. If you know what distro's packages you should be using, you could install the RPM from https://github.com/k3s-io/k3s-selinux/releases/tag/v1.5.stable.1 and then run the install script again.

@brandond
Copy link
Member

I'll leave this open to track adding tumbleweed support to the install script

@brandond brandond reopened this Sep 11, 2024
@brandond brandond added this to the Backlog milestone Sep 11, 2024
@brandond brandond added area/selinux kind/enhancement An improvement to existing functionality labels Sep 11, 2024
@grisu48
Copy link
Contributor Author

grisu48 commented Sep 12, 2024

The install script distro detection does not support tumbleweed. If you know what distro's packages you should be using, you could install the RPM from https://github.com/k3s-io/k3s-selinux/releases/tag/v1.5.stable.1 and then run the install script again.

I see. Indeed, the installation works fine on MicroOS but not on Tumbleweed. Thanks then this is indeed an enhancement, and not a bug.

@dereknola dereknola changed the title Installation fails on Tumbleweed Support selinux on on Tumbleweed Sep 12, 2024
@dereknola dereknola changed the title Support selinux on on Tumbleweed Support selinux on Tumbleweed Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/selinux kind/enhancement An improvement to existing functionality
Projects
Status: Enhancements
Status: Accepted
Development

No branches or pull requests

2 participants