Issue #11306 has been updated by Phil Roffe.

I also have this same issue... RHEL 5.6, puppet-2.7.8-1.el5, 
ruby-1.8.5-5.el5_4.8

# rpm -qa | grep "ruby\|facter\|augeas\|puppet"
ruby-shadow-1.4.1-7.el5
facter-1.6.4-1.el5
ruby-1.8.5-5.el5_4.8
libselinux-ruby-1.33.4-5.7.el5
puppet-2.7.8-1.el5
ruby-libs-1.8.5-5.el5_4.8
ruby-augeas-0.4.1-1.el5
augeas-libs-0.10.0-1.el5

I also tried the patch to transaction.rb as described in comment #1 but to no 
avail - same error.

Downgrading puppet to puppet-2.7.6-2.el5 fixed the problem... maybe issues with 
ruby/puppet versions?

----------------------------------------
Bug #11306: puppet 2.7.8-1 bug under ruby 1.8.5/centos 5.7
https://projects.puppetlabs.com/issues/11306

Author: Alexey Wasilyev
Status: Unreviewed
Priority: High
Assignee: 
Category: 
Target version: 2.7.x
Affected Puppet version: 2.7.8
Keywords: 
Branch: 


centos 5.7 with all updates.
puppet 2.7.8-1 from http://yum.puppetlabs.com/el/5/products/x86_64/
ruby-1.8.5-19.el5_6.1

when i try to run puppetd -t i get "err: /File[/var/lib/puppet/lib]: Failed to 
generate additional resources using 'eval_generate: odd number of arguments for 
Hash"
running ruby --debug /usr/sbin/puppetd -t show me, that error occurs in file 
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb, row 153:

  
    return false unless resource.respond_to?(:eval_generate)
    raise Puppet::DevError,"Depthfirst resources are not supported by 
eval_generate" if resource.depthfirst?
    begin
      made = resource.eval_generate.uniq
      return false if made.empty?
      made = Hash[made.map(&:name).zip(made)]  ### HERE
    rescue => detail
      puts detail.backtrace if Puppet[:trace]
      resource.err "Failed to generate additional resources using 
'eval_generate: #{detail}"
      return false
    end


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to