Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1100027

Summary: listing file creation can fail randomly
Product: [Retired] Pulp Reporter: Justin Sherrill <jsherril>
Component: rpm-supportAssignee: Michael Hrivnak <mhrivnak>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 2.4.0CC: mhrivnak, pthomas, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: 2.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-09 06:56:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
traceback none

Description Justin Sherrill 2014-05-21 20:05:47 UTC
Created attachment 898120 [details]
traceback

Description of problem:

Using our yum clone distributor we generate the listing files at the end of the metadata copying.  On occasion this errors with:

:ERROR: OSError: [Errno 2] No such file or directory: '/var/lib/pulp/published/yum/https/repos/ACME_Corporation/Library/view1/custom/listing'

After discussing with bcourt, we believe that there is a concurrency issue.  If two repos are being published at the same time there is a chance the listing file generation is being executed at the same time and this process is not currently very concurrent friendly.  Since the process works over the entire repo root directory, there is a good chance that two listing file generations could trample on each other.


Version-Release number of selected component (if applicable):
pulp-server-2.4.0-0.16.beta.el6.noarch


Full traceback attached.

Comment 1 Michael Hrivnak 2014-05-28 21:26:55 UTC
https://github.com/pulp/pulp_rpm/pull/504

Comment 2 Randy Barlow 2014-05-29 18:07:27 UTC
This was fixed in pulp-2.4.0-0.19.beta.

Comment 3 Preethi Thomas 2014-06-10 19:14:05 UTC
Moving to verified
[root@ibm-x3550m3-08 ~]# rpm -qa pulp-server
pulp-server-2.4.0-0.19.beta.el6.noarch
[root@ibm-x3550m3-08 ~]# 

I have done multiple parallel repo syncs scheduled for different rhel versions for the same time and all the repo syncs completed. Listing file was created for all the repos

Comment 4 Randy Barlow 2014-08-09 06:56:11 UTC
This has been fixed in Pulp 2.4.0-1.