Unfortunately, it doesn't seem to be the same bug, but might be similar.
I can still reporduce the issue with the upstream daily-build.


I can reproduce it on an Ubuntu Impish host (kernel 5.11.0-31-generic, systemd 
248.3-1ubuntu3), running an Ubuntu Impish container (kernel 5.11.0-31-generic, 
systemd 249.743.g8fd4d27f3c+21.10.20210909132725 – daily upstream build from 
[ppa:ubuntu-support-team/systemd](https://launchpad.net/~ubuntu-support-team/+archive/ubuntu/systemd))
 – or basically any container that uses the unified cgroups hierarchy (like 
Fedora 34, as mentioned before).

Interestingly, in other places that try to read `memory.current`
(cgtop.c/cgroup.c) there is a fallback to `memory.usage_in_bytes` if the
system does not detect an all unified hierarchy. But those seem to be
mutually exclusive:

On a host using the **hybrid** hierarchy I can only see `memory.usage_in_bytes` 
(same goes for hybrid container on hybrid host):
```
$ find /sys/fs/cgroup/ -wholename *system.slice/memory.current
$ find /sys/fs/cgroup/ -wholename *system.slice/memory.usage_in_bytes
/sys/fs/cgroup/memory/system.slice/memory.usage_in_bytes
```
=> Tests are skipped ("test-oomd-util: cgroups are not running in unified mode, 
skipping tests.")

On a host using the **unified** hierarchy I can only see `memory.current` (same 
goes for unified container on unified host and hybrid container on unified 
host):
```
$ find /sys/fs/cgroup/ -wholename *system.slice/memory.current
/sys/fs/cgroup/system.slice/memory.current
$ find /sys/fs/cgroup/ -wholename *system.slice/memory.usage_in_bytes
```
=> Tests pass as expected.

BUT: Inside a **unified** container on a **hybrid** host, I can see neither:
```
$ find /sys/fs/cgroup/ -wholename *system.slice/memory.current
$ find /sys/fs/cgroup/ -wholename *system.slice/memory.usage_in_bytes
```
=> This is a problem. The test fails, because it cannot access `memory.current` 
but is not skiped either.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1942113

Title:
  systemd unit test regression in autopkgtest (oomd-utils)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1942113/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to