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

Install netaddr 0.10.1 in the Python 2 part of sonic-mgmt #18094

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

saiarcot895
Copy link
Contributor

@saiarcot895 saiarcot895 commented Feb 14, 2024

Why I did it

Recently, netaddr 1.0.0 was released, which dropped Python 2 support entirely. Because of this, an empty netaddr package is installed for Python 2. Ansible still uses Python 2, so this needs to remain functional. The Python 3 part of sonic-mgmt is fine.

Work item tracking
  • Microsoft ADO (number only): 26845683

How I did it

Pin the version of netaddr installed in Python 2 to 0.10.1, the last supported version.

How to verify it

Installed netaddr 0.10.1 in the latest sonic-mgmt container, and verified it can now be imported in Python 2.

Also verified from the docker-sonic-mgmt that was built as part of the PR checks that netaddr can be imported in Python 2.

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

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

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

Recently, netaddr 1.0.0 was released, which dropped Python 2 support
entirely. Because of this, an empty netaddr package is installed for
Python 2. Ansible still uses Python 2, so this needs to remain
functional. The Python 3 part of sonic-mgmt is fine.

Pin the version of netaddr installed in Python 2 to 0.10.1, the last
supported version.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@yxieca yxieca merged commit fe0a5e1 into sonic-net:master Feb 14, 2024
11 of 19 checks passed
@yxieca
Copy link
Contributor

yxieca commented Feb 14, 2024

This PR needs to be forcefully merged so that new sonic-mgmt docker could be built to unblock the other PR tests.

sonic-otn pushed a commit to Weitang-Zheng/sonic-buildimage that referenced this pull request Mar 11, 2024
…18094)

Recently, netaddr 1.0.0 was released, which dropped Python 2 support
entirely. Because of this, an empty netaddr package is installed for
Python 2. Ansible still uses Python 2, so this needs to remain
functional. The Python 3 part of sonic-mgmt is fine.

Pin the version of netaddr installed in Python 2 to 0.10.1, the last
supported version.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
saksarav-nokia pushed a commit to saksarav-nokia/sonic-buildimage that referenced this pull request Mar 12, 2024
…18094)

Recently, netaddr 1.0.0 was released, which dropped Python 2 support
entirely. Because of this, an empty netaddr package is installed for
Python 2. Ansible still uses Python 2, so this needs to remain
functional. The Python 3 part of sonic-mgmt is fine.

Pin the version of netaddr installed in Python 2 to 0.10.1, the last
supported version.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
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