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

[chassis][pytest fails] test_snmp_mgmt_interface failed with KeyError #5157

Open
ysmanman opened this issue Feb 16, 2022 · 2 comments
Open

Comments

@ysmanman
Copy link
Contributor

ysmanman commented Feb 16, 2022

Topology: t2
Failure: KeyError: 'snmp_interfaces'

File "/usr/local/lib/python2.7/dist-packages/_pytest/python.py", line 1464, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "/usr/local/lib/python2.7/dist-packages/pluggy/hooks.py", line 286, in call
return self._hookexec(self, self.get_hookimpls(), kwargs)
File "/usr/local/lib/python2.7/dist-packages/pluggy/manager.py", line 93, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/usr/local/lib/python2.7/dist-packages/pluggy/manager.py", line 87, in
firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
File "/usr/local/lib/python2.7/dist-packages/pluggy/callers.py", line 208, in _multicall
return outcome.get_result()
File "/usr/local/lib/python2.7/dist-packages/pluggy/callers.py", line 81, in get_result
_reraise(*ex) # noqa
File "/usr/local/lib/python2.7/dist-packages/pluggy/callers.py", line 187, in _multicall
res = hook_impl.function(*args)
File "/usr/local/lib/python2.7/dist-packages/_pytest/python.py", line 174, in pytest_pyfunc_call
testfunction(**testargs)
File "/data/tests/snmp/test_snmp_interfaces.py", line 201, in test_snmp_interfaces_mibs
ports_snmps = verify_port_snmp(dut_facts, snmp_facts)
File "/data/tests/snmp/test_snmp_interfaces.py", line 73, in verify_port_snmp
snmp_port_map = { snmp_facts['snmp_interfaces'][idx]['name'] : idx for idx in snmp_facts['snmp_interfaces'] }
KeyError: 'snmp_interfaces'

12/02/2022 21:57:31 init._log_sep_line L0159 INFO | ==================== snmp/test_snmp_interfaces.py::test_snmp_interfaces_mibs[cmp210-None] teardown ====================

Description

Steps to reproduce the issue:
1.
2.
3.

Describe the results you received:

Describe the results you expected:

Additional information you deem important:

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
@sanmalho-git
Copy link
Contributor

FYI - this might be because of sonic-net/sonic-snmpagent#242

@abdosi
Copy link
Contributor

abdosi commented Feb 28, 2022

cc @SuvarnaMeenakshi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants