Issue #2187 has been updated by luke.

This bug is basically that storeconfigs doesn't work with stand-alone puppet; 
it works fine with puppetd + puppetmasterd.

The problem is in where the store operation is - in puppet, the catalog has 
already transitioned to having Puppet::Resource instances rather than 
Puppet::Parser::Resource instances.  Our Rails integration only knows how to 
deal with Parser Resource instances.
----------------------------------------
Bug #2187: undefined method `exported' for Puppet Resource object
http://projects.reductivelabs.com/issues/2187

Author: grim_radical
Status: Accepted
Priority: Normal
Assigned to: luke
Category: Rails
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.25.0
Keywords: 


I've started testing 0.25 HEAD. Everything works great (and fast) when I'm not 
using storeconfigs. On my first run using storeconfigs puppet bombs out 
immediately after it says it's "Caching catalog". Here's the stacktrace I got 
when run with "--trace":

<pre>
/usr/lib/ruby/site_ruby/1.8/puppet/rails/resource.rb:32:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/resource.rb:32:in 
`rails_resource_initial_args'
/usr/lib/ruby/site_ruby/1.8/active_record/base.rb:1529:in `inject'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/resource.rb:29:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/resource.rb:29:in `inject'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/resource.rb:29:in 
`rails_resource_initial_args'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/resource.rb:90:in `merge_attributes'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/resource.rb:84:in 
`merge_parser_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:36:in 
`accumulate_benchmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:36:in 
`accumulate_benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/resource.rb:84:in 
`merge_parser_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:249:in 
`perform_resource_merger'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:247:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:247:in 
`perform_resource_merger'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:193:in `compare_to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:23:in `debug_benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:11:in `railsmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:11:in `railsmark'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:23:in `debug_benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:192:in `compare_to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:158:in `merge_resources'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:23:in `debug_benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:11:in `railsmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:11:in `railsmark'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:23:in `debug_benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/host.rb:157:in `merge_resources'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/active_record.rb:30:in 
`save'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:11:in `railsmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/rails/benchmark.rb:11:in `railsmark'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/active_record.rb:29:in 
`save'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:201:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:51:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/application/puppet.rb:69:in `main'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/bin/puppet:68
undefined method `exported' for #<Puppet::Resource:0x2aaaaf004fe0>
</pre>


-- 
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://reductivelabs.com/redmine/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