-
Notifications
You must be signed in to change notification settings - Fork 57
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
gnmic 0.35.1 - failed to create a gRPC client for target XXX: context deadline exceeded #367
Comments
Can you add the |
This is due to a change in go-grpc v1.60 grpc/grpc-go#6776 that enforces this section of RFC7540. I will set the cipher suites manually so that go-grpc doesn't filter them out. |
@tiago-amado v0.35.2 should advertise the same cipher suites as before go-grpc v1.60, please give it a try and let me know |
Hi @karimra , I've tested and its still failing. OK with v0.34.3[root@AF6 CLAB_CA]# gnmic version
version : 0.34.3
commit : d461fa9
date : 2023-11-14T02:13:11Z
gitURL : https://github.com/openconfig/gnmic
docs : https://gnmic.openconfig.net
[root@AF6 CLAB_CA]#
[root@AF6 CLAB_CA]# gnmic -a clab-cert01-sr -u admin -p admin --tls-ca ca.pem capabilities
gNMI version: 0.8.0
supported models:
- nokia-conf, Nokia, 23.10.R2
- nokia-state, Nokia, 23.10.R2
- nokia-li-state, Nokia, 23.10.R2
supported encodings:
- JSON
- BYTES
- PROTO
- JSON_IETF
[root@AF6 CLAB_CA]# NOK after upgrade to v0.35.2[root@AF6 CLAB_CA]# bash -c "$(curl -sL https://get-gnmic.openconfig.net/)" -- -v 0.35.2
gnmic 0.35.2 is available. Changing from version 0.34.3.
Downloading https://github.com/openconfig/gnmic/releases/download/v0.35.2/gnmic_0.35.2_linux_x86_64.tar.gz
Preparing to install gnmic 0.35.2 into /usr/local/bin
gnmic installed into /usr/local/bin/gnmic
version : 0.35.2
commit : bd70a53
date : 2024-02-06T00:46:16Z
gitURL : https://github.com/openconfig/gnmic
docs : https://gnmic.openconfig.net
[root@AF6 CLAB_CA]#
[root@AF6 CLAB_CA]# gnmic -a clab-cert01-sr -u admin -p admin --tls-ca ca.pem capabilities
target "clab-cert01-sr", capabilities request failed: failed to create a gRPC client for target "clab-cert01-sr" : clab-cert01-sr:57400: context deadline exceeded
Error: one or more requests failed
[root@AF6 CLAB_CA]# OK after downgrade to v0.33.0[root@AF6 ~]# cd /home/tiago/clab_projects/CLAB_CA/
[root@AF6 CLAB_CA]# bash -c "$(curl -sL https://get-gnmic.openconfig.net/)" -- -v 0.33.0
gnmic 0.33.0 is available. Changing from version 0.35.2.
Downloading https://github.com/openconfig/gnmic/releases/download/v0.33.0/gnmic_0.33.0_linux_x86_64.tar.gz
Preparing to install gnmic 0.33.0 into /usr/local/bin
gnmic installed into /usr/local/bin/gnmic
version : 0.33.0
commit : d8f931e
date : 2023-10-08T17:08:01Z
gitURL : https://github.com/openconfig/gnmic
docs : https://gnmic.openconfig.net
[root@AF6 CLAB_CA]#
[root@AF6 CLAB_CA]#
[root@AF6 CLAB_CA]#
[root@AF6 CLAB_CA]# gnmic -a clab-cert01-sr -u admin -p admin --tls-ca ca.pem capabilities
gNMI version: 0.8.0
supported models:
- nokia-conf, Nokia, 23.10.R2
- nokia-state, Nokia, 23.10.R2
- nokia-li-state, Nokia, 23.10.R2
supported encodings:
- JSON
- BYTES
- PROTO
- JSON_IETF
[root@AF6 CLAB_CA]# |
Can you share which cipher suites are configured on your SROS? |
This one: tls-rsa-with3des-ede-cbc-sha |
Hi @karimra. OK with v0.36.2after upgrade its working [root@AF6 CLAB_CA]# bash -c "$(curl -sL https://get-gnmic.openconfig.net/)"
gnmic 0.36.2 is available. Changing from version 0.35.2.
Downloading https://github.com/openconfig/gnmic/releases/download/v0.36.2/gnmic_0.36.2_linux_x86_64.tar.gz
Preparing to install gnmic 0.36.2 into /usr/local/bin
gnmic installed into /usr/local/bin/gnmic
version : 0.36.2
commit : a7844a6d
date : 2024-03-05T20:10:26Z
gitURL : https://github.com/openconfig/gnmic
docs : https://gnmic.openconfig.net
[root@AF6 CLAB_CA]#
[root@AF6 CLAB_CA]#
[root@AF6 CLAB_CA]#
[root@AF6 CLAB_CA]# gnmic -a 172.20.20.4:57400 -u admin -p admin --tls-ca ca.pem capabilities
gNMI version: 0.8.0
supported models:
- nokia-conf, Nokia, 23.10.R2
- nokia-state, Nokia, 23.10.R2
- nokia-li-state, Nokia, 23.10.R2
supported encodings:
- JSON
- BYTES
- PROTO
- JSON_IETF
[root@AF6 CLAB_CA]# NOK with v0.35.2I've downgrade to v0.35.2 to retest and it is still failing. I've added more ciphers on SROS and did not solve. [root@AF6 CLAB_CA]# bash -c "$(curl -sL https://get-gnmic.openconfig.net/)" -- -v 0.35.2
gnmic 0.35.2 is available. Changing from version 0.36.2.
Downloading https://github.com/openconfig/gnmic/releases/download/v0.35.2/gnmic_0.35.2_linux_x86_64.tar.gz
Preparing to install gnmic 0.35.2 into /usr/local/bin
gnmic installed into /usr/local/bin/gnmic
version : 0.35.2
commit : bd70a53
date : 2024-02-06T00:46:16Z
gitURL : https://github.com/openconfig/gnmic
docs : https://gnmic.openconfig.net
[root@AF6 CLAB_CA]#
[root@AF6 CLAB_CA]#
[root@AF6 CLAB_CA]#
[root@AF6 CLAB_CA]# gnmic -a 172.20.20.4:57400 -u admin -p admin --tls-ca ca.pem capabilities
target "172.20.20.4:57400", capabilities request failed: failed to create a gRPC client for target "172.20.20.4:57400" : 172.20.20.4:57400: context deadline exceeded
Error: one or more requests failed
[root@AF6 CLAB_CA]# |
Thanks, I think I messed up some imports in v0.35.2. |
Description
Outputs
The text was updated successfully, but these errors were encountered: