-
Notifications
You must be signed in to change notification settings - Fork 265
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
sonic-db-cli: Don't use unix socket for redis_chassis.server #873
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. |
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.
It looks good to me.
@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_DB
viasonic-db-cli
.If we're on a multi-asic system it will include the
-n <asic>
argument.Having the
-n <asic>
argument causessonic-db-cli
to 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 thePING
SAVE
andFLUSHALL
operations.This change provides that same tcp connection override for the other operations.