sonic-db-cli: Don't use unix socket for redis_chassis.server#873
Conversation
|
Tagging @mlok-nokia to confirm if this is a viable solution to the |
This fix looks good to me. It uses the same mechanism as how it has been handled in the local host. I think we can use this fix to make sonic-db-cli command behaves the same as 202205 branch. |
|
@qiluo-msft ping again, thx |
b440ed9 to
c7dcd0d
Compare
|
sonic-db-cli is behaving similar to redis-cli. If user provide |
@qiluo-msft in the PR, #797, change was made to always use unix socket when passing the This PR is fixing communication to chassis redis instance from namespace in the linecard, because we cannot use unixsocket in this case. |
|
@qiluo-msft , can you check this one? |
|
@arista-nwolfe could you rebase this branch |
c7dcd0d to
d8330cf
Compare
|
Cherry-pick PR to 202405: #883 |
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! |
5 similar comments
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! |
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! |
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! |
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! |
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! |
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! |
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days. |
4 similar comments
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days. |
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days. |
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days. |
|
@arista-nwolfe cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days. |
|
@arista-nwolfe Could you check why #883 is failing |
I was told that there is a dependency issue in I'm not sure why the 202405 cast was closed. |
Described in sonic-net/sonic-buildimage#18733 we see that swss.sh will try to access
CHASSIS_APP_DBviasonic-db-cli.If we're on a multi-asic system it will include the
-n <asic>argument.Having the
-n <asic>argument causessonic-db-clito use unix sockets due to #797If we use a unix socket to try to reach the supervisor from the LC the command will fail with:
#866 fixed a similar issue with database.sh by forcing a tcp connection when accessing
CHASSIS_APP_DB(redis_chassis.server) specifically for thePINGSAVEandFLUSHALLoperations.This change provides that same tcp connection override for the other operations.