Skip to content

Commit

Permalink
[202205] Extend fast-reboot STATE_DB entry timer (#2578)
Browse files Browse the repository at this point in the history
This is a PR against 202205 based on the following PR: #2577
Due to an issue of fallback from to cold-boot when using upgrade with fast-reboot combined with FW upgrade a short term solution is to extend the timer.
An issue will be opened on this case with the full details, link will be added to the PR.
Long term solution of using fast-reboot finalizer replacing the timer is in work.

What I did
Extend the timer of STATE DB fast-reboot entry to 210 seconds.

How I did it
Modify the TTL of the entry set in STATE DB.

How to verify it
Verify the entry was preserved for 210 seconds.
  • Loading branch information
arfeigin authored Jan 17, 2023
1 parent 7fc3fb7 commit 0bc17f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ case "$REBOOT_TYPE" in
check_warm_restart_in_progress
BOOT_TYPE_ARG=$REBOOT_TYPE
trap clear_boot EXIT HUP INT QUIT TERM KILL ABRT ALRM
sonic-db-cli STATE_DB SET "FAST_REBOOT|system" "1" "EX" "180" &>/dev/null
sonic-db-cli STATE_DB SET "FAST_REBOOT|system" "1" "EX" "210" &>/dev/null
config warm_restart enable system
;;
"warm-reboot")
Expand Down

0 comments on commit 0bc17f8

Please sign in to comment.