p4runtime-shell icon indicating copy to clipboard operation
p4runtime-shell copied to clipboard

StreamChannel error and P4Runtime RPC error

Open Benature opened this issue 4 years ago • 4 comments

hello, I pull the docker from dockerhub docker pull p4lang/p4runtime-sh, and run with the instruction of P4-OVS

> ./p4runtime-sh-docker --grpc-addr 172.17.0.1:50051 --device-id 0 --config demo.p4info.txt,demo.o
CRITICAL:root:StreamChannel error, closing stream
CRITICAL:root:P4Runtime RPC error (UNAVAILABLE): failed to connect to all addresses
CRITICAL:root:Failed to establish session with server

I use VM Ubuntu18.04.5 LTS run on VirtualBox.

Benature avatar Apr 09 '21 08:04 Benature

Is 172.17.0.1 the actual address of your Docker bridge?

antoninbas avatar Apr 09 '21 08:04 antoninbas

I think it is

> ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        inet6 fe80::42:cdff:fe5e:40bb  prefixlen 64  scopeid 0x20<link>

Benature avatar Apr 09 '21 08:04 Benature

You may want to try with the IANA assigned port for P4Runtime (9559). I would also recommend trying to open a telnet TCP session to the gRPC address. If it doesn't work, then you have to figure out why first.

antoninbas avatar Apr 09 '21 08:04 antoninbas

hello, I pull the docker from dockerhub docker pull p4lang/p4runtime-sh, and run with the instruction of P4-OVS

> ./p4runtime-sh-docker --grpc-addr 172.17.0.1:50051 --device-id 0 --config demo.p4info.txt,demo.o
CRITICAL:root:StreamChannel error, closing stream
CRITICAL:root:P4Runtime RPC error (UNAVAILABLE): failed to connect to all addresses
CRITICAL:root:Failed to establish session with server

I use VM Ubuntu18.04.5 LTS run on VirtualBox.

hi, have you solved this problem now? I have the same problem and I don't know how to solve it. If you have the solution please tell me, thank you

HAIYAA avatar Jun 07 '21 08:06 HAIYAA