-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[master][chassis][mutil-asic] db_migrate.py show error and back trace while loading configuration on Linecard #18389
Comments
Compare of current code and original code: Current code: Original code: So, what happen is, on multiasic device, during bootup, the namespace parameter is None, then in old code db_migrator will initialize with local config. in new code, db_migrator will initialize with global config. Will verify fix on hardware. |
Created fix PR: sonic-net/sonic-utilities#3257 |
@mlok-nokia , according to Judy's comments in this PR: sonic-net/sonic-utilities#3257 sonic-net/sonic-utilities#3257 (comment): Can you check if the issue can fix by call this script after config file generated? |
@liuh-80 @judyjoseph all instance database@.service have dependency "Requires=database.service There are two options for multi-asic platform:
|
…on on Linecard (#3257) Fix db_migrate.py show error and back trace while loading configuration on Linecard #### Why I did it Fix [issue @](sonic-net/sonic-buildimage#18389) #### How I did it Revert code change by #3100 Check DB config initialize state and ignore when initialized. #### How to verify it Pass all UT. Manually test. ##### Work item tracking - Microsoft ADO **(number only)**: 27384235 #### Which release branch to backport (provide reason below if selected) N/A #### Description for the changelog Fix db_migrate.py show error and back trace while loading configuration on Linecard #### A picture of a cute animal (not mandatory but encouraged)
Fixed |
…on on Linecard (sonic-net#3257) Fix db_migrate.py show error and back trace while loading configuration on Linecard #### Why I did it Fix [issue @](sonic-net/sonic-buildimage#18389) #### How I did it Revert code change by sonic-net#3100 Check DB config initialize state and ignore when initialized. #### How to verify it Pass all UT. Manually test. ##### Work item tracking - Microsoft ADO **(number only)**: 27384235 #### Which release branch to backport (provide reason below if selected) N/A #### Description for the changelog Fix db_migrate.py show error and back trace while loading configuration on Linecard #### A picture of a cute animal (not mandatory but encouraged)
Description
On master branch, during multi-asic platfom linecard is booting up, db_migrate,py show the following back trace. This could be caused by PR sonic-net/sonic-utilities#3100. database@#.Service dependency "Requires=database.service
After=database.service". While db_migrate.py is run on the local database, ASIC instance database0 and database1 have not created the /var/run/redis0/sonic-db/database-config.json yet. It looks like PR sonic-net/sonic-utilities#3100 use "load_db_config()" and cause this backtarce.
Steps to reproduce the issue:
Describe the results you received:
Error show on syslog
Describe the results you expected:
Output of
show version
:Master branch
Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: