gnmi
gnmi copied to clipboard
gnmi_cli with ca_cert option not working
Hi,
I am trying to use gnmi_cli command, where server is started with following option creds, err := credentials.NewServerTLSFromFile(*certFile, *keyFile)
however when i run the client i am getting the timeout error consistently. For now i have made changes to validate only the server side certificate as per following sample code: server.go https://github.com/grpc/grpc-go/blob/master/examples/route_guide/server/server.go
./gnmi_cli -alsologtostderr -ca_crt /bldimg/fusion/dlakshma/myca_ca.cert.pem -address 10.37.18.172:50052 -get -proto 'prefix:<elem:<name:"interfaces" > elem:<name:"interface" key:<key:"name" value:"interface ethernet 1/1" > > > '
addres:[10.37.18.172:50052]
Target:
Timeout:30s
Credentials:
E0122 04:12:21.114742 59705 gnmi_cli.go:189] could not create a gNMI client: Dialer(10.37.18.172:50052, 30s): context deadline exceeded
Can you please let me know if i am missing anything here
Thanks.
Why is this issue still open? Isn't this a very basic issue that has to be addressed? I'm having the same issue. I'm running the fake_server in the testing directory and getting this, when all I did was follow the instructions. No errors on the fake_server logs. It's just pretending the server is not there
I used Micro-ONOS CLI to connect to the gNMI device-simulator and got similar issue:
E0320 07:10:13.163045 258 gnmi_cli.go:197] could not create a gNMI client: Dialer(devicesim-1-device-simulator:10161, 15s): context deadline exceeded