Project

General

Profile

Actions

Bug #14024

closed

Can't sync docker repo on capsule

Added by John Mitsch over 8 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Foreman Proxy Content
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

To reproduce

1) set up a capsule
2) set up a docker repo
3) sync docker repo onto capsule

Actions::Pulp::Consumer::SyncCapsule
Input:
{"capsule_id"=>2,
 "repo_pulp_id"=>"default_organization-prod1-docker1",
 "remote_user"=>"admin",
 "remote_cp_user"=>"admin",
 "locale"=>"en"}
Output:
{"pulp_tasks"=>
  [{"exception"=>nil,
    "task_type"=>"pulp.server.managers.repo.sync.sync",
    "_href"=>"/pulp/api/v2/tasks/2394d26b-bcc5-4c11-8c24-9ca6b05aef42/",
    "task_id"=>"2394d26b-bcc5-4c11-8c24-9ca6b05aef42",
    "tags"=>
     ["pulp:repository:default_organization-prod1-docker1",
      "pulp:action:sync"],
    "finish_time"=>"2016-03-02T16:52:38Z",
    "_ns"=>"task_status",
    "start_time"=>"2016-03-02T16:52:38Z",
    "traceback"=>
     "Traceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 240, in trace_task\n    R = retval = fun(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 473, in __call__\n    return super(Task, self).__call__(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 103, in __call__\n    return super(PulpTask, self).__call__(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n    return self.run(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 757, in sync\n    sync_report = sync_repo(transfer_repo, conduit, call_config)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 658, in wrap_f\n    return f(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp_docker/plugins/importers/importer.py\", line 82, in sync_repo\n    self.sync_step = sync.SyncStep(repo=repo, conduit=sync_conduit, config=config)\n  File \"/usr/lib/python2.7/site-packages/pulp_docker/plugins/importers/sync.py\", line 86, in __init__\n    raise PulpCodedException(error_code=error_codes.DKR1008, registry=url)\nPulpCodedException: Could not find registry API at https://lentils.example.com:5000\n",
    "spawned_tasks"=>[],
    "progress_report"=>{},
    "queue"=>"reserved_resource_worker-0@eggscapsule.example.com.dq",
    "state"=>"error",
    "worker_name"=>"reserved_resource_worker-0@eggscapsule.example.com",
    "result"=>nil,
    "error"=>
     {"code"=>"DKR1008",
      "data"=>{"registry"=>"https://lentils.example.com:5000"},
      "description"=>
       "Could not find registry API at https://lentils.example.com:5000",
      "sub_errors"=>[]},
    "_id"=>{"$oid"=>"56d71a47ed00a0cdba151596"},
    "id"=>"56d71a47ed00a0cdba151596"}],
 "poll_attempts"=>{"total"=>10, "failed"=>0}}
Exception:
Katello::Errors::PulpError: DKR1008: Could not find registry API at https://lentils.example.com:5000
Backtrace:
/home/vagrant/katello/app/lib/actions/pulp/abstract_async_task.rb:71:in `block in done?'
/home/vagrant/katello/app/lib/actions/pulp/abstract_async_task.rb:69:in `each'
/home/vagrant/katello/app/lib/actions/pulp/abstract_async_task.rb:69:in `done?'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action/polling.rb:28:in `run'
/home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.10/lib/dynflow/action/cancellable.rb:9:in `run'
/home/vagrant/katello/app/lib/actions/pulp/abstract_async_task.rb:45: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/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/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/remote_action.rb:16:in `block in run'
/home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user'
/home/vagrant/katello/app/models/katello/concerns/user_extensions.rb:20:in `cp_config'
/home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:27:in `as_cp_user'
/home/vagrant/katello/app/lib/actions/middleware/remote_action.rb:39:in `as_remote_user'
/home/vagrant/katello/app/lib/actions/middleware/remote_action.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/.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'
Actions

Also available in: Atom PDF