Bug 1177627

Summary: pulp- Publishing a repo throws error on first run after publish
Product: [Retired] Pulp Reporter: vijaykumar.jain
Component: API/integrationAssignee: pulp-bugs
Status: CLOSED DUPLICATE QA Contact: pulp-qe-list
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.5CC: mhrivnak
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-02 14:39:35 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:

Description vijaykumar.jain 2014-12-29 13:54:04 UTC
Description of problem: Publishing a repo throws error on first run after a package has been deleted from it. Rerun runs fine.


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


How reproducible:


Steps to Reproduce:
1. remove package from repo [/usr/bin/pulp-admin -u admin -p admin rpm repo remove rpm --repo-id pulp-2.5.1 --str-eq='filename=nmr-pulp-2.5.1-1.x86_64.rpm']
2. clear orphans: [/usr/bin/pulp-admin -u admin -p admin  orphan remove --all]
3. publish repo: [/usr/bin/pulp-admin -u admin rpm repo publish run --repo-id pulp-2.5.1]

Actual results:
+----------------------------------------------------------------------+
                   Publishing Repository [pulp-2.5.1]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.


Initializing repo metadata
[-]
... completed

Publishing Distribution files
[-]
... completed

Publishing RPMs
[===                                               ] 6%
6 of 89 items
... failed
Incorrect length of data produced


Task Failed

Incorrect length of data produced

-----------------------------------------------------------------------------

Expected results:
+----------------------------------------------------------------------+
                   Publishing Repository [pulp-2.5.1]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.


Copying files
[-]
... completed

Initializing repo metadata
[-]
... completed

Publishing Distribution files
[-]
... completed

Publishing RPMs
[-]
... completed

Publishing Delta RPMs
... skipped

Publishing Errata
[-]
... completed

Publishing Comps file
[==================================================] 100%
7 of 7 items
... completed

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Publishing files to web
[-]
... completed

Writing Listings File
[-]
... completed


Task Succeeded


Additional info:
not sure if delay has got anything to do here, but we did run publish after 10s but got the same error.

Comment 1 Michael Hrivnak 2015-01-02 14:39:35 UTC

*** This bug has been marked as a duplicate of bug 1176698 ***