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

[Release-1.25] - k3s check-config does not respect rootless mode #8486

Closed
brandond opened this issue Sep 27, 2023 · 1 comment
Closed

[Release-1.25] - k3s check-config does not respect rootless mode #8486

brandond opened this issue Sep 27, 2023 · 1 comment
Assignees
Milestone

Comments

@brandond
Copy link
Member

Backport fix for k3s check-config does not respect rootless mode

@fmoral2
Copy link
Contributor

fmoral2 commented Oct 16, 2023

Validated on Version:

-$ k3s version v1.25.14+k3s-1f3880c7 (1f3880c7)

Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"

Cluster Configuration:
1 node servers

Steps to validate the fix

  1. Install k3s supported version but dont start it
  2. Run k3s check config as non root / root / non root user
  3. As non root assets shoul be on home directory
  4. As root assets should be on /var/lib/rancher/k3s/data/./bin
  5. As non root user again should again be at home.

Validation Results:

~$ k3s -v
k3s version v1.25.14+k3s-1f3880c7 (1f3880c7)
go version go1.20.8


~$ k3s check-config

Verifying binaries in /home/ubuntu/.rancher/k3s/data/./bin:
- sha256sum: good
- links: good

System:
- /usr/sbin iptables v1.8.7 (nf_tables): ok
- swap: disabled
- routes: ok



As root :


Verifying binaries in /var/lib/rancher/k3s/data/./bin:
- sha256sum: good
- links: good

System:
- /usr/sbin iptables v1.8.7 (nf_tables): ok
- swap: disabled
- routes: ok


non root user:

$ k3s check-config

Verifying binaries in /home/ubuntu/.rancher/k3s/data/./bin:
- sha256sum: good
- links: good

System:
- /usr/sbin iptables v1.8.7 (nf_tables): ok
- swap: disabled
- routes: ok




    

@fmoral2 fmoral2 closed this as completed Oct 16, 2023
@github-project-automation github-project-automation bot moved this from New to Done Issue in K3s Development Oct 16, 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

3 participants