[202205] Clear teamd-timer when finalizing fast-reboot (#14295)
* Clear teamd-timer when finalizing fast-reboot * Move config save after finalizing fast/warm reboot
This commit is contained in:
parent
8495a17228
commit
e2ed36c764
@ -112,6 +112,7 @@ function finalize_fast_reboot()
|
|||||||
{
|
{
|
||||||
debug "Finalizing fast-reboot..."
|
debug "Finalizing fast-reboot..."
|
||||||
sonic-db-cli STATE_DB hset "FAST_RESTART_ENABLE_TABLE|system" "enable" "false" &>/dev/null
|
sonic-db-cli STATE_DB hset "FAST_RESTART_ENABLE_TABLE|system" "enable" "false" &>/dev/null
|
||||||
|
sonic-db-cli CONFIG_DB DEL "WARM_RESTART|teamd" &>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
function stop_control_plane_assistant()
|
function stop_control_plane_assistant()
|
||||||
@ -169,10 +170,6 @@ if [[ (x"${WARM_BOOT}" == x"true") && (x"${FAST_REBOOT}" != x"true") ]]; then
|
|||||||
stop_control_plane_assistant
|
stop_control_plane_assistant
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Save DB after stopped control plane assistant to avoid extra entries
|
|
||||||
debug "Save in-memory database after warm/fast reboot ..."
|
|
||||||
config save -y
|
|
||||||
|
|
||||||
if [[ -n "${list}" ]]; then
|
if [[ -n "${list}" ]]; then
|
||||||
debug "Some components didn't finish reconcile: ${list} ..."
|
debug "Some components didn't finish reconcile: ${list} ..."
|
||||||
fi
|
fi
|
||||||
@ -184,3 +181,7 @@ fi
|
|||||||
if [ x"${WARM_BOOT}" == x"true" ]; then
|
if [ x"${WARM_BOOT}" == x"true" ]; then
|
||||||
finalize_warm_boot
|
finalize_warm_boot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Save DB after stopped control plane assistant to avoid extra entries
|
||||||
|
debug "Save in-memory database after warm/fast reboot ..."
|
||||||
|
config save -y
|
||||||
|
Reference in New Issue
Block a user