[202012] Migrate missed config on cross branch warm upgrade to 202012 #2277
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What I did
Warm upgrade from 201811 (or 201911) to 202012 branch generates config which does not contain some new tables, config attributes introduced in 202012 branch.
RESTAPI
,TELEMETRY
andCONSOLE_SWITCH
.synchronous_mode
inMETADATA
201811 image does not have vxlanmgrd. Thus, during warmboot from 201811 to 202012, vxlanmgrd does not do warmstart and reconciliation as restore_count for vxlanmgrd was not set in 201811 image. Since nothing is reconciled to appdb, vxlanorch has nothing to process. Hence, orchagent bake process misses VXLAN_TUNNEL* entries.
Consequently, syncd reports differences between CURRENT and TEMP view and attempts to remove VXLAN entries in new image. This remove operation fail and swss, syncd both crash.
How I did it
Advanced db_migrator version on 202012 branch to handle the new migration logic.
How to verify it
Tested on physical device and executed unit tests locally.
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)