Issue #20229 has been updated by Niels Abspoel.
Jeff, I pulled your branch and got it working: git status<br> On branch fix_netmask_scanner as you can see<br> netmask works this is the output: $ bundle exec facter netmask<br> 255.255.255.0 this is the whole output of bundle exec facter --debug :<br> <pre><code class="ruby"> sudo bundle exec facter --debug Not an EC2 host value for cfkey is still nil ruby-augeas not available value for augeasversion is still nil value for ipaddress6_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 mtu_lo is still nil value for ipaddress6 is still nil Found no suitable resolves of 2 for iphostnumber value for iphostnumber is still nil value for boardserialnumber is still nil value for serialnumber is still nil value for network_enp6s0 is still nil Found no suitable resolves of 1 for operatingsystemmajrelease value for operatingsystemmajrelease is still nil Found no suitable resolves of 2 for processor value for processor is still nil value for puppetversion is still nil Found no suitable resolves of 1 for selinux_enforced value for selinux_enforced is still nil Found no suitable resolves of 1 for selinux_policyversion value for selinux_policyversion is still nil Found no suitable resolves of 1 for selinux_current_mode value for selinux_current_mode is still nil Found no suitable resolves of 1 for selinux_config_mode value for selinux_config_mode is still nil Found no suitable resolves of 1 for selinux_config_policy value for selinux_config_policy is still nil Found no suitable resolves of 1 for selinux_mode value for selinux_mode is still nil value for vlans is still nil Found no suitable resolves of 1 for xendomains value for xendomains is still nil value for zfs_version is still nil Found no suitable resolves of 1 for zonename value for zonename is still nil value for zpool_version is still nil architecture => x86_64 bios_release_date => 04/24/2009 bios_vendor => Award Software International, Inc. bios_version => F6D blockdevice_sda_model => WDC WD5000AAKS-0 blockdevice_sda_size => 500106780160 blockdevice_sda_vendor => ATA blockdevice_sdb_model => SAMSUNG HD753LJ blockdevice_sdb_size => 750155292160 blockdevice_sdb_vendor => ATA blockdevice_sdc_model => ST31500341AS blockdevice_sdc_size => 1500301910016 blockdevice_sdc_vendor => ATA blockdevice_sr0_model => DVDRAM GH22NS50 blockdevice_sr0_size => 1073741312 blockdevice_sr0_vendor => HL-DT-ST blockdevices => sda,sdb,sdc,sr0 boardmanufacturer => Gigabyte Technology Co., Ltd. boardproductname => X48T-DQ6 domain => ghost-net.com facterversion => 1.7.0 filesystems => ext2,ext3,ext4 fqdn => spectre.ghost-net.com hardwareisa => unknown hardwaremodel => x86_64 hostname => spectre id => root interfaces => enp5s0,enp6s0,lo ipaddress => 192.168.0.50 ipaddress_enp5s0 => 192.168.0.50 ipaddress_lo => 127.0.0.1 is_virtual => false kernel => Linux kernelmajversion => 3.8 kernelrelease => 3.8.8-1-ARCH kernelversion => 3.8.8 lsbdistcodename => n/a lsbdistdescription => Arch Linux lsbdistid => arch lsbdistrelease => rolling lsbmajdistrelease => rolling lsbrelease => 1.4 macaddress => 00:1d:7d:0a:b6:48 macaddress_enp5s0 => 00:1d:7d:0a:b6:48 macaddress_enp6s0 => 00:1d:7d:0d:a1:c9 manufacturer => Gigabyte Technology Co., Ltd. memoryfree => 2.48 GB memoryfree_mb => 2537.07 memorysize => 3.86 GB memorysize_mb => 3956.73 memorytotal => 3.86 GB netmask => 255.255.255.0 netmask_enp5s0 => 255.255.255.0 netmask_lo => 255.0.0.0 network_enp5s0 => 192.168.0.0 network_lo => 127.0.0.0 operatingsystem => Archlinux operatingsystemrelease => 3.8.8-1-ARCH osfamily => Archlinux path => /home/aboe/Development/git/facter/.bundle/gems/ruby/2.0.0/bin:/home/aboe/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/NX/bin:/usr/bin/vendor_perl:/usr/bin/core_perl physicalprocessorcount => 1 processor0 => Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz processor1 => Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz processor2 => Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz processor3 => Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz processorcount => 4 productname => X48T-DQ6 ps => ps -ef rubysitedir => /usr/lib/ruby/site_ruby/2.0.0 rubyversion => 2.0.0 selinux => false sshdsakey => XXX sshecdsakey => XXX sshfp_dsa => SSHFP 2 1 XXX SSHFP 2 2 XXX sshfp_ecdsa => SSHFP 3 1 XXX SSHFP 3 2 XXX sshfp_rsa => SSHFP 1 1 XXX SSHFP 1 2 XXX sshrsakey => XXX swapfree => 3.72 GB swapfree_mb => 3813.75 swapsize => 3.72 GB swapsize_mb => 3813.75 timezone => CEST type => Desktop uniqueid => a8c03200 uptime => 2:09 hours uptime_days => 0 uptime_hours => 2 uptime_seconds => 7792 uuid => 00000000-0000-0000-0000-001D7D0AB648 virtual => vmware_workstation </code></pre> ---------------------------------------- Bug #20229: facter 1.7.0 network facts not working https://projects.puppetlabs.com/issues/20229#change-89922 * Author: Niels Abspoel * Status: In Topic Branch Pending Review * Priority: Normal * Assignee: * Category: interface * Target version: 1.7.x * 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.
