Bug 654681 - pulp-admin distribution problem on resync
Summary: pulp-admin distribution problem on resync
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2010-11-18 15:25 UTC by Preethi Thomas
Modified: 2011-08-16 13:59 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 13:59:13 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-11-18 15:25:50 UTC
Description of problem:
[root@preethi os]# rpm -q pulp
pulp-0.0.92-1.fc13.noarch

1. create and sync a f13/f14 repo
2. run repo sync
3. run distribution list --repoid=f13
3. Run repo sync again
4. run distribution list --repoid

see that the same distribution is listed twice


[root@preethi ~]# pulp-admin distribution list --repoid=f13
+------------------------------------------+
       List of Available Distributions
+------------------------------------------+

Id                    	ks-f13-x86_64            
Description           	ks-f13-x86_64             
URL                   	http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/os


[root@preethi ~]# pulp-admin repo sync --id=f13 -F
Sync for repository f13 started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (3111 of 3111 pkgs)
Sync: Finished

You have new mail in /var/spool/mail/root
[root@preethi ~]# pulp-admin distribution list --repoid=f13
+------------------------------------------+
       List of Available Distributions
+------------------------------------------+

Id                    	ks-f13-x86_64            
Description           	ks-f13-x86_64             
URL                   	http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/os


Id                    	ks-f13-x86_64            
Description           	ks-f13-x86_64             
URL                   	http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/os

Comment 1 Pradeep Kilambi 2010-11-18 16:07:07 UTC
fixed!

commit ace4d407444fb2f77c11dbd08f7d3812e1b909a8
Author: Pradeep Kilambi <pkilambi>
Date:   Thu Nov 18 11:07:05 2010 -0500

    bug#654681 - Only add distro id to repo if same id doesnt already exist

Comment 2 Jay Dobies 2010-11-29 14:16:07 UTC
Fixed in 0.109.

Comment 3 Preethi Thomas 2010-11-29 19:32:37 UTC
verified


[root@preethi ~]# pulp-admin distribution list
+------------------------------------------+
       List of Available Distributions
+------------------------------------------+

Id                    	ks-f13-x86_64            
Description           	ks-f13-x86_64             
URL                   	http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/os


Id                    	ks-f14-x86_64            
Description           	ks-f14-x86_64             
URL                   	http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/14/Fedora/x86_64/os


You have new mail in /var/spool/mail/root
[root@preethi ~]# pulp-admin -u admin -p admin repo sync --id=f14 -F
Sync for repository f14 started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (2773 of 2773 pkgs)
Sync: Finished

You have new mail in /var/spool/mail/root
[root@preethi ~]# pulp-admin distribution list
+------------------------------------------+
       List of Available Distributions
+------------------------------------------+

Id                    	ks-f13-x86_64            
Description           	ks-f13-x86_64             
URL                   	http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/os


Id                    	ks-f14-x86_64            
Description           	ks-f14-x86_64             
URL                   	http://preethi.usersys.redhat.com/pulp/ks/pub/fedora/linux/releases/14/Fedora/x86_64/os

Comment 4 Preethi Thomas 2011-08-16 13:59:13 UTC
Closing with Community Release 15

pulp-0.0.223-4.


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