-
Notifications
You must be signed in to change notification settings - Fork 711
[db_migrator]Do DB migration for buffer pool size change on Mellanox platform #833
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
Conversation
merge from Azure mater
merge from master
enhace migration fail case
Can this change survive following scenarios:
db_migration towards config_db.json could be too late? migration is invoked after database has loaded the config_db.json into memory. |
enhanced the logic to handle more corner cases. the cases you mentioned have been covered. |
simplify the way to generate new buffer configuration.
retest this please |
1 similar comment
retest this please |
I don't think we need to save in-memory db back to config_db.json. Because we can always migrate and migrate is one step of load config_db.json. If the migration failed, we definitely don't want to write back. right? As such, I think you should leave /etc/sonic/config_db.sjon alone. So that it is consistent by itself. And an updated migration code could handle it in the future. |
Agree to Ying. |
@yxieca @prsunny then we are ok, I will not do further change to save migrated DB to config_db.json. Thanks. |
3800 platform need special buffer configuration
…platform (#833) * do DB migration for buffer pool size change with new SDK version * fix review comments enhace migration fail case * make migrator can work with warm reboot case * ehnahce the logic to cover more corner case simplify the way to generate new buffer configuration. * remove code to get info from config_db.json since it's not necessary 3800 platform need special buffer configuration
…platform (sonic-net#833) * do DB migration for buffer pool size change with new SDK version * fix review comments enhace migration fail case * make migrator can work with warm reboot case * ehnahce the logic to cover more corner case simplify the way to generate new buffer configuration. * remove code to get info from config_db.json since it's not necessary 3800 platform need special buffer configuration
*CLI based on Routed subinterface enhancements HLD #833 *Added support for configuring routed subinterface in short name and long name format *Updated show command to display user configured subinterfaces in correct format.
*CLI based on Routed subinterface enhancements HLD #833 *Added support for configuring routed subinterface in short name and long name format *Updated show command to display user configured subinterfaces in correct format.
[fwutil]: Use overlay driver when mounting next image filesystem (sonic-net#825) Fix for adding L3 interface to Vlan group (sonic-net#826)Fix for adding L3 interface to Vlan group (sonic-net#826) [db_migrator]Do DB migration for buffer pool size change on Mellanox platform (sonic-net#833) explicitly specify command with underscores (sonic-net#846) [intfutil] set speed to 0 when interface speed is not available (sonic-net#839)
- What I did
Do DB migration for buffer pool size change introduced by new SDK, this is specifically for the Mellanox platform.
- How I did it
Advance the DB version to a new version 1_0_3, and add Mellanox specific DB migration functions.
Inside the function to migrate the buffer pool size to the latest values.
- How to verify it
test sonic to sonic upgrade from between various version and different topology.
- 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)