Project

General

Profile

Bug #13998

Can't create a puppet module repo on capsule

Added by John Mitsch almost 6 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

To reproduce

1) create a product
2) create a puppet repo
3) add puppet modules to that repo
4) create a content view
5) add puppet modules to that content view
6) publish content view

Action:
Actions::Katello::ContentView::Publish
Input:
{"content_view"=>{"id"=>2, "name"=>"cv1", "label"=>"cv1"},
 "organization"=>
  {"id"=>1, "name"=>"Default Organization", "label"=>"Default_Organization"},
 "services_checked"=>["pulp", "pulp_auth", "candlepin", "candlepin_auth"],
 "history_id"=>4,
 "content_view_id"=>2,
 "environment_id"=>1,
 "user_id"=>3,
 "current_user_id"=>3,
 "locale"=>"en"}
Output:
{}
Exception:
NoMethodError: undefined method `library_instance' for #<Katello::ContentViewPuppetEnvironment:0x007fcac1611cf8>
Backtrace:
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activemodel-4.1.14.1/lib/active_model/attribute_methods.rb:435:in `method_missing'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.1.14.1/lib/active_record/attribute_methods.rb:213:in `method_missing'
/home/vagrant/katello/app/lib/actions/katello/capsule_content/create_or_update.rb:41:in `create_repo_in_pulp'
/home/vagrant/katello/app/lib/actions/katello/capsule_content/create_or_update.rb:15:in `block in plan'
/home/vagrant/katello/app/lib/actions/katello/capsule_content/create_or_update.rb:14:in `each'
/home/vagrant/katello/app/lib/actions/katello/capsule_content/create_or_update.rb:14:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:461:in `block (3 levels) in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:34:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/katello/app/lib/actions/middleware/keep_locale.rb:7:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:34:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/world.rb:30:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:460:in `block (2 levels) in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `switch_flow'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:364:in `concurrence'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:459:in `block in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `block in with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `catch'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:458:in `execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:260:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/plan_step.rb:54:in `block in execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/plan_step.rb:53:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:392:in `plan_action'
/home/vagrant/katello/app/lib/actions/katello/capsule_content/configure_capsule.rb:8:in `block in plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `switch_flow'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:369:in `sequence'
/home/vagrant/katello/app/lib/actions/katello/capsule_content/configure_capsule.rb:6:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:461:in `block (3 levels) in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:34:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/katello/app/lib/actions/middleware/keep_locale.rb:7:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:34:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/world.rb:30:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:460:in `block (2 levels) in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `switch_flow'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:364:in `concurrence'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:459:in `block in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `block in with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `catch'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:458:in `execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:260:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/plan_step.rb:54:in `block in execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/plan_step.rb:53:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:392:in `plan_action'
/home/vagrant/katello/app/lib/actions/katello/capsule_content/sync.rb:25:in `block in plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `switch_flow'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:369:in `sequence'
/home/vagrant/katello/app/lib/actions/katello/capsule_content/sync.rb:24:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:461:in `block (3 levels) in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:34:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/katello/app/lib/actions/middleware/keep_locale.rb:7:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:34:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/world.rb:30:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:460:in `block (2 levels) in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `switch_flow'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:364:in `concurrence'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:459:in `block in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `block in with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `catch'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:458:in `execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:260:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/plan_step.rb:54:in `block in execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/plan_step.rb:53:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:392:in `plan_action'
/home/vagrant/katello/app/lib/actions/katello/content_view/capsule_generate_and_sync.rb:13:in `block (3 levels) in plan'
/home/vagrant/katello/app/lib/actions/katello/content_view/capsule_generate_and_sync.rb:12:in `each'
/home/vagrant/katello/app/lib/actions/katello/content_view/capsule_generate_and_sync.rb:12:in `block (2 levels) in plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `switch_flow'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:364:in `concurrence'
/home/vagrant/katello/app/lib/actions/katello/content_view/capsule_generate_and_sync.rb:11:in `block in plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `switch_flow'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:369:in `sequence'
/home/vagrant/katello/app/lib/actions/katello/content_view/capsule_generate_and_sync.rb:10:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:461:in `block (3 levels) in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:34:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/katello/app/lib/actions/middleware/keep_locale.rb:7:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:34:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/world.rb:30:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:460:in `block (2 levels) in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `switch_flow'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:364:in `concurrence'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:459:in `block in execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `block in with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `catch'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:458:in `execute_plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:260:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/plan_step.rb:54:in `block in execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/plan_step.rb:53:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:187:in `block (2 levels) in plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:277:in `switch_flow'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:267:in `with_planning_scope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:186:in `block in plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:42:in `plan_phase'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:42:in `plan_phase'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/common/transaction.rb:16:in `block in rollback_on_error'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.1.14.1/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.1.14.1/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.1.14.1/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.1.14.1/lib/active_record/transactions.rb:208:in `transaction'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/transaction_adapters/active_record.rb:5:in `transaction'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/common/transaction.rb:15:in `rollback_on_error'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/common/transaction.rb:5:in `plan_phase'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/world.rb:30:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan.rb:185:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/world.rb:168:in `block in plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/world.rb:166:in `tap'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/world.rb:166:in `plan'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/world.rb:142:in `trigger'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman-tasks-0.7.14/lib/foreman_tasks.rb:18:in `trigger'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman-tasks-0.7.14/lib/foreman_tasks.rb:24:in `trigger_task'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman-tasks-0.7.14/lib/foreman_tasks.rb:35:in `async_task'
/home/vagrant/katello/app/lib/actions/katello/content_view/publish.rb:52:in `run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:506:in `block (3 levels) in execute_run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman-tasks-0.7.14/app/lib/actions/middleware/keep_current_user.rb:30:in `block in run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman-tasks-0.7.14/app/lib/actions/middleware/keep_current_user.rb:53:in `restore_curent_user'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman-tasks-0.7.14/app/lib/actions/middleware/keep_current_user.rb:30:in `run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action/progress.rb:30:in `with_progress_calculation'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action/progress.rb:16:in `run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/katello/app/lib/actions/middleware/keep_locale.rb:11:in `block in run'
/home/vagrant/katello/app/lib/actions/middleware/keep_locale.rb:22:in `with_locale'
/home/vagrant/katello/app/lib/actions/middleware/keep_locale.rb:11:in `run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:17:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware.rb:30:in `run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/stack.rb:22:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/middleware/world.rb:30:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:505:in `block (2 levels) in execute_run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:504:in `catch'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:504:in `block in execute_run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `block in with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `catch'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:419:in `with_error_handling'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:499:in `execute_run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action.rb:260:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:in `block (2 levels) in execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in `block in execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in `open_action'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in `execute'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/executors/parallel/worker.rb:15:in `block in on_message'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:74:in `block in assigns'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in `tap'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in `assigns'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/algebrick-0.7.3/lib/algebrick/matching.rb:56:in `match_value'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/algebrick-0.7.3/lib/algebrick/matching.rb:36:in `block in match?'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in `each'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in `match?'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/algebrick-0.7.3/lib/algebrick/matching.rb:23:in `match'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/executors/parallel/worker.rb:12:in `on_message'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/context.rb:46:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/executes_context.rb:7:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/actor.rb:26:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/awaits.rb:15:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/buffer.rb:38:in `process_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/buffer.rb:31:in `process_envelopes?'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/buffer.rb:20:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/termination.rb:55:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/removes_child.rb:10:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/core.rb:161:in `process_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/core.rb:95:in `block in on_envelope'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/core.rb:118:in `block (2 levels) in schedule_execution'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `block in synchronize'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-edge-0.2.1/lib/concurrent/actor/core.rb:115:in `block in schedule_execution'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/executor/serialized_execution.rb:18:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/executor/serialized_execution.rb:18:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/executor/serialized_execution.rb:96:in `work'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/executor/serialized_execution.rb:77:in `block in call_job'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/concurrent-ruby-1.0.1/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/logging-2.0.0/lib/logging/diagnostic_context.rb:448:in `call'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/logging-2.0.0/lib/logging/diagnostic_context.rb:448:in `block in create_with_logging_context'

Associated revisions

Revision a3619c11 (diff)
Added by John Mitsch almost 6 years ago

Fixes #13998 - Can't create a puppet module repo on capsule

Revision 835acd65
Added by John Mitsch almost 6 years ago

Merge pull request #5855 from johnpmitsch/13998

Fixes #13998 - Can't create a puppet module repo on capsule

History

#1 Updated by John Mitsch almost 6 years ago

I used this as a workaround (not sure if it will work as a permanent fix)

diff --git a/app/lib/actions/katello/capsule_content/create_or_update.rb b/app/lib/actions/katello/capsule_content/create_or_update.rb
index bb29b74..05b2575 100644
--- a/app/lib/actions/katello/capsule_content/create_or_update.rb
+++ b/app/lib/actions/katello/capsule_content/create_or_update.rb
@@ -38,10 +38,16 @@ module Actions
                       path: relative_path,
                       with_importer: true,
                       docker_upstream_name: repository.try(:docker_upstream_name),
-                      download_policy: (repository.library_instance || repository).download_policy,
+                      download_policy: download_policy(repository),
                       capsule_id: capsule_content.capsule.id)
         end

+        def download_policy(repository)
+          (repository.library_instance || repository).download_policy
+        rescue
+          repository
+        end
+
         def repository_relative_path(repository)
           if repository.is_a? ::Katello::ContentViewPuppetEnvironment
             repository.generate_puppet_path

#2 Updated by Eric Helms almost 6 years ago

  • Description updated (diff)
  • Category set to 89
  • Assignee set to John Mitsch
  • Legacy Backlogs Release (now unused) set to 86

#3 Updated by John Mitsch almost 6 years ago

  • Subject changed from Can't publish a content view with a puppet module to Can't create a puppet module repo on capsule

Changing the title as it was a bit misleading, this really has to do with creating a puppet module repo on a capsule

#4 Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5840 added

#5 Updated by The Foreman Bot almost 6 years ago

  • Pull request https://github.com/Katello/katello/pull/5855 added

#6 Updated by John Mitsch almost 6 years ago

  • Status changed from Ready For Testing to New
  • Pull request deleted (https://github.com/Katello/katello/pull/5840)

#7 Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing

#8 Updated by John Mitsch almost 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#9 Updated by John Mitsch almost 6 years ago

  • Bugzilla link set to 1319287

Also available in: Atom PDF