Issue #17383 has been updated by Konstantin Makarov.

Hello. I have this problem too.

    uname -a
        Linux uno 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 
x86_64 x86_64 x86_64 GNU/Linux

I've installed facter through apt-get like 
http://projects.puppetlabs.com/projects/1/wiki/Puppet_Ubuntu

    sudo su -

    echo "
    # Puppetlabs products 
    deb http://apt.puppetlabs.com precise main
    deb-src http://apt.puppetlabs.com precise main
    " >> sources.list.d/puppetlabs.list
    
    apt-key adv --keyserver keyserver.ubuntu.com --recv 4BD6EC30
    apt-get update

    apt-get install puppetmaster puppet
    dpkg -s facter
        Package: facter
        Status: install ok installed
        Priority: optional
        Section: ruby
        Installed-Size: 158
        Maintainer: Puppet Labs <[email protected]>
        Architecture: all
        Version: 1.6.14-1puppetlabs1

    facter --version
        1.6.7
    ## WHAT? O_o

     which facter
        /usr/bin/facter
    
    /usr/bin/facter --trace
        /usr/lib/ruby/vendor_ruby/facter/processor.rb:27: undefined method 
`kernel_fact_value' for Facter::Util::Processor:Module (NoMethodError)
        from /usr/local/lib/site_ruby/1.8/facter/util/loader.rb:81:in `load'
        from /usr/local/lib/site_ruby/1.8/facter/util/loader.rb:81:in 
`load_file'
        from /usr/local/lib/site_ruby/1.8/facter/util/loader.rb:43:in `load_all'
        from /usr/local/lib/site_ruby/1.8/facter/util/loader.rb:38:in `each'
        from /usr/local/lib/site_ruby/1.8/facter/util/loader.rb:38:in `load_all'
        from /usr/local/lib/site_ruby/1.8/facter/util/loader.rb:35:in `each'
        from /usr/local/lib/site_ruby/1.8/facter/util/loader.rb:35:in `load_all'
        from /usr/local/lib/site_ruby/1.8/facter/util/collection.rb:93:in 
`load_all'
        from /usr/local/lib/site_ruby/1.8/facter.rb:104:in `to_hash'
        from /usr/local/lib/site_ruby/1.8/facter/application.rb:26:in `run'
        from /usr/bin/facter:71

And I've installed facter through gem too:

    sudo gem install facter
        Fetching: facter-1.6.14.gem (100%)
        Successfully installed facter-1.6.14
        1 gem installed
        Installing ri documentation for facter-1.6.14...
        Installing RDoc documentation for facter-1.6.14...

    which facter
        /usr/local/bin/facter

    /usr/local/bin/facter --version
        1.6.14

    /usr/local/bin/facter --trace
        /usr/local/lib/site_ruby/1.8/facter/processor.rb:84: undefined method 
`enum_lsdev' for Facter::Util::Processor:Module (NoMethodError)
        from 
/var/lib/gems/1.8/gems/facter-1.6.14/lib/facter/util/loader.rb:81:in `load'
        from 
/var/lib/gems/1.8/gems/facter-1.6.14/lib/facter/util/loader.rb:81:in `load_file'
        from 
/var/lib/gems/1.8/gems/facter-1.6.14/lib/facter/util/loader.rb:43:in `load_all'
        from 
/var/lib/gems/1.8/gems/facter-1.6.14/lib/facter/util/loader.rb:38:in `each'
        from 
/var/lib/gems/1.8/gems/facter-1.6.14/lib/facter/util/loader.rb:38:in `load_all'
        from 
/var/lib/gems/1.8/gems/facter-1.6.14/lib/facter/util/loader.rb:35:in `each'
        from 
/var/lib/gems/1.8/gems/facter-1.6.14/lib/facter/util/loader.rb:35:in `load_all'
        from 
/var/lib/gems/1.8/gems/facter-1.6.14/lib/facter/util/collection.rb:93:in 
`load_all'
        from /var/lib/gems/1.8/gems/facter-1.6.14/lib/facter.rb:100:in `to_hash'
        from 
/var/lib/gems/1.8/gems/facter-1.6.14/lib/facter/application.rb:26:in `run'
        from /var/lib/gems/1.8/gems/facter-1.6.14/bin/facter:71
        from /usr/local/bin/facter:19:in `load'
        from /usr/local/bin/facter:19  


----------------------------------------
Bug #17383: Could not retrieve local facts: undefined method 
`kernel_fact_value' for Facter::Util::Processor:Module
https://projects.puppetlabs.com/issues/17383#change-75920

Author: Anand Kumria
Status: Re-opened
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: undefined, method
Branch: 
Affected Facter version: 1.6.14


With facter 1.6.14 installed, I receive the following messages:

Nov  2 05:43:09 xxx puppet-agent[4012]: Could not retrieve local facts: 
undefined method `kernel_fact_value' for Facter::Util::Processor:Module
Nov  2 05:43:09 xxx puppet-agent[4012]: Failed to apply catalog: Could not 
retrieve local facts: undefined method `kernel_fact_value' for 
Facter::Util::Processor:Module

This message does not occur with facter 1.6.13

# dpkg -l | grep puppet
ii  facter                           1.6.14-1puppetlabs1               Ruby 
module for collecting simple facts abou
ii  hiera                            1.1.0-1puppetlabs1                A simple 
pluggable Hierarchical Database.
ii  puppet                           3.0.1-1puppetlabs1                
Centralized configuration management - agent
ii  puppet-common                    3.0.1-1puppetlabs1                
Centralized configuration management




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