Alexander Grushin
2013-Jun-24 06:10 UTC
[Puppet Users] facter 1.7.1 crashed on sshfp_* facts
Hi, after upgrade to facter 1.7.1 on a few boxes it get broken: # facter -p --debug sshfp_rsa value for lsbdistid is still nil Illegal instruction # facter -p --debug sshfp_dsa value for lsbdistid is still nil Illegal instruction # facter -v 1.7.1 Perhaps, there are something wrong around ssh keys, but initial overview didn''t show any error. I tried to use ruby -rdebug (eh, first time), may be it will be useful: # ruby -rdebug /usr/bin/facter sshfp_rsa [...] (rdb:1) p fact.value "Linux" (rdb:1) n /usr/lib/ruby/site_ruby/1.8/facter/zones.rb:15:if Facter.value(:kernel) == ''SunOS'' (rdb:1) c Breakpoint 1, value at /usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:140 /usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:140: fact.value (rdb:1) p fact.value Illegal instruction How it is possible to find the reason? Thanks! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Alexander Grushin
2013-Jun-24 12:00 UTC
[Puppet Users] Re: facter 1.7.1 crashed on sshfp_* facts
additional info:
#0:/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:89:Hash:>: if
@facts.empty?
#0:/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:89:Hash:<: if
@facts.empty?
#0:/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:89:Facter::Util::Collection:-:
if @facts.empty?
/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:89: if
@facts.empty?
(rdb:1)
n
#0:/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:93:Facter::Util::Collection:-:
@facts[name]
/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:93: @facts[name]
(rdb:1)
n
#0:/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:93:Hash:>:
@facts[name]
#0:/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:93:Hash:<:
@facts[name]
#0:/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:93:Facter::Util::Collection:<:
@facts[name]
#0:/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:139:Facter::Util::Collection:-:
if fact = fact(name)
/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:139: if fact =
fact(name)
(rdb:1) list
[134, 143] in /usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb
134 h
135 end
136 end
137
138 def value(name)
=> 139 if fact = fact(name)
140 fact.value
141 end
142 end
143
(rdb:1) pp fact
#<Facter::Util::Fact:0x7f25753365c0
@ldapname="sshfp_rsa",
@name=:sshfp_rsa,
@resolves [#<Facter::Util::Resolution:0x7f2575328a10
@code
#<Proc:0x00007f25753dbc28@/usr/lib/ruby/site_ruby/1.8/facter/ssh.rb:44>,
@confines=[],
@name=:sshfp_rsa,
@timeout=0,
@value=nil,
@weight=nil>],
@searching=false,
@value=nil>
(rdb:1) n
#0:/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:140:Facter::Util::Collection:-:
fact.value
/usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:140: fact.value
(rdb:1) pp fact.value
Illegal instruction
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
Alexander Grushin
2013-Jun-25 07:10 UTC
[Puppet Users] Re: facter 1.7.1 crashed on sshfp_* facts
Looks like this is a some problem with ruby/dependencies
[root@ndb2r0 ~]# cat 1.rb
#!/usr/bin/ruby
#
require ''digest/sha1''
require ''base64''
require ''digest/sha2''
puts Digest::SHA256.hexdigest("123")
[root@ndb2r0 ~]# ruby 1.rb
Illegal instruction
But this version looks good:
[root@ndb2r0 ~]# cat 1.rb
#!/usr/bin/ruby
#
#require ''digest/sha1''
require ''base64''
require ''digest/sha2''
puts Digest::SHA256.hexdigest("123")
[root@ndb2r0 ~]# ruby 1.rb
a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3
# ruby -v
ruby 1.8.7 (2012-10-12 patchlevel 371) [x86_64-linux]
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.