-
Notifications
You must be signed in to change notification settings - Fork 652
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
Stop PMON docker before cold and soft reboots #1514
Stop PMON docker before cold and soft reboots #1514
Conversation
@jleveque Please review this PR. |
scripts/reboot
Outdated
@@ -178,6 +190,8 @@ if [ -x ${DEVPATH}/${PLATFORM}/${PLATFORM_UPDATE_REBOOT_CAUSE} ]; then | |||
${DEVPATH}/${PLATFORM}/${PLATFORM_UPDATE_REBOOT_CAUSE} | |||
fi | |||
|
|||
stop_pmon_service |
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.
I understand you want to stop this at the last possible moment, but does it just make things simpler to add the logic to the existing stop_sonic_services()
function?
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.
If there is any platform API is introduced/invoked in between, it will fail as PMON is shutdown early.
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.
I don't see a problem moving stop_sonic_service to here.
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.
@aravindthoram can we consolidate the change in stop_sonic_services and move the call to there?
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.
@yxieca I'll commit the new changes soon.
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.
Once all comments are addressed, please also add the same logic to the new soft-reboot script as part of this PR: scripts/soft-reboot
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
b4d9b1e
to
d8b7108
Compare
…o Stop_PMon_in_coldboot
…i-1/sonic-utilities into Stop_PMon_in_coldboot
@yxieca Addressed the comments. |
Prevent potential kernel oops if drivers are removed/devices are deinitialized while PMon daemons are still trying to access those devices.
Prevent potential kernel oops if drivers are removed/devices are deinitialized while PMon daemons are still trying to access those devices.
What I did
Prevent potential kernel oops if drivers are removed/devices are deinitialized while PMon daemons are still trying to access those devices.
How I did it
Edit reboot script and stop pmon docker and services
How to verify it
Check docker ps output just before cold boot is being executed.
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)
UT:
cold_boot_UT.txt