Project

Profile

Help

Issue #2337

closed

The RPM rsync distributor's "delete" option has no effect

Added by Ichimonji10 over 7 years ago. Updated about 5 years ago.

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

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

Is duplicate of Pulp - Issue #2221: rsync distributor doesn't remove files from remote when rsyncing empty repository with --deleteCLOSED - CURRENTRELEASEipanova@redhat.comActions

Also available in: Atom PDF