Issue #2027
closedremove_missing option does not work unless repository is updated
Description
The remove_missing yum_importer option seems to not actually remove anything unless some repo is added to the upstream repository.
I was able to reproduce easy enough by:
1) generate an empty repository:
mkdir /var/www/html/foo
createrepo /var/www/html/foo
2) Create a repo with remove_missing set to true, pointed to some repo with content (https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/)
3) Sync the repo
4) change the feed url to point to your empty repo. This simulates rpms being removed from the upstream repo (Sync you just created the empty repo the revision should be newer than the first repo)
5) sync the repo
I'd expect all rpms to be removed from the repo but they are not.
Related issues
Updated by jsherril@redhat.com over 8 years ago
Note this was reported by a katello user who was confused why the behavior seemed inconsistent (they were turning remove_missing on and re-syncing).
Updated by ipanova@redhat.com over 8 years ago
- Related to Story #1983: As a user, an importer config change or content removal will cause the next sync to be full added
Updated by bmbouter over 5 years ago
- Status changed from NEW to CLOSED - WONTFIX
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.