-
Notifications
You must be signed in to change notification settings - Fork 539
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
Fix portmgr write partial port config to app DB issue. #3304
Conversation
// Port configuration is handled by the orchagent. If the configuration is written to the APP DB using | ||
// multiple Redis write commands, the orchagent may receive a partial configuration and create a port | ||
// with incorrect settings. | ||
field_values.emplace_back("mtu", mtu); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are defaults in orchagent for these attributes. are you saying those defaults are different from this ones?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @prsunny , the problem here is the invalid admin status missing in database, which cause the port been created:
2024-09-20.02:50:54.253615|PORT_TABLE:Ethernet1000|SET|lanes:1000,1001,1002,1003|speed:100000|mtu:9100
@bingwang-ms for viz |
Fix portmgr write partial port config to app DB issue. Why I did it Test case test_add_remove_neg_admin_status unstable.
Cherry-pick PR to 202405: #3327 |
Fix portmgr write partial port config to app DB issue. Why I did it Test case test_add_remove_neg_admin_status unstable.
Fix portmgr write partial port config to app DB issue. Why I did it Test case test_add_remove_neg_admin_status unstable.
Fix portmgr write partial port config to app DB issue. Why I did it Test case test_add_remove_neg_admin_status unstable.
Fix portmgr write partial port config to app DB issue.
Why I did it
Test case test_add_remove_neg_admin_status unstable.
Work item tracking
How I did it
Improve portmgr code to write all port config with one API call.
How to verify it
Pass all UT.
Manually verify issue fixed.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Fix portmgr write partial port config to app DB issue.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)