[code sync] Merge code from sonic-net/sonic-utilities:202411 to 202412#165
Merged
mssonicbld merged 2 commits intoAzure:202412from Apr 15, 2025
Merged
[code sync] Merge code from sonic-net/sonic-utilities:202411 to 202412#165mssonicbld merged 2 commits intoAzure:202412from
mssonicbld merged 2 commits intoAzure:202412from
Conversation
Collaborator
mssonicbld
commented
Apr 15, 2025
…l.." for sfpshow (#3849) Signed-off-by: Anand Mehra anamehra@cisco.com <!-- Please make sure you've read and understood our contributing guidelines: https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md failure_prs.log Make sure all your commits include a signature generated with `git commit -s` ** If this is a bug fix, make sure your description includes "closes #xxxx", "fixes #xxxx" or "resolves #xxxx" so that GitHub automatically closes the related issue when the PR is merged. If you are adding/modifying/removing any command or utility script, please also make sure to add/modify/remove any unit tests from the tests directory as appropriate. If you are modifying or removing an existing 'show', 'config' or 'sonic-clear' subcommand, or you are adding a new subcommand, please make sure you also update the Command Line Reference Guide (doc/Command-Reference.md) to reflect your changes. Please provide the following information: --> #### 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 The error is observed in syslogs but not on the command line. This log was seen while running snappi_tests/multidut/pfc/test_m2o_fluctuating_lossless.py::test_m2o_fluctuating_lossless[multidut_port_info1] ERROR [100%] E Match Messages: E 2025 Jan 7 06:27:14.025905 svcstr2-8800-lc1-1 ERR python3: :- validateNamespace: Initialize global DB config using API SonicDBConfig::initializeGlobalConfig E E 2025 Jan 7 06:27:19.861658 svcstr2-8800-lc1-1 ERR python3: :- validateNamespace: Initialize global DB config using API SonicDBConfig::initializeGlobalConfig E E 2025 Jan 7 06:27:44.184059 svcstr2-8800-lc1-1 ERR python3: :- validateNamespace: Initialize global DB config using API SonicDBConfig::initializeGlobalConfig #### 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)
arlakshm
added a commit
that referenced
this pull request
Apr 22, 2025
….msft into 202503 #169 Merge from 202412 to get the latest commits bf8cb1f [Mellanox] Support Mellanox Spectrum5 ASIC in generic configuration update (#168) af259a7 Fix show platform ssdhealth not showing expected output when a usb flash drive is plugged in (#166) 98949e4 [SRv6] add support for SRv6 counters (#167) 380345f Merge pull request #165 from mssonicbld/sonicbld/202412-merge 4899593 Merge branch '202411' of https://github.com/sonic-net/sonic-utilities into 202412 606a90a (public/202411) Fixed syslog error "ERR python3:- validateNamespace: Initialize global.." for sfpshow (#3849) cd1be5b Merge pull request #163 from mssonicbld/sonicbld/202412-merge 38f299c Merge branch '202411' of https://github.com/sonic-net/sonic-utilities into 202412 8c46f71 [sfputil] add support for sfputil debug tx-output/rx-output {port} enable/disable (#162) a6fcf56 [show][interfaces] Add proposal for show interfaces flap (#3627) (#3823)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.