Skip to content

[fpmsyncd][WR] Relax the static schema constraint for ROUTE_TABLE#2981

Merged
dgsudharsan merged 7 commits intosonic-net:masterfrom
vivekrnv:fpmsyncd_wr_fix
Dec 8, 2023
Merged

[fpmsyncd][WR] Relax the static schema constraint for ROUTE_TABLE#2981
dgsudharsan merged 7 commits intosonic-net:masterfrom
vivekrnv:fpmsyncd_wr_fix

Conversation

@vivekrnv
Copy link
Copy Markdown
Contributor

@vivekrnv vivekrnv commented Dec 6, 2023

What I did

Remove the assert when the schema changes and in that case, imply a diff and pass it down to orchagent. Fixed sonic-net/sonic-buildimage#17322

Why I did it

warmRestartHelper assumes a static schema during warm upgrade reconciliation. To overcome this, the db_migrator is used to add the missing fields in the ROUTE_TABLE. This is leading to control plane downtime exceeding 90 sec.

How I verified it

UT:

vkarri@11ca2f5ec619:/sonic/src/sonic-swss/tests/mock_tests$ ./tests --gtest_filter="*WRHelper*"
Running main() from /build/googletest-YnT0O3/googletest-1.10.0.20201025/googletest/src/gtest_main.cc
Note: Google Test filter = *WRHelper*
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from WRHelperTest
[ RUN      ] WRHelperTest.testReconciliation
[       OK ] WRHelperTest.testReconciliation (1 ms)
[----------] 1 test from WRHelperTest (1 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (1 ms total)
[  PASSED  ] 1 test.

Details if related

@vivekrnv vivekrnv requested a review from prsunny as a code owner December 6, 2023 04:29
dgsudharsan
dgsudharsan previously approved these changes Dec 6, 2023
@prsunny prsunny requested review from qiluo-msft and yxieca December 7, 2023 00:29
prsunny
prsunny previously approved these changes Dec 7, 2023
@prsunny
Copy link
Copy Markdown
Collaborator

prsunny commented Dec 7, 2023

wait for @yxieca to signoff

dgsudharsan
dgsudharsan previously approved these changes Dec 7, 2023
dgsudharsan
dgsudharsan previously approved these changes Dec 7, 2023
StormLiangMS pushed a commit that referenced this pull request Dec 15, 2023
) (#2983)

Remove the assert when the schema changes and in that case, imply a diff and pass it down to orchagent
yxieca pushed a commit to sonic-net/sonic-utilities that referenced this pull request Dec 15, 2023
Fix sonic-net/sonic-buildimage#17322
Remove the route migration operation from db_migrator. The route migration operation takes a lot of time as indicated in the below issue. This is not necessary since the hardcoded assert in the fpmsyncd on new fields is removed in sonic-net/sonic-swss#2981
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Dec 16, 2023
Fix sonic-net/sonic-buildimage#17322
Remove the route migration operation from db_migrator. The route migration operation takes a lot of time as indicated in the below issue. This is not necessary since the hardcoded assert in the fpmsyncd on new fields is removed in sonic-net/sonic-swss#2981
mssonicbld pushed a commit to sonic-net/sonic-utilities that referenced this pull request Dec 16, 2023
Fix sonic-net/sonic-buildimage#17322
Remove the route migration operation from db_migrator. The route migration operation takes a lot of time as indicated in the below issue. This is not necessary since the hardcoded assert in the fpmsyncd on new fields is removed in sonic-net/sonic-swss#2981
mssonicbld pushed a commit to mssonicbld/sonic-swss that referenced this pull request Feb 2, 2024
…nic-net#2981)

Remove the assert when the schema changes and in that case, imply a diff and pass it down to orchagent
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202311: #3030

mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Feb 2, 2024
Fix sonic-net/sonic-buildimage#17322
Remove the route migration operation from db_migrator. The route migration operation takes a lot of time as indicated in the below issue. This is not necessary since the hardcoded assert in the fpmsyncd on new fields is removed in sonic-net/sonic-swss#2981
mssonicbld pushed a commit to sonic-net/sonic-utilities that referenced this pull request Feb 2, 2024
Fix sonic-net/sonic-buildimage#17322
Remove the route migration operation from db_migrator. The route migration operation takes a lot of time as indicated in the below issue. This is not necessary since the hardcoded assert in the fpmsyncd on new fields is removed in sonic-net/sonic-swss#2981
mssonicbld pushed a commit to mssonicbld/sonic-swss that referenced this pull request Mar 4, 2024
…nic-net#2981)

Remove the assert when the schema changes and in that case, imply a diff and pass it down to orchagent
@mssonicbld
Copy link
Copy Markdown
Collaborator

@vivekrnv cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days.
#3030

vivekrnv added a commit to vivekrnv/sonic-swss that referenced this pull request Mar 4, 2024
…nic-net#2981)

Remove the assert when the schema changes and in that case, imply a diff and pass it down to orchagent
yxieca added a commit that referenced this pull request Apr 5, 2024
) (#3067)

Remove the assert when the schema changes and in that case, imply a diff and pass it down to orchagent

Co-authored-by: Ying Xie <[email protected]>
nmoray pushed a commit to nmoray/sonic-utilities that referenced this pull request Jun 25, 2025
Fix sonic-net/sonic-buildimage#17322
Remove the route migration operation from db_migrator. The route migration operation takes a lot of time as indicated in the below issue. This is not necessary since the hardcoded assert in the fpmsyncd on new fields is removed in sonic-net/sonic-swss#2981
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…nic-net#2981)

Remove the assert when the schema changes and in that case, imply a diff and pass it down to orchagent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[warm-upgrade] db_migrator.py takes more time to run due to numerous entries to migrate in APPL_DB ROUTE_TABLE

9 participants