Closed kartik-arista closed 1 year ago
This is currently noticed in 202205. I have not confirmed the behavior in master.
Please note https://github.com/sonic-net/sonic-mgmt/pull/6744
which in turn is tied to https://github.com/sonic-net/sonic-swss/pull/2432
These changes don't seem to be cherry picked into 202205, so the most pertinent short term question is whether all these changes need to be present in 202205 or not. If the answer is no, then there we need to decide whether it is appropriate to skip these tests unless the platform specifically supports the relevant MIB.
@vmittal-msft @arlakshm for viz.
@kartik-arista, https://github.com/sonic-net/sonic-swss/pull/2432 is contributed directly into 202205 branch. Are you saying this PR is the culprit or the fix?
Transferring this issue to sonic-buildimage repo as this issue seems to be an image issue.
@yxieca Yes - originallly it was not clear if this issue was test related or product function related, and if the change required was to skip the relevant tests (or cherrypick additional functionality into 202205).
Also adding @arlakshm for visibility since he was following up with @prsunny and others who may be aware of the background.
Discussed in chassis subgroup that test needs to be enhanced for multi-asic
Discussed in chassis subgroup that test needs to be enhanced for multi-asic
Here's a code reference to show that the test does not account for the namespace on multi-ASIC platforms: https://github.com/sonic-net/sonic-mgmt/blob/63f7512936391fea76f04109dadaab40066f9aec/tests/snmp/test_snmp_queue.py#L19
https://github.com/sonic-net/sonic-mgmt/pull/9115 should fix this issue
Description
snmp/test_snmp_queue.py
fails deterministically due to missing 'queues' information in SNMP facts.This was observed on a VOQ chassis platform but likely affects any non Cisco device.
Steps to reproduce the issue:
Describe the results you received:
run
snmp/test_snmp_queue.py
on any VOQ chassis device.Describe the results you expected:
The tests should pass
Additional information you deem important:
Investigating the code, it seems like this field comes from a private Cisco MIB (
ansible/library/snmp_facts.py
)which is then used to populate SNMP facts
which is not going to be present