Bug 1324314

Summary: URL to empty yum repo sync hangs
Product: Red Hat Satellite Reporter: Sebastian Hetze <shetze>
Component: Content ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, bkearney, kbidarka, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:14: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:

Description Sebastian Hetze 2016-04-06 05:48:27 UTC
Description of problem:

If a product repo URL is pointing to an empty directory (one without repodata), the sync hangs.

With Sat 6.1 we had an immediate "Yum Metadata: A connection error occurred" which I would regard as the expected behaviour.

Version-Release number of selected component (if applicable):
katello 3.0.0. 3.el7sat
foreman 1.11.0.9 1.el7sat

Comment 1 Brad Buckingham 2016-04-19 20:13:04 UTC
With Satellite 6.2 beta snap 8, I attempted the following:
- create product
- create repo, w/ url that points to the satellite's pub directory (e.g. http://mysatellite/pub), since it doesn't have repodata.
- attempt to sync the repo

With the above, the sync task immediately failed (State:stopped, Result:warning).  Looking at the task via 'More Details' the following error was observed: 
  "RPM1004: Error retrieving metadata: Not found"

Based on the above, I am going to move this one to ON_QA for verification.

Comment 2 Kedar Bidarkar 2016-05-25 15:01:55 UTC
Tried syncing http://mysatellite/pub, faced the below message immediately upon clicking "Sync Incomplete".

RPM1004: Error retrieving metadata: Not found


VERIFIED with sat62-snap(GA)-12.1

Comment 3 Kedar Bidarkar 2016-05-25 15:04:04 UTC
~]# hammer -u admin -p changeme repository synchronize --id 60 --organization-id=1
[.........................................................................................................................................................................................................] [100%]
RPM1004: Error retrieving metadata: Not found

Comment 4 Bryan Kearney 2016-07-27 11:14:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501