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

[supervisor] Install vanilla package once again, install Python 3 version in Buster container #5546

Merged
merged 10 commits into from
Nov 20, 2020
Merged

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented Oct 5, 2020

- Why I did it

We were building a custom version of Supervisor because I had added patches to prevent hangs and crashes if the system clock ever rolled backward. Those changes were merged into the upstream Supervisor repo as of version 3.4.0 (http://supervisord.org/changes.html#id9), therefore, we should be able to simply install the vanilla package via pip. This will also allow us to easily move to Python 3, as Python 3 support was added in version 4.0.0.

- How I did it

  • Remove Makefiles and patches for building supervisor package from source
  • Install Python 3 supervisor package version 4.2.1 in Buster base container
    • Also install Python 3 version of supervisord-dependent-startup in Buster base container
  • Debian package installed binary in /usr/bin/, but pip package installs in /usr/local/bin/, so rather than update all absolute paths, I changed all references to simply call supervisord and let the system PATH find the executable to prevent future need for changes just in case we ever need to switch back to build a Debian package, then we won't need to modify these again.
  • Install Python 2 supervisor package >= 3.4.0 in Stretch and Jessie base containers

- How to verify it

Build an image and ensure supervisor is installed and running properly in all containers.

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

  • 201811
  • 201911
  • 202006

@jleveque jleveque self-assigned this Oct 5, 2020
@lguohan
Copy link
Collaborator

lguohan commented Oct 20, 2020

retest this please

lguohan
lguohan previously approved these changes Oct 21, 2020
@jleveque
Copy link
Contributor Author

jleveque commented Nov 9, 2020

Check builds are failing due to sonic-bgpcfgd issue. Fix is here: #5847

@jleveque
Copy link
Contributor Author

Retest vsimage please

@jleveque
Copy link
Contributor Author

Retest vsimage please

@jleveque jleveque marked this pull request as ready for review November 18, 2020 18:22
@jleveque jleveque merged commit 7bf05f7 into sonic-net:master Nov 20, 2020
@jleveque jleveque deleted the python3_supervisor branch November 20, 2020 07:41
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
…sion in Buster container (sonic-net#5546)

**- Why I did it**

We were building a custom version of Supervisor because I had added patches to prevent hangs and crashes if the system clock ever rolled backward. Those changes were merged into the upstream Supervisor repo as of version 3.4.0 (http://supervisord.org/changes.html#id9), therefore, we should be able to simply install the vanilla package via pip. This will also allow us to easily move to Python 3, as Python 3 support was added in version 4.0.0.

**- How I did it**

- Remove Makefiles and patches for building supervisor package from source
- Install Python 3 supervisor package version 4.2.1 in Buster base container
    - Also install Python 3 version of supervisord-dependent-startup in Buster base container
- Debian package installed binary in `/usr/bin/`, but pip package installs in `/usr/local/bin/`, so rather than update all absolute paths, I changed all references to simply call `supervisord` and let the system PATH find the executable to prevent future need for changes just in case we ever need to switch back to build a Debian package, then we won't need to modify these again.
- Install Python 2 supervisor package >= 3.4.0 in Stretch and Jessie base containers
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