Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Won't Do
-
FACT 3.14.1
-
None
-
-
Night's Watch
-
Needs Assessment
-
Needs Assessment
Description
When running `facter networking.interfaces` with facter 3, I get a different network on VirtualBox interfaces than running the same command with facter 4. This bug requires the following configuration in VirtualBox:
- Install VirtualBox
- In VirtualBox, File -> Host Network Manager -> create a vboxnet0 adapter using 255.255.255.0 as IPv4 Network Mask
3. Edit/Create a virtual machine, go to machine settings -> Network, and make sure one Adapter is `Host-Only Adapter` that uses your vboxnet0.
4. Start the VM, and locally, run puppet facts diff.
This bug also reproduces when connected to a VPN, and comparing network interfaces used for VPN connection (utun0, utun1 ...).
I think facter 3 gets the network informations form https://github.com/puppetlabs/facter/blob/3.x/lib/src/facts/bsd/networking_resolver.cc#L29 but the netmask data for VPN interfaces and VirtualBox are empty.
Facter 4 relies on `ifconfig` command and it works as expected.
% puppet facts diff | jq
|
{
|
"network_vboxnet0": { |
"new_value": "192.168.99.0", |
"old_value": "192.168.99.1" |
},
|
"networking.interfaces.vboxnet0.bindings.0.network": { |
"new_value": "192.168.99.0", |
"old_value": "192.168.99.1" |
},
|
"networking.interfaces.vboxnet0.network": { |
"new_value": "192.168.99.0", |
"old_value": "192.168.99.1" |
}
|
Attachments
Issue Links
- relates to
-
FACT-2940 puppet facts diff shows inconsistent networking values on macOS
-
- Closed
-