Closed ysmanman closed 1 month ago
This seems a regression introduced by https://github.com/sonic-net/sonic-swss-common/pull/797. Before this PR, sonic-db-cli use tcp socket to connect to CHASSIS DBs by default. But with this PR, now it always uses unix socket when namespace is provided.
Add @kenneth-arista @arista-nwolfe @arlakshm for viz.
Afte PR797, behaviours has been changed.
1) Question and confusion: If command "sonic-db-cli -n asic0 STATE_DB PING " means from localhost to ping asic0 STATE_DB, what does it mean by "sonic-db-cli -n asic0 CHASSIS_STATE_DB PING"? Are we ping asic0 CHASSIS_STATE_DB from local host? There is NO CHASSIS_STATE_DB in asic0 namespace. Should PING failure be expected?
2) If we want to allow to PING/access CHASSIS_STATE_DB regardless of "sonic-db-cli" with any asic instance ID specified in the specified in command line, then this issue needs to be addressed.
I have fixed one case with PR https://github.com/sonic-net/sonic-swss-common/pull/866 : "sonic-db-cli -n asic0 PING" which is in the database.sh. In our private branch, we temporarily address this issue by modifying the swss.sh to use sonic-db-cli without asic instance when it wants to access CHASSIS DB.
The issue will be discussed in chassis meeting.
Some related history: https://github.com/sonic-net/sonic-buildimage/pull/7002
Additional related history: https://github.com/sonic-net/sonic-buildimage/pull/17962
Description
sonic-db-cli
was not able to connect to CHASSIS DB in host namespace when namespace is provided:It worked fine within asic namespace (without providing namespace):
Steps to reproduce the issue:
1. 2. 3.
Describe the results you received:
Describe the results you expected:
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):