Thrift API Having Trouble Establishing Connection Between the Client and the Server

55 views
Skip to first unread message

Shaoyu Tu

unread,
Apr 9, 2024, 8:23:38 PM4/9/24
to open-nfp
Hello,

I have been troubleshooting with Octavio from Netronome Support regarding my issue for a few weeks now. I thought maybe others may have some input as to fixing this issue as well.

For context I am working with:
2x40G sNIC - Agilio LX SmartNIC 
model - assembly.partno=AMDA0058-0011
serial - assembly.serial=15350089
assembly.vendor=SMA
**chip.model=NFP6011** - nfp.model=0x60110010
Linux flashstack-7 4.15.0-142-generic #146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

The error that I get happens during the "rtecli design-load ... pif_design.json" where after some time with forced termination I would get the following output.

```

###:/home/stu024/simpleP4# ~/SNIC_SDK/nfp-sdk-6.0.4/p4/bin/rtecli design-load -f compiled_file.nffw -p /home/stu024/simpleP4/nfp-build/pif_design.json -c p4lab_rule.p4cfg

^CTraceback (most recent call last):

  File "<string>", line 13, in <module>

  File "sdk6_rte_cli.py", line 479, in main

  File "sdk6_rte_cli.py", line 39, in _rte_cmd

  File "contextlib.py", line 17, in __enter__

  File "/root/SNIC_SDK/nfp-sdk-6.0.4/p4/lib/p4pylibs.zip/nfp_pif_rte/RTEInterface.py", line 447, in ConnectCtx

  File "/root/SNIC_SDK/nfp-sdk-6.0.4/p4/lib/p4pylibs.zip/nfp_pif_rte/RTEInterface.py", line 437, in Connect

  File "/root/SNIC_SDK/nfp-sdk-6.0.4/p4/lib/p4pylibs.zip/nfp_pif_rte/RTEInterface.py", line 62, in _RPC

  File "/root/SNIC_SDK/nfp-sdk-6.0.4/p4/lib/p4pylibs.zip/nfp_pif_rte/RTEInterface.py", line 323, in Ping

  File "/root/SNIC_SDK/nfp-sdk-6.0.4/p4/lib/p4pylibs.zip/nfp_pif_rte/sdk6_rte/RunTimeEnvironment.py", line 280, in sys_ping

  File "/root/SNIC_SDK/nfp-sdk-6.0.4/p4/lib/p4pylibs.zip/nfp_pif_rte/sdk6_rte/RunTimeEnvironment.py", line 291, in recv_sys_ping

  File "thrift/protocol/TBinaryProtocol.py", line 126, in readMessageBegin

  File "thrift/protocol/TBinaryProtocol.py", line 206, in readI32

  File "thrift/transport/TTransport.py", line 58, in readAll

  File "thrift/transport/TZlibTransport.py", line 191, in read

  File "thrift/transport/TZlibTransport.py", line 200, in readComp

  File "thrift/transport/TTransport.py", line 159, in read

  File "thrift/transport/TSocket.py", line 105, in read

KeyboardInterrupt

rtecli returned -1

###:/home/stu024/simpleP4# ~/SNIC_SDK/nfp-sdk-6.0.4/p4/bin/rtecli design-load -f compiled_file.nffw -p /home/stu024/simpleP4/nfp-build/pif_design.json -c p4lab_rule.p4cfg

error: Communication failure with RPC server: TSocket read 0 bytes

```
Has anyone ran into this issue before and if so are there any suggestions to resolving this.

Thank you for your time.

Best,
Shaoyu Tu
Reply all
Reply to author
Forward
0 new messages