Project

General

Profile

Bug #25729

Syncing puppet repo gives Error: PLP0034: The distributor indicated a failed response when publishing repository

Added by Justin Sherrill 7 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1655243

Description of problem:
Syncing puppet repo gives

  1. hammer -v -u admin -p changeme --output=csv repository synchronize --id="2"
    [.........................................................................................................................................] [100%]
    Total module count: 12.
    Error: PLP0034: The distributor 553e95ec-4cdb-4a39-89e5-2d78c76caab8 indicated a failed response when publishing repository 553e95ec-4cdb-4a39-89e5-2d78c76caab8.

Version-Release number of selected component (if applicable):

Satellite 6.5 snap 6

How reproducible:
always

Steps to Reproduce:
1. # hammer -v -u admin -p changeme --output=csv product create --description="YBEqBOOJibmzeFARmBdQ" --label="VPWRhzUSoLEXpQSROrZx" --name="OfglTcYFuMyFCzYIlCLj" --organization-id="1"
Message,Id,Name
Product created.,270,OfglTcYFuMyFCzYIlCLj

2.# hammer -v -u admin -p changeme --output=csv repository create --content-type="puppet" --name="XMmxqVFlDmAOuyM" --product-id="270" --publish-via-http="true" --url="http://omaciel.fedorapeople.org/bagoftricks"
Message,Id,Name
Repository created.,2,XMmxqVFlDmAOuyM

3.# hammer -v -u admin -p changeme --output=csv repository synchronize --id="2"
[.........................................................................................................................................] [100%]
Total module count: 12.
Error: PLP0034: The distributor 553e95ec-4cdb-4a39-89e5-2d78c76caab8 indicated a failed response when publishing repository 553e95ec-4cdb-4a39-89e5-2d78c76caab8.

Actual results: Sync failed with logs

2018-12-01T15:09:51 [I|kat|] GET: https://satellite/pulp/api/v2/tasks/45db43cf-5347-4c60-a472-bff966589c75/: {"content_type"=>"application/json", "accept"=>"application/json"}
Response: 200: {"exception": null, "task_type": "pulp.server.managers.repo.publish.publish", "_href": "/pulp/api/v2/tasks/45db43cf-5347-4c60-a472-bff966589c75/", "task_id": "45db43cf-5347-4c60-a472-bff966589c75", "tags": ["pulp:repository:553e95ec-4cdb-4a39-89e5-2d78c76caab8", "pulp:action:publish"], "finish_time": "2018-12-01T20:09:50Z", "_ns": "task_status", "start_time": "2018-12-01T20:09:49Z", "traceback": "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 367, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 529, in call\n return super(Task, self).__call__(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 107, in call\n return super(PulpTask, self).__call__(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 622, in protected_call\n return self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1110, in publish\n result = check_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)\n File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1207, in check_publish\n result = _do_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)\n File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1265, in _do_publish\n distributor_id=dist_id, summary=publish_report.summary\nPulpCodedException: The distributor 553e95ec-4cdb-4a39-89e5-2d78c76caab8 indicated a failed response when publishing repository 553e95ec-4cdb-4a39-89e5-2d78c76caab8.\n", "spawned_tasks": [], "progress_report": {}, "queue": "", "state": "error", "worker_name": "reserved_resource_worker-2@satellite", "result": null, "error": {"code": "PLP0034", "data": {"distributor_id": "553e95ec-4cdb-4a39-89e5-2d78c76caab8", "repo_id": "553e95ec-4cdb-4a39-89e5-2d78c76caab8", "summary": "duplicate unit names"}, "description": "The distributor 553e95ec-4cdb-4a39-89e5-2d78c76caab8 indicated a failed response when publishing repository 553e95ec-4cdb-4a39-89e5-2d78c76caab8.", "sub_errors": []}, "_id": {"$oid": "5c02ea8d2e8c2f8dc1b2e1d7"}, "id": "5c02ea8d2e8c2f8dc1b2e1d7"}
2018-12-01T15:09:51 [E|bac|] PLP0034: The distributor 553e95ec-4cdb-4a39-89e5-2d78c76caab8 indicated a failed response when publishing repository 553e95ec-4cdb-4a39-89e5-2d78c76caab8. (Katello::Errors::PulpError)
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.rc1/app/lib/actions/pulp/abstract_async_task.rb:122:in `block in external_task='
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.rc1/app/lib/actions/pulp/abstract_async_task.rb:120:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.rc1/app/lib/actions/pulp/abstract_async_task.rb:120:in `external_task='
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.rc1/app/lib/actions/pulp/repository/sync.rb:34:in `external_task='
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.1/lib/dynflow/action/polling.rb:98:in `poll_external_task_with_rescue'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.1/lib/dynflow/action/polling.rb:21:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.1/lib/dynflow/action/cancellable.rb:13:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.rc1/app/lib/actions/pulp/abstract_async_task.rb:45:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.1/lib/dynflow/action.rb:539:in `block (3 levels) in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.1/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.1/lib/dynflow/middleware.rb:18:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.1/lib/dynflow/middleware.rb:31:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.1/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.1/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.1/lib/dynflow/middleware.rb:18:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.rc1/app/lib/actions/middleware/remote_action.rb:16:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.rc1/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.rc1/app/models/katello/concerns/user_extensions.rb:21:in `cp_config'

Expected results:
Successful puppet repo sync.

Additional info:

Associated revisions

Revision ce530681 (diff)
Added by Justin Sherrill 6 months ago

Fixes #25729 - don't auto publish puppet install dist

Revision c2b76683 (diff)
Added by Justin Sherrill 6 months ago

Refs #25729 - fix upgrade to delete distributor

History

#1 Updated by The Foreman Bot 7 months ago

  • Assignee set to Justin Sherrill
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7898 added

#2 Updated by Justin Sherrill 7 months ago

  • Target version set to Katello 3.10.0

#3 Updated by Justin Sherrill 7 months ago

  • Target version changed from Katello 3.10.0 to Katello 3.10.1

#4 Updated by John Mitsch 7 months ago

  • Triaged changed from No to Yes
  • Category changed from ElasticSearch to Repositories

#5 Updated by Justin Sherrill 6 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF