Skip to content

[action] [PR:14238] Finalize fast-reboot in warmboot finalizer#14608

Merged
mssonicbld merged 1 commit intosonic-net:202211from
mssonicbld:cherry/202211/14238
Apr 11, 2023
Merged

[action] [PR:14238] Finalize fast-reboot in warmboot finalizer#14608
mssonicbld merged 1 commit intosonic-net:202211from
mssonicbld:cherry/202211/14238

Conversation

@mssonicbld
Copy link
Collaborator

No description provided.

- Why I did it
To solve an issue with upgrade with fast-reboot including FW upgrade which has been introduced since moving to fast-reboot over warm-reboot infrastructure.
As well, this introduces fast-reboot finalizing logic to determine fast-reboot is done.

- How I did it
Added logic to finalize-warmboot script to handle fast-reboot as well, this makes sense as using fast-reboot over warm-reboot this script will be invoked. The script will clear fast-reboot entry from state-db instead of previous implementation that relied on timer. The timer could expire in some scenarios between fast-reboot finished causing fallback to cold-reboot and possible crashes.

As well this PR updates all services/scripts reading fast-reboot state-db entry to look for the updated value representing fast-reboot is active.

- How to verify it
Run fast-reboot and check that fast-reboot entry exists in state-db right after startup and being cleared as warm-reboot is finalized and not due to a timer.
@mssonicbld
Copy link
Collaborator Author

Original PR: #14238

@mssonicbld mssonicbld merged commit 73766c2 into sonic-net:202211 Apr 11, 2023
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.

2 participants