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

Fixed "ERR python3:- validateNamespace: Initialize global.." for sfpshow #3753

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

anamehra
Copy link
Contributor

@anamehra anamehra commented Feb 7, 2025

Signed-off-by: Anand Mehra [email protected]

What I did

Fixed the "ERR python3: [ :- validateNamespace: Initialize global DB config using API SonicDBConfig::initializeGlobalConfig]"
error when running 'show interfaces transceiver <>' commands.
e.g. show interfaces transceiver info Ethernet0

How I did it

Call load_db_config before multi-asic method calls.
Added test coverage.

How to verify it

Run commands like 'show interfaces transceiver info Ethernet0' on multi-asic system and check syslogs.
It should not generate the ERR logs as mentioned above.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

anamehra and others added 2 commits February 7, 2025 10:08
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamehra anamehra marked this pull request as ready for review February 7, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants