Michael Conigliaro
2009-Apr-24 18:35 UTC
[Puppet Users] uninitialized constant Facter::IPAddress (NameError)
I just started getting this error on some machines after a yum update from centos 5.2 to centos 5.3. Does anyone know what it means? Since I''m not a ruby person, I''m not sure how to debug this, but it looks to me like facter is having trouble parsing information about my interfaces. # facter /usr/lib/ruby/site_ruby/1.8/facter/ipmess.rb:19: uninitialized constant Facter::IPAddress (NameError) from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:72:in `load'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:72:in `load_file'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:38:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:33:in `each'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:33:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:30:in `each'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:30:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:90:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter.rb:91:in `to_hash'' from /usr/bin/facter:125 My facter version is 1.5.4. -- Michael Conigliaro Computer Analyst Fuss & O''Neill Technologies www.fandotech.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Conigliaro
2009-Apr-24 18:58 UTC
[Puppet Users] Re: uninitialized constant Facter::IPAddress (NameError)
I just confirmed this problem on 1.5.5rc1 as well. -- Michael Conigliaro Computer Analyst Fuss & O''Neill Technologies www.fandotech.com -----Original Message----- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Michael Conigliaro Sent: Friday, April 24, 2009 2:35 PM To: puppet-users@googlegroups.com Subject: [Puppet Users] uninitialized constant Facter::IPAddress (NameError) I just started getting this error on some machines after a yum update from centos 5.2 to centos 5.3. Does anyone know what it means? Since I''m not a ruby person, I''m not sure how to debug this, but it looks to me like facter is having trouble parsing information about my interfaces. # facter /usr/lib/ruby/site_ruby/1.8/facter/ipmess.rb:19: uninitialized constant Facter::IPAddress (NameError) from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:72:in `load'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:72:in `load_file'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:38:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:33:in `each'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:33:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:30:in `each'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:30:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:90:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter.rb:91:in `to_hash'' from /usr/bin/facter:125 My facter version is 1.5.4. -- Michael Conigliaro Computer Analyst Fuss & O''Neill Technologies www.fandotech.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Conigliaro
2009-Apr-24 19:38 UTC
[Puppet Users] Re: uninitialized constant Facter::IPAddress (NameError)
For anyone else who has this problem, here''s the fix: rm /usr/lib/ruby/site_ruby/1.8/facter/ipmess.rb According to someone in #puppet, this file should have been deleted during the upgrade... -- Michael Conigliaro Computer Analyst Fuss & O''Neill Technologies www.fandotech.com -----Original Message----- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Michael Conigliaro Sent: Friday, April 24, 2009 2:58 PM To: puppet-users@googlegroups.com Subject: [Puppet Users] Re: uninitialized constant Facter::IPAddress (NameError) I just confirmed this problem on 1.5.5rc1 as well. -- Michael Conigliaro Computer Analyst Fuss & O''Neill Technologies www.fandotech.com -----Original Message----- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Michael Conigliaro Sent: Friday, April 24, 2009 2:35 PM To: puppet-users@googlegroups.com Subject: [Puppet Users] uninitialized constant Facter::IPAddress (NameError) I just started getting this error on some machines after a yum update from centos 5.2 to centos 5.3. Does anyone know what it means? Since I''m not a ruby person, I''m not sure how to debug this, but it looks to me like facter is having trouble parsing information about my interfaces. # facter /usr/lib/ruby/site_ruby/1.8/facter/ipmess.rb:19: uninitialized constant Facter::IPAddress (NameError) from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:72:in `load'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:72:in `load_file'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:38:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:33:in `each'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:33:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:30:in `each'' from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:30:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:90:in `load_all'' from /usr/lib/ruby/site_ruby/1.8/facter.rb:91:in `to_hash'' from /usr/bin/facter:125 My facter version is 1.5.4. -- Michael Conigliaro Computer Analyst Fuss & O''Neill Technologies www.fandotech.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
James Turnbull
2009-Apr-25 02:31 UTC
[Puppet Users] Re: uninitialized constant Facter::IPAddress (NameError)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Conigliaro wrote:> For anyone else who has this problem, here''s the fix: > > rm /usr/lib/ruby/site_ruby/1.8/facter/ipmess.rb > > According to someone in #puppet, this file should have been deleted > during the upgrade...Depends on HOW you upgrade. If you install from source (install.rb) then no old files are removed. Regards James Turnbull - -- Author of: * Pro Linux Systems Administration (http://www.amazon.com/gp/product/1430219122/) * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJ8nX39hTGvAxC30ARAsDmAJ9DupSYK/mKD66wco7Vds1RaNdZ0wCfUg4L 3b5d0mkwDmXHm/oUCwHQB0U=+H89 -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Avi Miller
2009-Apr-25 02:39 UTC
[Puppet Users] Re: uninitialized constant Facter::IPAddress (NameError)
On 25/04/2009, at 12:31 PM, James Turnbull wrote:> Depends on HOW you upgrade. If you install from source (install.rb) > then no old files are removed.I think this is a problem in the RPM -- I had the same error when I upgraded Facter via RPM from 1.5.2 to 1.5.4. Though, restarting Puppet makes it go away. So now I notify the Puppet service from the Facter package, which neatly solves the problem[1]. cYa, Avi [1] At least, it does for me. YMMV. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---