Bug 662681 - repo delete does not delete distribution
Summary: repo delete does not delete distribution
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2010-12-13 15:50 UTC by Preethi Thomas
Modified: 2011-08-16 14:01 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:01:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-12-13 15:50:06 UTC
Description of problem:

[root@preethi ~]# rpm -q pulp
pulp-0.0.114-1.fc14.noarch


If you delete a repo with a distribution, the distribution does not get deleted.



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

Id                      ks-f13-x86_64            
Description             ks-f13-x86_64             
URL                     http://localhost/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/o


[root@preethi ~]# pulp-admin repo delete --id=f13
Successful deleted repository [ f13 ]

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

Id                      ks-f13-x86_64            
Description             ks-f13-x86_64             
URL                     http://localhost/pulp/ks/pub/fedora/linux/releases/F13/Fedora/x86_64/o

[root@preethi ~]# pulp-admin repo list
No repositories available to list

Comment 1 Pradeep Kilambi 2010-12-22 20:14:23 UTC
commit e1093618d61bab0dbc338314c50c874ac39938ce
Author: Pradeep Kilambi <pkilambi>
Date:   Wed Dec 22 15:14:04 2010 -0500

    662681 - clean up distributions as part of repo delete

Comment 2 Jay Dobies 2010-12-22 20:56:31 UTC
Fixed in 0.119.

Comment 3 Preethi Thomas 2010-12-23 21:29:59 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.119-1.fc14.noarch
[root@preethi ~]# 

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

Id                    	ks-f14-x86_64            
Description           	ks-f14-x86_64             
URL                   	http://localhost/pulp/ks/pub/fedora/linux/releases/F14/Fedora/x86_64

[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Label              	rhel5-i386               
Name               	rhel5-i386               
FeedURL            	https://cdn.redhat.com/content/dist/rhel/rhui/server/5Server/i386/os
FeedType           	yum                      
Arch               	i386                     
Sync Schedule      	None                     
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     


Label              	f14                      
Name               	f14                      
FeedURL            	http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/
FeedType           	yum                      
Arch               	x86_64                   
Sync Schedule      	None                     
Packages           	2766                     
Files              	0                        
Distributions      	ks-f14-x86_64            
Publish            	True                     
Clones             	[]                       
Groups             	None                     


Label              	f14-updates              
Name               	f14-updates              
FeedURL            	http://download.fedora.redhat.com/pub/fedora/linux/updates/14/x86_64/
FeedType           	yum                      
Arch               	x86_64                   
Sync Schedule      	None                     
Packages           	4642                     
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     



[root@preethi ~]# pulp-admin repo delete --id=f14
Successful deleted repository [ f14 ]

[root@preethi ~]# pulp-admin distribution list
No distributions found to list

Comment 4 Preethi Thomas 2011-08-16 14:01:44 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.