Before creating an issue, make sure you've checked the following:
[X] You are running the latest released version of k0s
[X] Make sure you've searched for existing issues, both open and closed
[X] Make sure you've searched for PRs too, a fix might've been merged already
[X] You're looking at docs for the released version, "main" branch docs are usually ahead of released versions.
Platform
No response
Version
v1.29.5+k0s.0
Sysinfo
`k0s sysinfo`
Machine ID: "8e7e0fcbc82ee318fa1847250e5f843b994314ff9cca59cbb568b251e9fe2e4e" (from machine) (pass)
Total memory: 15.6 GiB (pass)
Disk space available for /var/lib/k0s: 21.6 GiB (pass)
Name resolution: localhost: [::1 127.0.0.1] (pass)
Operating system: Linux (pass)
Linux kernel release: 6.5.0-1021-azure (pass)
Max. file descriptors per process: current: 1048576 / max: 1048576 (pass)
AppArmor: active (pass)
Executable in PATH: modprobe: exec: "modprobe": executable file not found in $PATH (warning)
Executable in PATH: mount: /usr/bin/mount (pass)
Executable in PATH: umount: /usr/bin/umount (pass)
/proc file system: mounted (0x9fa0) (pass)
Control Groups: version 2 (pass)
cgroup controller "cpu": available (is a listed root controller) (pass)
cgroup controller "cpuacct": available (via cpu in version 2) (pass)
cgroup controller "cpuset": available (is a listed root controller) (pass)
cgroup controller "memory": available (is a listed root controller) (pass)
cgroup controller "devices": available (device filters attachable) (pass)
cgroup controller "freezer": available (cgroup.freeze exists) (pass)
cgroup controller "pids": available (is a listed root controller) (pass)
cgroup controller "hugetlb": available (is a listed root controller) (pass)
cgroup controller "blkio": available (via io in version 2) (pass)
CONFIG_CGROUPS: Control Group support: no kernel config found (warning)
CONFIG_NAMESPACES: Namespaces support: no kernel config found (warning)
CONFIG_NET: Networking support: no kernel config found (warning)
CONFIG_EXT4_FS: The Extended 4 (ext4) filesystem: no kernel config found (warning)
CONFIG_PROC_FS: /proc file system support: no kernel config found (warning)
What happened?
startSubControllerRoutine calls AddToScheme but this should never happen in concurrent code.
Before creating an issue, make sure you've checked the following:
Platform
No response
Version
v1.29.5+k0s.0
Sysinfo
`k0s sysinfo`
What happened?
startSubControllerRoutine calls AddToScheme but this should never happen in concurrent code.
https://github.com/k0sproject/k0s/blob/v1.29.5%2Bk0s.0/pkg/autopilot/controller/root_controller.go#L243-L245 https://github.com/k0sproject/k0s/blob/v1.29.5%2Bk0s.0/pkg/autopilot/controller/root_controller.go#L163
Panic is in this goroutine:
https://github.com/k0sproject/k0s/blob/v1.29.5%2Bk0s.0/pkg/leaderelection/lease_pool.go#L225-L227
I'm not running the latest but I dont think this code has changed since.
Similar issues in other notable projects: https://github.com/helm/helm/issues/6566 https://github.com/rook/rook/issues/4350
Steps to reproduce
Expected behavior
No response
Actual behavior
No response
Screenshots and logs
k0scontroller-logs.txt
Additional context
Relevant parts of the stack trace: