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] Run ledd using python3 unless excluded #6528

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

Staphylo
Copy link
Collaborator

- Why I did it

Ledd is the last daemon that is not enabled to run in python3.
Even though there is a plan to deprecate this daemon and to replace it by something else it's one simple step toward python2 deprecation.

- How I did it

Changed the command= line for ledd in the supervisord configuration of pmon.
Copied what was done for other daemons.

- How to verify it

Booting a product that has a led_control.py should now show the ledd running in python3.
I ran python3 -m pylint on all led_control.py plugin which means that most of them should be python3 compliant.
There is however still a risk that some might not work.

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

- Description for the changelog

Run ledd in python3 unless excluded by the platform

@lguohan
Copy link
Collaborator

lguohan commented Jan 22, 2021

az pipeline test passed.

@lguohan lguohan merged commit 0464d15 into sonic-net:master Jan 22, 2021
lguohan pushed a commit that referenced this pull request Jan 22, 2021
**- Why I did it**

Ledd is the last daemon that is not enabled to run in python3.
Even though there is a plan to deprecate this daemon and to replace it by something else it's one simple step toward python2 deprecation.

**- How I did it**

Changed the `command=` line for `ledd` in the `supervisord` configuration of `pmon`.
Copied what was done for other daemons.

**- How to verify it**

Booting a product that has a `led_control.py` should now show the ledd running in python3.
I ran `python3 -m pylint` on all `led_control.py` plugin which means that most of them should be python3 compliant.
There is however still a risk that some might not work.
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.

4 participants