trex v3.05 on Ubuntu 24.04 with Kernel 6.8 and Python 3.12 doesn't work

13 views
Skip to first unread message

freddy.b...@gmail.com

unread,
Jul 25, 2024, 9:48:49 PM (3 days ago) Jul 25
to TRex Traffic Generator
Hi,

We are deploying a baremetal ubutnu in a beefy server with 56core and 768G RAM

The server is a UCS 240 with severals NIC including a Intel Corporation 82599ES 10-Gigabit (4 ports) and a Cisco VIC 1455 (4 Ports) all of them at 10GigE

OS is Ubuntu 24.04
6.8.0-39-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul  5 21:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Python is version 3.12
Scapy is version 2.5

When trying to use ./dpdk_setup_ports.py -i this parsing errors appears

/opt/trex/v3.04/./dpdk_setup_ports.py:62: SyntaxWarning: invalid escape sequence '\d'
  _2hex_re = '[\da-fA-F]{2}'
/opt/trex/v3.04/./dpdk_setup_ports.py:511: SyntaxWarning: invalid escape sequence '\d'
  ofed_ver_re = re.compile('.*[-](\d)(\d)?[.](\d)(\d)?[-].*')
/opt/trex/v3.04/./dpdk_setup_ports.py:863: SyntaxWarning: invalid escape sequence '\s'
  ifname_re = re.compile('iface\s*=\s*([^\s,]+)')

Those Warning messages shows all over at any command

The current config is for loop testing
cat /etc/trex_loop_cfg.yaml
### Config file generated by dpdk_setup_ports.py ###

- version: 2
  interfaces: ['8b:00.0', '8b:00.1']
  port_info:
      - ip: 1.1.1.1
        default_gw: 2.2.2.2
      - ip: 2.2.2.2
        default_gw: 1.1.1.1

  platform:
      master_thread_id: 0
      latency_thread_id: 1
      dual_if:
        - socket: 1
          threads: [28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55]


Start the trex server on interactive mode error out with missing scapy server, and even if you start it with the --no-scapy-server flag, the trex-console does not work

sudo ./trex-console -s 127.0.0.1

Using 'python3' as Python interpeter

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/opt/trex/v3.04/automation/trex_control_plane/interactive/trex/console/trex_console.py", line 49, in <module>
    from ..stl.api import *
  File "/opt/trex/v3.04/automation/trex_control_plane/interactive/trex/stl/api.py", line 4, in <module>
    from ..utils.common import *
  File "/opt/trex/v3.04/automation/trex_control_plane/interactive/trex/utils/common.py", line 11, in <module>
    from scapy.utils import *
  File "/opt/trex/v3.04/external_libs/scapy-2.4.3/scapy/utils.py", line 29, in <module>
    from scapy.modules.six.moves import range
ModuleNotFoundError: No module named 'scapy.modules.six.moves'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 228, in partial_apport_excepthook
    return apport_excepthook(binary, exc_type, exc_obj, exc_tb)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 114, in apport_excepthook
    report["ExecutableTimestamp"] = str(int(os.stat(binary).st_mtime))
                                            ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/opt/trex/v3.04/-m'

Original exception was:
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/opt/trex/v3.04/automation/trex_control_plane/interactive/trex/console/trex_console.py", line 49, in <module>
    from ..stl.api import *
  File "/opt/trex/v3.04/automation/trex_control_plane/interactive/trex/stl/api.py", line 4, in <module>
    from ..utils.common import *
  File "/opt/trex/v3.04/automation/trex_control_plane/interactive/trex/utils/common.py", line 11, in <module>
    from scapy.utils import *
  File "/opt/trex/v3.04/external_libs/scapy-2.4.3/scapy/utils.py", line 29, in <module>
    from scapy.modules.six.moves import range
ModuleNotFoundError: No module named 'scapy.modules.six.moves'


I have been trying some other combination but nothing seems to fix the issue.

any guidance will be appreciated



Reply all
Reply to author
Forward
0 new messages