jafingerhut / p4-guide

Guide to p4lang repositories and some other public info about P4
530 stars 155 forks source link

how can i solve this problem #63

Closed liao123123123 closed 4 months ago

liao123123123 commented 11 months ago

vagrant@p4:~/p4-guide/demo1$ ./p4testgen-runptf.sh P is: /home/vagrant/p4c/backends/bmv2

====================================================================== ERROR: demo1.Test0

Traceback (most recent call last): File "out-p4testgen/demo1.py", line 20, in setUp success = bt.P4RuntimeTest.updateConfig(self) AttributeError: type object 'P4RuntimeTest' has no attribute 'updateConfig'


Ran 1 test in 0.005s

FAILED (errors=1) demo1.Test1 ... Importing p4info proto from demo1.p4_16.p4info.txt Exception in thread Thread-7: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "out-p4testgen/base_test.py", line 292, in stream_recv for p in stream: File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 426, in next return self._next() File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 826, in _next raise self grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "Election id already exists" debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B::1%5D:9559 {grpc_message:"Election id already exists", grpc_status:3, created_time:"2023-10-17T11:49:11.583484925+00:00"}"

FAIL

====================================================================== FAIL: demo1.Test1

Traceback (most recent call last): File "out-p4testgen/demo1.py", line 19, in setUp bt.P4RuntimeTest.setUp(self) File "out-p4testgen/base_test.py", line 260, in setUp self.set_up_stream() File "out-p4testgen/base_test.py", line 300, in set_up_stream self.handshake() File "out-p4testgen/base_test.py", line 316, in handshake self.fail("Failed to establish handshake") AssertionError: Failed to establish handshake


Ran 1 test in 2.014s

FAILED (failures=1) demo1.Test2 ... Importing p4info proto from demo1.p4_16.p4info.txt Exception in thread Thread-10: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "out-p4testgen/base_test.py", line 292, in stream_recv for p in stream: File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 426, in next return self._next() File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 826, in _next raise self grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "Election id already exists" debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B::1%5D:9559 {created_time:"2023-10-17T11:49:13.598923521+00:00", grpc_status:3, grpc_message:"Election id already exists"}"

FAIL

====================================================================== FAIL: demo1.Test2

Traceback (most recent call last): File "out-p4testgen/demo1.py", line 19, in setUp bt.P4RuntimeTest.setUp(self) File "out-p4testgen/base_test.py", line 260, in setUp self.set_up_stream() File "out-p4testgen/base_test.py", line 300, in set_up_stream self.handshake() File "out-p4testgen/base_test.py", line 316, in handshake self.fail("Failed to establish handshake") AssertionError: Failed to establish handshake


Ran 1 test in 2.005s

FAILED (failures=1) demo1.Test3 ... Importing p4info proto from demo1.p4_16.p4info.txt Exception in thread Thread-13: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "out-p4testgen/base_test.py", line 292, in stream_recv for p in stream: File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 426, in next return self._next() File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 826, in _next raise self grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "Election id already exists" debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B::1%5D:9559 {created_time:"2023-10-17T11:49:15.602570725+00:00", grpc_status:3, grpc_message:"Election id already exists"}"

FAIL

====================================================================== FAIL: demo1.Test3

Traceback (most recent call last): File "out-p4testgen/demo1.py", line 19, in setUp bt.P4RuntimeTest.setUp(self) File "out-p4testgen/base_test.py", line 260, in setUp self.set_up_stream() File "out-p4testgen/base_test.py", line 300, in set_up_stream self.handshake() File "out-p4testgen/base_test.py", line 316, in handshake self.fail("Failed to establish handshake") AssertionError: Failed to establish handshake


Ran 1 test in 2.014s

FAILED (failures=1) demo1.Test4 ... Importing p4info proto from demo1.p4_16.p4info.txt Exception in thread Thread-16: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "out-p4testgen/base_test.py", line 292, in stream_recv for p in stream: File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 426, in next return self._next() File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 826, in _next raise self grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "Election id already exists" debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B::1%5D:9559 {grpc_message:"Election id already exists", grpc_status:3, created_time:"2023-10-17T11:49:17.616780527+00:00"}"

FAIL

====================================================================== FAIL: demo1.Test4

Traceback (most recent call last): File "out-p4testgen/demo1.py", line 19, in setUp bt.P4RuntimeTest.setUp(self) File "out-p4testgen/base_test.py", line 260, in setUp self.set_up_stream() File "out-p4testgen/base_test.py", line 300, in set_up_stream self.handshake() File "out-p4testgen/base_test.py", line 316, in handshake self.fail("Failed to establish handshake") AssertionError: Failed to establish handshake


Ran 1 test in 2.003s

FAILED (failures=1) demo1.Test5 ... Importing p4info proto from demo1.p4_16.p4info.txt Exception in thread Thread-19: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "out-p4testgen/base_test.py", line 292, in stream_recv for p in stream: File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 426, in next return self._next() File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 826, in _next raise self grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "Election id already exists" debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B::1%5D:9559 {grpc_message:"Election id already exists", grpc_status:3, created_time:"2023-10-17T11:49:19.619653208+00:00"}"

