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

xdp-trafficgen: probe command failed w/o "--interface"

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.2
    • rhel-10.1, rhel-9.7
    • xdp-tools
    • None
    • xdp-tools-1.5.7-1.el10
    • Yes
    • Low
    • 1
    • rhel-net-core-3
    • 2
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • NST-Core3-25W34
    • Requested
    • None
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • aarch64
    • None

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

      Probe does not work w/o "-i" option.
      Fix the error by adding END_OPTIONS to probe_options.

      The issue was detected in our RHEL on AWS testing. I created a pr for fixing it, please review.

      pr in upstream: https://github.com/xdp-project/xdp-tools/pull/518

      $ sudo xdp-trafficgen probe -i ens5
      Missing required option '--interface'
      Usage: xdp-trafficgen [options]
      Use --help (or -h) to see full option list. 

      What is the impact of this issue to you?

      test-xdp-trafficgen.sh failed with below error.

           [test_udp]                    FAIL
                Missing required option '--interface'
                
                Usage: xdp-trafficgen [options] <hostname>
                Use --help (or -h) to see full option list.
                Test test_udp exited with return code: 1
           [test_tcp]                    FAIL
                Missing required option '--interface'
                
                Usage: xdp-trafficgen [options] <hostname>
                Use --help (or -h) to see full option list.
                Test test_tcp exited with return code: 1
           [test_no_support]             FAIL
                Missing required option '--interface'
                
                Usage: xdp-trafficgen [options] <hostname>
                Use --help (or -h) to see full option list.
                Test test_no_support exited with return code: 1
      

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

      xdp-tools-1.5.5-1.el10.aarch64

      How reproducible is this bug?:

      Steps to reproduce

      1. install xdp-tools
      2. "xdp-trafficgen probe -i ens5" or "xdp-trafficgen probe"

      Expected results

      probe command can work with or without "-i".

      Actual results

      probe command not work because of problem in options handling

              tohojo Toke Høiland-Jørgensen
              xiliang@redhat.com Frank Liang
              nst-kernel-bugs nst-kernel-bugs
              Prasenjit Mukherjee Prasenjit Mukherjee
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: