Project

Profile

Help

Issue #813

pulp-admin doesn't show unassociated units in pulp-admin iso remove

Added by jluza over 6 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.3
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

This is first attempt which should remove anything because isos units don't have filenames.

$ pulp-admin iso repo remove --repo-id rhs-3-for-rhel-6-server-isos__6Server__x86_64 --str-eq="filename=rhs-3.0-rhel-6-x86_64-dvd-1.iso"
This command may be exited via ctrl+c without affecting the request.

[-]
Waiting to begin...

[-]
Running...

Task Succeeded

Pulp didn't remove anything, but showed task as Succeeded.

Second attempt with correct attribute 'name' instead of filename

$ pulp-prod iso repo remove --repo-id rhs-3-for-rhel-6-server-isos__6Server__x86_64 --str-eq="name=rhs-3.0-rhel-6-x86_64-dvd-1.iso"
This command may be exited via ctrl+c without affecting the request.

[-]
Waiting to begin...

[-]
Running...

Task Succeeded

This time pulp removed desired iso. But output is the same as for case where no iso units were removed. I think there is showed list of rpms which will be removed when you call "pulp-admin rpm repo remove". Pulp should have consistent behaviour for similar calls like these.

Notice:
This bug was found in pulp-2.3 pulp-admin, but it's possible it's still applicable on pulp-2.5

History

#1 Updated by rbarlow over 6 years ago

  • Project changed from Pulp to RPM Support
  • Category deleted (15)

#2 Updated by mhrivnak over 6 years ago

  • Status changed from NEW to CLOSED - CURRENTRELEASE

Works for me on current master.

$ pulp-admin iso repo remove --repo-id=foo --str-eq='name=idontexist'
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Nothing found that matches the given criteria.

$ pulp-admin iso repo remove --repo-id=foo --str-eq='name=foo.asc'
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Units Removed:
  foo.asc

#3 Updated by bmbouter over 6 years ago

  • Triaged changed from No to Yes

#4 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF