Skip to content

[Mellanox] Update Nvidia sai.profile SKU files to have common file#18074

Merged
yxieca merged 2 commits intosonic-net:masterfrom
noaOrMlnx:sai_profile_enhancements
Feb 28, 2024
Merged

[Mellanox] Update Nvidia sai.profile SKU files to have common file#18074
yxieca merged 2 commits intosonic-net:masterfrom
noaOrMlnx:sai_profile_enhancements

Conversation

@noaOrMlnx
Copy link
Copy Markdown
Collaborator

@noaOrMlnx noaOrMlnx commented Feb 8, 2024

Depends on sonic-net/sonic-sairedis#1352

Add new common sai.profile,
Update Nvidia/Mellanox sai.profile of all SKUs to remove common parameters.

Why I did it

To have the ability to add common parameters to only 1 file instead of all SKUs.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Add a new common file with all common key-value parameters.
also, updated syncd_init_common.sh to take common parameters from the new file in sonic-net/sonic-sairedis#1352

How to verify it

Run the script with changed .profile files, and make sure all common parameters exist in final sai.profile.

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

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

Tested branch (Please provide the tested image version)

  • master-internal-build

Description for the changelog

Add new common sai.profile,
Update Nvidia/Mellanox sai.profile of all SKUs to remove common parameters.

Link to config_db schema for YANG module changes

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

@noaOrMlnx noaOrMlnx requested a review from lguohan as a code owner February 8, 2024 13:28
@nazariig
Copy link
Copy Markdown
Collaborator

nazariig commented Feb 8, 2024

DEPENDS: sonic-net/sonic-sairedis#1352

@liat-grozovik liat-grozovik changed the title Update Nvidia sai.profile SKU files to have common file [Mellanox] Update Nvidia sai.profile SKU files to have common file Feb 8, 2024
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@noaOrMlnx , I see two kind of paths. One is the one in the default profile and the other appear on several SKUs with the path of:
SAI_DUMP_MFT_CFG_PATH=/etc/sonic/mft/fwtrace_cfg

Please check if this is a mistake and all should point to the same path

Copy link
Copy Markdown
Collaborator

@dprital dprital left a comment

Choose a reason for hiding this comment

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

@noaOrMlnx , please check the comment I rasied

@noaOrMlnx noaOrMlnx force-pushed the sai_profile_enhancements branch from a6806af to 58228ed Compare February 12, 2024 08:58
@noaOrMlnx
Copy link
Copy Markdown
Collaborator Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@noaOrMlnx
Copy link
Copy Markdown
Collaborator Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dprital
Copy link
Copy Markdown
Collaborator

dprital commented Feb 27, 2024

@yxieca , @qiluo-msft , Can you please merge ?
Thanks in advance

@yxieca yxieca merged commit b25dfa9 into sonic-net:master Feb 28, 2024
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Feb 28, 2024
…onic-net#18074)

* Update Nvidia sai.profile SKU files to have common file

* Remove SAI_DUMP_MFT_CFG_PATH from sai-common.profile as it is not in use
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202311: #18213

mssonicbld pushed a commit that referenced this pull request Feb 29, 2024
…18074)

* Update Nvidia sai.profile SKU files to have common file

* Remove SAI_DUMP_MFT_CFG_PATH from sai-common.profile as it is not in use
qiluo-msft pushed a commit to sonic-net/sonic-utilities that referenced this pull request Mar 13, 2024
### What I did
Handle the SAI key value pair if it is present in sai common profile rather than specific profile for mellanox platforms. The concept of common sai profile is introduced in sonic-net/sonic-buildimage#18074 . After this the techsupport started to fail because of the absence of SAI_DUMP_STORE_PATH

#### How I did it
Check if the variable is not present in platform specific file and then read the common file. If the common file is not accessible due to syncd being down, fallback to default path which is hardcoded.


#### How to verify it
Running techsupport and ensuring it exits with code 0
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Mar 21, 2024
…ic-net#3196)

### What I did
Handle the SAI key value pair if it is present in sai common profile rather than specific profile for mellanox platforms. The concept of common sai profile is introduced in sonic-net/sonic-buildimage#18074 . After this the techsupport started to fail because of the absence of SAI_DUMP_STORE_PATH

#### How I did it
Check if the variable is not present in platform specific file and then read the common file. If the common file is not accessible due to syncd being down, fallback to default path which is hardcoded.


#### How to verify it
Running techsupport and ensuring it exits with code 0
mssonicbld pushed a commit to sonic-net/sonic-utilities that referenced this pull request Mar 21, 2024
### What I did
Handle the SAI key value pair if it is present in sai common profile rather than specific profile for mellanox platforms. The concept of common sai profile is introduced in sonic-net/sonic-buildimage#18074 . After this the techsupport started to fail because of the absence of SAI_DUMP_STORE_PATH

#### How I did it
Check if the variable is not present in platform specific file and then read the common file. If the common file is not accessible due to syncd being down, fallback to default path which is hardcoded.


#### How to verify it
Running techsupport and ensuring it exits with code 0
nmoray pushed a commit to nmoray/sonic-utilities that referenced this pull request Jun 25, 2025
…ic-net#3196)

### What I did
Handle the SAI key value pair if it is present in sai common profile rather than specific profile for mellanox platforms. The concept of common sai profile is introduced in sonic-net/sonic-buildimage#18074 . After this the techsupport started to fail because of the absence of SAI_DUMP_STORE_PATH

#### How I did it
Check if the variable is not present in platform specific file and then read the common file. If the common file is not accessible due to syncd being down, fallback to default path which is hardcoded.


#### How to verify it
Running techsupport and ensuring it exits with code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants