Bug 1785873 - supervdsm runs lldptool against Infiniband interfaces and fails
Summary: supervdsm runs lldptool against Infiniband interfaces and fails
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: vdsm
Classification: oVirt
Component: General
Version: 4.40.0
Hardware: x86_64
OS: Linux
low
unspecified
Target Milestone: ---
: ---
Assignee: Ales Musil
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-21 20:36 UTC by Alexander Murashkin
Modified: 2021-10-06 07:32 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
: 1882542 (view as bug list)
Environment:
Last Closed: 2021-10-06 07:28:53 UTC
oVirt Team: Network
Embargoed:


Attachments (Terms of Use)
Setup Host Networks does not show link information (129.13 KB, image/png)
2020-01-10 01:47 UTC, Alexander Murashkin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-38005 0 None None None 2021-10-06 07:32:37 UTC

Description Alexander Murashkin 2019-12-21 20:36:18 UTC
Description of problem:

supervdsm runs lldptool against Infiniband interfaces and fails. It shall not even try. LLDP is used in IEEE 802 LANs that Infiniband is not part of. 
 
Version-Release number of selected component (if applicable):

    vdsm-network-4.40.0-1432.gitc29c23741.el8.x86_64

How reproducible:

    Run vdsm on a host with Infiniband interfaces.

Actual results:

    Tracebacks in supervdsm.log and GetlldpFailed events in the engine.

Expected results:

    Silence about LLDP in the case of Infiniband interfaces

Additional info:

The command that is run by supervdsm

# /usr/sbin/lldptool get-tlv -n -i ib0
Agent instance for device not found 

The traceback in supervdsm.log

MainProcess|jsonrpc/0::ERROR::2019-12-21 14:03:21,393::supervdsm_server::97::SuperVdsm.ServerCallback::(wrapper) Error in get_lldp_info
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/vdsm/supervdsm_server.py", line 95, in wrapper
    res = func(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/vdsm/network/api.py", line 356, in get_lldp_info
    return lldp_info.get_info(filter)
  File "/usr/lib/python3.6/site-packages/vdsm/network/lldp/info.py", line 33, in get_info
    return {device: _get_info(device) for device in filter['devices']}
  File "/usr/lib/python3.6/site-packages/vdsm/network/lldp/info.py", line 33, in <dictcomp>
    return {device: _get_info(device) for device in filter['devices']}
  File "/usr/lib/python3.6/site-packages/vdsm/network/lldp/info.py", line 40, in _get_info
    dev_info['tlvs'] = Lldp.get_tlvs(device)
  File "/usr/lib/python3.6/site-packages/vdsm/network/lldp/lldpad.py", line 43, in get_tlvs
    return lldptool.get_tlvs(iface)
  File "/usr/lib/python3.6/site-packages/vdsm/network/lldpad/lldptool.py", line 93, in get_tlvs
    raise TlvReportLldpError(rc, stdout, err, iface)
vdsm.network.lldp.TlvReportLldpError: (1, 'Agent instance for device not found \n', '', 'ib0')

Comment 1 Dominik Holler 2020-01-06 10:50:55 UTC
Thank you very much for reporting the Infiniband bugs!

Is there another problem, except the error in the logfile?

Comment 2 Alexander Murashkin 2020-01-09 00:46:09 UTC
Also messages in the event log

VDSM harrier command GetLldpVDS failed: Internal JSON-RPC error: {'reason': "(1, 'Agent instance for device not found \\n', '', 'ib0')"}

In our case, the host has also Ethernet interfaces and LLDP is enabled on the host and on the switch. LLDP information, including switch port, can be displayed via CLI. But it is not displayed in oVirt web interface.

Maybe I am looking in a wrong place. Where exactly LLDP information is supposed to be displayed?

Comment 3 Dominik Holler 2020-01-09 06:42:20 UTC
(In reply to Alexander Murashkin from comment #2)
> Also messages in the event log
> 
> VDSM harrier command GetLldpVDS failed: Internal JSON-RPC error: {'reason':
> "(1, 'Agent instance for device not found \\n', '', 'ib0')"}
> 
> In our case, the host has also Ethernet interfaces and LLDP is enabled on
> the host and on the switch. LLDP information, including switch port, can be
> displayed via CLI. But it is not displayed in oVirt web interface.
> 
> Maybe I am looking in a wrong place. Where exactly LLDP information is
> supposed to be displayed?

Is the lldp information of the Ethernet ports shown in UI like in the example in
https://www.ovirt.org/develop/release-management/features/network/lldp.html#graphical-user-interface
?

Comment 4 Alexander Murashkin 2020-01-10 01:47:45 UTC
Created attachment 1651139 [details]
Setup Host Networks does not show link information

Link layer information is not shown at all. See the attached screenshot.

Comment 6 Martin Perina 2021-10-06 07:28:53 UTC
We don't have HW to test, closing as deferred


Note You need to log in before you can comment on or make changes to this bug.