[Mellanox] Sentinel file management for sdk techsupport CT dumps on NVIDIA Bluefield DPUs. - #1994
Merged
Conversation
… feature. This is part of the feature for adding DASH CT dumps to techsupport on NVIDIA Bluefield DPUs in SmartSwitch. All changes are in the platform-specific function config_syncd_nvidia_bluefield(). This new code helps manage the lifetime of the sentinel file, which, when exists, means that the feature is enabled. The sentinel file path is: /var/run/sonic-platform-nvidia-bluefield/sdk-techsupport-ct-dump.enabled At container startup, create the directory for the sentinel file, but also delete the file if it exists. This gives the setting the same lifetime as the SDN application. Signed-off-by: Judson Wilson <judsonw@nvidia.com>
Collaborator
|
/azp run |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
12 tasks
croos12
approved these changes
Jul 15, 2026
Contributor
Author
|
/azpw retry |
Collaborator
|
Retrying failed(or canceled) jobs... |
Collaborator
|
Retrying failed(or canceled) stages in build 1165999: ✅Stage BuildTrixie:
|
Contributor
Author
|
/azp retry |
|
Command 'retry' is not supported by Azure Pipelines. Supported commands
See additional documentation. |
Contributor
Author
|
/azpw retry |
Collaborator
|
Retrying failed(or canceled) jobs... |
Collaborator
|
No failed(or canceled) stages or jobs found in the most recent build 1165999. |
Collaborator
|
Hi @sonic-net/sonic-sairedis-maintainer, this approved PR has workflow run(s) waiting for approval. Please help review. Thanks! ---Powered by SONiC BuildBot
|
dgsudharsan
approved these changes
Jul 16, 2026
lolyu
approved these changes
Aug 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why I did it
SDK techsupport CT dumps on NVIDIA BlueField SmartSwitch DPUs use a sentinel file to signal that the feature is enabled. The file must not persist across syncd container restarts; its lifetime should match the SDN application.
This PR is required for the parent feature PR sonic-net/sonic-utilities#4696
Work item tracking
How I did it
config_syncd_nvidia_bluefield(), create/var/run/sonic-platform-nvidia-bluefield/at container startup.sdk-techsupport-ct-dump.enabledon startup so a stale sentinel is not left after restart.How to verify it
On a BlueField DPU image with the companion
sonic-utilitieschanges:config platform nvidia-bluefield sdk techsupport-ct-dump enabledls /var/run/sonic-platform-nvidia-bluefield/sdk-techsupport-ct-dump.enabledshow techsupportand confirm CT dump output when enabled.Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
nvidia-bluefield sentinel file management for sdk techsupport CT dump feature.