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

Exception in snmp Subagent in PTF32 topology #27

Open
samKDas opened this issue Feb 18, 2020 · 2 comments
Open

Exception in snmp Subagent in PTF32 topology #27

samKDas opened this issue Feb 18, 2020 · 2 comments

Comments

@samKDas
Copy link

samKDas commented Feb 18, 2020

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:
$

@ghost
Copy link

ghost commented Feb 25, 2020

Please, can you format it with Markdown (https://guides.github.com/features/mastering-markdown/)? It's hard to read.

@samKDas
Copy link
Author

samKDas commented Feb 26, 2020

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):
#012File "/usr/local/lib/python3.6/dist-packages/ax_interface/mib.py", line 40, in start#012 self.reinit_data()#012File "/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
#1SMP 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:
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:$

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

1 participant