Issue #18156 has been reported by John Leach.

----------------------------------------
Bug #18156: ipaddress6 facts return bad IPs when privacy extensions are enabled
https://projects.puppetlabs.com/issues/18156

Author: John Leach
Status: Unreviewed
Priority: High
Assignee: 
Category: 
Target version: 
Keywords: 
Branch: 
Affected Facter version: 1.6.5


If IPv6 privacy extensions are enabled (which they are on at least Ubuntu 
Precise and up) then facter returns incorrect IP addresses for the ipaddress6 
facts.

When privacy extensions are enabled, several random temporary addresses are 
added to the machine, which change on reboot:

<pre>
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
    link/ether 02:24:19:f0:65:4a brd ff:ff:ff:ff:ff:ff
    inet 10.240.101.74/30 brd 10.240.101.75 scope global eth0
    inet6 2a02:1348:14c:1952:b9ed:198b:474a:a773/64 scope global temporary 
dynamic 
       valid_lft 86120sec preferred_lft 14120sec
    inet6 2a02:1348:14c:1952:ad7f:1d47:6e2a:4c4d/64 scope global temporary 
deprecated dynamic 
       valid_lft 86120sec preferred_lft 0sec
    inet6 2a02:1348:14c:1952:fc3a:66ce:4b75:23af/64 scope global temporary 
deprecated dynamic 
       valid_lft 86120sec preferred_lft 0sec
    inet6 2a02:1348:14c:1952:150b:255e:8eca:854b/64 scope global temporary 
deprecated dynamic 
       valid_lft 86120sec preferred_lft 0sec
    inet6 2a02:1348:14c:1952:5953:50:e10c:82a5/64 scope global temporary 
deprecated dynamic 
       valid_lft 86120sec preferred_lft 0sec
    inet6 2a02:1348:14c:1952:9b7:5fc5:cee5:a5a4/64 scope global temporary 
deprecated dynamic 
       valid_lft 86120sec preferred_lft 0sec
    inet6 2a02:1348:14c:1952:e11d:a331:d82c:8b13/64 scope global temporary 
deprecated dynamic 
       valid_lft 33513sec preferred_lft 0sec
    inet6 2a02:1348:14c:1952:24:19ff:fef0:654a/64 scope global dynamic 
       valid_lft 86120sec preferred_lft 14120sec
    inet6 fe80::24:19ff:fef0:654a/64 scope link 
       valid_lft forever preferred_lft forever
</pre>

facter is returning:

<pre>
ipaddress6 => 2a02:1348:14c:1952:ad7f:1d47:6e2a:4c4d
ipaddress6_eth0 => 2a02:1348:14c:1952:5953:50:e10c:82a5
</pre>

When it should really be returning 
<code>2a02:1348:14c:1952:24:19ff:fef0:654a</code> which is non-temporary 
address.

I caught this because I was using the ipaddress6 fact in a bind address config 
statement and it broke after a reboot (as the IP facter gave me had gone).





-- 
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to