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

[Telemetry] enable default service config if no configs from DB #16683

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

qnos
Copy link
Contributor

@qnos qnos commented Sep 25, 2023

Why I did it

Fix issue #16533 , telemetry service exit in master and 202305 branches due to no telemetry configs in redis DB.

How I did it

Enable default config if no TELEMETRY configs from redis DB.

How to verify it

After the fix, telemetry service would work with the following two scenarios:

  1. With TELEMETRY config in redis DB, load service configs from DB.
  2. No TELEMETRY config in redis DB, use default service configs.

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

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

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

Fix issue 16533, telemetry service exit in master and 202305 branches.

Enable default config if no TELEMETRY configs from redis DB.

After the fix, telemetry service would work with the following two
scenarios:
1. With TELEMETRY config in redis DB, load service configs from DB.
2. No TELEMETRY config in redis DB, use default service configs.
@qiluo-msft qiluo-msft merged commit 7e6790a into sonic-net:master Sep 28, 2023
18 checks passed
@StormLiangMS
Copy link
Contributor

@zbud-msft @qiluo-msft if you support this backport, do we have ADO to track?

@StormLiangMS
Copy link
Contributor

@qnos have you tested with 202305?

@qnos
Copy link
Contributor Author

qnos commented Oct 8, 2023

@qnos have you tested with 202305?

The issue only exists in Master and 202305 branch. Yes, verified it in 202305 branch.

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Oct 17, 2023
…-net#16683)

#### Why I did it
Fix issue sonic-net#16533 , telemetry service exit in master and 202305 branches due to no telemetry configs in redis DB.

#### How I did it
Enable default config if no TELEMETRY configs from redis DB.

#### How to verify it
After the fix, telemetry service would work with the following two scenarios:
1. With TELEMETRY config in redis DB, load service configs from DB.
2. No TELEMETRY config in redis DB, use default service configs.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #16913

@mssonicbld
Copy link
Collaborator

@qnos cherry pick PR didn't pass PR checker. Please check!!!
#16913

mssonicbld pushed a commit that referenced this pull request Oct 21, 2023
#### Why I did it
Fix issue #16533 , telemetry service exit in master and 202305 branches due to no telemetry configs in redis DB.

#### How I did it
Enable default config if no TELEMETRY configs from redis DB.

#### How to verify it
After the fix, telemetry service would work with the following two scenarios:
1. With TELEMETRY config in redis DB, load service configs from DB.
2. No TELEMETRY config in redis DB, use default service configs.
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