Issue #20734 has been updated by RoMan Shipovskij.
Thanks ---------------------------------------- Bug #20734: Incorrect ipaddress fact https://projects.puppetlabs.com/issues/20734#change-91111 * Author: RoMan Shipovskij * Status: Unreviewed * Priority: Normal * Assignee: * Category: * Target version: * Keywords: * Branch: * Affected Facter version: 1.7.1 ---------------------------------------- Facter return incorrect ipaddress if lo interface first (that has IP) in ifconfig output. For example: <pre> # ifconfig eth0 Link encap:Ethernet HWaddr 00:16:d4:b2:6a:7a UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:1005 errors:0 dropped:0 overruns:0 frame:0 TX packets:298 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:246302 (246.3 KB) TX bytes:97349 (97.3 KB) Interrupt:21 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:666 errors:0 dropped:0 overruns:0 frame:0 TX packets:666 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:76152 (76.1 KB) TX bytes:76152 (76.1 KB) wlan0 Link encap:Ethernet HWaddr 00:18:de:da:60:fb inet addr:10.31.1.206 Bcast:10.31.1.255 Mask:255.255.255.0 inet6 addr: fe80::218:deff:feda:60fb/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:131263 errors:0 dropped:0 overruns:0 frame:0 TX packets:6956 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:29096010 (29.0 MB) TX bytes:1850755 (1.8 MB) </pre> <pre> # facter facterversion ipaddress lsbdistdescription facterversion => 1.7.1 ipaddress => 127.0.1.1 lsbdistdescription => Ubuntu 12.04.2 LTS </pre> Facter return ipaddress 127.0.1.1, but it should be 10.31.1.206. Possible fix attached -- 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.
