Error while determining OS type: module 'platform' has no attribute 'dist'

837 views
Skip to first unread message

gaming master blaster

unread,
May 19, 2021, 7:22:48 AM5/19/21
to TRex Traffic Generator
Dear Team,

Greetings!

I am trying to run traffic in stateful mode but getting error "Error while determining OS type: module 'platform' has no attribute 'dist'" and after that in last line "Failed resolving dest MAC for default gateway:11.11.11.1 on port 0".

I can see that using arp resolving things fine so is there any relation between above 2 errors and how can i solve it.

root@test1-fra14:/opt/trex/v2.89# arp
Address                  HWtype  HWaddress           Flags Mask            Iface
11.11.11.1               ether   da:bd:0f:32:b9:e0   C                     bond0.101
12.12.12.1               ether   52:54:00:6b:3d:59   C                     bond0.102

root@test1-fra14:/opt/trex/v2.89# ./t-rex-64  --nc -f cap2/imix_64.yaml  
Error while determining OS type: module 'platform' has no attribute 'dist'
The ports are bound/configured.
Starting  TRex v2.89 please wait  ...
 set driver name net_mlx5
 driver capability  : TCP_UDP_OFFLOAD  TSO
 set dpdk queues mode to DROP_QUE_FILTER
 Number of ports found: 2
zmq publisher at: tcp://*:4500
 wait 1 sec .
port : 0
------------
link         :  link : Link Up - speed 10000 Mbps - full-duplex
promiscuous  : 0
port : 1
------------
link         :  link : Link Up - speed 10000 Mbps - full-duplex
promiscuous  : 0
 number of ports         : 2
 max cores for 2 ports   : 1
 tx queues per port      : 3
no client generator pool configured, using default pool
no server generator pool configured, using default pool
 -------------------------------
RX core uses TX queue number 2 on all ports
 core, c-port, c-queue, s-port, s-queue, lat-queue
 ------------------------------------------
 1        0      0       1       0      0  
 -------------------------------
no client generator pool configured, using default pool
no server generator pool configured, using default pool
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
 -- loading cap file cap2/udp_64B.pcap
Failed resolving dest MAC for default gateway:11.11.11.1 on port 0

My config file is :-
root@test1-fra14:/opt/trex/v2.89# cat /etc/trex_cfg.yaml
- port_limit      : 2
  version         : 2
#List of interfaces. Change to suit your setup. Use ./dpdk_setup_ports.py -s to see available options
  interfaces    : ["3b:00.0","d8:00.0","3b:00.1","d8:00.1"]
#  interfaces    : ["bond0.101","bond0.102"]
  #  c             : 4
  port_bandwidth_gb : 40
  low_end           : false
  port_info       :  # Port IPs. Change to suit your needs. In case of loopback, you can leave as is.
          - ip         : 11.11.11.11
            default_gw : 11.11.11.1
          - ip         : 12.12.12.12
            default_gw : 12.12.12.1

Thanks!
Vishal
Reply all
Reply to author
Forward
0 new messages