cri-o: crio fails validation for conmon_cgroup when using cgroupfs as cgroup manager
What happened?
crio fails validation for conmon_cgroup when using cgroupfs as cgroup manager. With following configuration:
[crio.runtime]
cgroup_manager = "cgroupfs"
conmon_cgroup = ""
Due to presence of conflicting checks a97c66840e119656066510970dd2f214032ce527 and 211902f5a1b5d560804aafabe77a92509191dda5, the only acceptable value is pod.
Otherwise it would fail with:
level=fatal msg="Validating runtime config: conmon cgroup should be 'pod' or a systemd slice"
OR:
level=fatal msg="Validating runtime config: cgroupfs manager conmon cgroup should be 'pod' or empty"
What did you expect to happen?
Validation to pass
How can we reproduce it (as minimally and precisely as possible)?
Start crio with following configuration:
[crio.runtime]
cgroup_manager = "cgroupfs"
conmon_cgroup = ""
And crio will fail validation.
Anything else we need to know?
No response
CRI-O and Kubernetes version
$ crio --version
crio version 1.21.7
Version: 1.21.7
GitCommit: 283ec410c082bf91304bbf6f5d5bf1c6490a0e3d
GitTreeState: dirty
BuildDate: 1980-01-01T00:00:00Z
GoVersion: go1.15.7
Compiler: gc
Platform: linux/amd64
Linkmode: static
I assume you probably meant kubelet --version in the following
$ kubectl --version
Kubernetes v1.21.6
OS version
# On Linux:
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ uname -a
Linux example.com 4.19.0-21-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64 GNU/Linux
Additional environment details (AWS, VirtualBox, physical, etc.)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 28 (13 by maintainers)
it’s yours!
/assign @xw19
@haircommander I can pick this up
this is how I build my config file during VM initalization (specifically the cloudinit part for that):