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

[minigraph.py] Generate items needed by streaming telemetry service #3759

Merged
merged 3 commits into from
Nov 21, 2019

Conversation

pra-moh
Copy link
Contributor

@pra-moh pra-moh commented Nov 15, 2019

- What I did
Added new keys to config DB needed for telemetry agent

- How I did it

- How to verify it
config load_minigraph. Once successful new added entries will appear in config_db
- Description for the changelog

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

Comment on lines 632 to 634
'server_crt': '/etc/sonic/telemetry/streamingtelemetryserver.cer',
'server_key': '/etc/sonic/telemetry/streamingtelemetryclient.key',
'ca_crt': '/etc/sonic/telemetry/dsmsroot.cer'
Copy link
Contributor

@jleveque jleveque Nov 15, 2019

Choose a reason for hiding this comment

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

What if we need other certificates on the SONiC box? Maybe the keys are too generic: "server_crt", "server_key", "ca_crt". Maybe we need to prefix them with the component they're used for, e.g., "telemetry_server_crt", "telemetry_server_key", "telemetry_ca_crt", etc.

Or maybe this should be moved out of the DEVICE_METADATA table and into the TELEMETRY table below?

@lguohan: What is your opinion here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Joe, such keys are used in telemetry contrainers and already defined:
https://github.com/Azure/sonic-buildimage/blob/master/dockers/docker-sonic-telemetry/telemetry.sh

If we need change, we need change this place as well. It will break other partner using this feature now, if we device to use other key names.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah. Good to know.

@lguohan: Should we merge this as-is and deal with making changes to support other certificates if and when we need them?

Copy link
Contributor

Choose a reason for hiding this comment

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

@hui-ma: I think we can go ahead and merge this as-is for now, but I think we need to go back and think about a way to restructure this in order for SONiC to manage multiple keys/certs.

Copy link
Contributor

Choose a reason for hiding this comment

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

sounds good to me

@jleveque jleveque requested a review from lguohan November 15, 2019 02:28
src/sonic-config-engine/minigraph.py Outdated Show resolved Hide resolved
src/sonic-config-engine/minigraph.py Outdated Show resolved Hide resolved
@jleveque jleveque changed the title adding telemetry keys to minigraph [minigraph.py] Generate items needed by streaming telemetry service Nov 21, 2019
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.

3 participants