Issue #813
closedpulp-admin doesn't show unassociated units in pulp-admin iso remove
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