Actions
Bug #21059
openkatello dev environment requires restart of pulp before creating a yum repo
Added by Justin Sherrill about 7 years ago. Updated over 6 years ago.
Description
1) spin up a new dev environment with forklift 'vagrant up centos7-devel'
2) run:
- hammer -p changeme product create --organization=Default\ Organization --name=test
Product created
- hammer -p changeme repository create --organization=Default\ Organization --name=test --product=test --url=https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/ --content-type=yum
Could not create the repository:
Invalid properties: ['distributor_type_id']
restarting httpd and pulp_workers fixes this.
Updated by Justin Sherrill about 7 years ago
- Assignee changed from Justin Sherrill to Andrew Kofink
Updated by Andrew Kofink about 7 years ago
Confirmed this is an issue. Here's the server logs:
2017-10-13T13:57:20 cffb56b3 [app] [I] Started POST "/katello/api/repositories" for 127.0.0.1 at 2017-10-13 13:57:20 +0000 2017-10-13T13:57:20 cffb56b3 [app] [I] Processing by Katello::Api::V2::RepositoriesController#create as JSON 2017-10-13T13:57:20 cffb56b3 [app] [I] Parameters: {"name"=>"test", "product_id"=>1, "url"=>"https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/", "content_type"=>"yum", "api_version"=>"v2", "repository"=>{"name"=>"test", "url"=>"https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/", "content_type"=>"yum", "product_id"=>1}} 2017-10-13T13:57:20 cffb56b3 [app] [I] Current user: foreman_admin (administrator) 2017-10-13T13:57:20 cffb56b3 [app] [D] Setting current user thread-local variable to foreman_admin 2017-10-13T13:57:20 cffb56b3 [app] [D] Setting current user thread-local variable to nil 2017-10-13T13:57:20 cffb56b3 [app] [I] Authorized user admin(Admin User) 2017-10-13T13:57:20 cffb56b3 [app] [I] Current user: admin (administrator) 2017-10-13T13:57:20 cffb56b3 [app] [D] Setting current user thread-local variable to admin 2017-10-13T13:57:20 cffb56b3 [dynflow] [D] ExecutionPlan b501c016-393b-467c-b767-008c346d29b9 pending >> planning 2017-10-13T13:57:20 cffb56b3 [dynflow] [D] Step b501c016-393b-467c-b767-008c346d29b9: 1 pending >> running in phase Plan Actions::Katello::Repository::Create 2017-10-13T13:57:21 cffb56b3 [dynflow] [D] Step b501c016-393b-467c-b767-008c346d29b9: 2 pending >> running in phase Plan Actions::Pulp::Repository::CreateInPlan 2017-10-13T13:57:22 cffb56b3 [app] [I] Current user: foreman_admin (administrator) 2017-10-13T13:57:22 cffb56b3 [app] [D] Setting current user thread-local variable to foreman_admin 2017-10-13T13:57:22 cffb56b3 [katello/pulp_rest] [D] RestClient.get "https://centos7-devel-test.akofink-desktop.example.com/pulp/api/v2/users/", "Accept"=>"*/*", "Accept-Encoding"=>"gzip, deflate", "User-Agent"=>"rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230", "accept"=>"application/json", "content_type"=>"application/json" | \n# => 200 OK | application/json 140 bytes | 2017-10-13T13:57:22 cffb56b3 [app] [I] Current user: admin (administrator) 2017-10-13T13:57:22 cffb56b3 [app] [D] Setting current user thread-local variable to admin 2017-10-13T13:57:22 cffb56b3 [katello/pulp_rest] [E] RestClient.post "https://centos7-devel-test.akofink-desktop.example.com/pulp/api/v2/repositories/", 1066 byte(s) length, "Accept"=>"*/*", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"1066", "User-Agent"=>"rest-client/2.0.2 (linux-gnu x86_64) ruby/2.2.4p230", "accept"=>"application/json", "content_type"=>"application/json" | \n# => 400 BadRequest | application/json 439 bytes | 2017-10-13T13:57:22 cffb56b3 [background] [E] Invalid properties: ['distributor_type_id'] (RuntimeError) | /home/vagrant/katello/app/lib/actions/pulp/repository/create_in_plan.rb:14:in `rescue in plan' | /home/vagrant/katello/app/lib/actions/pulp/repository/create_in_plan.rb:8:in `plan' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/action.rb:473:in `block (3 levels) in execute_plan' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware/stack.rb:26:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware/stack.rb:26:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware.rb:18:in `pass' | /home/vagrant/katello/app/lib/actions/middleware/backend_services_check.rb:23:in `plan' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware/stack.rb:22:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware/stack.rb:26:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware.rb:18:in `pass' | /home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:9:in `plan' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware/stack.rb:22:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware/stack.rb:26:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware.rb:18:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware.rb:35:in `plan' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware/stack.rb:22:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware/stack.rb:26:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware.rb:18: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.31/lib/dynflow/middleware/stack.rb:22:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware/stack.rb:26:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware.rb:18:in `pass' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware.rb:35:in `plan' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware/stack.rb:22:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/middleware/world.rb:30:in `execute' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/action.rb:472:in `block (2 levels) in execute_plan' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/execution_plan.rb:346:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/execution_plan.rb:346:in `switch_flow' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/action.rb:376:in `concurrence' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/action.rb:471:in `block in execute_plan' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/action.rb:431:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/action.rb:431:in `block in with_error_handling' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/action.rb:431:in `catch' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/action.rb:431:in `with_error_handling' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/action.rb:470:in `execute_plan' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/action.rb:268:in `execute' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/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.31/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/execution_plan/steps/plan_step.rb:53:in `execute' | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.31/lib/dynflow/action.rb:404:in `plan_action'
Updated by Andrew Kofink about 7 years ago
This is caused by the yum_clone_distributor not being available. You can check the distributor plugins with `GET /pulp/api/v2/plugins/distributors`. Apparently, when the yum_clone_distributor is plugged into pulp, pulp needs to be restarted.
Updated by Justin Sherrill about 7 years ago
- Assignee changed from Andrew Kofink to Eric Helms
Updated by Justin Sherrill about 7 years ago
- Translation missing: en.field_release set to 284
Updated by John Mitsch over 6 years ago
- Translation missing: en.field_release changed from 284 to 352
Actions