Bug 758699

Summary: [RFE] No way to remove orphaned distributions from the pulp server
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: cperry, mhrivnak, rbarlow
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: 2.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-18 16:06:19 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-11-30 14:04:39 UTC
Description of problem:

If you a distribution from all the repos, there is no way of deleting the orphaned distribution. Content delete only seem to be deleting packages and files

Version-Release number of selected component (if applicable):
[root@katello-test ~]# rpm -q pulp
pulp-0.0.252-1.el6.noarch


How reproducible:


Steps to Reproduce:
1. Create and sync a repo with distribution
2. Remove the distribution from the repo with remove_distribution option
3. do pulp-admin distribution list see that the distribution in on the pulp server

Actual results:
Orphaned distribution can not be deleted.

Expected results:


Additional info:

Comment 1 Michael Hrivnak 2013-09-26 21:25:10 UTC
I don't think this is still a problem.

Comment 2 Preethi Thomas 2013-10-04 18:31:18 UTC
[root@pulp-v2-server ~]# pulp-admin rpm repo remove  distribution --repo-id f19-copy --match 'filename=repomd.xml'
This command may be exited via ctrl+c without affecting the request.

[-]
Waiting to begin...

[-]
Running...

Nothing found that matches the given criteria.

[root@pulp-v2-server ~]# pulp-admin rpm repo remove  distribution --repo-id f19-copy --str-eq 'filename=repomd.xml'This command may be exited via ctrl+c without affecting the request.

[-]
Waiting to begin...

[-]
Running...

Nothing found that matches the given criteria.

[root@pulp-v2-server ~]# pulp-admin rpm repo remove  distribution --repo-id f19-copy --str-eq 'files.filename=repomd.xml'
This command may be exited via ctrl+c without affecting the request.

[-]
Waiting to begin...

[-]
Running...

Units:
  ks-Fedora-Fedora-19-x86_64

[root@pulp-v2-server ~]# 

[root@pulp-v2-server ~]# pulp-admin rpm repo remove  distribution --repo-id f19-copy --match 'filename=repomd.xml'
This command may be exited via ctrl+c without affecting the request.

[-]
Waiting to begin...

[-]
Running...

Nothing found that matches the given criteria.

[root@pulp-v2-server ~]# pulp-admin rpm repo remove  distribution --repo-id f19-copy --str-eq 'filename=repomd.xml'This command may be exited via ctrl+c without affecting the request.

[-]
Waiting to begin...

[-]
Running...

Nothing found that matches the given criteria.

[root@pulp-v2-server ~]# pulp-admin rpm repo remove  distribution --repo-id f19-copy --str-eq 'files.filename=repomd.xml'
This command may be exited via ctrl+c without affecting the request.

[-]
Waiting to begin...

[-]
Running...

Units:
  ks-Fedora-Fedora-19-x86_64

[root@pulp-v2-server ~]#

Comment 3 Randy Barlow 2014-03-17 22:06:17 UTC
Setting a target release so this ticket can get closed.

Comment 4 Preethi Thomas 2014-03-18 16:06:19 UTC
These were already verified in the corresponding releases that they were fixed in. Moving them to closed current release.