-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boot type during config reload after fast reboot is invalid #3697
Boot type during config reload after fast reboot is invalid #3697
Comments
@pavel-shirshov Instead of checking uptime? Can we check /proc/cmdline once on database postStartAction and put a mark in new state DB table (lets say 'FAST_REBOOT|system' entry to be aligned with warm reboot). Every service doing start checks the database. On config reload the state DB is cleared. What do you think? |
I think that it wouldn't be enough. We can as you propose put the key into the DB and remove it in 3 minutes (or by config reload). |
@pavel-shirshov I wasn't aware about BGP case, a new fastboot-finalizer service (similarly to warmboot-service) can remove the key after 3 min. It will work for me. |
Description
After the fast reboot, on the next config reload, the system behaves in the same way as during the fast reboot flow.
It seems that the boot type detection logic in sonic-buildimage and sonic-sairedis are not aligned:
sonic-buildimage/files/scripts/syncd.sh
sonic-sairedis/syncd/scripts/syncd_init_common.sh
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: