Symptom
When we tried to perform a gnmi request in the device we get an empty result.
in spite that we have communication with the device and the end device is not able to get a response.
gnmic -u -a X.X.X.X:50052 --insecure get --path "/interfaces/interface[name=*]/state
[
{
"source": "X.X.X.X:50052",
"timestamp": 1675272869805459193,
"time": "2023-02-01T09:34:29.805459193-08:00",
"updates": [
{
"Path": "interfaces/interface/state/oper-status",
"values": {
"interfaces/interface/state/oper-status": ""
}
}
]
}
]
When we should get at least the interface status.
linux$ gnmic -u user -a X.X.X.X:50052 --insecure get --path "/interfaces/interface[name=*]/state/oper-status"
password:
[
{
"source": "X.X.X.X:50052",
"timestamp": 1677185380454380386,
"time": "2023-02-23T14:49:40.454380386-06:00",
"updates": [
{
"Path": "interfaces/interface[name=FortyGigabitEthernet2/0/1]/state/oper-status",
"values": {
"interfaces/interface/state/oper-status": "LOWER_LAYER_DOWN"
}
},
Conditions
We found this issue in the train 17.6.x the gnxi service is running and the device is reachable.
cms1-b-core01#show gnxi state detail
Settings
========
Server: Enabled
Server port: 50052
Secure server: Disabled
Secure server port: 9339
Secure client authentication: Disabled
Secure trustpoint:
Secure client trustpoint:
Secure password authentication: Disabled
GNMI
====
Admin state: Enabled
Oper status: Up
State: Provisioned
gRPC Server
-----------
Admin state: Enabled
Oper status: Up
Configuration service
---------------------
Admin state: Enabled
Oper status: Up
Telemetry service
-----------------
Admin state: Enabled
Oper status: Up
GNOI
====
Cert Management service
-----------------
Admin state: Enabled
Oper status: Up
OS Image service
----------------
Admin state: Enabled
Oper status: Up
Supported: Supported
We also see a communication running through both devices but we can't get a response.
Workaround
none for the moment, will update if any