Skip to content

TEST-17-UDEV randomly fails on Ubuntu ppc64el #21603

Closed

Activity

  1. added
    bug 🐛
    on Dec 2, 2021
  2. mrc0mmand commented on Dec 2, 2021

    @mrc0mmand
    Member
    [  173.340103] testsuite-17.sh[287]: + for t in "${0%.sh}".*.sh
    [  173.364285] testsuite-17.sh[287]: + echo 'Running /usr/lib/systemd/tests/testdata/units/testsuite-17.04.sh'
    [  173.373284] testsuite-17.sh[287]: Running /usr/lib/systemd/tests/testdata/units/testsuite-17.04.sh
    [  173.391867] testsuite-17.sh[287]: + .//usr/lib/systemd/tests/testdata/units/testsuite-17.04.sh
    [  173.839042] testsuite-17.sh[486]: + set -o pipefail
    [  173.878203] testsuite-17.sh[486]: + mkdir -p /run/udev/rules.d/
    [  174.159781] testsuite-17.sh[486]: + test '!' -f /run/udev/tags/added/c1:3
    [  174.172940] testsuite-17.sh[486]: + test '!' -f /run/udev/tags/changed/c1:3
    [  174.206573] testsuite-17.sh[491]: + grep -E 'E: (TAGS|CURRENT_TAGS)=.*:(added|changed):'
    [  174.270381] testsuite-17.sh[490]: + udevadm info /dev/null
    [  174.887732] testsuite-17.sh[486]: + cat
    [  175.035023] testsuite-17.sh[486]: + udevadm control --reload
    [  175.346805] testsuite-17.sh[486]: + SYSTEMD_LOG_LEVEL=debug
    [  175.368767] testsuite-17.sh[486]: + udevadm trigger --verbose --settle --action add /dev/null
    [  175.573193] testsuite-17.sh[495]: SELinux enabled state cached to: disabled
    [  176.333073] testsuite-17.sh[495]: /sys/devices/virtual/mem/null
    [  176.333073] testsuite-17.sh[495]: settle /sys/devices/virtual/mem/null
    [  176.520292] testsuite-17.sh[486]: + test -f /run/udev/tags/added/c1:3
    [  176.782810] systemd[1]: testsuite-17.service: Main process exited, code=exited, status=1/FAILURE
    [  176.844868] systemd[1]: testsuite-17.service: Failed with result 'exit-code'.
    [  177.015111] systemd[1]: Failed to start TEST-17-UDEV.
    [  177.229060] audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=testsuite-17 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
    [  177.599762] kernel: audit: type=1130 audit(1638408590.632:32): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=testsuite-17 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
    [  177.534463] systemd[1]: testsuite-17.service: Consumed 28.387s CPU time.
    [  177.567243] systemd[1]: Reached target Testsuite target.
    [  177.660238] systemd-udevd[496]: null: The log level is changed to 'debug' while processing device (SEQNUM=3076, ACTION=add)
    [  177.894710] systemd-udevd[496]: null: Preserve permissions of /dev/null, uid=0, gid=0, mode=0666
    [  177.941464] systemd-udevd[496]: null: Handling device node '/dev/null', devnum=c1:3
    [  178.172586] systemd[1]: Starting End the test...
    [  178.390817] systemd-udevd[496]: null: sd-device: Created db file '/run/udev/data/c1:3' for '/devices/virtual/mem/null'
    [  178.431922] systemd-udevd[496]: null: Failed to get watch handle, ignoring: No such file or directory
    [  178.461804] systemd-udevd[496]: null: Device processed (SEQNUM=3076, ACTION=add)
    [  178.462510] systemd-udevd[496]: null: sd-device-monitor: Passed 267 byte to netlink monitor
    

    Full journal: TEST-17-UDEV.journal.tar.gz

  3. mrc0mmand commented on Dec 21, 2021

    @mrc0mmand
    Member

    This is puzzling. Looking at the logs from the last (known to me) failure - https://autopkgtest.ubuntu.com/results/autopkgtest-focal-upstream-systemd-ci-systemd-ci/focal/ppc64el/s/systemd-upstream/20211218_134334_7ed76@/log.gz - the device is handled after udevadm trigger returns even though it uses --settle:

    [  167.572126] testsuite-17.sh[500]: + SYSTEMD_LOG_LEVEL=debug
    [  167.590215] testsuite-17.sh[500]: + udevadm trigger --verbose --settle --action add /dev/null
    [  167.705554] testsuite-17.sh[509]: SELinux enabled state cached to: disabled
    [  167.882306] testsuite-17.sh[509]: /sys/devices/virtual/mem/null
    [  167.882306] testsuite-17.sh[509]: settle /sys/devices/virtual/mem/null
    [  167.898839] testsuite-17.sh[500]: + test -f /run/udev/tags/added/c1:3
    [  167.960748] systemd[1]: systemd-journald.service: Received EPOLLHUP on stored fd 50 (stored), closing.
    [  167.991861] systemd[1]: Received SIGCHLD from PID 292 (bash).
    [  167.994955] systemd[1]: Child 292 (bash) died (code=exited, status=1/FAILURE)
    [  168.008251] systemd[1]: testsuite-17.service: Child 292 belongs to testsuite-17.service.
    [  168.015767] systemd[1]: testsuite-17.service: Main process exited, code=exited, status=1/FAILURE
    [  168.059456] systemd[1]: testsuite-17.service: Failed with result 'exit-code'.
    [  168.061237] systemd[1]: testsuite-17.service: Service will not restart (restart setting)
    [  168.061780] systemd[1]: testsuite-17.service: Changed start -> failed
    [  168.105174] systemd[1]: testsuite-17.service: Job 74 testsuite-17.service/start finished, result=failed
    [  168.106884] systemd[1]: Failed to start TEST-17-UDEV.
    [  168.223683] systemd[1]: testsuite-17.service: Unit entered failed state.
    [  168.225032] systemd[1]: testsuite-17.service: Consumed 26.758s CPU time.
    [  168.289106] systemd[1]: testsuite-17.service: Control group is empty.
    [  168.322238] systemd[1]: testsuite.target changed dead -> active
    [  168.353250] systemd[1]: testsuite.target: Job 1 testsuite.target/start finished, result=done
    [  168.377799] systemd[1]: Reached target Testsuite target.
    [  168.450388] systemd-udevd[510]: null: The log level is changed to 'debug' while processing device (SEQNUM=3113, ACTION=add)
    [  168.576272] systemd[1]: end.service: Failed to set 'memory.swap.max' attribute on '/system.slice/end.service' to 'max': No such file or directory
    [  168.616632] systemd[1]: Failed to read pids.max attribute of root cgroup, ignoring: No data available
    [  168.680019] systemd[1]: end.service: Failed to remove oomd_avoid flag on control group /system.slice/end.service, ignoring: Operation not supported
    [  168.682255] systemd[1]: end.service: Failed to remove oomd_omit flag on control group /system.slice/end.service, ignoring: Operation not supported
    [  168.704136] systemd-udevd[510]: null: Preserve permissions of /dev/null, uid=0, gid=0, mode=0666
    [  168.705345] systemd-udevd[510]: null: Handling device node '/dev/null', devnum=c1:3
    [  168.720060] systemd[1]: end.service: Passing 0 fds to service
    [  168.723082] systemd[1]: end.service: About to execute /bin/sh -x -c "systemctl poweroff --no-block"
    [  168.760992] systemd[1]: end.service: Forked /bin/sh as 514
    [  168.842812] systemd-udevd[510]: null: sd-device: Created db file '/run/udev/data/c1:3' for '/devices/virtual/mem/null'
    [  168.882357] systemd-udevd[510]: null: Failed to get watch handle, ignoring: No such file or directory
    [  168.896263] systemd-udevd[510]: null: Device processed (SEQNUM=3113, ACTION=add)
    [  168.898644] systemd-udevd[510]: null: sd-device-monitor: Passed 267 byte to netlink monitor
    
  4. mrc0mmand commented on Dec 21, 2021

    @mrc0mmand
    Member

    It also might be related to the issues spotted in TEST-64 (#21819).

  5. added this to the v251 milestone on Dec 29, 2021
  6. evverx commented on Jan 9, 2022

    @evverx
    Contributor

    @mrc0mmand I wonder if it would make sense to skip the test with a denylist file? Turns out issues like that get resolved much faster when tests are skipped :-)

  7. evverx commented on Jan 9, 2022

    @evverx
    Contributor

    Judging by

    $ find -name '*deny*'
    ./test/TEST-61-UNITTESTS-QEMU/deny-list-ubuntu-ci
    ./test/TEST-36-NUMAPOLICY/deny-list-ubuntu-ci-s390x
    ./test/TEST-25-IMPORT/deny-list-ubuntu-ci
    ./test/TEST-30-ONCLOCKCHANGE/deny-list-ubuntu-ci-i386
    ./test/test-execute/exec-restrictnamespaces-mnt-deny-list.service
    ./test/TEST-40-EXEC-COMMAND-EX/deny-list-ubuntu-ci-arm64
    ./test/test-network/conf/ipv6ra-prefix-client-deny-list.network
    ./test/TEST-02-UNITTESTS/deny-list-ubuntu-ci-ppc64el
    

    the tests can be skipped on certain architectures only.

  8. mrc0mmand commented on Jan 10, 2022

    @mrc0mmand
    Member

    @mrc0mmand I wonder if it would make sense to skip the test with a denylist file? Turns out issues like that get resolved much faster when tests are skipped :-)

    I though about that, but we'd lose the constant reminder that something is wrong :-)

  9. yuwata commented on Jan 19, 2022

    @yuwata
    MemberAuthor

    the device is handled after udevadm trigger returns even though it uses --settle

    Yeah, quite strange...

    @mrc0mmand If I remember correctly, this happens only on ppc64el. Is it true?

  10. mrc0mmand commented on Jan 19, 2022

    @mrc0mmand
    Member

    the device is handled after udevadm trigger returns even though it uses --settle

    Yeah, quite strange...

    @mrc0mmand If I remember correctly, this happens only on ppc64el. Is it true?

    Exactly. Or at least I haven't seen it happen on other architectures.

  11. 5 remaining items

  12. added 2 commits that reference this issue on Mar 8, 2022
    b2cf9cd
    f40804a
  13. bluca commented on Mar 8, 2022

    @bluca
    Member

    From #22680:

    On Ubuntu CI on ppc64el, the test randomly fails when /run/udev is not
    synced before checking its contents (see #22357). But /run/udev is a
    tmpfs and fsync on tmpfs is noop (see struct shmem_file_operations in
    mm/shmem.c of the kernel), hence, it is not necessary to call fsync on
    /run/udev in general. This should be a testing emvironment issue (I
    guess it is an issue on nested KVM on ppc64el), instead of an issue on
    udev.

  14. added a commit that references this issue on Mar 8, 2022
    c10caeb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛ci-blocker 🚧testsudev

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions