-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[202405] sai.profile format issue #20466
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
Comments
@dgsudharsan Could you please take a look? |
@bingwang-ms @yanmo96 This issue should be fixed with sonic-net/sonic-sairedis#1412 . Can we please cherry-pick to 202405? |
@dgsudharsan sonic-net/sonic-sairedis#1412 only remove redundant newlines, but in this case, is we are missing an end of line indicator. Below is the results after manually test on the faulty file, still missing line feed at end
And out of all the |
@yanmo96 I don't think missing end of line is an issue unless we append more data which mixes up two KV pairs in same line. |
@dgsudharsan https://github.com/sonic-net/sonic-sairedis/blob/d62ac0d57efbe3b1970dae697151adc335f3f702/syncd/scripts/syncd_init_common.sh#L225 this part will append more info into the sai.profile
Below are the error message from syslog |
@dgsudharsan This will cause |
Hi @dgsudharsan, from the comment added by Yan, below line is mixing up two KV items. The issue can be reproed easily by installing 202405 image with HWSKU
|
@bingwang-ms Was it reproed with the fix I mentioned? This is the fix for the issue sonic-net/sonic-sairedis#1412 |
My question was are you still seeing the issue with the fix sonic-net/sonic-sairedis#1412 The fix should resolve the issue |
Please check that this PR is also adding a new line between sai common profile and sai specific profile. I verified it in my setup. Below is the line where a newline is introduced |
@dgsudharsan Got it! Thanks! I will give a try |
Hi @dgsudharsan , I think the file device/mellanox/x86_64-mlnx_msn4700-r0/Mellanox-SN4700-O8V48/sai.profile still needs to be fixed. It's not reliable enough to depends on PR #1412. There can be other code that appends new lines to |
### Why I did it Fixing #20466. Adding newline at the end of sai.profile ### How I did it Added missing newline. #### How to verify it Loading with the SKU and check if everything works fine.
### Why I did it Fixing sonic-net#20466. Adding newline at the end of sai.profile ### How I did it Added missing newline. #### How to verify it Loading with the SKU and check if everything works fine.
### Why I did it Fixing #20466. Adding newline at the end of sai.profile ### How I did it Added missing newline. #### How to verify it Loading with the SKU and check if everything works fine.
### Why I did it Fixing sonic-net#20466. Adding newline at the end of sai.profile ### How I did it Added missing newline. #### How to verify it Loading with the SKU and check if everything works fine.
### Why I did it Fixing sonic-net#20466. Adding newline at the end of sai.profile ### How I did it Added missing newline. #### How to verify it Loading with the SKU and check if everything works fine.
Description
Found issue where syncd and pmon is not working properly. Caused by #18487
Where sai.profile is not correctly formatted, which will lead to issues when try to append new lines to sai.profile, resulting in the following where SAI_DUMP_STORE_PATH is not on a new line:
Steps to reproduce the issue:
Describe the results you received:
The output is missing line feed at the end, hens why the new command line is not on a new line.
Or we can see this file by
cat sai.profile | xxd
which is missing 0a at the endDescribe the results you expected:
From different SKU (content is different, but same idea for the last line)
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: