Sven Sporer
2012-Jan-30 07:42 UTC
[Puppet Users] SLES11: facter without arguments produces Error: uninitialized constant Facter::IPAddress
Hi, I run into problems with the ipaddress fact using the latest Facter gem (1.6.4, 1.6.5) on SLES11. The versions and gems I use work perfectly fine on SLES10 SP3. The problem: running "facter" without arguments results in an error, even though the erroring fact "ipaddress" is ok. test:~ # cat /etc/SuSE-release SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 1 test:~ # ruby --version ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] test:~ # gem --version 1.3.5 test:~ # puppet --version 2.7.9 test:~ # facter --version 1.6.5 test:~ # facter kernel Linux test:~ # facter ipaddress xx.xx.xxx.xxx (ip address is ok) test:~ # facter The interpreter parameter to ''setcode'' is deprecated and will be removed in a future version. Error: uninitialized constant Facter::IPAddress test:~ # -- 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.
Ken Barber
2012-Jan-30 18:06 UTC
Re: [Puppet Users] SLES11: facter without arguments produces Error: uninitialized constant Facter::IPAddress
This smells like you have a second copy of facter or some other facts somewhere in your RUBYLIB, as the latest version no longer uses Facter::IPAddress. Are you sure you haven''t got an RPM or local copy installed somewhere else? Try running facter --trace as well so we can see the output. The paths might give a clue as to where its traversing on the filesystem. ken. On Mon, Jan 30, 2012 at 7:42 AM, Sven Sporer <sven@intothespirit.com> wrote:> Hi, I run into problems with the ipaddress fact using the latest > Facter gem (1.6.4, 1.6.5) on SLES11. The versions and gems I use work > perfectly fine on SLES10 SP3. > > The problem: running "facter" without arguments results in an error, > even though the erroring fact "ipaddress" is ok. > > test:~ # cat /etc/SuSE-release > SUSE Linux Enterprise Server 11 (x86_64) > VERSION = 11 > PATCHLEVEL = 1 > test:~ # ruby --version > ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] > test:~ # gem --version > 1.3.5 > test:~ # puppet --version > 2.7.9 > test:~ # facter --version > 1.6.5 > test:~ # facter kernel > Linux > test:~ # facter ipaddress > xx.xx.xxx.xxx (ip address is ok) > test:~ # facter > The interpreter parameter to ''setcode'' is deprecated and will be > removed in a future version. > Error: uninitialized constant Facter::IPAddress > test:~ # > > -- > 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. >-- 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.
Sven Sporer
2012-Jan-31 07:59 UTC
[Puppet Users] Re: SLES11: facter without arguments produces Error: uninitialized constant Facter::IPAddress
Ah, thanks Ken for the input. To my surprise, I found out that SLES11 has facter-1.5.2 and puppet 0.24.8 rpms installed, so after removing them, everything works as expected. Sven On Jan 30, 7:06 pm, Ken Barber <k...@puppetlabs.com> wrote:> This smells like you have a second copy of facter or some other facts > somewhere in your RUBYLIB, as the latest version no longer uses > Facter::IPAddress. Are you sure you haven''t got an RPM or local copy > installed somewhere else? > > Try running facter --trace as well so we can see the output. The paths > might give a clue as to where its traversing on the filesystem. > > ken. > > > > > > > > On Mon, Jan 30, 2012 at 7:42 AM, Sven Sporer <s...@intothespirit.com> wrote: > > Hi, I run into problems with the ipaddress fact using the latest > > Facter gem (1.6.4, 1.6.5) on SLES11. The versions and gems I use work > > perfectly fine on SLES10 SP3. > > > The problem: running "facter" without arguments results in an error, > > even though the erroring fact "ipaddress" is ok. > > > test:~ # cat /etc/SuSE-release > > SUSE Linux Enterprise Server 11 (x86_64) > > VERSION = 11 > > PATCHLEVEL = 1 > > test:~ # ruby --version > > ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] > > test:~ # gem --version > > 1.3.5 > > test:~ # puppet --version > > 2.7.9 > > test:~ # facter --version > > 1.6.5 > > test:~ # facter kernel > > Linux > > test:~ # facter ipaddress > > xx.xx.xxx.xxx (ip address is ok) > > test:~ # facter > > The interpreter parameter to ''setcode'' is deprecated and will be > > removed in a future version. > > Error: uninitialized constant Facter::IPAddress > > test:~ # > > > -- > > 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 athttp://groups.google.com/group/puppet-users?hl=en.-- 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.