I need some assistance and guidance on creating barclamps. I'm creating a barclamp called testjpa002 using the barclamp_create.rb script, adding some very simple chef commands to create a file in the /tmp directory from a template, and then using barclamp_install.rb to import it into Crowbar. The Chef recipe is proven to work in chef solo and the barclamp imports into Crowbar successfully (i.e. it appears in the Crowbar UI).
However, when I try to create a proposal for the barclamp it fails with the error message: Failed to load proposal template for barclamp 'testjpa002'. The error logging in /var/log/syslog starts with the message: WARNING: could not resolve barclamp testjpa002. Please correct the naming to be the object name when camelized I have extracted (what I think are) the relevant entries from syslog and attached them to this message as syslog.txt. Any guidance would be appreciated. Thanks Jeremy
Aug 28 00:39:45 mulligan crowbar_app[1490]: WARNING: could not resolve barclamp testjpa002. Please correct the naming to be the object name when camelized Aug 28 00:39:46 mulligan crowbar_app[1490]: Rendering template within layouts/application Aug 28 00:39:46 mulligan crowbar_app[1490]: Rendering barclamp/index Aug 28 00:39:46 mulligan crowbar_app[1490]: Rendered barclamp/_index (85.5ms) Aug 28 00:39:46 mulligan crowbar_app[1490]: Completed in 3045ms (View: 284 | 200 OK [http://10.49.61.2/crowbar/modules/1.0] Aug 28 00:40:02 mulligan crowbar_app[1488]: Processing BarclampController#proposal_create (for 10.49.57.60 at 2013-08-28 00:40:02) [PUT] Aug 28 00:40:02 mulligan crowbar_app[1488]: Parameters: {"description"=>"Created On Wed, 28 Aug 2013 00:39:46 -0500", "authenticity_token"=>"5sxuGiM3q0t9KsG5CPyxeaCdwF7XAl2ScAxeptCw/EU=", "barclamp"=>"testjpa002", "name"=>"NewProp"} Aug 28 00:40:02 mulligan crowbar_app[1488]: Proposal Create starting. Params {"description"=>"Created On Wed, 28 Aug 2013 00:39:46 -0500", "barclamp"=>"testjpa002", "authenticity_token"=>"5sxuGiM3q0t9KsG5CPyxeaCdwF7XAl2ScAxeptCw/EU=", "controller"=>"barclamp", "action"=>"proposal_create", "_method"=>"put", "name"=>"NewProp"} Aug 28 00:40:02 mulligan crowbar_app[1488]: asking for proposal of: {"description"=>"Created On Wed, 28 Aug 2013 00:39:46 -0500", "barclamp"=>"testjpa002", "authenticity_token"=>"5sxuGiM3q0t9KsG5CPyxeaCdwF7XAl2ScAxeptCw/EU=", "controller"=>"barclamp", "action"=>"proposal_create", "_method"=>"put", "id"=>"NewProp", "name"=>"NewProp"} Aug 28 00:40:02 mulligan crowbar_app[1488]: Could not recover Chef Crowbar Data on load bc-testjpa002-NewProp: #<Net::HTTPServerException: 404 "Not Found"> Aug 28 00:40:02 mulligan crowbar_app[1488]: Could not recover Chef Crowbar Data on load bc-template-testjpa002: #<Net::HTTPServerException: 404 "Not Found"> Aug 28 00:40:02 mulligan crowbar_app[1488]: /opt/dell/crowbar_framework/app/models/service_object.rb:607:in `create_proposal'\n/opt/dell/crowbar_framework/app/models/service_object.rb:623:in `proposal_create'\n/opt/dell/crowbar_framework/app/controllers/barclamp_controller.rb:318:in `proposal_create'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'\n/var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'\n/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'\n/var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'\n/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:87:in `dispa Aug 28 00:40:02 mulligan crowbar_app[1488]: Redirected to http://10.49.61.2:3000/crowbar/modules/1.0?id=barclamp Aug 28 00:40:02 mulligan crowbar_app[1488]: Completed in 63ms | 302 Found [http://10.49.61.2/crowbar/testjpa002/1.0/proposals] Aug 28 00:40:02 mulligan crowbar_app[1489]: Processing BarclampController#modules (for 10.49.57.60 at 2013-08-28 00:40:02) [GET] Aug 28 00:40:02 mulligan crowbar_app[1489]: Parameters: {"id"=>"barclamp"}
_______________________________________________ Crowbar mailing list [email protected] https://lists.us.dell.com/mailman/listinfo/crowbar For more information: http://crowbar.github.com/
