Issue #11281 has been updated by Remi Broemeling.

Hi Josh,

Sure!  Anything that I can do to help debug this issue.

Here is the stacktrace from a run with the --trace argument.

    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type/yumrepo.rb:141:in
 'block (2 levels) in read'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type/yumrepo.rb:140:in
 'each'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type/yumrepo.rb:140:in
 'block in read'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type/yumrepo.rb:139:in
 'each'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type/yumrepo.rb:139:in
 'read'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type/yumrepo.rb:107:in
 'inifile'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type/yumrepo.rb:158:in
 'section'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type/yumrepo.rb:193:in
 'section'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type/yumrepo.rb:31:in
 'retrieve'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type.rb:700:in
 'block in retrieve'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type.rb:695:in
 'each'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type.rb:695:in
 'retrieve'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/type.rb:708:in
 'retrieve_resource'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/transaction/resource_harness.rb:32:in
 'perform_changes'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/transaction/resource_harness.rb:133:in
 'evaluate'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/transaction.rb:49:in
 'apply'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/transaction.rb:84:in
 'eval_resource'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/transaction.rb:103:in
 'block (2 levels) in evaluate'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/util.rb:464:in
 'block in thinmark'
    /usr/local/stow/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in 
'realtime'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/util.rb:463:in
 'thinmark'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/transaction.rb:103:in
 'block in evaluate'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/transaction.rb:311:in
 'traverse'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/transaction.rb:99:in
 'evaluate'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/resource/catalog.rb:141:in
 'apply'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/configurer.rb:121:in
 'block in retrieve_and_apply_catalog'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/util.rb:180:in
 'block in benchmark'
    /usr/local/stow/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in 
'realtime'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/util.rb:179:in
 'benchmark'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/configurer.rb:120:in
 'retrieve_and_apply_catalog'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/configurer.rb:151:in
 'run'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/application/apply.rb:215:in
 'main'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/application/apply.rb:135:in
 'run_command'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/application.rb:306:in
 'block (2 levels) in run'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/application.rb:410:in
 'hook'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/application.rb:306:in
 'block in run'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/application.rb:401:in
 'exit_on_fail'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/application.rb:306:in
 'run'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/lib/puppet/util/command_line.rb:69:in
 'execute'
    
/usr/local/stow/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/puppet-2.7.6/bin/puppet:4:in
 '<top (required)>'
    /usr/local/bin/puppet:19:in 'load'
    /usr/local/bin/puppet:19:in '<main>'
    err: /Stage[main]//Yumrepo[yum_puppet_repo]: Could not evaluate: undefined 
method 'file?' for Puppet::Type::File:Class
----------------------------------------
Bug #11281: undefined method `file?' for Puppet::Type::File:Class
https://projects.puppetlabs.com/issues/11281

Author: Remi Broemeling
Status: Investigating
Priority: Normal
Assignee: 
Category: 
Target version: 2.7.x
Affected Puppet version: 2.7.6
Keywords: 
Branch: 


I am attempting to run puppet (v2.7.6) and facter (v1.6.1) on Ruby 1.9.2p290, 
and I am unable to execute against my manifests.  The exact same manifests are 
working on Ruby Enterprise Edition 1.8.7 (2011-02-18 patchlevel 334).  The 
error that I am receiving is as follows:

`** [out :: rubytest...] err: /Stage[main]//Yumrepo[yum_puppet_repo]: Could not 
evaluate: undefined method 'file?' for Puppet::Type::File:Class`

The yum_puppet_repo stanza looks like this:

`exec { "yum_rebuild_cache":
  command => "/usr/bin/yum makecache",
  logoutput => false,
  refreshonly => true
}`

`yumrepo { "yum_puppet_repo":
  baseurl => "file://${puppet_root}/../RPM/RPMS",
  descr => "Local package repository.",
  enabled => 1,
  gpgcheck => 0,
  notify => Exec["yum_rebuild_cache"]
}`

I believe this to be a bug in puppet (and not in my manifest) wholly because 
the same puppet configuration works properly on Ruby Enterprise Edition.

Is there further information that I can give to help debug this issue?



-- 
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