You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[202205] Remove timer from FAST_REBOOT STATE_DB entry and use finalizer (#2724)
Dedicated PR for 202205 branch similar to #2621 as part of fast-reboot finalizer implementation.
This should come along with sonic-buildimage PR implementing fast-reboot finalizing logic in finalize-warmboot script and other submodules PRs utilizing the change.
This PR should come along with the following PRs as well:
sonic-net/sonic-sairedis#1217sonic-net/sonic-platform-daemons#343sonic-net/sonic-buildimage#14143
This set of PRs solves the issue sonic-net/sonic-buildimage#13251
What I did
Remove the timer used to clear fast-reboot entry from state-db, instead it will be cleared by fast-reboot finalize function implemented inside finalize-warmboot script (which will be invoked since fast-reboot is using warm-reboot infrastructure).
As well instead of having "1" as the value for fast-reboot entry in state-db and deleting it when done it is now modified to set enable/disable according to the context.
As well all scripts reading this entry should be modified to the new value options.
How I did it
Removed the timer usage in the fast-reboot script and adding fast-reboot finalize logic to warm-reboot in the linked PR.
Use "enable: true/false" instead of "1" as the entry value.
How to verify it
Run fast-reboot and check that the state-db entry for fast-reboot is being deleted after finalizing fast-reboot and not by an expiring timer.
0 commit comments