Bug 747027

Summary: repos created with local repo discovery should have a better repo id.
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-18 20:06:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Preethi Thomas 2011-10-18 15:35:56 UTC
Description of problem:
repos created with local repo discovery has an id with file path (url).

For example 


see the following repo id of the repo created with local discovery.


[root@preethi ~]# pulp-admin repo discovery --url=file:///var/lib/pulp//repos/repos/pulp/pulp/fedora-14/x86_64 --type=yum
Discovering urls with yum metadata, This could take some time...
Number of Urls Discovered (/): 0
+------------------------------------------+
 Repository Urls discovered @ [file:///var/lib/pulp//repos/repos/pulp/pulp/fedora-14/x86_64]
+------------------------------------------+
(-)  [1] file:///var/lib/pulp//repos/repos/pulp/pulp/fedora-14/x86_64

Select urls for which candidate repos should be created; use `y` to confirm (h for help):y
(-)  [1] file:///var/lib/pulp//repos/repos/pulp/pulp/fedora-14/x86_64

Select urls for which candidate repos should be created; use `y` to confirm (h for help):y
(-)  [1] file:///var/lib/pulp//repos/repos/pulp/pulp/fedora-14/x86_64

Select urls for which candidate repos should be created; use `y` to confirm (h for help):1
(+)  [1] file:///var/lib/pulp//repos/repos/pulp/pulp/fedora-14/x86_64

Select urls for which candidate repos should be created; use `y` to confirm (h for help):y

Creating candidate repos for selected urls..
Successfully created repo [var-lib-pulp-repos-repos-pulp-pulp-fedora-14-x86_64]
[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+
        

Id                 	var-lib-pulp-repos-repos-pulp-pulp-fedora-14-x86_64
Name               	var-lib-pulp-repos-repos-pulp-pulp-fedora-14-x86_64
Repo URL           	https://preethi.usersys.redhat.com/pulp/repos/var-lib-pulp-repos-repos-pulp-pulp-fedora-14-x86_64/
Feed URL           	file:///var/lib/pulp//repos/repos/pulp/pulp/fedora-14/x86_64
Feed Type          	local                    
Content Type       	yum                      
Feed Certs         	CA:No   Cert:No
Consumer Certs     	CA:No   Cert:No
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     
Filters            	[]                       
Notes              	{}                       
Preserve Metadata  	False