6da6ace384
We hoped that checking /sys/class/net/XXX/carrier will allow us to not wait for interfaces that are not connected at all. In reality this field turned out to be unreliable. For example, it is also set to 0 when interface is down or is being configured. The bug https://bugzilla.redhat.com/show_bug.cgi?id=1327255 shows the case when carrier is 0 for all interfaces, including one that is used to post back data, which is obvious non-sense. This change removes check on carrier for the loop. To avoid 60 seconds wait for people with several NIC's, it's changed to only wait for the PXE booting NIC, which obviously must get an IP address. This makes IP addresses in the inspection data for other NIC's somewhat unreliable. A new option inspection_dhcp_all_interfaces is introduced to allow waiting for all NIC's to get IP addresses. This change should finally fix bug 1564954. Change-Id: I8b04bf726980fdcf6bd536c6bb28e30ac50658fb Related-Bug: #1564954
9 lines
365 B
YAML
9 lines
365 B
YAML
---
|
|
fixes:
|
|
- During inspection wait only for a PXE booting NIC to get its IP by default.
|
|
Introduce a new "inspection_dhcp_all_interfaces" option to enable waiting
|
|
for all interfaces instead.
|
|
- Stop checking the "has_carrier" field when waiting for NIC's to get IP
|
|
addresses, as it might be set to "False" when the interface is being
|
|
configured.
|