Skip to content

[Mellanox] Sentinel file management for sdk techsupport CT dumps on NVIDIA Bluefield DPUs. - #1994

Merged
lolyu merged 1 commit into
sonic-net:masterfrom
judsonwilson-nvidia:tech_support_ct_dump
Aug 2, 2026
Merged

[Mellanox] Sentinel file management for sdk techsupport CT dumps on NVIDIA Bluefield DPUs.#1994
lolyu merged 1 commit into
sonic-net:masterfrom
judsonwilson-nvidia:tech_support_ct_dump

Conversation

@judsonwilson-nvidia

@judsonwilson-nvidia judsonwilson-nvidia commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

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
  • Microsoft ADO (number only): N/A

How I did it

  • In config_syncd_nvidia_bluefield(), create /var/run/sonic-platform-nvidia-bluefield/ at container startup.
  • Remove sdk-techsupport-ct-dump.enabled on startup so a stale sentinel is not left after restart.

How to verify it

On a BlueField DPU image with the companion sonic-utilities changes:

  1. Enable: config platform nvidia-bluefield sdk techsupport-ct-dump enabled
  2. Confirm sentinel exists: ls /var/run/sonic-platform-nvidia-bluefield/sdk-techsupport-ct-dump.enabled
  3. Restart syncd container; confirm sentinel is gone until re-enabled.
  4. Run show techsupport and confirm CT dump output when enabled.

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

  • 201811
  • 201911
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202311
  • 202405
  • 202411

Tested branch (Please provide the tested image version)

  • master (202605–202611)

Description for the changelog

nvidia-bluefield sentinel file management for sdk techsupport CT dump feature.

… 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>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@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).

@judsonwilson-nvidia

Copy link
Copy Markdown
Contributor Author

/azpw retry

@mssonicbld

Copy link
Copy Markdown
Collaborator

Retrying failed(or canceled) jobs...

@mssonicbld

Copy link
Copy Markdown
Collaborator

Retrying failed(or canceled) stages in build 1165999:

✅Stage BuildTrixie:

  • Job amd64: retried.

@judsonwilson-nvidia

Copy link
Copy Markdown
Contributor Author

/azp retry

@azure-pipelines

Copy link
Copy Markdown
Command 'retry' is not supported by Azure Pipelines.

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or specific pipelines for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify specific pipelines to run.
    • Example: "run" or "run pipeline_name, pipeline_name, pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.

@judsonwilson-nvidia

Copy link
Copy Markdown
Contributor Author

/azpw retry

@mssonicbld

Copy link
Copy Markdown
Collaborator

Retrying failed(or canceled) jobs...

@mssonicbld

Copy link
Copy Markdown
Collaborator

No failed(or canceled) stages or jobs found in the most recent build 1165999.

@mssonicbld

Copy link
Copy Markdown
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

@lolyu
lolyu merged commit c6dbf5b into sonic-net:master Aug 2, 2026
19 checks passed
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.

5 participants