sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
173 stars 691 forks source link

[Bug]: [T2 Chassis] 'test_snmp_lldp' test case fails on the latest master image #13405

Open sanjair-git opened 1 month ago

sanjair-git commented 1 month ago

Issue Description

On the latest master image, for T2 Chassis, test case '_test_snmp_lldp_' fails, which checks for ieee802_1ab MIBs.

Results you see

For example, the following LLDP MIB queries are failing as part of the test,

    # From LLDP-MIB: lldpLocManAddrTables
    _self.lldpLocManAddrLen = dp + "1.0.8802.1.1.2.1.3.8.1.3"  # + .subtype + .man addr
    self.lldpLocManAddrIfSubtype = dp + \
        "1.0.8802.1.1.2.1.3.8.1.4"  # + .subtype + .man addr
    self.lldpLocManAddrIfId = dp + "1.0.8802.1.1.2.1.3.8.1.5"  # + .subtype + .man addr
    self.lldpLocManAddrOID = dp + "1.0.8802.1.1.2.1.3.8.1.6"  # + .subtype + .man addr_    

Test failure shown below:

      # Check if lldpLocManAddrTable is present
       for k in ['lldpLocManAddrLen',
                  'lldpLocManAddrIfSubtype',
                  'lldpLocManAddrIfId',
                  'lldpLocManAddrOID']:
       assert snmp_facts['snmp_lldp'][k]
       E           KeyError: 'lldpLocManAddrLen'

Expected: gitlab-runner@cb1bef4b2896:$ _snmpwalk -v 2c -c public 1.0.8802.1.1.2.1.3.8 iso.0.8802.1.1.2.1.3.8.1.3.1.4.152.148.151.181 = INTEGER: 5 iso.0.8802.1.1.2.1.3.8.1.4.1.4.152.148.151.181 = INTEGER: 2 iso.0.8802.1.1.2.1.3.8.1.5.1.4.152.148.151.181 = INTEGER: 0 iso.0.8802.1.1.2.1.3.8.1.6.1.4.152.148.151.181 = OID: iso.3.6.1.2.1.2.2.1.1_ Actual: gitlab-runner@cb1bef4b2896:$ snmpwalk -v 2c -c public 1.0.8802.1.1.2.1.3.8 iso.0.8802.1.1.2.1.3.8 = No Such Object available on this agent at this OID gitlab-runner@cb1bef4b2896:~$

Results you expected to see

'test_snmp_lldp' test case is expected to pass.

This test started failing after the PR #13115 has been taken, where lldp container is removed from host instances.

Is it platform specific

generic

Relevant log output

gitlab-runner@cb1bef4b2896:~$ snmpwalk -v 2c -c public 152.148.151.181 1.0.8802.1.1.2.1.3.8
iso.0.8802.1.1.2.1.3.8.1.3.1.4.152.148.151.181 = INTEGER: 5
iso.0.8802.1.1.2.1.3.8.1.4.1.4.152.148.151.181 = INTEGER: 2
iso.0.8802.1.1.2.1.3.8.1.5.1.4.152.148.151.181 = INTEGER: 0
iso.0.8802.1.1.2.1.3.8.1.6.1.4.152.148.151.181 = OID: iso.3.6.1.2.1.2.2.1.1
gitlab-runner@cb1bef4b2896:~$ snmpwalk -v 2c -c public 152.148.151.124 1.0.8802.1.1.2.1.3.8
iso.0.8802.1.1.2.1.3.8 = No Such Object available on this agent at this OID
gitlab-runner@cb1bef4b2896:~$

Output of show version

SONiC Software Version: SONiC.HEAD.742851-nokia-master-ef3457c7
SONiC OS Version: 12
Distribution: Debian 12.5
Kernel: 6.1.0-11-2-amd64
Build commit: ef3457c7
Build date: Fri Jun 14 19:31:02 UTC 2024
Built by: gitlab-runner@sonic-build-server04

Platform: x86_64-nokia_ixr7250e_36x400g-r0
HwSKU: Nokia-IXR7250E-36x400G
ASIC: broadcom
ASIC Count: 2
Serial Number: EAG2-02-151
Model Number: N/A
Hardware Revision: 56
Uptime: 17:08:51 up 23:31,  2 users,  load average: 1.46, 1.72, 1.82
Date: Fri 21 Jun 2024 17:08:51

Attach files (if any)

No response