Project

Profile

Help

Issue #1971

closed

'--retain-old-count' option not retroactive

Added by kfiresmith over 8 years ago. Updated over 5 years ago.

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

Description

If you update the '--retain-old-count=' option on a previously sync'd repo that has a number of RPM versions greater than the new value, the new value is not retroactive. Currently it appears the only way you can reduce the number of old versions is to delete the repo and re-create/re-sync with the new target value.

Steps to reproduce:

pulp-admin rpm repo create --repo-id=epel-test --feed=http://download-i2.fedoraproject.org/pub/epel/5/x86_64/ --retain-old-count=2 && pulp-admin rpm repo sync run --repo-id=epel-test
pulp-admin rpm repo list --details --repo-id=epel-test | grep 'Rpm'

pulp-admin rpm repo update --repo-id=epel-test --retain-old-count=1 && pulp-admin rpm repo sync run --repo-id=epel-test
pulp-admin rpm repo list --details --repo-id=epel-test | grep 'Rpm'

The RPM count will not change, but should be reduced by 1/3.


Related issues

Related to RPM Support - Story #1982: As a user, I can force a full syncCLOSED - CURRENTRELEASEfdobrovo

Actions
Related to Pulp - Story #1983: As a user, an importer config change or content removal will cause the next sync to be fullCLOSED - CURRENTRELEASEdalley

Actions

Also available in: Atom PDF