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

Don't use python/python2 for restapi start scripts #10285

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

saiarcot895
Copy link
Contributor

Python 2 isn't installed by default in Buster and Bullseye containers,
and the scripts/modules can be used with Python 3, so make sure Python 3
is used.

Signed-off-by: Saikrishna Arcot sarcot@microsoft.com

Why I did it

After the Buster and Bullseye upgrade for the restapi container, processes will no longer start because supervisord is trying to call python and python2, both of which are unavailable.

How I did it

How to verify it

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

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

Python 2 isn't installed by default in Buster and Bullseye containers,
and the scripts/modules can be used with Python 3, so make sure Python 3
is used.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@lguohan
Copy link
Collaborator

lguohan commented Mar 23, 2022

test failure to due to this issue. sonic-net/sonic-mgmt#5374

@lguohan lguohan merged commit 4a5e75e into sonic-net:master Mar 23, 2022
lguohan pushed a commit that referenced this pull request Mar 23, 2022
Python 2 isn't installed by default in Buster and Bullseye containers,
and the scripts/modules can be used with Python 3, so make sure Python 3
is used.

Why I did it
After the Buster and Bullseye upgrade for the restapi container, processes will no longer start because supervisord is trying to call python and python2, both of which are unavailable.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@saiarcot895 saiarcot895 deleted the fix-restapi-startup branch March 30, 2022 17:11
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