Project

Profile

Help

Issue #7488

closed

migration fails if distributor_id and repository_id do not match

Added by jsherril@redhat.com about 4 years ago. Updated about 4 years ago.

Status:
CLOSED - CURRENTRELEASE
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

Actions #1

Updated by jsherril@redhat.com about 4 years ago

  • Tags Katello added
Actions #2

Updated by ttereshc about 4 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 81
Actions #3

Updated by ipanova@redhat.com about 4 years ago

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

Updated by rchan about 4 years ago

  • Sprint changed from Sprint 81 to Sprint 82
Actions #5

Updated by ttereshc about 4 years ago

  • Priority changed from Normal to High

Blocks Katello testing with user-provided data.

Added by ipanova@redhat.com about 4 years ago

Revision 4a9855ea | View on GitHub

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

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

Added by ipanova@redhat.com about 4 years ago

Revision 4a9855ea | View on GitHub

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

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

Added by ipanova@redhat.com about 4 years ago

Revision 4a9855ea | View on GitHub

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

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

Actions #6

Updated by ipanova@redhat.com about 4 years ago

  • Status changed from ASSIGNED to MODIFIED
Actions #7

Updated by ttereshc about 4 years ago

  • Sprint/Milestone set to 0.4.0
Actions #8

Updated by pulpbot about 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF