Parimi V.
2008-Nov-14 06:37 UTC
[Puppet Users] Facter is broken on Open Solaris (facter-1.5.2)
# /usr/local/ruby/bin/facter /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ operatingsystemrelease.rb:79: private method `chomp'' called for nil:NilClass (NoMethodError) from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/resolution.rb:117:in `call'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/resolution.rb:117:in `value'' from /usr/local/ruby-1.8.7-p72/lib/ruby/1.8/timeout.rb:53:in `timeout'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/resolution.rb:115:in `value'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/fact.rb:75:in `value'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/loader.rb:72:in `inject'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/fact.rb:71:in `each'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/fact.rb:71:in `inject'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/fact.rb:71:in `value'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/fact.rb:117:in `searching'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/fact.rb:67:in `value'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/collection.rb:104:in `to_hash'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/loader.rb:72:in `inject'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/collection.rb:103:in `each'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/collection.rb:103:in `inject'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ util/collection.rb:103:in `to_hash'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/ facter.rb:92:in `send'' from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/ facter.rb:92:in `to_hash'' from /usr/local/ruby/bin/facter:121 # --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Andrew Wasilczuk
2008-Nov-14 15:29 UTC
[Puppet Users] Re: Facter is broken on Open Solaris (facter-1.5.2)
Parimi V. wrote:> # /usr/local/ruby/bin/facter > /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > operatingsystemrelease.rb:79: private method `chomp'' called for > nil:NilClass (NoMethodError) > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/resolution.rb:117:in `call'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/resolution.rb:117:in `value'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/1.8/timeout.rb:53:in > `timeout'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/resolution.rb:115:in `value'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/fact.rb:75:in `value'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/loader.rb:72:in `inject'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/fact.rb:71:in `each'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/fact.rb:71:in `inject'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/fact.rb:71:in `value'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/fact.rb:117:in `searching'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/fact.rb:67:in `value'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/collection.rb:104:in `to_hash'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/loader.rb:72:in `inject'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/collection.rb:103:in `each'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/collection.rb:103:in `inject'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/facter/ > util/collection.rb:103:in `to_hash'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/ > facter.rb:92:in `send'' > from /usr/local/ruby-1.8.7-p72/lib/ruby/site_ruby/1.8/ > facter.rb:92:in `to_hash'' > from /usr/local/ruby/bin/facter:121 > # >I experienced the same problem. I guess this is because OpenSolaris isn''t properly supported by facter yet? The previous version worked alright, but after adding the operatingsystemrelease fact on Solaris (#1555 on redmine) it broke on OpenSolaris. This is because the /etc/release file (where this fact gets it''s value from) is formated differently on Solaris 10 than it is on OpenSolaris. I tried to fix this a while ago, and I accidentally started a thread on opensolaris-discuss [1], where I was told that using /etc/release in scripts is generally a bad idea because it may change without a notice. There is also some confusion as to what operatingsystemrelease should be set to on Solaris. I''d probably go for uname -r, which yields 5.10 on Solaris and 5.11 on OpenSolaris. But then it''s the same as the kernelversion so not very useful... Another option would be to use the bi-weekly build numbers on OpenSolaris (e.g. snv_99). I''d love to hear some opinions on what this should be set to. Cheers, Andrew. [1] http://opensolaris.org/jive/message.jspa?messageID=299469 -- . __/_/_ w: http://darq.com/ . __/_/_ t: 020 7100 1447 . / / e: support@darq.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 -~----------~----~----~----~------~----~------~--~---
Eric Eisenhart
2008-Nov-14 20:03 UTC
[Puppet Users] Re: Facter is broken on Open Solaris (facter-1.5.2)
On Nov 14, 2008, at 7:29 AM, Andrew Wasilczuk wrote:> I tried to fix this a while ago, and I accidentally started a thread > on > opensolaris-discuss [1], where I was told that using /etc/release in > scripts is generally a bad idea because it may change without a > notice. > There is also some confusion as to what operatingsystemrelease > should be > set to on Solaris. I''d probably go for uname -r, which yields > 5.10 on > Solaris and 5.11 on OpenSolaris. But then it''s the same as the > kernelversion so not very useful... Another option would be to use > the > bi-weekly build numbers on OpenSolaris (e.g. snv_99). I''d love to > hear > some opinions on what this should be set to.Seems to me that on Solaris the "kernelrelease" fact is currently wrong. It should be the output of uname -v ("Generic_137137-09" on one of my Solaris 10 systems). uname -r is the OS release, but uname - v is the kernel release/version. -- Eric Eisenhart <eric.eisenhart@sonoma.edu> Lead Unix/Linux System Administrator 1.707.664.3099 Sonoma State University, Information Technology Jabber/XMPP: eisenhae@jabber.sonoma.edu AIM: ericeisenhart --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Parimi V.
2008-Nov-14 21:03 UTC
[Puppet Users] Re: Facter is broken on Open Solaris (facter-1.5.2)
OpenSolaris release model is pretty confusing at this point. I''d think using the build number as OSRelease at this point is reasonable as that''s how they refer the OS release to. At the least, facter should be forgiving on what it gets from the /etc/release, which is failing with very bizarre error message listed below hidden in the logs. <<>> Could not retrieve catalog: private method `chomp'' called for nil:NilClass <</>> Thanks, Parimi V. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-Nov-17 23:20 UTC
[Puppet Users] Re: Facter is broken on Open Solaris (facter-1.5.2)
On Nov 14, 2008, at 3:03 PM, Parimi V. wrote:> > OpenSolaris release model is pretty confusing at this point. I''d think > using the build number as OSRelease at this point is reasonable as > that''s how they refer the OS release to. At the least, facter should > be forgiving on what it gets from the /etc/release, which is failing > with very bizarre error message listed below hidden in the logs. > > <<>> > Could not retrieve catalog: private method `chomp'' called for > nil:NilClassI agree -- that''s clearly a Facter bug. Has anyone filed it yet? We actually should be putting out a new Facter release, since I think we''ve got quite a few commits in already, so it''d be great if this can get fixed in time for the next release. -- Due to circumstances beyond your control, you are master of your fate and captain of your soul. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.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 -~----------~----~----~----~------~----~------~--~---