Skip to content

[multi-asic][voq][cli] CLI commands executed from voq chassis linecard attempts to connect to chassis db in supervisor card #8113

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

Closed
vganesan-nokia opened this issue Jul 7, 2021 · 2 comments
Labels
Enhancement ➕ Triaged this issue has been triaged

Comments

@vganesan-nokia
Copy link
Contributor

Description

Currently, for all the cli commands, we connect to all databases mentioned in the database_config.json. The database_config.json also includes the databases from chassis redis server from supervisor card. It is unnecessary to connect to databases from chassis redis server in supervisor card when cli commands are executed form linecard. But we need to allow connection to chassis databases when the cli commands are executed from supervisor card.

Steps to reproduce the issue:

  1. Have voq chassis up and running with a supervisor card and at at least one linecard
  2. Execute some cli commands (show interface status, show ip interface or some config commands).
  3. Connection to chassis db in supervisor card is not user observable. But removing the supervisor card momentarily may create the issue while issuing the CLI commands and "redis connection failure" error will be displayed.

Describe the results you received:

Even with the presence of supervisor card, occasionally "redis connection failure" error is shown as the out put of the cli comand. Investigation of the back trace displayed in the screen indicates that the connection failure occured while trying to connect to CHASSIS_APP_DB and CHASSIS_STATE_DB which are in chassis db redis server running in supervisor card.

Describe the results you expected:

No "redis connection failure" error should be displayed at any time for any database (in local card or in supervisor card)

Output of show version:

In all voq chassis image versions`

Additional information you deem important (e.g. issue happens only occasionally):

This issue occurs intermittently.

@vganesan-nokia
Copy link
Contributor Author

sonic-buidimage PR #8065 and sonic-utilities PR sonic-net/sonic-utilities#1707 together fix this issue

@zhangyanzhao zhangyanzhao added Triaged this issue has been triaged Enhancement ➕ labels Jul 7, 2021
@vganesan-nokia
Copy link
Contributor Author

Fixed by #8065 and sonic-net/sonic-utilities#1707. Closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ➕ Triaged this issue has been triaged
Projects
None yet
Development

No branches or pull requests

2 participants