Hide Forgot
Description of problem: kubelet logs show the following message: 475] failed to find cgroups of kubelet - cpu and memory cgroup hierarchy not unified. cpu: /, memory: /system.slice/kubelet.service Version-Release number of selected component (if applicable): 4.0.0-0.alpha-2019-03-23-103439 How reproducible: Always Steps to Reproduce: 1. install cluster 2. ssh to node 3. journalctl -u kubelet Actual results: kubelet does not appear to be in a cpu cgroup Expected results: kubelet should be in cpu cgroup Additional info: If you cat /proc/<pid>/cgroup for kubelet, we see following: cat /proc/951/cgroup 12:freezer:/ 11:memory:/system.slice/kubelet.service 10:cpuset:/ 9:hugetlb:/ 8:pids:/system.slice/kubelet.service 7:devices:/ 6:net_cls,net_prio:/ 5:rdma:/ 4:blkio:/ 3:cpu,cpuacct:/ 2:perf_event:/ 1:name=systemd:/system.slice/kubelet.service It appears that RHEL CoreOS is not enabling default cpu accounting in systemd. CPU accounting should be enabled by default. cat /etc/systemd/system.conf | grep CPUAccounting #DefaultCPUAccounting=no In 3.x releases, we always enabled cpu accounting as a drop-in.
The drop-in is this https://github.com/openshift/origin/blob/master/contrib/systemd/origin-accounting.conf I guess we need the MCO to lay this down for us. Ryan can you do this?
I'll look into it.
PR: https://github.com/openshift/machine-config-operator/pull/581
Oops. Sounds like we want to modify the system.conf within the rpm. Looking into it.
PR merged https://github.com/openshift/machine-config-operator/pull/581 and verified working. systemctl show -all|grep -e 'DefaultCPUAccounting\|DefaultBlockIOAccounting\|DefaultMemoryAccounting'
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0758