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

Temporary WA for the issue that asic_table.json can not be rendered #13888

Merged
merged 4 commits into from
Apr 24, 2023

Conversation

stephenxs
Copy link
Collaborator

Why I did it

We suspect the issue #13791 is caused by redis server being temporarily unavailable during system initialization so we do not use -d in sonic-cfggen, for now, to avoid accessing redis server

Signed-off-by: Stephen Sun stephens@nvidia.com

How I did it

Provide a string containing required json data when calling sonic-cfggen

How to verify it

Manually test it

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

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

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

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

We suspect the issue is caused by redis server temporarily unavailable so we do not use -d in sonic-cfggen for now

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs stephenxs requested a review from lguohan as a code owner February 20, 2023 06:39
@liat-grozovik
Copy link
Collaborator

@stephenxs was this approach should be taken in other places in the code?
do we have an issue in github to track the issue?

@stephenxs
Copy link
Collaborator Author

@stephenxs was this approach should be taken in other places in the code? do we have an issue in github to track the issue?

Hi @liat-grozovik
We have an issue #13791
Theoretically, the issue can occur wherever redis-server is accessed, but so far we have observed similar issue only in rsyslog.conf in teamd #13674 and there is a WA for it as well.
So I do not think we need to change the code everywhere redis-server is accessed.
Meanwhile, I'm not 100% confident that the issue is caused by redis-server not being accessible. Another PR to collect other info into sonic-dump (sonic-net/sonic-utilities#2686) is also opened

Signed-off-by: Stephen Sun <stephens@nvidia.com>
Signed-off-by: Stephen Sun <stephens@nvidia.com>
liuh-80
liuh-80 previously approved these changes Mar 6, 2023
@liat-grozovik
Copy link
Collaborator

@qiluo-msft could you please review/approve?

neethajohn
neethajohn previously approved these changes Mar 13, 2023
@stephenxs
Copy link
Collaborator Author

/azpw run azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik liat-grozovik dismissed stale reviews from neethajohn and liuh-80 via dd44d4a April 13, 2023 11:18
@liat-grozovik liat-grozovik merged commit 9e56fea into sonic-net:master Apr 24, 2023
@stephenxs stephenxs deleted the wa-asic-table-fail branch April 25, 2023 01:16
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Apr 26, 2023
…onic-net#13888)

- Why I did it
We suspect the issue sonic-net#13791 is caused by redis server being temporarily unavailable during system initialization so we do not use -d in sonic-cfggen, for now, to avoid accessing redis server

- How I did it
Provide a string containing required json data when calling sonic-cfggen

- How to verify it
Manually test it

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #14857

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.

8 participants