Project

Profile

Help

Issue #2221

closed

rsync distributor doesn't remove files from remote when rsyncing empty repository with --delete

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

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.10.0
Platform Release:
2.10.1
OS:
Triaged:
Yes
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Sprint 8
Quarter:

Description

How to reproduce:
1. create rpm repo with some packages
2. publish in yum
3. publish in rsync distributor
4. remove all rpm units
5. publish in yum
6. publish in rsync distributor with --delete

Actual result: Packages are still on the remote
Expected result: Packages were removed from the remote

See pulp_smash_reproducer.py


Files


Related issues

Has duplicate RPM Support - Issue #2337: The RPM rsync distributor's "delete" option has no effectCLOSED - DUPLICATEActions
Actions #1

Updated by amacdona@redhat.com over 7 years ago

  • Priority changed from Normal to High
  • Severity changed from 2. Medium to 3. High
  • Triaged changed from No to Yes
Actions #2

Updated by Ichimonji10 over 7 years ago

An automated test for this issue is being added to Pulp Smash. See: https://github.com/PulpQE/pulp-smash/pull/377

Actions #3

Updated by dkliban@redhat.com over 7 years ago

I was able to reproduce this issue. This only occurs when ALL units are removed from the repository. When only a portion of units are removed, the delete override correctly deletes units from the remote server.

Actions #6

Updated by ipanova@redhat.com over 7 years ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes
  • Tags 2.11 added
Actions #7

Updated by jortel@redhat.com over 7 years ago

  • Sprint/Milestone set to 26
Actions #8

Updated by ipanova@redhat.com over 7 years ago

  • Project changed from RPM Support to Pulp
  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com

Added by jluza over 7 years ago

Revision 3944f724 | View on GitHub

skip rsync if there are no files to sync but also only if delete is False

closes #2221 https://pulp.plan.io/issues/2221

Signed-off-by: Ina Panova

Added by jluza over 7 years ago

Revision 3944f724 | View on GitHub

skip rsync if there are no files to sync but also only if delete is False

closes #2221 https://pulp.plan.io/issues/2221

Signed-off-by: Ina Panova

Actions #9

Updated by ipanova@redhat.com over 7 years ago

  • Status changed from ASSIGNED to POST
Actions #11

Updated by jluza over 7 years ago

  • Status changed from POST to MODIFIED
Actions #12

Updated by ipanova@redhat.com over 7 years ago

  • Is duplicate of Issue #2337: The RPM rsync distributor's "delete" option has no effect added
Actions #13

Updated by ipanova@redhat.com over 7 years ago

  • Status changed from MODIFIED to CLOSED - DUPLICATE
Actions #14

Updated by ipanova@redhat.com over 7 years ago

  • Status changed from CLOSED - DUPLICATE to MODIFIED
Actions #15

Updated by ipanova@redhat.com over 7 years ago

  • Is duplicate of deleted (Issue #2337: The RPM rsync distributor's "delete" option has no effect)
Actions #16

Updated by ipanova@redhat.com over 7 years ago

  • Has duplicate Issue #2337: The RPM rsync distributor's "delete" option has no effect added
Actions #17

Updated by semyers over 7 years ago

  • Status changed from MODIFIED to 5
Actions #18

Updated by semyers over 7 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #19

Updated by bmbouter over 6 years ago

  • Tags deleted (2.11)
Actions #20

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 8
Actions #21

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (26)
Actions #22

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF