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

[202012] [db_migrator] fix old 1911 feature config migration to a new one. #1636

Merged

Conversation

stepanblyschak
Copy link
Contributor

This change is in addition to #1522.
The init_cfg.json may have important fields added to configuration, while in
previous fix these entries will not be added when table already exists.
This change fixes this behaviour. Also, in order to preserve users auto_restart
configuration a special logic for migrating CONTAINER_FEATURE table has been implemented.
A test to cover this scenario is added.

Signed-off-by: Stepan Blyschak stepanb@nvidia.com

What I did

Implemented migration for old FEATURE table.

How I did it

Added migrate_feature().

How to verify it

Old 201911 with CONTAINER_FEATURE and old FEATURE schema upgrade to new 202012.

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)

This change is in addition to sonic-net#1522.
The init_cfg.json may have important fields added to configuration, while in
previous fix these entries will not be added when table already exists.
This change fixes this behaviour. Also, in order to preserve users auto_restart
configuration a special logic for migrating CONTAINER_FEATURE table has been implemented.
A test to cover this scenario is added.

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@liat-grozovik liat-grozovik requested a review from yxieca May 27, 2021 08:01
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@yxieca yxieca merged commit 080a689 into sonic-net:202012 Jun 3, 2021
qiluo-msft pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Jun 11, 2021
Advance submodule head for sonic-utilities

b894c5b5 Fix build test failure caused by error module name (sonic-net/sonic-utilities#1662)
5a7c06a0 [config]][tacacs+] Change tacacs+ minimum timeout value base on spec (sonic-net/sonic-utilities#1631)
080a689c [202012] [db_migrator] fix old 1911 feature config migration to a new one. (sonic-net/sonic-utilities#1636)
43fff88c Change to use rvtysh when calling the show commands (sonic-net/sonic-utilities#1646)
88a823f0 [db_migrator][Mellanox] Update Mellanox buffer migrator with 2km-cable supported (sonic-net/sonic-utilities#1564)
d096ff78 [config]Static routes to config_db (1534)
a68d8d09 route_check: Updates  (sonic-net/sonic-utilities#1645)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants