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

failed to detect selinux: read /proc/thread-self/attr/current: invalid argument #2689

Closed
kaiehrhardt opened this issue Jul 2, 2024 · 9 comments · Fixed by #2695
Closed
Assignees
Labels
bug Something isn't working triage Add this label to issues that should be triaged and prioretized in the next planning call

Comments

@kaiehrhardt
Copy link
Contributor

Kairos version:

NAME="openSUSE Leap"
VERSION="15.6"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.6"
PRETTY_NAME="openSUSE Leap 15.6"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.6"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"
KAIROS_IMAGE_LABEL="leap-15.6-standard-arm64-rpi4-v3.1.0-rc1-k3sv1.30.1-k3s1"
KAIROS_FLAVOR_RELEASE="leap-15.6"
KAIROS_RELEASE="v3.1.0-rc1"
KAIROS_SOFTWARE_VERSION="v1.30.1+k3s1"
KAIROS_MODEL="rpi4"
KAIROS_ID="kairos"
KAIROS_VERSION="v3.1.0-rc1-v1.30.1-k3s1"
KAIROS_ARTIFACT="kairos-opensuse-leap-15.6-standard-arm64-rpi4-v3.1.0-rc1-k3sv1.30.1+k3s1"
KAIROS_FLAVOR="opensuse"
KAIROS_GITHUB_REPO="kairos-io/kairos"
KAIROS_SOFTWARE_VERSION_PREFIX="k3s"
KAIROS_FAMILY="opensuse"
KAIROS_VARIANT="standard"
KAIROS_TARGETARCH="arm64"
KAIROS_HOME_URL="https://github.com/kairos-io/kairos"
KAIROS_IMAGE_REPO="quay.io/kairos/opensuse:leap-15.6-standard-arm64-rpi4-v3.1.0-rc1-k3sv1.30.1-k3s1"
KAIROS_REGISTRY_AND_ORG="quay.io/kairos"
KAIROS_BUG_REPORT_URL="https://github.com/kairos-io/kairos/issues"
KAIROS_NAME="kairos-standard-opensuse-leap-15.6"
KAIROS_ID_LIKE="kairos-standard-opensuse-leap-15.6"
KAIROS_VERSION_ID="v3.1.0-rc1-v1.30.1-k3s1"
KAIROS_PRETTY_NAME="kairos-standard-opensuse-leap-15.6 v3.1.0-rc1-v1.30.1-k3s1

CPU architecture, OS, and Version:

Linux node-server-56d1 6.4.0-150600.23.7-default #1 SMP PREEMPT_DYNAMIC Fri Jun 14 14:33:11 UTC 2024 (33f31da) aarch64 aarch64 aarch64 GNU/Linux

Describe the bug

journalctl -xefu k3s

Jun 28 23:48:46 node-server-56d1 k3s[5691]: time="2024-06-28T23:48:46Z" level=fatal msg="failed to detect selinux: read /proc/thread-self/attr/current: invalid argument"
Jun 28 23:48:46 node-server-56d1 systemd[1]: k3s.service: Main process exited, code=exited, status=1/FAILURE

After tmp-fixing #2682 i ran into this error.

Based on #2682 (comment) moved to this issue.

@kaiehrhardt kaiehrhardt added bug Something isn't working triage Add this label to issues that should be triaged and prioretized in the next planning call unconfirmed labels Jul 2, 2024
@Itxaka Itxaka removed the unconfirmed label Jul 3, 2024
@Itxaka
Copy link
Member

Itxaka commented Jul 3, 2024

Can confirm!

@Itxaka
Copy link
Member

Itxaka commented Jul 3, 2024

Seems to be selinnux related, probably its missing the k3s-selinux packages or we should not enable selinux for rpi directly.

workaround: Add selinux=0 to the grub cmdline to disable selinux.
more permanent workaround: grub2-editenv /oem/grubenv set extra_cmdline=selinux=0 to make it permanent on boot

@Itxaka
Copy link
Member

Itxaka commented Jul 3, 2024

This affects amd64 opensuse 15.6 as well.

@Itxaka
Copy link
Member

Itxaka commented Jul 3, 2024

kairos-io/packages#938 for disabling selinux in leap for now until we can port the k3s-selinux policies to it

@Itxaka
Copy link
Member

Itxaka commented Jul 3, 2024

should get in for 3.1.x final release :D

@Itxaka Itxaka moved this to Under review 🔍 in 🧙Issue tracking board Jul 3, 2024
@Itxaka Itxaka self-assigned this Jul 3, 2024
@kaiehrhardt
Copy link
Contributor Author

Could you add this to a release candidate, so i can test it?

@Itxaka
Copy link
Member

Itxaka commented Jul 4, 2024

makes sense to me, let me get the updated framework in there and cut an rc2 which should fix both issues, the expansion and the selinux!

@github-project-automation github-project-automation bot moved this from Under review 🔍 to Done ✅ in 🧙Issue tracking board Jul 4, 2024
@Itxaka
Copy link
Member

Itxaka commented Jul 4, 2024

Could you add this to a release candidate, so i can test it?

@kaiehrhardt https://github.com/kairos-io/kairos/releases/tag/v3.1.0-rc2 is ongoing, it will take a couple of hours to fully build all artifacts, but should contain both fixes for rpi

@kaiehrhardt
Copy link
Contributor Author

@Itxaka Thank you so much <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Add this label to issues that should be triaged and prioretized in the next planning call
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants