Skip to content

[voq, chassis] test_snmp_loopback fails with assert error  #10344

@judyjoseph

Description

@judyjoseph

Description
test_snmp_loopback fails with assert error

Steps to reproduce the issue:

  1. Run snmp/test_snmp_loopback.py::test_snmp_loopback on a chassis linecard
  2. test fails with AssertionError: Sysdescr not found in SNMP result from IP FC00:10::1/128
  3. Find that the ipv6 addresses on all interfaces are removed.

Describe the results you received:

2023-10-01T22:00:46.0406314Z snmp/test_snmp_loopback.py::test_snmp_loopback[svcstr-xxxx-lc1-1] 
2023-10-01T22:00:46.0408428Z -------------------------------- live log call ---------------------------------
2023-10-01T22:00:46.0409733Z 22:00:46 __init__.pytest_runtest_call             L0040 ERROR  | Traceback (most recent call last):
2023-10-01T22:00:46.0421788Z   File "/usr/local/lib/python2.7/dist-packages/_pytest/python.py", line 1464, in runtest
2023-10-01T22:00:46.0422798Z     self.ihook.pytest_pyfunc_call(pyfuncitem=self)
2023-10-01T22:00:46.0424089Z   File "/usr/local/lib/python2.7/dist-packages/pluggy/hooks.py", line 286, in __call__
2023-10-01T22:00:46.0425271Z     return self._hookexec(self, self.get_hookimpls(), kwargs)
2023-10-01T22:00:46.0426540Z   File "/usr/local/lib/python2.7/dist-packages/pluggy/manager.py", line 93, in _hookexec
2023-10-01T22:00:46.0427356Z     return self._inner_hookexec(hook, methods, kwargs)
2023-10-01T22:00:46.0428195Z   File "/usr/local/lib/python2.7/dist-packages/pluggy/manager.py", line 87, in <lambda>
2023-10-01T22:00:46.0428925Z     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
2023-10-01T22:00:46.0429859Z   File "/usr/local/lib/python2.7/dist-packages/pluggy/callers.py", line 208, in _multicall
2023-10-01T22:00:46.0430561Z     return outcome.get_result()
2023-10-01T22:00:46.0431347Z   File "/usr/local/lib/python2.7/dist-packages/pluggy/callers.py", line 81, in get_result
2023-10-01T22:00:46.0432030Z     _reraise(*ex)  # noqa
2023-10-01T22:00:46.0432824Z   File "/usr/local/lib/python2.7/dist-packages/pluggy/callers.py", line 187, in _multicall
2023-10-01T22:00:46.0433526Z     res = hook_impl.function(*args)
2023-10-01T22:00:46.0434341Z   File "/usr/local/lib/python2.7/dist-packages/_pytest/python.py", line 174, in pytest_pyfunc_call
2023-10-01T22:00:46.0435046Z     testfunction(**testargs)
2023-10-01T22:00:46.0435747Z   File "/azp/_work/8/s/tests/snmp/test_snmp_loopback.py", line 36, in test_snmp_loopback
2023-10-01T22:00:46.0436487Z     "Sysdescr not found in SNMP result from IP {}".format(ip)
2023-10-01T22:00:46.0437344Z AssertionError: Sysdescr not found in SNMP result from IP FC00:10::1/128
2023-10-01T22:00:46.0437656Z 

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)
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions