Project

General

Profile

Bug #31826

Updated by Lukas Zapletal over 3 years ago

Discovered nodes without default route do not get "networking->ip" and "networking->ip6" and "networking->primary" facts, therefore Our puppet3 primary NIC detection of the primary interface fails in core, thus discovery core is unable to continue. broken as well as discovery. 

 <pre> 
 2021-02-05T16:40:58 [D|app|7ce03c4a] We have following interfaces 'ens192' based on facts 
 2021-02-05T16:40:58 [D|app|7ce03c4a] Interface ens192 facts: {"bindings"=>[{"address"=>"10.28.236.10", "netmask"=>"255.255.255.0", "network"=>"10.28.236.0"}], "bindings6"=>[{"address"=>"fe80::250:56ff:feac:18b6", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::"}], "dhcp"=>"10.28.236.3", "macaddress"=>"00:50:56:ac:18:b6", "mtu"=>1500, "scope6"=>"link"} 
 2021-02-05T16:40:58 [D|app|7ce03c4a] Discovery fact parser detected primary interface:  
 2021-02-05T16:40:58 [W|app|7ce03c4a] Host discovery failed, facts: {} error (Foreman::Exception): ERF42-9680 [Foreman::Exception]: Unable to find primary NIC with 52:d0:8d:34:12:84 specified via 'discovery_bootif', NIC filter: ["lo", "en*v*", "usb*", "vnet*", "macvtap*", ";vdsmdummy;", "veth*", "docker*", "tap*", "qbr*", "qvb*", "qvo*", "qr-*", "qg-*", "vlinuxbr*", "vovsbr*", "br-int"] 
 </pre> 

 This needs is due to "interfaces" format change, it used to be fixed so both facter 2 and 3 do work (with and without default route). list of identifiers, now it's an array of hashes with bindings hash.

Back