Issue #7488
closedmigration fails if distributor_id and repository_id do not match
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
Updated by ttereshc over 4 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 81
Updated by ipanova@redhat.com over 4 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ipanova@redhat.com
Updated by ttereshc over 4 years ago
- Priority changed from Normal to High
Blocks Katello testing with user-provided data.
Added by ipanova@redhat.com over 4 years ago
Added by ipanova@redhat.com over 4 years ago
Revision 4a9855ea | View on GitHub
Fixed validation of the distributor missing resources in the migration plan.
Added by ipanova@redhat.com over 4 years ago
Revision 4a9855ea | View on GitHub
Fixed validation of the distributor missing resources in the migration plan.
Updated by ipanova@redhat.com over 4 years ago
- Status changed from ASSIGNED to MODIFIED
Applied in changeset pulp:pulp-2to3-migration|4a9855ea1405c8c13232b8c9f508bbe591cfa637.
Updated by pulpbot about 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Fixed validation of the distributor missing resources in the migration plan.
closes #7488 https://pulp.plan.io/issues/7488