Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-112597

[xdp-tools] test_runner: got stuck at cleanup proc dir in teardown if no STATEDIR

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-10.1
    • xdp-tools
    • None
    • No
    • Low
    • rhel-net-core
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work?

      teardown() tries to cleanup /proc dir and cannot exit normally when misses required tool.

      I proposed a pr in upstream: https://github.com/xdp-project/xdp-tools/pull/516

      It is timeout when missing pkgs in our test on aws (test_xdp_tools_run_tests),

      2025-07-13 09:40:04,256:INFO:CMD: sudo /usr/share/xdp-tools/run_tests.sh on ec2-35-160-219-14.us-west-2.compute.amazonaws.com
      2025-07-13 09:40:04,256:INFO:Run on remote: sudo /usr/share/xdp-tools/run_tests.sh
      2025-07-13 09:55:04,534:INFO:Timeout to run cmd 900s
      2025-07-13 09:55:04,534:INFO:cmd err:     Executing tests in separate net- and mount namespaces
      Missing required tool: socat
      
      2025-07-13 09:55:04,534:INFO:CMD ret: -1 out:Running all tests from /usr/share/xdp-tools/tests
          Executing tests in separate net- and mount namespaces
      Missing required tool: socat
      

      What is the impact of this issue to you?

      The command cannot exit when missing dependency.

      Please provide the package NVR for which the bug is seen:

      xdp-tools-1.5.5-1.el10.x86_64

      How reproducible is this bug?:

      Steps to reproduce

      1. yum install -y xdp-tools wireshark-cli tcpdump nmap-ncat
      2. /usr/share/xdp-tools/run_tests.sh

      Expected results

      test exits when some dependency is missing

      Actual results

      command got stuck at cleanup "/proc"

              nst-kernel-bugs nst-kernel-bugs
              xiliang@redhat.com Frank Liang
              nst-kernel-bugs nst-kernel-bugs
              Prasenjit Mukherjee Prasenjit Mukherjee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: