You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
'pfcwd show stats' crashes when an invalid queue name is provided as its argument
Steps to reproduce the issue
Issue the command "pfcwd show stats Ethernet400:0". Ethernet400:0 should be an invalid queue name.
Describe the results you received
admin@str-7260cx3-acs-7:~$ pfcwd show stats Ethernet400:0
Traceback (most recent call last):
File "/usr/bin/pfcwd", line 12, in
sys.exit(cli())
File "/usr/lib/python2.7/dist-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pfcwd/main.py", line 87, in stats
stats = db.get_all(db.COUNTERS_DB, 'COUNTERS:' + queue_oid)
TypeError: cannot concatenate 'str' and 'NoneType' objects
Describe the results you expected
admin@str-7260cx3-acs-7:~$ pfcwd show stats Ethernet400:0
QUEUE STATUS STORM DETECTED/RESTORED TX OK/DROP RX OK/DROP TX LAST OK/DROP RX LAST OK/DROP
------- -------- ------------------------- ------------ ------------ ----------------- -----------------
Additional information you deem important (e.g. issue happens only occasionally)
Description
'pfcwd show stats' crashes when an invalid queue name is provided as its argument
Steps to reproduce the issue
Issue the command "pfcwd show stats Ethernet400:0". Ethernet400:0 should be an invalid queue name.
Describe the results you received
admin@str-7260cx3-acs-7:~$ pfcwd show stats Ethernet400:0
Traceback (most recent call last):
File "/usr/bin/pfcwd", line 12, in
sys.exit(cli())
File "/usr/lib/python2.7/dist-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pfcwd/main.py", line 87, in stats
stats = db.get_all(db.COUNTERS_DB, 'COUNTERS:' + queue_oid)
TypeError: cannot concatenate 'str' and 'NoneType' objects
Describe the results you expected
Additional information you deem important (e.g. issue happens only occasionally)
Output of
show version
The text was updated successfully, but these errors were encountered: