LLDP collection doesn't work if _any_ interface fails
Bug #1790939 reported by
Maciej Naruszewicz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python client for Ironic Inspector |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Some of our servers have 4/6 interfaces connected to the switches and they fail to submit LLDP information during inspection (i.e. baremetal ports are created but without any data in local link connection field). After some lecture of the code I found a comment suggesting that an empty list returned from select means a timeout on all interfaces (https:/
To post a comment you must log in.
Sep 05 19:07:26 localhost. localdomain ironic- python- agent[1792] : 2018-09-05 19:07:26.959 1792 DEBUG ironic_ python_ agent.netutils [-] Getting LLDP info for interfaces [('eth5', <socket. _socketobject object at 0x7f59ca5ef050>), ('eth1', <socket. _socketobject object at 0x7f59ca5ef0c0>), ('eth0', <socket. _socketobject object at 0x7f59ca5ef130>), ('eth2', <socket. _socketobject object at 0x7f59ca5ef1a0>), ('eth4', <socket. _socketobject object at 0x7f59ca5ef210>), ('eth3', <socket. _socketobject object at 0x7f59ca5ef280>)] _get_lldp_info /usr/share/ ironic- python- agent/venv/ lib/python2. 7/site- packages/ ironic_ python_ agent/netutils. py:160 localdomain ironic- python- agent[1792] : 2018-09-05 19:07:26.959 1792 INFO ironic_ python_ agent.netutils [-] Waiting on LLDP info for interfaces: [('eth5', <socket. _socketobject object at 0x7f59ca5ef050>), ('eth1', <socket. _socketobject object at 0x7f59ca5ef0c0>), ('eth0', <socket. _socketobject object at 0x7f59ca5ef130>), ('eth2', <socket. _socketobject object at 0x7f59ca5ef1a0>), ('eth4', <socket. _socketobject object at 0x7f59ca5ef210>), ('eth3', <socket. _socketobject object at 0x7f59ca5ef280>)], timeout: 30.0 localdomain ironic- python- agent[1792] : 2018-09-05 19:07:41.174 1792 INFO ironic_ python_ agent.netutils [-] Found LLDP info for interface: eth4 localdomain ironic- python- agent[1792] : 2018-09-05 19:07:41.174 1792 INFO ironic_ python_ agent.netutils [-] Waiting on LLDP info for interfaces: [('eth5', <socket. _socketobject object at 0x7f59ca5ef050>), ('eth1', <socket. _socketobject object at 0x7f59ca5ef0c0>), ('eth0', <socket. _socketobject object at 0x7f59ca5ef130>), ('eth2', <socket. _socketobject object at 0x7f59ca5ef1a0>), ('eth3', <socket. _socketobject object at 0x7f59ca5ef280>)], timeout: 30.0 localdomain ironic- python- agent[1792] : 2018-09-05 19:07:41.221 1792 INFO ironic_ python_ agent.netutils [-] Found LLDP info for interface: eth1 localdomain ironic- python- agent[1792] : 2018-09-05 19:07:41.222 1792 INFO ironic_ python_ agent.netutils [-] Waiting on LLDP info for interfaces: [('eth5', <socket. _socketobject object at 0x7f59ca5ef050>), ('eth0', <socket. _socketobject object at 0x7f59ca5ef130>), ('eth2', <socket. _socketobject object at 0x7f59ca5ef1a0>), ('eth3', <socket. _socketobject object at 0x7f59ca5ef280>)], timeout: 30.0 localdomain ironic- python- agent[1792] : 2018-09-05 19:07:42.627 1792 INFO ironic_ python_ agent.netutils [-] Found LLDP info for interface: eth5 localdomain ironic- python- agent[1792] : 2018-09-05 19:07:42.627 1792 INFO ironic_ python_ agent.netutils [-] Waiting on LLDP info for interfaces: [('eth0', <socket. _socketobject object at 0x7f59ca5ef130>), ('eth2', <socket. _socketobject object at 0x7f59ca5ef1a0>), ('eth3', <socket. _socketobject object at 0x7f59ca5ef280>)], timeout: 30.0 localdomain ironic- python- agent[1792] : 2018-09-05 19:07:42.681 1792 INFO ironic_ python_ agent.netutils [-] Found LLDP info for interface: eth3 localdomain ironic- python- agent[1792] : 2018-09-05 19:07:42.681 1...
Sep 05 19:07:26 localhost.
Sep 05 19:07:41 localhost.
Sep 05 19:07:41 localhost.
Sep 05 19:07:41 localhost.
Sep 05 19:07:41 localhost.
Sep 05 19:07:42 localhost.
Sep 05 19:07:42 localhost.
Sep 05 19:07:42 localhost.
Sep 05 19:07:42 localhost.