I get an error when streaming the table through P4runtime.
Traceback (most recent call last):
File "/home/p4/tutorials/exercises/PubSub/test1.py", line 107, in <module>
main(p4info, bmv2_json, sw, sw_address, id, dst_ip_addr, prefix,es_port,table)
File "/home/p4/tutorials/exercises/PubSub/test1.py", line 83, in main
writeAggregatedRules(p4info_helper,s,es_port_list,dst_ip_addr_list,prefix_list,table_list)
File "/home/p4/tutorials/exercises/PubSub/test1.py", line 38, in writeAggregatedRules
sw.WriteTableEntry(table_entry)
File "/home/p4/tutorials/exercises/PubSub/../../utils/p4runtime_lib/switch.py", line 101, in WriteTableEntry
self.client_stub.Write(request)
File "/usr/local/lib/python3.8/dist-packages/grpc/_interceptor.py", line 207, in __call__
response, ignored_call = self._with_call(
File "/usr/local/lib/python3.8/dist-packages/grpc/_interceptor.py", line 240, in _with_call
call = self._interceptor.intercept_unary_unary(
File "/home/p4/tutorials/exercises/PubSub/../../utils/p4runtime_lib/switch.py", line 230, in intercept_unary_unary
return continuation(client_call_details, request)
File "/usr/local/lib/python3.8/dist-packages/grpc/_interceptor.py", line 228, in continuation
response, call = self._thunk(new_method).with_call(
File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 557, in with_call
return _end_unary_response_blocking(state, call, True, None)
File "/usr/local/lib/python3.8/dist-packages/grpc/_channel.py", line 466, in _end_unary_response_blocking
raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNKNOWN
details = ""
debug_error_string = "{"created":"@1689669102.561950578","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1036,"grpc_message":"","grpc_status":2}"
>
The error seems to be random, sometimes I get an error the first time I call the relevant py file to send down that flow table, sometimes the second time.
I didn’t find a solution for this in my online research, its reported as UNKOWN.
The format of the parameter I am sending down is correct (because it went down the first time)
What should I do to solve the problem?