Skip to content

[fancontrol] Restart process upon unexpected exit, not entire pmon container#4101

Merged
sujinmkang merged 3 commits intosonic-net:masterfrom
sujinmkang:fancontrol
Mar 20, 2020
Merged

[fancontrol] Restart process upon unexpected exit, not entire pmon container#4101
sujinmkang merged 3 commits intosonic-net:masterfrom
sujinmkang:fancontrol

Conversation

@sujinmkang
Copy link
Copy Markdown
Collaborator

@sujinmkang sujinmkang commented Feb 4, 2020

- What I did
Remove fancontrol from critical process list for pmon
Add restart logic of fancontrol for unexpected exit cases

- How I did it
Configure the supervisord.conf for pmon to restart the fancontrol

- How to verify it
Login to pmon
Run 'kill -9 ; rm /var/run/fancontrol.pid'
Check if fancontrol restarted

- Description for the changelog

Add restart configuration of fancontrol for pmon.

- A picture of a cute animal (not mandatory but encouraged)

@lguohan
Copy link
Copy Markdown
Collaborator

lguohan commented Feb 7, 2020

can you please have descriptions? what you did, why did this?

@sujinmkang sujinmkang changed the title fancontrol restart - test fancontrol restart Feb 18, 2020
@sujinmkang
Copy link
Copy Markdown
Collaborator Author

retest this please

@sujinmkang sujinmkang requested a review from jleveque February 18, 2020 21:21
@jleveque
Copy link
Copy Markdown
Contributor

Retest vsimage please

@sujinmkang
Copy link
Copy Markdown
Collaborator Author

retest vsimage please

Copy link
Copy Markdown
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with this change. If fancontrol crashes, we should just try restarting the process. Restarting the entire container shouldn't give us any better chances of getting it in a working state. If there's an underlying issue, it would be due to a device driver malfunction, which restarting the container will not solve.

@jleveque jleveque changed the title fancontrol restart [fancontrol] Restart process upon unexpected exit, not entire pmon container Mar 19, 2020
@sujinmkang sujinmkang merged commit 01f3f92 into sonic-net:master Mar 20, 2020
lguohan pushed a commit that referenced this pull request Apr 27, 2020
…ntainer (#4101)

* fancontrol restart

* Cleanup the default setting for exitcodes

* Remove the unnecessary stopwaitsecs default settin
mssonicbld added a commit that referenced this pull request Oct 30, 2025
…atically (#24376)

#### Why I did it
src/sonic-utilities
```
* 187c44d5 - (HEAD -> 202505, origin/202505) [portstat] Add FEC FLR statistics support to port counters (#4101) (33 hours ago) [Apoorv Sachan]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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.

3 participants