Bug 1324314 - URL to empty yum repo sync hangs
Summary: URL to empty yum repo sync hangs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-06 05:48 UTC by Sebastian Hetze
Modified: 2019-09-26 13:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:14:11 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.