Project

Profile

Help

Issue #2616

closed

after sync with remove_missing option the next publish is no-op sometimes

Added by ttereshc about 7 years ago. Updated about 5 years ago.

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

Description

Steps to reproduce:

  1. create repo A with feed, sync, publish
  2. create repo B with feed pointed to repo A and remove_missing enabled, sync
  3. remove any units from repo A, publish
  4. re-sync repo B

- observe negative removed_count in sync report

  {   
    ...
    "added_count": 0,
    "updated_count": 0,
    "removed_count": -2
  }

- for puppet plugin it will result in no-op publish

The calculation of `removed_count` is done here
which explains how it can be negative.
Check for update `last_units_removed` relies on removed_count being positive.
If the only change during the sync was a removal of some units, the next publish will be no-op, because `last_units_removed` timestamp was not updated.

Also available in: Atom PDF