Unit removal removes units but says it doesn't
With an empty/fresh Pulp installation run the following:
pulp-admin login -u admin -p admin pulp-admin rpm repo delete --repo-id rawhide pulp-admin rpm repo create --repo-id rawhide --feed http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/x86_64/os/ --skip=rpm,drpm,erratum pulp-admin rpm repo sync run --repo-id rawhide pulp-admin orphan list # verify 0 orphans
Next run the following command and you'll see the following output:
[vagrant@dev ~]$ pulp-admin rpm repo remove distribution --repo-id rawhide --str-eq="family=Fedora" This command may be exited via ctrl+c without affecting the request. [\] Running... Units Removed: None
The effect is that the distribution unit is removed, however the pulp-admin output indicates 'Units Removed: None'.
We can verify that the expected distribution unit is removed because we now see the expected 1 orphan.
pulp-admin orphan list # verify 1 orphans