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

Load global config in caclmgrd only in multi asic NPU #8812

Merged
merged 1 commit into from
Sep 30, 2021

Conversation

dgsudharsan
Copy link
Collaborator

Why I did it

The database_global.json file is generated only in multi asic scenario. However, caclmgrd calls initialization based on this file without multi npu check.
This leads to following error in single asic scenario
Sep 21 22:35:20.996798 r-leopard-32 ERR caclmgrd[11819]: :- initializeGlobalConfig: Sonic database config global file doesn't exist at /var/run/redis/sonic-db/database_global.json

How I did it

Added if multi npu check before invoking the load global config.

How to verify it

Restart caclmgrd after this change and check if no error log is thrown.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

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

@dgsudharsan
Copy link
Collaborator Author

@arlakshm @judyjoseph Please review

Copy link
Contributor

@arlakshm arlakshm left a comment

Choose a reason for hiding this comment

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

Lgtm

@dgsudharsan
Copy link
Collaborator Author

@arlakshm @judyjoseph @lguohan Can we merge this if changes are good?

@arlakshm arlakshm merged commit 1e35915 into sonic-net:master Sep 30, 2021
yxieca pushed a commit that referenced this pull request Oct 4, 2021
How I did it
Added if multi npu check before invoking the load global config.

How to verify it
Restart caclmgrd after this change and check if no error log is thrown.
judyjoseph pushed a commit that referenced this pull request Oct 5, 2021
How I did it
Added if multi npu check before invoking the load global config.

How to verify it
Restart caclmgrd after this change and check if no error log is thrown.
@dgsudharsan dgsudharsan deleted the cacl_log_fix branch March 9, 2023 01:54
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.

4 participants