Actions
Bug #22192
openFact import code does not work with VLAN primary NIC
Status:
New
Priority:
Normal
Assignee:
-
Category:
Importers
Target version:
-
Description
When importing a host with primary interface on VLAN, it doesn't get imported properly. Both interfaces are saved correctly, but primary_interface reference is wrong (to the non-VLAN interface eth0
instead of eth0_2
. This does not work regardless discovery installed or not (it provides its own detection mechanism).
[app|D] We have following interfaces 'eth0, eth0_2' based on facts [app|D] Interface eth0 facts: {"macaddress"=>"52:54:00:00:00:99", "mtu"=>1500, "link"=>"true"} [app|D] Interface eth0_2 facts: {"macaddress"=>"52:54:00:00:00:99", "mtu"=>1500, "ipaddress"=>"192.168.99.56", "netmask"=>"255.255.255.0", "network"=>"192.168.99.0", "link"=>"true"} [app|D] Discovery fact parser detected primary interface: ["eth0.2", {"macaddress"=>"52:54:00:00:00:99", "mtu"=>1500, "ipaddress"=>"192.168.99.56", "netmask"=>"255.255.255.0", "network"=>"192.168.99.0", "link"=>"true", "virtual"=>true, "attached_to"=>"eth0", "tag"=>"2"}]
Actions