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:

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.