Skip to content

Exception in snmp Subagent in PTF32 topology #27

@samKDas

Description

@samKDas

We are getting the below Exception in snmp Subagent in PTF32 topology for which certain testcases are failing .
ERR snmp#snmp-subagent message repeated 13 times: [ [ax_interface] ERROR: MIBUpdater.start() caught an unexpected exception during update_data()
#012Traceback (most recent call last):#12 File "/usr/local/lib/python3.6/dist-packages/ax_interface/mib.py", line 40, in start#012
self.reinit_data()#12 File "/usr/local/lib/python3.6/dist-packages/sonic_ax_impl/mibs/ieee802_1ab.py", line 115, in reinit_data#012
self.loc_chassis_data[b'lldp_loc_sys_cap_supported'] = parse_sys_capability(self.loc_chassis_data[b'lldp_loc_sys_cap_supported'])#012TypeError: 'NoneType' object is not subscriptable]"

It is found that lldpd is running but the info is missing from the APPL_DB as shown below in the logs.

6-4-dut:~$ docker exec -it lldp lldpcli show chassis

Local chassis:

Chassis:
ChassisID: mac 00:11:22:33:91:85
SysName: 6-4-dut
SysDescr: Debian GNU/Linux 9 (stretch) Linux 4.9.0-9-2-arm64 #1 SMP Debian 4.9.168-1+deb9u5 (2015-12-19) aarch64
TTL: 120
MgmtIP: 10.8.235.30
Capability: Bridge, on
Capability: Router, on
Capability: Wlan, off
Capability: Station, off

6-4-dut:$ ps aux | grep lldp_syncd
root 5386 0.1 0.1 90288 13744 ? Sl 10:51 0:00 python2 -m lldp_syncd
admin 7203 0.0 0.0 4900 532 ttyS0 S+ 10:54 0:00 grep lldp_syncd
6-4-dut:
$

6-4-dut:$ redis-cli -n 0 hget LLDP_LOC_CHASSIS lldp_loc_sys_cap_supp
(nil)
6-4-dut:
$
6-4-dut:$ p
6-4-dut:
$ redis-cli -n 0 keys LLDP
(empty list or set)
6-4-dut:$ redis-cli -n 6 keys LLDP
(empty list or set)
6-4-dut:
$

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