openconfig / gnmi

gRPC Network Management Interface
Apache License 2.0
459 stars 196 forks source link

gnmic with tls-ca : context deadline exceeded #158

Closed mghildiy closed 10 months ago

mghildiy commented 10 months ago

I am trying to run a gnmic command with tls-ca option:

gnmic -u admin -p admin --tls-ca /path/to/root-ca -a <ip>:<port> capabilities

I have configured gNMI on mimic, with TLS certificate and key(corresponding to root ca) configured.

But this doesn't work, with error:

target ".......", capabilities request failed: failed to create a gRPC client for target ......: context deadline exceeded
Error: one or more requests failed

But with --insecure flag things work. So something is not working when I try to do TLS verification.

What can be missing in my whole setup, either on gNMI side or from gnmic side?

mghildiy commented 10 months ago

Opened at gnmic repo.