Issue #20229 has been updated by Jeff McCune.

Assignee set to Niels Abspoel
Target version changed from 1.7.x to 1.7.1
Branch set to https://github.com/puppetlabs/facter/pull/432

Niels,

I have a fix for this in the branch at 
<https://github.com/puppetlabs/facter/pull/432>

Is the general `netmask` fact broken as well for you, or is it just the 
interface specific `netmask_*` facts?

Also, is this bug specific to the netmask, or is it all of the interface 
attributes that are broken for you?  I notice you're getting nil values for 
ipaddress, mtu, macaddress, etc...  Are all of these issues for you on 
Archlinux in Facter 1.7?

I'm going to assign this ticket to you since we need a bit more information to 
understand the true scope of this issue.  If it is simply the `netmask_*` 
facts, then this should be fixed by the patches in pull request 432.

----------------------------------------
Bug #20229: facter 1.7.0 network facts not working
https://projects.puppetlabs.com/issues/20229#change-89392

* Author: Niels Abspoel
* Status: Needs More Information
* Priority: Normal
* Assignee: Niels Abspoel
* Category: interface
* Target version: 1.7.1
* Keywords: archlinux netmask

* Branch: https://github.com/puppetlabs/facter/pull/432
* Affected Facter version: 1.7.0
----------------------------------------
netmask fact doesn't work on archlinux with facter 1.7.0

<pre>
sudo facter -p --debug
value for ipaddress6_enp5s0 is still nil
value for netmask_enp5s0 is still nil
value for mtu_enp5s0 is still nil
value for ipaddress_enp6s0 is still nil
value for ipaddress6_enp6s0 is still nil
value for netmask_enp6s0 is still nil
value for mtu_enp6s0 is still nil
value for ipaddress6_lo is still nil
value for macaddress_lo is still nil
value for netmask_lo is still nil
value for mtu_lo is still nil
value for ipaddress6 is still nil

but if I do an ifconfig:
ifconfig
enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet XXX.XXX.XXX.XXX  netmask 255.255.255.0  broadcast XXX.XXX.XXX.XXX
        inet6 XXXX::XXXX:XXXX:XXXX:XXXX  prefixlen 64  scopeid 0x20<link>
        ether XX:XX:XX:XX:XX:XX  txqueuelen 1000  (Ethernet)
        RX packets 184710  bytes 210205733 (200.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 105984  bytes 20553531 (19.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 61  bytes 8660 (8.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 61  bytes 8660 (8.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
</pre>

in util/netmask.rb and util/ip.rb some regex needs to be adjusted.


-- 
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.


Reply via email to