FAIL

====================================================================== FAIL: demo1.Test5

Traceback (most recent call last): File "out-p4testgen/demo1.py", line 19, in setUp bt.P4RuntimeTest.setUp(self) File "out-p4testgen/base_test.py", line 260, in setUp self.set_up_stream() File "out-p4testgen/base_test.py", line 300, in set_up_stream self.handshake() File "out-p4testgen/base_test.py", line 316, in handshake self.fail("Failed to establish handshake") AssertionError: Failed to establish handshake


Ran 1 test in 2.003s

FAILED (failures=1) demo1.Test6 ... Importing p4info proto from demo1.p4_16.p4info.txt Exception in thread Thread-22: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "out-p4testgen/base_test.py", line 292, in stream_recv for p in stream: File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 426, in next return self._next() File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 826, in _next raise self grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "Election id already exists" debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B::1%5D:9559 {grpc_message:"Election id already exists", grpc_status:3, created_time:"2023-10-17T11:49:21.624651075+00:00"}"

FAIL

====================================================================== FAIL: demo1.Test6

Traceback (most recent call last): File "out-p4testgen/demo1.py", line 19, in setUp bt.P4RuntimeTest.setUp(self) File "out-p4testgen/base_test.py", line 260, in setUp self.set_up_stream() File "out-p4testgen/base_test.py", line 300, in set_up_stream self.handshake() File "out-p4testgen/base_test.py", line 316, in handshake self.fail("Failed to establish handshake") AssertionError: Failed to establish handshake


Ran 1 test in 2.005s

FAILED (failures=1) demo1.Test7 ... Importing p4info proto from demo1.p4_16.p4info.txt Exception in thread Thread-25: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "out-p4testgen/base_test.py", line 292, in stream_recv for p in stream: File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 426, in next return self._next() File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 826, in _next raise self grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "Election id already exists" debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B::1%5D:9559 {created_time:"2023-10-17T11:49:23.630520886+00:00", grpc_status:3, grpc_message:"Election id already exists"}"

FAIL

====================================================================== FAIL: demo1.Test7

Traceback (most recent call last): File "out-p4testgen/demo1.py", line 19, in setUp bt.P4RuntimeTest.setUp(self) File "out-p4testgen/base_test.py", line 260, in setUp self.set_up_stream() File "out-p4testgen/base_test.py", line 300, in set_up_stream self.handshake() File "out-p4testgen/base_test.py", line 316, in handshake self.fail("Failed to establish handshake") AssertionError: Failed to establish handshake


Ran 1 test in 2.006s

FAILED (failures=1) demo1.Test8 ... Importing p4info proto from demo1.p4_16.p4info.txt Exception in thread Thread-28: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "out-p4testgen/base_test.py", line 292, in stream_recv for p in stream: File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 426, in next return self._next() File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 826, in _next raise self grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "Election id already exists" debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B::1%5D:9559 {created_time:"2023-10-17T11:49:25.63575777+00:00", grpc_status:3, grpc_message:"Election id already exists"}"

FAIL

====================================================================== FAIL: demo1.Test8

Traceback (most recent call last): File "out-p4testgen/demo1.py", line 19, in setUp bt.P4RuntimeTest.setUp(self) File "out-p4testgen/base_test.py", line 260, in setUp self.set_up_stream() File "out-p4testgen/base_test.py", line 300, in set_up_stream self.handshake() File "out-p4testgen/base_test.py", line 316, in handshake self.fail("Failed to establish handshake") AssertionError: Failed to establish handshake


Ran 1 test in 2.003s

FAILED (failures=1) demo1.Test9 ... Importing p4info proto from demo1.p4_16.p4info.txt Exception in thread Thread-31: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "out-p4testgen/base_test.py", line 292, in stream_recv for p in stream: File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 426, in next return self._next() File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 826, in _next raise self grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = "Election id already exists" debug_error_string = "UNKNOWN:Error received from peer ipv6:%5B::1%5D:9559 {grpc_message:"Election id already exists", grpc_status:3, created_time:"2023-10-17T11:49:27.637903026+00:00"}"

FAIL

====================================================================== FAIL: demo1.Test9

Traceback (most recent call last): File "out-p4testgen/demo1.py", line 19, in setUp bt.P4RuntimeTest.setUp(self) File "out-p4testgen/base_test.py", line 260, in setUp self.set_up_stream() File "out-p4testgen/base_test.py", line 300, in set_up_stream self.handshake() File "out-p4testgen/base_test.py", line 316, in handshake self.fail("Failed to establish handshake") AssertionError: Failed to establish handshake


Ran 1 test in 2.003s

FAILED (failures=1)


ATTENTION: SOME TESTS DID NOT PASS!!!

The following tests failed: Test1, Test2, Test3, Test4, Test5, Test6, Test7, Test8, Test9

The following tests errored: Test0


jafingerhut commented 10 months ago

I see you are running a command called:

./p4testgen-runptf.sh

I did not write this script, so I have no idea what it contains.

jafingerhut commented 4 months ago

Closing this issue since there is no activity.