I found this post from Nov 20 regarding a bug in facter. James Turnbull was asking then for debug output, which I've provided a bit later.
The real trick though is this: [mdeh...@eng-dhcp-105 facter]$ ack lsbdistid * lib/facter/operatingsystem.rb 11: if Facter.value(:lsbdistid) == "Ubuntu" There's nothing that sets this value anywhere in facter. "operatingsystem" seems to be a close candidate. A similar problem occurs with :lsbdistrelease, which is also never set. [mdeh...@eng-dhcp-105 facter]$ sudo facter --debug Could not retrieve lsbdistid: can't convert Array into String Could not retrieve lsbdistid: can't convert Array into String value for lsbdistid is still nil value for netmask_wmaster0 is still nil Could not retrieve lsbdistrelease: can't convert Array into String Could not retrieve lsbdistrelease: can't convert Array into String value for lsbdistrelease is still nil Could not retrieve virtual: undefined method `each_line' for #<Array: 0xb6c694fc> value for virtual is still nil value for macaddress_wmaster0 is still nil value for netmask_pan0 is still nil Could not retrieve lsbdistrelease: can't convert Array into String Could not retrieve lsbdistrelease: can't convert Array into String value for lsbdistrelease is still nil Could not retrieve lsbdistrelease: can't convert Array into String Could not retrieve lsbdistrelease: can't convert Array into String value for lsbdistrelease is still nil value for lsbmajdistrelease is still nil Could not retrieve lsbrelease: can't convert Array into String Could not retrieve lsbrelease: can't convert Array into String value for lsbrelease is still nil value for ipaddress_wmaster0 is still nil value for cfkey is still nil value for network_wmaster0 is still nil Found no suitable resolves of 2 for iphostnumber value for iphostnumber is still nil Could not retrieve lsbdistdescription: can't convert Array into String Could not retrieve lsbdistdescription: can't convert Array into String value for lsbdistdescription is still nil value for ipaddress_pan0 is still nil Could not retrieve lsbdistcodename: can't convert Array into String Could not retrieve lsbdistcodename: can't convert Array into String value for lsbdistcodename is still nil Could not retrieve virtual: undefined method `each_line' for #<Array: 0xb6a6b984> value for virtual is still nil value for network_pan0 is still nil Could not retrieve lsbdistid: can't convert Array into String Could not retrieve lsbdistid: can't convert Array into String value for lsbdistid is still nil architecture => i386 domain => rdu.lulu.com facterversion => 1.5.7 fqdn => eng-dhcp-105.rdu.lulu.com hardwareisa => i686 hardwaremodel => i686 hostname => eng-dhcp-105 id => root interfaces => eth0,pan0,wlan0,wmaster0 ipaddress => 10.4.7.105 ipaddress_eth0 => 10.4.7.105 ipaddress_wlan0 => 10.4.7.107 is_virtual => false kernel => Linux kernelmajversion => 2.6 kernelrelease => 2.6.30.9-96.fc11.i686.PAE kernelversion => 2.6.30.9 macaddress => 00:1C:25:78:ED:6C macaddress_eth0 => 00:1C:25:78:ED:6C macaddress_pan0 => 26:83:68:F8:A6:AC macaddress_wlan0 => 00:1F:3B:16:12:89 manufacturer => LENOVO memoryfree => 1.56 GB memorysize => 1.94 GB netmask => 255.255.255.0 netmask_eth0 => 255.255.255.0 netmask_wlan0 => 255.255.255.0 network_eth0 => 10.4.7.0 network_wlan0 => 10.4.7.0 operatingsystem => Fedora operatingsystemrelease => 11 path => /sbin:/bin:/usr/sbin:/usr/bin physicalprocessorcount => 1 processor0 => Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz processor1 => Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz processorcount => 2 productname => 6460DWU ps => ps -ef puppetversion => 0.24.8 rubysitedir => /usr/lib/ruby/site_ruby/1.8 rubyversion => 1.8.6 selinux => true selinux_enforced => true selinux_mode => targeted selinux_policyversion => 24 serialnumber => L3K4789 sshdsakey => (snip) sshrsakey => (snip) swapfree => 3.91 GB swapsize => 3.91 GB timezone => EST type => Notebook uniqueid => 007f0100 uptime => 2 days uptime_days => 2 uptime_hours => 48 uptime_seconds => 172900 This leads to extra output from puppetca each time it is run: [mdeh...@eng-dhcp-105 facter]$ sudo puppetca --list Could not retrieve lsbdistid: can't convert Array into String No certificates to sign I'd provide a patch though I'm not sure what the intent is here. --Michael On Nov 20, 6:03 pm, James Turnbull <ja...@lovedthanlost.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > Adam Ryczkowski wrote: > > After a fresh install from source, facter displays suspected messages > > (errors? warnings?): > > > # facter > >Couldnotretrievelsbdistcodename: can't convert Array into String > >Couldnotretrievelsbdistcodename: can't convert Array into String > >Couldnotretrievelsbdistid: can't convert Array into String > >Couldnotretrievelsbdistid: can't convert Array into String > >Couldnotretrievelsbrelease: can't convert Array into String > >Couldnotretrievelsbrelease: can't convert Array into String > >Couldnotretrievelsbdistdescription: can't convert Array into String > >Couldnotretrievelsbdistdescription: can't convert Array into String > >Couldnotretrievevirtual: undefined method `each_line' for #<Array: > > 0xb79c9250> > >Couldnotretrievelsbdistrelease: can't convert Array into String > >Couldnotretrievelsbdistrelease: can't convert Array into String > >Couldnotretrievelsbdistrelease: can't convert Array into String > >Couldnotretrievelsbdistrelease: can't convert Array into String > >Couldnotretrievelsbdistid: can't convert Array into String > >Couldnotretrievelsbdistid: can't convert Array into String > >Couldnotretrievelsbdistrelease: can't convert Array into String > >Couldnotretrievelsbdistrelease: can't convert Array into String > >Couldnotretrievevirtual: undefined method `each_line' for #<Array: > > 0xb7b5b910> > > /usr/local/lib/site_ruby/1.8/puppet/external/dot.rb:57: warning: > > already initialized constant NODE_OPTS > > /usr/local/lib/site_ruby/1.8/puppet/external/dot.rb:97: warning: > > already initialized constant EDGE_OPTS > > /usr/local/lib/site_ruby/1.8/puppet/external/dot.rb:112: warning: > > already initialized constant GRAPH_OPTS > > > I have followed these minimalistic steps to recreate a problem on > > Ubuntu Jaunty 9.04: > > > 1. apt-get install git-core ruby libmocha-ruby librspec-ruby rubygems > > 2. gem install ZenTest > > 3. git clone git://github.com/reductivelabs/facter > > 4. cd facter > > 5. ./install.rb > > Why are you installing from source instead of using a package? You > are also installing Facter HEAD above - which isnota stable > release - and may in fact on occasion (rarely) be even broken. > > I recommend using a supported, stable release. > > Barring that please run: > > # facter --debug > > And provide the results please. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.