Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

noaOrMlnx
Copy link
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)

@nazariig
Copy link
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
@@ -0,0 +1,3 @@
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps
SAI_DUMP_STORE_AMOUNT=10
SAI_DUMP_MFT_CFG_PATH=/etc/mft/fwtrace_cfg
Copy link
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
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
Copy link
Collaborator Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@noaOrMlnx
Copy link
Collaborator Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dprital
Copy link
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
19 checks passed
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
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
sonic-otn pushed a commit to Weitang-Zheng/sonic-buildimage that referenced this pull request Mar 11, 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
saksarav-nokia pushed a commit to saksarav-nokia/sonic-buildimage that referenced this pull request Mar 12, 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
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
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