-
Notifications
You must be signed in to change notification settings - Fork 999
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
Regression for systemd cgroups following last vendoring #2868
Comments
From @fgiudici: The cgroups created by kata shimv2 2.3.x when the kubernetes systemd driver in place looks broken: path is not honored, a single dir at root level is created.
This will not allow the cgroup path to be found by cAdvisor, so both the metrics and the resource usage monitoring in kubernetes will be affected. Once fixed the cgroups issue with the |
From @fgiudici: The cgroups creation complying with the systemd cgroups management has been dropped . What we need seems to be to create the cgroups as explained in the containerd/cgroups README |
From private exchanges between @fgiudici and myself, it looks like a regression introduced by revendoring: The cgroups creation (through Yep, it is a regression. @sameo changed the cgroups library we used this is why not trivial to spot. |
It's unclear if we can autodetect this. There is a As an aside, there is a difference in the API between V1 and V2, e.g. the I asked the authors of the |
Francesco, Christophe -- is there an e2e / integration test in place that should've caught this? (I expect there wasn't?) Can you share a test for reproducing the failure? |
Apparently we used to skip using this prefix for the systemd-cgroup driver
Other than that, it seems to me containerd's cgroup is immature when it comes to support in systemd cgroups driver; in runc docs it is mentioned either .scope or .slice can be used when asking systemd (using dbus) to create transient unit, however, it seems containerd's cgroups implementation supports only .slice with systemd cgroups driver, which apparently it is not compatible with cAdvisor supported [*.scope] scheme and breaks metrics collection (and TBH according to systemd's doc sounds like .scope is the only valid option) |
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api This is currently done only when there's single sandbox cgroup (sandbox_cgroup_only=true), otherwise we set it as static cgroup path as it used to be (until a proper soultion for overhead cgroup under systemd will be suggested) Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api This is currently done only when there's single sandbox cgroup (sandbox_cgroup_only=true), otherwise we set it as static cgroup path as it used to be (until a proper soultion for overhead cgroup under systemd will be suggested) Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api This is currently done only when there's single sandbox cgroup (sandbox_cgroup_only=true), otherwise we set it as static cgroup path as it used to be (until a proper soultion for overhead cgroup under systemd will be suggested) Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api This is currently done only when there's single sandbox cgroup (sandbox_cgroup_only=true), otherwise we set it as static cgroup path as it used to be (until a proper soultion for overhead cgroup under systemd will be suggested) Backport-from: kata-containers#2959 Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api This is currently done only when there's single sandbox cgroup (sandbox_cgroup_only=true), otherwise we set it as static cgroup path as it used to be (until a proper soultion for overhead cgroup under systemd will be suggested) Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As github.com/containerd/cgroups doesn't support scope units which are essential in some cases lets create the cgroups manually and load it trough the cgroups api This is currently done only when there's single sandbox cgroup (sandbox_cgroup_only=true), otherwise we set it as static cgroup path as it used to be (until a proper soultion for overhead cgroup under systemd will be suggested) Fixes: kata-containers#2868 Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
As very briefly documented in a comment attached to PR #2332 and in a question asked on containerd/cgroups, it looks like there was a regression introduced with the last vendored version of
containerd/cgroups
regarding thesystemd
case.@fgiudici is presently investigating more in depth, as it appears to have broken metrics at least in the OpenShift case.
This is distantly related to #2539 insofar as it seems to be impacted by the same vendored code.
The text was updated successfully, but these errors were encountered: