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] "GRPC error Deadline Exceeded" on subscription streaming sample #21961

Open
volodymyrsamotiy opened this issue Mar 7, 2025 · 2 comments
Assignees
Labels
Bug 🐛 Issue for 202411 Triaged this issue has been triaged

Comments

@volodymyrsamotiy
Copy link
Collaborator

Description
gnmi/test_gnmi_countersdb.py::test_gnmi_counterdb_streaming_sample_02 fails with the error "GRPC error Deadline Exceeded".

There are 2 sub cases in test_gnmi_counterdb_streaming_sample_02 test:

  1. Subscribe table
  2. Subscribe table key
  3. Subscribe table field

1st one and 3rd one are always passing and only 2nd one ("Subscribe table key") is failing:
https://github.com/sonic-net/sonic-mgmt/blob/master/tests/gnmi/test_gnmi_countersdb.py#L157

Please note, there are no errors in syslog.

Steps to reproduce the issue:
Run gnmi/test_gnmi_countersdb.py::test_gnmi_counterdb_streaming_sample_02 test and see it failed

Or run below command manually from ptf docker:

python2 /root/gnxi/gnmi_cli_py/py_gnmicli.py --timeout 30 -t <ip_addr> -p 50052 -xo sonic-db -rcert /root/gnmiCA.pem -pkey /root/gnmiclient.key -cchain /root/gnmiclient.crt --encoding 4 -m subscribe --subscribe_mode 0 --submode 2 --create_connections 1 --interval 0 --update_count 3 --xpath  /COUNTERS_DB/localhost/COUNTERS/oid:0x100000000000d

Describe the results you received:
gnmi/test_gnmi_countersdb.py::test_gnmi_counterdb_streaming_sample_02 test failed with the following error:

E       2025-03-06 16:35:22.395646 response received:
E       sync_response: true
E
E       Received an exception from server side and error message is: '<_MultiThreadedRendezvous of RPC that terminated with:
E               status = StatusCode.DEADLINE_EXCEEDED
E               details = "Deadline Exceeded"
E               debug_error_string = "{"created":"@1741278952.366274673","description":"Error received from peer ipv4:<ip_addr>:50052","file":"src/core/lib/surface/call.cc","file_line":1070,"grpc_message":"Deadline Exceeded","grpc_status":4}"
E       >'.
E       GRPC error
E        Deadline Exceeded

Describe the results you expected:
gnmi/test_gnmi_countersdb.py::test_gnmi_counterdb_streaming_sample_02 test should pass

@dgsudharsan
Copy link
Collaborator

@qiluo-msft can you please help investigate?

@arlakshm
Copy link
Contributor

@ganglyu, please help triage this issue

@arlakshm arlakshm added the Triaged this issue has been triaged label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Issue for 202411 Triaged this issue has been triaged
Projects
None yet
Development

No branches or pull requests

5 participants