Skip to content

[action] [PR:132] Fixed determine/process reboot-cause service dependency (#17406) (#132)#138

Merged
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/132
Jul 10, 2024
Merged

[action] [PR:132] Fixed determine/process reboot-cause service dependency (#17406) (#132)#138
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/132

Conversation

@mssonicbld
Copy link
Copy Markdown

Signed-off-by: anamehra <anamehra@cisco.coFixes sonic-net/sonic-buildimage#16990 for 202405 branch

determine-reboot-cause and process-reboot-cause service does not start If the database service fails to restart in the first attempt. Even if the Database service succeeds in the next attempt, these reboot-cause services do not start.

The process-reboot-cause service also does not restart if the docker or database service restarts, which leads to an empty reboot-cause history

deploy-mg from sonic-mgmt also triggers the docker service restart. The restart of the docker service caused the issue stated in 2 above. The docker restart also triggers determine-reboot-cause to restart which creates an additional reboot-cause file in history and modifies the last reboot-cause.

This PR fixes these issues by making both processes start again when dependency meets after dependency failure, making both processes restart when the database service restarts, and preventing duplicate processing of the last reboot reason.m>

…ic-net#132)

Signed-off-by: anamehra <anamehra@cisco.coFixes sonic-net/sonic-buildimage#16990 for 202405 branch



determine-reboot-cause and process-reboot-cause service does not start If the database service fails to restart in the first attempt. Even if the Database service succeeds in the next attempt, these reboot-cause services do not start.

The process-reboot-cause service also does not restart if the docker or database service restarts, which leads to an empty reboot-cause history

deploy-mg from sonic-mgmt also triggers the docker service restart. The restart of the docker service caused the issue stated in 2 above. The docker restart also triggers determine-reboot-cause to restart which creates an additional reboot-cause file in history and modifies the last reboot-cause.

This PR fixes these issues by making both processes start again when dependency meets after dependency failure, making both processes restart when the database service restarts, and preventing duplicate processing of the last reboot reason.m>
@mssonicbld
Copy link
Copy Markdown
Author

Original PR: #132

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