Skip to content
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

[[supervisor][show][interfaces]show interfaces command shows warning on Supervisor card #8521

Closed
mlok-nokia opened this issue Aug 18, 2021 · 1 comment · Fixed by sonic-net/sonic-utilities#1771

Comments

@mlok-nokia
Copy link
Contributor

Description

On Supervisor card, execute CLI "show interfaces status" command. A warning message "Warning: failed to retrieve PORT table from ConfigDB!" is displayed since there is NO port interfaces on supervisor card

Steps to reproduce the issue:

  1. login to supervisor card.
  2. execute the CLI command "show interfaces status"

Describe the results you received:

admin@supervisor:~$ show interfaces status
Warning: failed to retrieve PORT table from ConfigDB!
Warning: failed to retrieve PORT table from ConfigDB!
  Interface    Lanes    Speed    MTU    FEC    Alias    Vlan    Oper    Admin    Type    Asym PFC
-----------  -------  -------  -----  -----  -------  ------  ------  -------  ------  ----------

Describe the results you expected:

admin@supervisor:~$ show interfaces status
  Interface    Lanes    Speed    MTU    FEC    Alias    Vlan    Oper    Admin    Type    Asym PFC
-----------  -------  -------  -----  -----  -------  ------  ------  -------  ------  ----------

Output of show version:

Based on commit 3b301279
It seems the issue still exists in the latest github code

Output of show techsupport:

(paste your output here or download and attach the file here )

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

@mlok-nokia
Copy link
Contributor Author

Fixed by 1754

arlakshm pushed a commit to sonic-net/sonic-utilities that referenced this issue Nov 4, 2021
…g on Supervisor card (#1771)

What I did
Fixed sonic-net/sonic-buildimage#8521

How I did it
Before displaying the warning message, call device_info.is_supervisor() function to check if it is supervisor card, don't display the warning message.

How to verify it
Running the image on supervisor card
Execute the CLI "show interfaces status"
No warning should be seen.

Signed-off-by: mlok <[email protected]>
judyjoseph pushed a commit to sonic-net/sonic-utilities that referenced this issue Nov 14, 2021
…g on Supervisor card (#1771)

What I did
Fixed sonic-net/sonic-buildimage#8521

How I did it
Before displaying the warning message, call device_info.is_supervisor() function to check if it is supervisor card, don't display the warning message.

How to verify it
Running the image on supervisor card
Execute the CLI "show interfaces status"
No warning should be seen.
malletvapid23 added a commit to malletvapid23/Sonic-Utility that referenced this issue Aug 3, 2023
…g on Supervisor card (#1771)

What I did
Fixed sonic-net/sonic-buildimage#8521

How I did it
Before displaying the warning message, call device_info.is_supervisor() function to check if it is supervisor card, don't display the warning message.

How to verify it
Running the image on supervisor card
Execute the CLI "show interfaces status"
No warning should be seen.

Signed-off-by: mlok <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant