-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
After onie install with latest sonic-utilities configuration is not loaded into CONFIG_DB resulting in failure to initialize switch #20730
Comments
@qiluo-msft @wen587 Can you please prioritize this as this is a regression issue? |
@wen587 , seems "factory default configuration" fails yang validation. |
@dgsudharsan Could you share the /etc/sonic/config_db.json when issue happens? |
hi @dgsudharsan , config-setup runs when image first boot up. |
I will own the fix. |
@wen587 @qiluo-msft I don't think the fix addresses the use case I have. In my case its the interface table and config-setup needs to be fixed. The fix you marked is related to smartswitch and unrelated to my scenario. |
Hi @dgsudharsan , another fix is on the way: #21195 |
Fixes: sonic-net#20730 Why I did it The generated t1 config fails YANG validation, which leads to config setup failure since we enforce YANG validation in config reload. How I did it Update config to align with YANG How to verify it Run YANG validate on generated config.
Description
Issue due to yang validation introduced in the PR sonic-net/sonic-utilities#3576
The config-setup generates a configuration which is not yang aligned. For example loopback and interface tables are defined like below
While yang expects it to
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Output of
show version
: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: