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
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1942113

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

Status in glibc package in Ubuntu:
  New
Status in systemd package in Ubuntu:
  New

Bug description:
  The latest systemd upload fails its tests against glibc 2.34. The
  failing test is test-oomd-util within the unit-tests, with the
  following logs:

  Last pgscan 33 greater than current pgscan 1 for /herp.slice/derp.scope. 
Using last pgscan of zero.
  Last pgscan 33 greater than current pgscan 1 for /herp.slice/derp.scope. 
Using last pgscan of zero.
  Last pgscan 33 greater than current pgscan 2 for /zupa.slice. Using last 
pgscan of zero.
  Last pgscan 33 greater than current pgscan 2 for /zupa.slice. Using last 
pgscan of zero.
  Last pgscan 33 greater than current pgscan 1 for /herp.slice/derp.scope. 
Using last pgscan of zero.
  Last pgscan 33 greater than current pgscan 2 for /zupa.slice. Using last 
pgscan of zero.
  Last pgscan 33 greater than current pgscan 1 for /herp.slice/derp.scope. 
Using last pgscan of zero.
  Bus n/a: changing state UNSET → OPENING
  sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
  Bus n/a: changing state OPENING → AUTHENTICATING
  Bus n/a: changing state AUTHENTICATING → HELLO
  Sent message type=method_call sender=n/a destination=org.freedesktop.DBus 
path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 
reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
  Sent message type=method_call sender=n/a destination=org.freedesktop.DBus 
path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=AddMatch 
cookie=2 reply_cookie=0 signature=s error-name=n/a error-message=n/a
  Got message type=method_return sender=org.freedesktop.DBus destination=:1.23 
path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s 
error-name=n/a error-message=n/a
  Bus n/a: changing state HELLO → RUNNING
  Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 
path=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager 
member=StartTransientUnit cookie=3 reply_cookie=0 signature=ssa(sv)a(sa(sv)) 
error-name=n/a error-message=n/a
  Got message type=method_return sender=:1.0 destination=:1.23 path=n/a 
interface=n/a member=n/a cookie=299 reply_cookie=3 signature=o error-name=n/a 
error-message=n/a
  Got message type=signal sender=org.freedesktop.DBus destination=:1.23 
path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired 
cookie=2 reply_cookie=0 signature=s error-name=n/a error-message=n/a
  Got message type=method_return sender=org.freedesktop.DBus destination=:1.23 
path=n/a interface=n/a member=n/a cookie=3 reply_cookie=2 signature=n/a 
error-name=n/a error-message=n/a
  Match 
type='signal',sender='org.freedesktop.systemd1',path='/org/freedesktop/systemd1',interface='org.freedesktop.systemd1.Manager',member='JobRemoved'
 successfully installed.
  Got message type=signal sender=:1.0 destination=n/a 
path=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager 
member=JobRemoved cookie=304 reply_cookie=0 signature=uoss error-name=n/a 
error-message=n/a
  Got result done/Success for job test-oomd-util-9beb716b2ffb3d99.scope
  Bus n/a: changing state RUNNING → CLOSED
  Found cgroup2 on /sys/fs/cgroup/, full unified hierarchy
  test-oomd-util: Cannot set user xattrs, skipping tests.
  Error getting memory.current from 
/system.slice/test-oomd-util-9beb716b2ffb3d99.scope: No data available
  Assertion 'oomd_cgroup_context_acquire(cgroup, &ctx) == 0' failed at 
src/oom/test-oomd-util.c:117, function 
test_oomd_cgroup_context_acquire_and_insert(). Aborting.

  I wasn't able to reproduce the failure, either using autopkgtest-virt-
  lxd or manually in an armhf VM. You'll find below the test logs of the
  VM run for this particular test, as a comparison point.

  ubuntu@autopkgtest:~$ sudo /usr/lib/systemd/tests/test-oomd-util 
  Last pgscan 33 greater than current pgscan 2 for /zupa.slice. Using last 
pgscan of zero.
  Last pgscan 33 greater than current pgscan 1 for /herp.slice/derp.scope. 
Using last pgscan of zero.
  Last pgscan 33 greater than current pgscan 2 for /zupa.slice. Using last 
pgscan of zero.
  Last pgscan 33 greater than current pgscan 1 for /herp.slice/derp.scope. 
Using last pgscan of zero.
  Last pgscan 33 greater than current pgscan 2 for /zupa.slice. Using last 
pgscan of zero.
  Last pgscan 33 greater than current pgscan 2 for /zupa.slice. Using last 
pgscan of zero.
  Last pgscan 33 greater than current pgscan 1 for /herp.slice/derp.scope. 
Using last pgscan of zero.
  Bus n/a: changing state UNSET → OPENING
  sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
  Bus n/a: changing state OPENING → AUTHENTICATING
  Bus n/a: changing state AUTHENTICATING → HELLO
  Sent message type=method_call sender=n/a destination=org.freedesktop.DBus 
path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 
reply_cookie=0 signature=n/a error-name=n/a error-message
  =n/a
  Sent message type=method_call sender=n/a destination=org.freedesktop.DBus 
path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=AddMatch 
cookie=2 reply_cookie=0 signature=s error-name=n/a error-messag
  e=n/a
  Got message type=method_return sender=org.freedesktop.DBus destination=:1.13 
path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s 
error-name=n/a error-message=n/a
  Bus n/a: changing state HELLO → RUNNING
  Sent message type=method_call sender=n/a destination=org.freedesktop.systemd1 
path=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager 
member=StartTransientUnit cookie=3 reply_cookie=0 signature
  =ssa(sv)a(sa(sv)) error-name=n/a error-message=n/a
  Got message type=method_return sender=:1.2 destination=:1.13 path=n/a 
interface=n/a member=n/a cookie=228 reply_cookie=3 signature=o error-name=n/a 
error-message=n/a
  Got message type=signal sender=org.freedesktop.DBus destination=:1.13 
path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired 
cookie=2 reply_cookie=0 signature=s error-name=n/a error-messag
  e=n/a
  Got message type=method_return sender=org.freedesktop.DBus destination=:1.13 
path=n/a interface=n/a member=n/a cookie=3 reply_cookie=2 signature=n/a 
error-name=n/a error-message=n/a
  Match 
type='signal',sender='org.freedesktop.systemd1',path='/org/freedesktop/systemd1',interface='org.freedesktop.systemd1.Manager',member='JobRemoved'
 successfully installed.
  Got message type=signal sender=:1.2 destination=n/a 
path=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager 
member=JobRemoved cookie=233 reply_cookie=0 signature=uoss error-name=n/a 
error-messa
  ge=n/a
  Got result done/Success for job test-oomd-util-72cb961924930039.scope
  Bus n/a: changing state RUNNING → CLOSED
  Found cgroup2 on /sys/fs/cgroup/, full unified hierarchy
  oomd attempting to kill 893 with KILL
  oomd attempting to kill 894 with KILL
  oomd attempting to kill 895 with KILL
  oomd attempting to kill 896 with KILL
  Last pgscan 18446744073709551615 greater than current pgscan 0 for 
/system.slice/test-oomd-util-72cb961924930039.scope. Using last pgscan of zero.

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to