-
Notifications
You must be signed in to change notification settings - Fork 738
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
Support share image for gnmi and telemetry #10348
Conversation
test_service = "telemetry" | ||
logging.info("Bringing down telemetry service") | ||
service_status = duthost.critical_process_status("telemetry") | ||
containers_states, succeeded = duthost.get_feature_status() |
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.
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.
Feature config is not correct, for example, telemetry is enabled, but there's no telemetry service.
I will use docker image to check feature status, if there's telemetry docker image, we should telemetry service.
tests/gnmi/helper.py
Outdated
class GNMIEnvironment(object): | ||
def __init__(self, duthost): | ||
self.duthost = duthost | ||
self.use_gnmi_container = duthost.shell("docker ps | grep -w gnmi", module_ignore_errors=True)['rc'] == 0 |
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.
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.
Will user docker image instead.
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.
Added one comment
What is the motivation for this PR? We will share docker image to support gnmi and telemetry. So we need to update minigraph, gnmi and telemetry test to support this change. How did you do it? For telemetry test, check telemetry container at first, if there's no telemetry container, use gnmi container. For gnmi test, check gnmi container at first, if there's no gnmi container, use telemetry container. For minigraph test, check feature status to choose service. How did you verify/test it? Run end to end test.
* Support share image for gnmi and telemetry (#10348) What is the motivation for this PR? We will share docker image to support gnmi and telemetry. So we need to update minigraph, gnmi and telemetry test to support this change. How did you do it? For telemetry test, check telemetry container at first, if there's no telemetry container, use gnmi container. For gnmi test, check gnmi container at first, if there's no gnmi container, use telemetry container. For minigraph test, check feature status to choose service. How did you verify/test it? Run end to end test. * Ignore telemetry container in loganalyzer check (#10637) What is the motivation for this PR? We will remove telemetry container in public repo, and FEATURE config for telemetry is still enabled. Therefore, we need ignore syslog error. How did you do it? Update loganalyzer_common_ignore.txt. How did you verify/test it? Run end to end test.
Description of PR
Summary:
Support container update for telemetry and gnmi.
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
We will share docker image to support gnmi and telemetry.
So we need to update minigraph, gnmi and telemetry test to support this change.
How did you do it?
For telemetry test, check telemetry container at first, if there's no telemetry container, use gnmi container.
For gnmi test, check gnmi container at first, if there's no gnmi container, use telemetry container.
For minigraph test, check feature status to choose service.
How did you verify/test it?
Run minigraph, gnmi and telemetry end to end test.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation