Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788991 - sys-cluster/k3s: add some basic kernel config dependency checks
Summary: sys-cluster/k3s: add some basic kernel config dependency checks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-08 21:54 UTC by Bjoern Michaelsen
Modified: 2021-05-10 05:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
minimal kernel config check for k3s (k3s-kernelconfig.diff,554 bytes, patch)
2021-05-08 21:54 UTC, Bjoern Michaelsen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bjoern Michaelsen 2021-05-08 21:54:37 UTC
Created attachment 706671 [details, diff]
minimal kernel config check for k3s

k3s depends on lots of kernel configuration and k3s/containerd arent exactly very helpful with error messages, if the kernel is missing needed features. The attached patch will provide a set of configs needed for k3s to run.
The list might be incomplete, but it is a start.

Steps to reproduce:
1. emerge k3s ebuild
2. start k3s on a kernel missing the listed config

expected behavior:
k3s runs or warns about missing kernel features.

actual behavior:
k3s fails in various ways (sometimes later: not able to set up network or starting containers) and provides error messages that do not directly hint at kernel configuration amiss.
Comment 1 Larry the Git Cow gentoo-dev 2021-05-10 05:57:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c980ee7420ff4d06d6a524d47ca13e7c7ac4fbd2

commit c980ee7420ff4d06d6a524d47ca13e7c7ac4fbd2
Author:     Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
AuthorDate: 2021-05-10 05:31:03 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-05-10 05:57:23 +0000

    sys-cluster/k3s: add some basic kernel config dependency checks
    
    k3s depends on lots of kernel configuration and k3s/containerd arent
    exactly very helpful with error messages, if the kernel is missing
    needed features. The attached patch will provide a set of configs
    needed for k3s to run.
    The list might be incomplete, but it is a start.
    
    Steps to reproduce:
    1. emerge k3s ebuild
    2. start k3s on a kernel missing the listed config
    
    expected behavior:
    k3s runs or warns about missing kernel features.
    
    actual behavior:
    k3s fails in various ways (sometimes later: not able to set up
    network or starting containers) and provides error messages
    that do not directly hint at kernel configuration amiss.
    
    Closes: https://bugs.gentoo.org/788991
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-cluster/k3s/k3s-1.19.10-r1.ebuild | 3 ++-
 sys-cluster/k3s/k3s-1.20.6.ebuild     | 3 ++-
 sys-cluster/k3s/k3s-1.21.0.ebuild     | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)
Comment 2 Zac Medico gentoo-dev 2021-05-10 05:57:54 UTC
Thank you!