Project

Profile

Help

Story #7717

closed

Allow Pulp3 exporter to handle case where not enough start_versions= are provided to match all specified repositories

Added by paji@redhat.com over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

The pulp3 exporter with start_versions complains if the number of repositories specified in the exporter does not match the number of start_versions provided

" "Number of versions 1 does not match the number of Repositories 2 for ""the owning Exporter!" " Relevant error comes from the validate_start_versions method - https://github.com/pulp/pulpcore/blob/master/pulpcore/app/serializers/exporter.py#L160-L192

Katello needs a bit more flexibility with start_versions, the exporter may be tasked with exporting some repositories completely while incrementally exporting some.

I propose pulp exporter assume full export for repos where the start_versions have not been provided.

Actions #1

Updated by paji@redhat.com over 3 years ago

Think I got around this issue by just passing the zeroth version as the start-version for repositories that are new.

Actions #2

Updated by ttereshc over 3 years ago

  • Tracker changed from Issue to Story
  • % Done set to 0
  • Severity deleted (2. Medium)
  • Triaged deleted (No)
Actions #3

Updated by ggainey over 3 years ago

wrote:

Think I got around this issue by just passing the zeroth version as the start-version for repositories that are new.

That's not a workaround, that's The Right Thing To Do :)

Actions #4

Updated by ggainey over 3 years ago

  • Subject changed from Pulp3 exporter erroring out when exporting repositories without versions to Allow Pulp3 exporter to handle case where not enough start_versions= are provided to match all specified repositories
Actions #5

Updated by ggainey over 3 years ago

  • Status changed from NEW to CLOSED - NOTABUG

Also available in: Atom PDF