Issue #20983 has been updated by Josh Cooper.
Category deleted (windows)
Status changed from Unreviewed to Accepted
Keywords set to windows
Thanks Shane. The ipaddress fact on windows was implemented in 1.5.8 and has
remained unchanged since. It calls:
<pre>
require 'socket'
IPSocket.getaddress(Socket.gethostname)
</pre>
Presumably, `IPSocket.getaddress` is returning a different value now. Really,
the fact should be using WMI like we already do for `lib/facter/util/ip.rb`.
There are a few other ipaddress related on windows #18284, #16668.
----------------------------------------
Bug #20983: Facter 1.7.1 on Windows selecting incorrect ipaddress fact value
https://projects.puppetlabs.com/issues/20983#change-91930
* Author: Shane Madden
* Status: Accepted
* Priority: Normal
* Assignee:
* Category:
* Target version:
* Keywords: windows
* Branch:
* Affected Facter version: 1.7.1
----------------------------------------
On a Windows system with a single interface and single IPv4 address on that
interface (and no real IPv6, just the bound link-local address), Facter 1.7.1
is setting `ipaddress` to the IPv6 link-local address instead of the IPv4
address.
interfaces => Loopback_Pseudo_Interface_1,Local_Area_Connection
ipaddress => fe80::12bc:7caf:11d1:1ab6%11
ipaddress_local_area_connection => 10.1.1.17
ipaddress_loopback_pseudo_interface_1 => 127.0.0.1
Not sure what change caused this behavior, as the correct address is selected
on this system in 1.6.17 and the code for `ipaddress` under Windows doesn't
appear to have changed?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.