Bug 758699 - [RFE] No way to remove orphaned distributions from the pulp server
Summary: [RFE] No way to remove orphaned distributions from the pulp server
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 2.4.0
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-30 14:04 UTC by Preethi Thomas
Modified: 2015-03-23 01:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-18 16:06:19 UTC


Attachments (Terms of Use)

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.


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