Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1032802

Summary: Repo Discovery: unable to perform repo discovery using a file:/// resource
Product: Red Hat Satellite Reporter: Brad Buckingham <bbuckingham>
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.2CC: bbuckingham, bkearney
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-07 17:12:26 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 Brad Buckingham 2013-11-20 21:22:02 UTC
Description of problem:

The WebUI does not currently allow users to perform repo discovery using file URLs.

Version-Release number of selected component (if applicable):
katello-1.4.6-61.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. go to Content->Repositories->Products
2. click Repo Discovery
3. enter a file resource URL (e.g. file:///var/www/html/repos)

Actual results:
The Discover button is disabled

Expected results:
The Discover button is enabled

Additional info:

As a workaround, it is possible to accomplish repo discovery using the CLI.

Pre-requisite, the product used in the CLI should exist prior to discovery:

For example:

$ katello --username admin --password [password] shell

katello> repo discover --org ACME_Corporation --name my_repo_prefix --url=file:///var/www/repos --product zoo
Discovering repository urls, this could take some time...
(-)  [1] file:///var/www/repos/zoo1
(-)  [2] file:///var/www/repos/zoo2
(-)  [3] file:///var/www/repos/zoo3

Select urls for which candidate repos should be created; use `y` to confirm (h for help):1
(+)  [1] file:///var/www/repos/zoo1
(-)  [2] file:///var/www/repos/zoo2
(-)  [3] file:///var/www/repos/zoo3

Select urls for which candidate repos should be created; use `y` to confirm (h for help):2
(+)  [1] file:///var/www/repos/zoo1
(+)  [2] file:///var/www/repos/zoo2
(-)  [3] file:///var/www/repos/zoo3

Select urls for which candidate repos should be created; use `y` to confirm (h for help):3
(+)  [1] file:///var/www/repos/zoo1
(+)  [2] file:///var/www/repos/zoo2
(+)  [3] file:///var/www/repos/zoo3

Select urls for which candidate repos should be created; use `y` to confirm (h for help):y
Successfully created repository [ my_repo_prefix_var_www_repos_zoo1 ]
Successfully created repository [ my_repo_prefix_var_www_repos_zoo2 ]
Successfully created repository [ my_repo_prefix_var_www_repos_zoo3 ]
katello>

Comment 1 RHEL Program Management 2013-11-20 21:28:12 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Brad Buckingham 2017-01-07 17:12:26 UTC
The behavior described no longer exists.  A user may now perform repo discovery via the ui using a 'file' URL.  Closing this bugzilla.