[warm reboot] save configuration after warm reboot (#3200)

* [warm reboot] save configuration after warm reboot

After warm reboot, save a copy of in memory database to config_db.json,
upgrade procedure might have removed config_db.json to force new image
to reload minigraph. However, reload minigraph is skipped during warm
reboot. Missing config_db.json would cause device to fault in next
non-upgrading cold/fast reboot.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* Update finalize-warmboot.sh
This commit is contained in:
Ying Xie 2019-07-24 09:59:47 -07:00 committed by GitHub
parent dbda34f2f8
commit 9d64ce761f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,11 @@ if [[ x"${WARM_BOOT}" != x"true" ]]; then
exit 0
fi
# No need to wait for the reconciliation process. Database has been loaded
# and migrated. This is good enough to save a copy.
debug "Save in-memory database after warm reboot ..."
config save -y
list=${COMP_LIST}
# Wait up to 5 minutes