echo 'Started simple_switch_grpc. Waiting 2 seconds before starting PTF test ...'
Started simple_switch_grpc. Waiting 2 seconds before starting PTF test ...
sleep 2
sudo simple_switch_grpc --log-file ss-log --log-flush --dump-packet-data 10000 -i 0@veth0 -i 1@veth2 -i 2@veth4 -i 3@veth6 -i 4@veth8 -i 5@veth10 -i 6@veth12 -i 7@veth14 --no-p4
Calling target program-options parser
Adding interface veth0 as port 0
Adding interface veth2 as port 1
Adding interface veth4 as port 2
Adding interface veth6 as port 3
Adding interface veth8 as port 4
Adding interface veth10 as port 5
Adding interface veth12 as port 6
Adding interface veth14 as port 7
Server listening on 0.0.0.0:9559
++ which ptf
sudo /usr/local/bin/ptf --pypath /home/vagrant/p4c/backends/bmv2 -i 0@veth1 -i 1@veth3 -i 2@veth5 -i 3@veth7 -i 4@veth9 -i 5@veth11 -i 6@veth13 -i 7@veth15 '--test-params=grpcaddr='\''localhost:9559'\'';p4info='\''demo1.p4_16.p4info.txt'\'';config='\''demo1.p4_16.json'\''' --test-dir out-p4testgen
/usr/local/lib/python3.8/dist-packages/ptf-0.9.3-py3.8.egg/EGG-INFO/scripts/ptf:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Using packet manipulation module: ptf.packet_scapy
demo1.Test0 ... Importing p4info proto from demo1.p4_16.p4info.txt
ERROR
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"}"
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"}"
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"}"
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"}"
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"}"
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"}"
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"}"
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"}"
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"}"
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
echo ''
echo 'PTF test finished. Waiting 2 seconds before killing simple_switch_grpc ...'
PTF test finished. Waiting 2 seconds before killing simple_switch_grpc ...
sleep 2
sudo pkill --signal 9 --list-name simple_switch
echo ''
echo 'Verifying that there are no simple_switch_grpc processes running any longer in 4 seconds ...'
Verifying that there are no simple_switch_grpc processes running any longer in 4 seconds ...
vagrant@p4:~/p4-guide/demo1$ ./p4testgen-runptf.sh P is: /home/vagrant/p4c/backends/bmv2
p4c --target bmv2 --arch v1model --p4runtime-files demo1.p4_16.p4info.txt demo1.p4_16.p4
/bin/rm -f ss-log.txt
echo ''
echo 'Started simple_switch_grpc. Waiting 2 seconds before starting PTF test ...' Started simple_switch_grpc. Waiting 2 seconds before starting PTF test ...
sleep 2
sudo simple_switch_grpc --log-file ss-log --log-flush --dump-packet-data 10000 -i 0@veth0 -i 1@veth2 -i 2@veth4 -i 3@veth6 -i 4@veth8 -i 5@veth10 -i 6@veth12 -i 7@veth14 --no-p4 Calling target program-options parser Adding interface veth0 as port 0 Adding interface veth2 as port 1 Adding interface veth4 as port 2 Adding interface veth6 as port 3 Adding interface veth8 as port 4 Adding interface veth10 as port 5 Adding interface veth12 as port 6 Adding interface veth14 as port 7 Server listening on 0.0.0.0:9559 ++ which ptf
sudo /usr/local/bin/ptf --pypath /home/vagrant/p4c/backends/bmv2 -i 0@veth1 -i 1@veth3 -i 2@veth5 -i 3@veth7 -i 4@veth9 -i 5@veth11 -i 6@veth13 -i 7@veth15 '--test-params=grpcaddr='\''localhost:9559'\'';p4info='\''demo1.p4_16.p4info.txt'\'';config='\''demo1.p4_16.json'\''' --test-dir out-p4testgen /usr/local/lib/python3.8/dist-packages/ptf-0.9.3-py3.8.egg/EGG-INFO/scripts/ptf:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp Using packet manipulation module: ptf.packet_scapy demo1.Test0 ... Importing p4info proto from demo1.p4_16.p4info.txt ERROR
====================================================================== 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
echo ''
echo 'PTF test finished. Waiting 2 seconds before killing simple_switch_grpc ...' PTF test finished. Waiting 2 seconds before killing simple_switch_grpc ...
sleep 2
sudo pkill --signal 9 --list-name simple_switch
echo ''
echo 'Verifying that there are no simple_switch_grpc processes running any longer in 4 seconds ...' Verifying that there are no simple_switch_grpc processes running any longer in 4 seconds ...
sleep 4 ./p4testgen-runptf.sh: line 66: 3251 Killed sudo simple_switch_grpc --log-file ss-log --log-flush --dump-packet-data 10000 -i 0@veth0 -i 1@veth2 -i 2@veth4 -i 3@veth6 -i 4@veth8 -i 5@veth10 -i 6@veth12 -i 7@veth14 --no-p4
ps axguwww
grep simple_switch vagrant 3313 0.0 0.0 6432 656 pts/0 S+ 11:49 0:00 grep simple_switch