-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Enable GRPC log for GNMI #20798
Enable GRPC log for GNMI #20798
Conversation
/azpw ms_conflict |
@@ -17,6 +17,10 @@ X509=$(echo $TELEMETRY_VARS | jq -r '.x509') | |||
GNMI=$(echo $TELEMETRY_VARS | jq -r '.gnmi') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also make change in dockers/docker-sonic-telemetry/telemetry.sh?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, will create task for you
/azpw ms_conflict |
3 similar comments
/azpw ms_conflict |
/azpw ms_conflict |
/azpw ms_conflict |
#### Why I did it Currently, we don't have GRPC logs for the GNMI server, making it difficult to debug GRPC-level issues such as invalid certificates. #### How I did it Update gnmi-native.sh to enable GRPC_GO_LOG. #### How to verify it Send gnmi request and check gnmi log, for example: 2024 Nov 13 07:35:03.454423 str3 INFO gnmi#supervisord: gnmi-native WARNING: 2024/11/13 07:35:03 [core] grpc: Server.Serve failed to complete security handshake from "127.0.0.1:43530": tls: failed to verify client certificate: x509: certificate signed by unknown authority
Why I did it
Currently, we don't have GRPC logs for the GNMI server, making it difficult to debug GRPC-level issues such as invalid certificates.
Work item tracking
How I did it
Update gnmi-native.sh to enable GRPC_GO_LOG.
How to verify it
Send gnmi request and check gnmi log, for example:
2024 Nov 13 07:35:03.454423 str3 INFO gnmi#supervisord: gnmi-native WARNING: 2024/11/13 07:35:03 [core] grpc: Server.Serve failed to complete security handshake from "127.0.0.1:43530": tls: failed to verify client certificate: x509: certificate signed by unknown authority
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)