Skip to content

[202505] Install pygnmi==0.8.15 for docker-sonic-mgmt - #28690

Open
liang-nexthop wants to merge 1 commit into
sonic-net:202505from
nexthop-ai:liang.cherry-28339-202505
Open

liang-nexthop wants to merge 1 commit into
sonic-net:202505from
nexthop-ai:liang.cherry-28339-202505

Conversation

@liang-nexthop

@liang-nexthop liang-nexthop commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Manual cherry-pick of #28339 to 202505 (automated cherry-pick conflicted: 202505's docker-sonic-mgmt still uses the python3 -m pip install package list, master uses uv pip install). Change applied into the python3 install block; python2 block untouched (pygnmi is py3-only).

Why I did it

sonic-mgmt is migrating gNMI tests to a native pygnmi client (sonic-net/sonic-mgmt#26013); docker-sonic-mgmt needs the library preinstalled.

How I did it

git cherry-pick -x 86b830af0c, resolved the pip-block conflict by inserting pygnmi==0.8.15 into the python3 package list.

How to verify it

  • docker-sonic-mgmt build in this PR's CI.
  • Functional: tests/gnmi/test_pygnmi_client.py (20 tests) run with pygnmi 0.8.15 from docker-sonic-mgmt : 20/20 PASS.

What: Adds pygnmi==0.8.15 to dockers/docker-sonic-mgmt/Dockerfile.j2.
Why: The new native pygnmi-based gNMI client for sonic-mgmt talks gRPC directly to the DUT's gNMI server, replacing the gnmic CLI binary being removed from docker-ptf; that client depends on pygnmi, which isn't currently installed in the docker-sonic-mgmt image.
How: Installs the pygnmi Python package in the docker-sonic-mgmt Dockerfile.
Testing: CI green (required checks passing); PR approved.

Signed-off-by: liang-nexthop <liang@nexthop.ai>
(cherry picked from commit 86b830a)
Signed-off-by: Liang Chen <liang@nexthop.ai>
@liang-nexthop
liang-nexthop requested a review from lguohan as a code owner July 29, 2026 18:15
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@liang-nexthop

Copy link
Copy Markdown
Contributor Author

suggested here #28339, @yejianquan can you take a look at this backport PR please?

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