Project

Profile

Help

Issue #7488

migration fails if distributor_id and repository_id do not match

Added by jsherril@redhat.com 20 days ago. Updated 6 days ago.

Status:
MODIFIED
Priority:
High
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 82
Quarter:

Description

If you have some repo 'foo' that as a distributor with some other id 'bar', migration will fail with the message:

'Validation failed: resources missing {''repositories_missing_distributors'': [''f416d4d5-154a-4d01-bdb1-b70b7469ac92'', ''b86a43ce-7b7f-4e26-bf99-80c1c0145907'', ''4e874a75-0e2b-49dd-89e2-634320e585f9'', ''f93017d7-8e2d-4345-9698-2848265e61a8'', ''535dc9e8-e437-4833-a718-c7f4d181e166'']}'

It looks like here: https://github.com/pulp/pulp-2to3-migration/blob/master/pulp_2to3_migration/app/models/base.py#L226

repo ids are being added to a list called 'repositories_distributors_to_migrate', but then later on here: https://github.com/pulp/pulp-2to3-migration/blob/master/pulp_2to3_migration/app/models/base.py#L121-L124 its expected to contain a list of 'distributor_ids'

When these ids are the same its no issue, but if they are not, you get the error

Associated revisions

Revision 4a9855ea View on GitHub
Added by ipanova@redhat.com 8 days ago

Fixed validation of the distributor missing resources in the migration plan.

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

Revision 4a9855ea View on GitHub
Added by ipanova@redhat.com 8 days ago

Fixed validation of the distributor missing resources in the migration plan.

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

History

#1 Updated by jsherril@redhat.com 20 days ago

  • Tags Katello added

#2 Updated by ttereshc 14 days ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 81

#3 Updated by ipanova@redhat.com 11 days ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com

#4 Updated by rchan 11 days ago

  • Sprint changed from Sprint 81 to Sprint 82

#5 Updated by ttereshc 8 days ago

  • Priority changed from Normal to High

Blocks Katello testing with user-provided data.

#6 Updated by ipanova@redhat.com 6 days ago

  • Status changed from ASSIGNED to MODIFIED

Please register to edit this issue

Also available in: Atom PDF