-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add sonic-telemetry-sidecar container #23936
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
Add sonic-telemetry-sidecar container #23936
Conversation
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
5063bfa
to
1b2e9b2
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
1b2e9b2
to
6b2bdb8
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
6b2bdb8
to
9031478
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
9031478
to
2cb43df
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
2cb43df
to
42b6c11
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
42b6c11
to
1e1d408
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
1e1d408
to
d94ea36
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
d94ea36
to
1541439
Compare
/azp run Azure.sonic-buildimage |
…sonic-buildimage into sidecar_container
…sonic-buildimage into sidecar_container
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
…sonic-buildimage into sidecar_container
…sonic-buildimage into sidecar_container
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
stderr_syslog=true | ||
dependent_startup=true | ||
dependent_startup_wait_for=rsyslogd:running | ||
environment=IS_V1_ENABLED=%(ENV_IS_V1_ENABLED)s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you have an extra 's' here?
#Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also is this really needed? I don't remember seeing this for the env var used by telemetry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without 's' Supervisor will not substitute the value, but treat it as a literal string, refer https://supervisord.org/configuration.html#environment-variables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean IS_V1_ENABLED? it's used in systemd_stub.py
from sonic_py_common import logger as log | ||
logger = log.Logger() | ||
|
||
def env_bool(name: str, default: bool = False) -> bool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env_bool -> get_bool_env_var #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
rules/scripts.mk
Outdated
CONTAINER_CHECKER = container_checker | ||
$(CONTAINER_CHECKER)_PATH = files/image_config/monit | ||
|
||
TELEMETRY_SYSTEMD = telemetry_sydtemd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: telemetry_sydtemd #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also what is telemetry_systemd?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
$(CONTAINER_CHECKER)_PATH = files/image_config/monit | ||
|
||
TELEMETRY_SYSTEMD = telemetry_sydtemd | ||
$(TELEMETRY_SYSTEMD)_PATH = files/scripts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this variable used? #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used in rules/docker-telemetry-sidecar.mk
…sonic-buildimage into sidecar_container
…sonic-buildimage into sidecar_container
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
…sonic-buildimage into sidecar_container
…sonic-buildimage into sidecar_container
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
…sonic-buildimage into sidecar_container
…sonic-buildimage into sidecar_container
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cherry-pick PR to msft-202412: Azure/sonic-buildimage-msft#1686 |
Why I did it
Create sidecar container which will stub systemd script, so that telemetry container rollout-ed via k8s could be managed by systemd script with naming change, as well as container checker logic.
Work item tracking
How I did it
IS_V1_ENABLED as true will recover system's original telemetry.sh which used as rollback case
IS_V1_ENABLED as false will used to stub k8s supported telemetry.sh and move on upgrade.
How to verify it
tested on kubesonic env as well.

Which release branch to backport (provide reason below if selected)
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)