Skip to content

Brcm containers migrate to trixie#25942

Open
geans-pin wants to merge 1 commit intosonic-net:masterfrom
geans-pin:BRCM_Containers_migration_trixie
Open

Brcm containers migrate to trixie#25942
geans-pin wants to merge 1 commit intosonic-net:masterfrom
geans-pin:BRCM_Containers_migration_trixie

Conversation

@geans-pin
Copy link
Copy Markdown
Contributor

@geans-pin geans-pin commented Mar 6, 2026

Why I did it

Upgrade BRCM-related containers (PDE and SYNCD) to support Debian Trixie (Debian 13).

Work item tracking
Microsoft ADO (number only): [N/A]

How I did it
Container Base Image Update: Updated Dockerfile.j2 for both docker-pde and docker-syncd-brcm
to reference the Trixie base engine.

Python Environment Fix:
Added --break-system-packages to pip3 install commands to comply with PEP 668 in Debian Trixie. This allows overriding system-installed packages (like jsonschema) with required versions from Python wheels.
Added --no-install-recommends to apt-get install to prevent unnecessary systemd/udev bloat and potential conflicts during the build process.

Dependency Alignment: Ensured all Debian package dependencies and Python wheels are correctly resolved within the Trixie environment.

How to verify it
Validated the generated images on a Trixie build
Build Success: Successfully generated target/docker-pde.gz and target/docker-syncd-brcm.gz.

PDE Validation:
Loaded docker-pde and verified jsonschema version.
Command: docker run --rm --entrypoint /bin/bash docker-pde -c "pip3 show jsonschema"
Result: Version 2.6.0 (Correctly overrode the system's 4.19.2).

SYNCD-BRCM Validation:
Loaded docker-syncd-brcm and performed library dependency check.
Command: docker run --rm --entrypoint /bin/bash docker-syncd-brcm -c "ldd /usr/bin/syncd"
Result: All shared libraries (including libsai.so.1 and Trixie-specific glibc/boost) are fully resolved with no "not found" errors.

@geans-pin geans-pin requested a review from lguohan as a code owner March 6, 2026 23:17
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@geans-pin geans-pin force-pushed the BRCM_Containers_migration_trixie branch from 2e297ad to 543311f Compare March 6, 2026 23:21
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@geans-pin geans-pin changed the title Brcm containers migration trixie Brcm containers migrate to trixie Mar 7, 2026
@geans-pin geans-pin force-pushed the BRCM_Containers_migration_trixie branch from 543311f to cf5defd Compare March 7, 2026 07:13
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

sigabrtv1-ui pushed a commit to sigabrtv1-ui/sonic-buildimage that referenced this pull request Mar 8, 2026
…i-watchdog to Debian Trixie

Update base image references from docker-config-engine-bookworm to
docker-config-engine-trixie for all three gnmi-related containers.
Move them from SONIC_BOOKWORM_DOCKERS to SONIC_TRIXIE_DOCKERS to
align with the ongoing container migration to Debian 13 (Trixie).

This follows the same pattern as PR sonic-net#25942 (Brcm containers migrate
to trixie) and builds on the Trixie base layers added in PR sonic-net#25184.

Signed-off-by: Dawei Huang <daweihuang@microsoft.com>
@yxieca
Copy link
Copy Markdown
Contributor

yxieca commented Mar 11, 2026

/azpw ms_conflict

DOCKER_SYNCD_PLATFORM_CODE = brcm
include $(PLATFORM_PATH)/../template/docker-syncd-bookworm.mk

include $(PLATFORM_PATH)/../template/docker-syncd-trixie.mk
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is missing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saiarcot,

This is platform common template file for trixie but not broadcom specific. Can you provide the template for trixie as you did for bookworm before ?

=> e15a1aa

Geans

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#25677 has a version for Trixie that could work. Please test that version and verify that it works.

Additionally, have you done a local build of the changes here?

Copy link
Copy Markdown
Contributor Author

@geans-pin geans-pin Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I've done a local build and Loaded docker-syncd-brcm and performed library dependency check. Actually, I already had a template docker-syncd-trixie.mk created in my local as the one in PR#25677 but didn't push to PR since this is common file which is out of my PR scope.

Geans

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please push that file as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DONE

@StormLiangMS
Copy link
Copy Markdown
Contributor

/azpw ms_conflict

sigabrtv1-ui pushed a commit to sigabrtv1-ui/sonic-buildimage that referenced this pull request Mar 16, 2026
…i-watchdog to Debian Trixie

Update base image references from docker-config-engine-bookworm to
docker-config-engine-trixie for all three gnmi-related containers.
Move them from SONIC_BOOKWORM_DOCKERS to SONIC_TRIXIE_DOCKERS to
align with the ongoing container migration to Debian 13 (Trixie).

This follows the same pattern as PR sonic-net#25942 (Brcm containers migrate
to trixie) and builds on the Trixie base layers added in PR sonic-net#25184.

Signed-off-by: Dawei Huang <daweihuang@microsoft.com>
@geans-pin geans-pin force-pushed the BRCM_Containers_migration_trixie branch from cf5defd to 375458f Compare March 27, 2026 04:21
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@geans-pin geans-pin force-pushed the BRCM_Containers_migration_trixie branch from 375458f to 5e4a5b5 Compare March 29, 2026 04:00
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@geans-pin
Copy link
Copy Markdown
Contributor Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@geans-pin
Copy link
Copy Markdown
Contributor Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@geans-pin
Copy link
Copy Markdown
Contributor Author

@saiarcot895 Can you help to approve the review for merging ?

hdwhdw added a commit to hdwhdw/sonic-buildimage that referenced this pull request Apr 1, 2026
…i-watchdog to Debian Trixie

Update base image references from docker-config-engine-bookworm to
docker-config-engine-trixie for all three gnmi-related containers.
Move them from SONIC_BOOKWORM_DOCKERS to SONIC_TRIXIE_DOCKERS to
align with the ongoing container migration to Debian 13 (Trixie).

This follows the same pattern as PR sonic-net#25942 (Brcm containers migrate
to trixie) and builds on the Trixie base layers added in PR sonic-net#25184.

Signed-off-by: Dawei Huang <daweihuang@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants