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

Revert "[portconfig]: Remove try block for db config initialization" #10756

Merged
merged 1 commit into from
May 6, 2022

Conversation

SuvarnaMeenakshi
Copy link
Contributor

Reverts #10581
Below error seen when sonic-cfggen tries to get the hwsku(/usr/local/bin/sonic-cfggen -H -v DEVICE_METADATA.localhost.platform) for device path directory, during boot up

Traceback (most recent call last):
File "/usr/local/bin/sonic-cfggen", line 451, in
main()
File "/usr/local/bin/sonic-cfggen", line 304, in main
SonicDBConfig.load_sonic_db_config()
File "/usr/lib/python3/dist-packages/swsscommon/swsscommon.py", line 1252, in load_sonic_db_config
SonicDBConfig.initialize(sonic_db_file_path)
File "/usr/lib/python3/dist-packages/swsscommon/swsscommon.py", line 1247, in initialize
return _swsscommon.SonicDBConfig_initialize(*args, **kwargs)
RuntimeError: Sonic database config file doesn't exist at /var/run/redis/sonic-db/database_config.json

@prgeor prgeor added the Bug 🐛 label May 5, 2022
@prgeor prgeor merged commit 66c96ea into master May 6, 2022
@qiluo-msft qiluo-msft deleted the revert-10581-portconfig_master branch May 6, 2022 21:14
liushilongbuaa pushed a commit to liushilongbuaa/sonic-buildimage that referenced this pull request Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants