Bug #15666

Content view publish fails during distributor publish

Added by Eric Helms about 3 years ago. Updated about 1 year ago.

Content Views
Target version:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:


Cloned from
Sometimes when publishing a content view, a race condition can occur that causes the content view publish step to fail at the distributor publish step. The steps to reproduce are not concrete as this is an intermittent failure, one could try:

1. Create content view with lots of repositories
2. Constantly publish the content view

Another idea would be to:

1. Create 10 content views with multiple repositories
2. Loop publish the 10 content views

Work around: Resume content view publish task

The traceback associated with the issue is:

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/celery/app/", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pulp/server/async/", line 473, in call
return super(Task, self).__call__(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pulp/server/async/", line 103, in call
return super(PulpTask, self).__call__(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/celery/app/", line 437, in protected_call
return*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pulp/server/controllers/", line 971, in publish
result = _do_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)
File "/usr/lib/python2.7/site-packages/pulp/server/controllers/", line 1023, in _do_publish
publish_report = publish_repo(transfer_repo, conduit, call_config)
File "/usr/lib/python2.7/site-packages/pulp/server/async/", line 658, in wrap_f
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pulp_katello/distributors/yum_clone_distributor/", line 138, in publish_repo
self.link_directory(working_dir, https_publish_dir)
File "/usr/lib/python2.7/site-packages/pulp_katello/distributors/yum_clone_distributor/", line 157, in link_directory
File "/usr/lib64/python2.7/", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/var/lib/pulp/published/yum/https/repos/Sat6-CI/content_views/Tools_RHEL7/54.0/custom/Red_Hat_Satellite_Tools_6_2_Composes'

Related issues

Blocks Katello - Tracker #15825: Sprint 1 : Content-FocusedNew2016-07-24


#1 Updated by Brad Buckingham almost 3 years ago

#2 Updated by Justin Sherrill almost 3 years ago

  • Assignee set to Justin Sherrill
  • Pull request added

#3 Updated by Justin Sherrill almost 3 years ago

  • Status changed from New to Closed
  • Legacy Backlogs Release (now unused) set to 143

Also available in: Atom PDF