Project

Profile

Help

Issue #667

orphan remove by type does not validate the type provided

Added by pthomas@redhat.com over 6 years ago. Updated over 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.5
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:

orphan remove --type does not validate the --type

Version-Release number of selected component (if applicable):
[root@rhsm-jenkins ~]# rpm -qa pulp-server
pulp-server-2.5.2-0.3.beta.el6.noarch
[root@rhsm-jenkins ~]#

How reproducible:

Steps to Reproduce:
1. Delete a repo that has some content
2. Try to run orphan remove by --type but provide a random name for the type
3.

Actual results:
[root@rhsm-jenkins ~]# pulp-admin orphan remove --type foo
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Task Succeeded

Expected results:

Additional info:

+ This bug was cloned from Bugzilla Bug #1183072 +

Associated revisions

Revision 84351f74 View on GitHub
Added by bcourt over 6 years ago

Merge pull request #667 from barnabycourt/635

Fix import of scientific linux erratum that don't contain a description ...

Revision 81c4a401 View on GitHub
Added by ipanova@redhat.com over 6 years ago

Fixing behaviour of individual orphan removal and orphan removal by type

closes #667 closes #1035 https://pulp.plan.io/issues/667 https://pulp.plan.io/issues/1035

Revision 81c4a401 View on GitHub
Added by ipanova@redhat.com over 6 years ago

Fixing behaviour of individual orphan removal and orphan removal by type

closes #667 closes #1035 https://pulp.plan.io/issues/667 https://pulp.plan.io/issues/1035

History

#1 Updated by bmbouter over 6 years ago

  • Severity changed from Low to 1. Low

#2 Updated by ipanova@redhat.com over 6 years ago

  • Project changed from RPM Support to Pulp
  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com
  • Platform Release set to 2.7.0

#3 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from ASSIGNED to POST

#4 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#5 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from MODIFIED to 5

#6 Updated by pthomas@redhat.com over 6 years ago

  • Status changed from 5 to 6

verified

[root@mgmt4 ~]# pulp-admin orphan list
+----------------------------------------------------------------------+
                                Summary
+----------------------------------------------------------------------+

Distribution:            0
Drpm:                    0
Erratum:                 4
Iso:                     0
Package Category:        1
Package Environment:     0
Package Group:           2
Puppet Module:           0
Rpm:                     32
Srpm:                    0
Yum Repo Metadata File:  0
Total:                   39

[root@mgmt4 ~]# pulp-admin orphan remove --type foo
The following resource(s) could not be found:

  foo (content_type_id)

[root@mgmt4 ~]# pulp-admin orphan remove --type rpm
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Task Succeeded

[root@mgmt4 ~]# 

#7 Updated by amacdona@redhat.com almost 6 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#9 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF