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

Upgrade docker-sonic-mgmt base image from Ubuntu18.04 to 20.04 #11831

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

wsycqyz
Copy link
Contributor

@wsycqyz wsycqyz commented Aug 24, 2022

Why I did it

In order to support Python3 migration of docker-sonic-mgmt, the docker base image should be upgrade first.

How I did it

Modify docker build file(docker-sonic-mgmt/Dockerfile.j2):

  1. Update base image from ubuntu18.04 to ubuntu20.04
  2. Fix necessary dependencies.

How to verify it

Randomly select supported testbed, manually run a few tests and all pass:
fib/test_fib.py
vxlan/test_vxlan_decap.py
fdb/test_fdb.py
decap/test_decap.py
pfcwd/test_pfcwd_all_port_storm.py
acl/null_route/test_null_route_helper.py
acl/test_acl.py
vlan/test_vlan.py
platform_tests/test_reboot.py
qos/test_qos_sai.py::TestQosSai::testQosSaiPfcXoffLimit[None-xoff_1]

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

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

Description for the changelog

Update docker-sonic-mgmt/Dockerfile.j2. After upgrade, Py2 is 2.7.18, Py3 is 3.8.10, Ubuntu is 20.04.

@wangxin
Copy link
Contributor

wangxin commented Aug 24, 2022

@wsycqyz Did you run the tests using default python2 or python3 from virtualenv? Wondering if any dependent package is missing from the python3 virtualenv.

@wangxin
Copy link
Contributor

wangxin commented Aug 24, 2022

BTW, can ansible be upgraded in the python3 virtual env?

@wsycqyz
Copy link
Contributor Author

wsycqyz commented Aug 24, 2022

@wsycqyz Did you run the tests using default python2 or python3 from virtualenv? Wondering if any dependent package is missing from the python3 virtualenv.

Py3 dependencies will be added in another PR along with packages requested by WAN team.

@wsycqyz
Copy link
Contributor Author

wsycqyz commented Aug 24, 2022

BTW, can ansible be upgraded in the python3 virtual env?

It seems that the answer is no. pytest-ansible module cannot support newer Ansible version.

@wangxin
Copy link
Contributor

wangxin commented Aug 25, 2022

Removed the labels because we only use sonic-mgmt image built from master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants