-
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
[fast-reboot] fixes Azure/sonic-buildimage#4006 #4008
base: master
Are you sure you want to change the base?
Conversation
@dawnbeauty this DB entry is designed to be used on the fast-reboot boot up path. The purpose is to control how long do we treat the boot up as 'fast' recovery. This knob is not designed to trigger fast shutdown. The fast-reboot shutdown syncd just like code reboot. Therefore, this change is not needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is not needed.
@yxieca Yeah, I could change the DB entry accordingly. syncd.cpp
|
If you look at the syncd service script stop() method here: https://github.com/Azure/sonic-buildimage/blob/master/files/scripts/syncd.sh#L154 The syncd stop only distinguish if it is warm shutdown or not. For fast-reboot, all we need to do is to 'cold' shutdown syncd, which will remove switch, basically detach the ASIC from the CPU. And leave the ASIC forwarding as it is configured. That is all that we need to do for fast-reboot on the shutdown path. |
According to the comments of SAI_SWITCH_ATTR_UNINIT_DATA_PLANE_ON_REMOVAL (SAIv1.5.1):
The default value of this attr is |
Fixes #4006
sonic-buildimage/files/scripts/syncd.sh
could detect theFAST
mode by the saved state, and request syncd to trigger fast shutdown.