Bug 751099

Summary: repo discovery lists every found repo twice
Product: [Retired] Pulp Reporter: Sandro <gui1ty>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sandro 2011-11-03 14:27:07 UTC
Description of problem:

Pulp's repo discovery lists every found repo twice. Selecting aal found repos will create the actual number of found repos.

Version-Release number of selected component (if applicable):

pulp-0.0.237-5.el6.noarch

How reproducible:

every time

Steps to Reproduce:
1. pulp-admin repo discovery --url http://repos.fedorapeople.org/repos/pulp/pulp/6Server/ --type yum -g pulp
2. Pulp will find 4 repos
3.
  
Actual results:

% pulp-admin repo discovery --url http://repos.fedorapeople.org/repos/pulp/pulp/6Server/ --type yum -g pulp
Discovering urls with yum metadata, This could take some time...
Number of Urls Discovered (/): 4
+------------------------------------------+
 Repository Urls discovered @ [http://repos.fedorapeople.org/repos/pulp/pulp/6Server/]
+------------------------------------------+
(-)  [1] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/x86_64
(-)  [2] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/x86_64
(-)  [3] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/i386
(-)  [4] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/i386

Select urls for which candidate repos should be created; use `y` to confirm (h for help):a
(+)  [1] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/x86_64
(+)  [2] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/x86_64
(+)  [3] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/i386
(+)  [4] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/i386

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 [repos-pulp-pulp-6Server-x86_64]
Successfully created repo [repos-pulp-pulp-6Server-i386]

Expected results:

No duplicate repos

Additional info:

Comment 1 Pradeep Kilambi 2011-11-03 17:59:34 UTC
this should already be fixed in latest QE build, I pushed the fix on Friday as part of commit 3067172a16e8a0c5fc54b305c2aa0d06766fe046

Comment 2 Preethi Thomas 2011-11-08 18:24:47 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.244-5.fc15.noarch

[root@preethi ~]#  pulp-admin -u admin -p admin repo discovery --url http://repos.fedorapeople.org/repos/pulp/pulp/6Server/ --type yum -g pulp
Discovering urls with yum metadata, This could take some time...
Number of Urls Discovered (/): 2
+------------------------------------------+
 Repository Urls discovered @ [http://repos.fedorapeople.org/repos/pulp/pulp/6Server/]
+------------------------------------------+
(-)  [1] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/x86_64
(-)  [2] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/i386

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

Comment 3 Preethi Thomas 2012-02-24 20:17:31 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 4 Preethi Thomas 2012-02-24 20:18:31 UTC
Pulp v1.0 is released.