-
Notifications
You must be signed in to change notification settings - Fork 750
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
[Bug]: [gnmi] test_gnoi_killprocess.py fails to run on kvm testbed #16238
Comments
An issue has been identified with test_gnoi_killprocess.py on the KVM testbed, and we have raised issue #16238 to track it. In this PR, we temporarily skip this script in PR testing by using the conditional mark.
My kvm run fails but with a slightly different message suggesting dbus doesn't support gnmi.
Looks like the test isn't supported on kvm. This is a real test gap and I should fix it. |
The (set of) tests has multiple problems:
Not sure the cause but we can disable these tests for now. |
Across multiple runs, killing and restarting pmon and snmp consistently show the same error,
|
Hi @yutongzhang-microsoft , I have also opened a bug regarding this test, could you please take a look? |
@hdwhdw Please take a look. |
@yutongzhang-microsoft this is incredibly useful insight. Let me update my fix. |
Closing this as duplicate, going to track it in #15507 |
Reopen this issue, since it's used for skipping it on PR test.
If we close this, it's blocking PR test, sample: https://elastictest.org/scheduler/testplan/678986a046e46d15f748815b?testcase=gnmi%2Ftest_gnoi_killprocess.py%7C%7C%7C2&type=console @hdwhdw Then we can close the duplicated issue |
The snmp error
is likely coming from this line https://github.com/sonic-net/sonic-buildimage/blob/39e2131a7b76f6c3d5257b7e02c540dd33a24d5b/files/build_templates/docker_image_ctl.j2#L114
I ran
Someone should verify whether this line is okay on virtual switch. Before that, I will the disable testcase on snmp. |
Description of PR Summary: Gracefully skip the test for killprocess if the process does not exists, instead of failing it. Some process such as telemetry is not always there on KVM testbed and the validation of killprocess should not depend on it. Avoid killing swss and snmp process as it leads to errors on KVM testbed:isAutoNegEnabled: Failed to get port AutoNeg status for port pid:1000000000021 Fixes #16238 Approach The test tries to kill a process then restart it but the API throws an exception if the process does not exist. Here we gracefully catch the exception and skip the test. What is the motivation for this PR? Fix the test for KVM.
Issue Description
test_gnoi_killprocess.py fails to run on kvm testbed because of below reason catched by log analyzer
https://elastictest.org/scheduler/testplan/676bcc4d98ec838ee83d592b?testcase=gnmi%2Ftest_gnoi_killprocess.py&type=console
Results you see
Results you expected to see
Please confirm if this script can run on kvm or not.
Is it platform specific
generic
Relevant log output
No response
Output of
show version
No response
Attach files (if any)
No response
The text was updated successfully, but these errors were encountered: