-
Notifications
You must be signed in to change notification settings - Fork 543
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
On teammgrd/teamsyncd exits, return EXIT_FAILURE #2230
base: master
Are you sure you want to change the base?
Conversation
…atch it and tesmd docker is restarted.
@judyjoseph IMHO, this is confusing. SIGTERM is a regular way to stop a process in Linux and the return code should be 0 if no errors observed |
@nazariig this is not pertaining to SIGTERM alone - it is just that I used SIGTERM to validate this fix. For any reason teamsyncd/teammgrd comes out of the SELECT loop and exit, it is good for teamd container to restart. For example if teamsyncd exits siliently, some of the interface events will be missed. A similar approach of using "exit 1" I see in other orchagent daemons like portsyncd, fpmsyncd etc - so that supervisor sees a not-expected exit and restarts the container. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@prsunny Can you please help review this PR please? Since it is related to an ADO: https://msazure.visualstudio.com/One/_workitems/edit/13799016. |
@judyjoseph what is considered to be expected exit here? How are we going to handle graceful shutdown? |
What I did
When teammgrd/teamsyncd exits -- return FAILURE so that supervisord catch it and teamd docker is restarted.
Why I did it
Fixes sonic-net/sonic-buildimage#10534
I have seen this in builds from 201911 to master.
How I verified it
Checked by sending SIGTERM to teamsyncd/teammgrd processes
Details if related