SAI
SAI copied to clipboard
Issue while running PTF Test cases
Hi team,
I am trying to run PTF test cases on my PTF test bed. I am using Sonic mgmt method to bring up the PTF test bed.(https://github.com/opencomputeproject/SAI/blob/master/ptf/docs/SAI-PTFv2Overview.md) used this link for reference.
I am able to bring up saiserver and PTF docker's in my test bed.
However when i run PTF test cases it fails due to below issue, File "ptf/sai_base_test.py", line 306, in start_switch self.assertEqual(self.status(), SAI_STATUS_SUCCESS) AssertionError: -5 != 0
Can i get some reference as to how to fix this issue ?
Please find the below logs of my test run. root@b8a8f68bbc86:~/SAI# ptf --test-dir ptf saivrf.VrfSMACTest --interface '0@eth0' --interface '1@eth1' --interface '2@eth2' --interface '3@eth3' --interface '4@eth4' --interface '5@eth5' --interface '6@eth6' --interface '7@eth7' --interface '8@eth8' --interface '9@eth9' --interface '10@eth10' --interface '11@eth11' --interface '12@eth12' --interface '13@eth13' --interface '14@eth14' --interface '15@eth15' --interface '16@eth16' --interface '17@eth17' --interface '18@eth18' --interface '19@eth19' --interface '20@eth20' --interface '21@eth21' --interface '22@eth22' --interface '23@eth23' --interface '24@eth24' --interface '25@eth25' --interface '26@eth26' --interface '27@eth27' --interface '28@eth28' --interface '29@eth29' --interface '30@eth30' --interface '31@eth31' "--test-params=thrift_server='10.28.32.97';port_config_ini='default_interface_to_front_map.ini';target='hw'" --relax --debug info --log-file /tmp/VrfSMACTest.log Using packet manipulation module: ptf.packet_scapy [DEBUG] ifname=eth0, port_id=(0, 0) [DEBUG] ifname=eth1, port_id=(0, 1) [DEBUG] ifname=eth2, port_id=(0, 2) [DEBUG] ifname=eth3, port_id=(0, 3) [DEBUG] ifname=eth4, port_id=(0, 4) [DEBUG] ifname=eth5, port_id=(0, 5) [DEBUG] ifname=eth6, port_id=(0, 6) [DEBUG] ifname=eth7, port_id=(0, 7) [DEBUG] ifname=eth8, port_id=(0, 8) [DEBUG] ifname=eth9, port_id=(0, 9) [DEBUG] ifname=eth10, port_id=(0, 10) [DEBUG] ifname=eth11, port_id=(0, 11) [DEBUG] ifname=eth12, port_id=(0, 12) [DEBUG] ifname=eth13, port_id=(0, 13) [DEBUG] ifname=eth14, port_id=(0, 14) [DEBUG] ifname=eth15, port_id=(0, 15) [DEBUG] ifname=eth16, port_id=(0, 16) [DEBUG] ifname=eth17, port_id=(0, 17) [DEBUG] ifname=eth18, port_id=(0, 18) [DEBUG] ifname=eth19, port_id=(0, 19) [DEBUG] ifname=eth20, port_id=(0, 20) [DEBUG] ifname=eth21, port_id=(0, 21) [DEBUG] ifname=eth22, port_id=(0, 22) [DEBUG] ifname=eth23, port_id=(0, 23) [DEBUG] ifname=eth24, port_id=(0, 24) [DEBUG] ifname=eth25, port_id=(0, 25) [DEBUG] ifname=eth26, port_id=(0, 26) [DEBUG] ifname=eth27, port_id=(0, 27) [DEBUG] ifname=eth28, port_id=(0, 28) [DEBUG] ifname=eth29, port_id=(0, 29) [DEBUG] ifname=eth30, port_id=(0, 30) [DEBUG] ifname=eth31, port_id=(0, 31) saivrf.VrfSMACTest ... sunil <sai_thrift.sai_rpc.Client object at 0x7fb5722e9710> and 00:77:66:55:44:00, -5 FAIL
====================================================================== FAIL: saivrf.VrfSMACTest
Traceback (most recent call last): File "ptf/saivrf.py", line 2486, in setUp super(VrfSMACTest, self).setUp() File "ptf/sai_base_test.py", line 838, in setUp super(SaiHelper, self).setUp() File "ptf/sai_base_test.py", line 314, in setUp self.start_switch() File "ptf/sai_base_test.py", line 306, in start_switch self.assertEqual(self.status(), SAI_STATUS_SUCCESS) AssertionError: -5 != 0
Ran 1 test in 0.107s
FAILED (failures=1)
ATTENTION: SOME TESTS DID NOT PASS!!!
The following tests failed: VrfSMACTest
root@b8a8f68bbc86:~/SAI#