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
Actions #2

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

Actions #3

Updated by ipanova@redhat.com over 7 years ago

closing as dup #2221

Actions #4

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
Actions #5

Updated by ipanova@redhat.com over 7 years ago

  • Status changed from NEW to CLOSED - DUPLICATE
Actions #6

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)
Actions #7

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
Actions #8

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF