Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnmi_cli with ca_cert option not working #67

Open
dlakshma opened this issue Jan 22, 2020 · 2 comments
Open

gnmi_cli with ca_cert option not working #67

dlakshma opened this issue Jan 22, 2020 · 2 comments

Comments

@dlakshma
Copy link

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:
TLS:&{ [] map[] 0xc0001158c0 [] 0 false [] false false [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 0 0 [] false 0 {0 {0 0}} {{0 0} 0 0 0 0} []}

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.

@mahnoorfirdous
Copy link

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

@kirazero17
Copy link

kirazero17 commented Mar 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants