[Puppet Users] Re: facter 1.7.1 crashed on sshfp_* facts

2013-06-25 Thread Alexander Grushin
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+unsubscr...@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.




[Puppet Users] Re: facter 1.7.1 crashed on sshfp_* facts

2013-06-24 Thread Alexander Grushin
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
   134h
   135  end
   136end
   137  
   138def value(name)
=> 139  if fact = fact(name)
   140fact.value
   141  end
   142end
   143  
(rdb:1) pp fact
#,
@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+unsubscr...@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.