Skip to content
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

[Pmon] dynamically load pmon daemons #2654

Merged
merged 3 commits into from
Mar 22, 2019
Merged

[Pmon] dynamically load pmon daemons #2654

merged 3 commits into from
Mar 22, 2019

Conversation

keboliu
Copy link
Collaborator

@keboliu keboliu commented Mar 7, 2019

- What I did
Make the pmon container daemons(ledd, xcvrd, psud) can be selectively loaded according to the platform configuration.
Add a pmon daemon control configuration file to all Mellanox platform to skip load ledd on all of them.

design doc in this link: https://github.com/Azure/SONiC/blob/master/doc/pmon/pmon-enhancement-design.md#4-pmon-daemons-dynamically-loading

- How I did it

  1. Change the pmon container starting entry from "start.sh" to "docker_init.sh", in this new script will generate "supervisord.conf" and "start.sh" according to the platform configuration file, if this configuration file not exist, it will generate a config and start.sh for starting all the daemons.

  2. Add jinja templates for supervisord.conf and start.sh generation.

  3. Add pmon daemon control configuration file to Mellaox platform to skip ledd and also as an example.
    - How to verify it
    compile a pmon docker image and test it with a configuration file, to check whether the started daemons inside pmon is as expected.

- Description for the changelog

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

@jleveque jleveque requested a review from lguohan March 8, 2019 18:51
@keboliu
Copy link
Collaborator Author

keboliu commented Mar 18, 2019

retest this please

@liat-grozovik
Copy link
Collaborator

@lguohan could you please review?

@lguohan lguohan merged commit 84b46bb into sonic-net:master Mar 22, 2019
@lguohan
Copy link
Collaborator

lguohan commented Mar 22, 2019

Please update the porting guide.

@keboliu
Copy link
Collaborator Author

keboliu commented Mar 22, 2019

sure.

@keboliu
Copy link
Collaborator Author

keboliu commented Mar 23, 2019

porting guide updated.

@keboliu keboliu deleted the load-pmon-daemon branch March 23, 2019 02:20
qiluo-msft pushed a commit that referenced this pull request Feb 9, 2023
```
39cdb49c7 [202012][show] Add bgpraw to show run all (#2639)
b3ebba2ca [202012][show] add new CLI to show tunnel route objects #2255 (#2659)
d08f59b9f Fixed a bug in "show vnet routes all" causing screen overrun. (#2644) (#2654)
a996abdb5 [202012][show] show logging CLI support for logs stored in tmpfs (#2652)
c60f771c0 [202012][show_bfd] add local discriminator in show bfd command (#2616)
```
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.

5 participants