Issue #2337
closedThe RPM rsync distributor's "delete" option has no effect
Description
Let's say i do the following:
1. Create a repository with a yum distributor and RPM rsync distributor. Add content units to the repository.
2. Publish with the yum distributor.
3. Publish with the RPM rsync distributor. Verify that the correct files are in the target directory.
4. Remove all files from the repository, and publish with the yum distributor.
5. Publish with the RPM rsync distributor, with ``delete`` set to true. Verify that all files are removed from the target directory.
The verification in step 5 fails. All files in the target directory are left in place. Disabling SELinux has no effect. No errors or tracebacks are logged in journalctl. Here's the body of the HTTP POST call to /{repo_href}/actions/publish/
in step 5:
{
"id": "rpm_rsync_distributor_id",
"override_config": {"delete": true}
}
This issue is apparent in both Pulp 2.10 and 2.11.
Related issues
Updated by Ichimonji10 over 7 years ago
Updated by Ichimonji10 over 7 years ago
This bug can be reproduced with: python -m unittest pulp_smash.tests.rpm.api_v2.test_rsync_distributor.DeleteTestCase
Updated by ipanova@redhat.com over 7 years ago
- Has duplicate Issue #2221: rsync distributor doesn't remove files from remote when rsyncing empty repository with --delete added
Updated by ipanova@redhat.com over 7 years ago
- Status changed from NEW to CLOSED - DUPLICATE
Updated by ipanova@redhat.com over 7 years ago
- Has duplicate deleted (Issue #2221: rsync distributor doesn't remove files from remote when rsyncing empty repository with --delete)
Updated by ipanova@redhat.com over 7 years ago
- Is duplicate of Issue #2221: rsync distributor doesn't remove files from remote when rsyncing empty repository with --delete added