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
Fixed validation of the distributor missing resources in the migration plan.
closes #7488 https://pulp.plan.io/issues/7488