-
Notifications
You must be signed in to change notification settings - Fork 650
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
Load the database global_db #1752
Conversation
Signed-off-by: Suvarna Meenakshi <[email protected]>
Hi @SuvarnaMeenakshi. Thanks for the fix. |
Curious why didn't the unit tests catch this. Was it because of mock APIs. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Thank you for the pointer , as discussed seems like though the top level show cli does a load for global_db, which only works when the command is directly executed. In case of show interfaces or show pfc counters, which in turn invokes a script, the script also would require the global_db to be loaded as it is executed as a stand alone script with a different SonicV2connector/ConfigDBConnector class. |
Yes , that is right. The unit-test uses mock class which uses sonic-py-swsssdk to mock. |
What I did Recent change was done to remove call to load database global_db which expects the clients to load global_db. [sonic-net/sonic-buildimage#8173] The load global_db was missing in multi_asic.py which was causing "show interfaces cli" to fail. While testing on multi-asic VS image: How I did it load global_db config in multi_asic.py. How to verify it Load multi-asic VS image with the fix. Signed-off-by: Suvarna Meenakshi <[email protected]>
Signed-off-by: Suvarna Meenakshi [email protected]
What I did
Recent change was done to remove call to load database global_db which expects the clients to load global_db.
[https://github.com/sonic-net/sonic-buildimage/pull/8173]
The load global_db was missing in multi_asic.py which was causing "show interfaces cli" to fail.
While testing on multi-asic VS image:
How I did it
load global_db config in multi_asic.py.
How to verify it
Load multi-asic VS image with the fix.
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)