Actions
Issue #7889
closedHandle migration when same distributor is being re-used for different repositories in between the plans
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Quarter:
Description
Create plan and run:
{
"plan": {
"plugins": [
{
"repositories": [
{
"name": "file",
"pulp2_importer_repository_id": "file",
"repository_versions": [
{
"pulp2_distributor_repository_ids": [
"file2"
],
"pulp2_repository_id": "file"
}
]
},
{
"name": "file2",
"pulp2_importer_repository_id": "file2",
"repository_versions": [
{
"pulp2_distributor_repository_ids": [
"file-many"
],
"pulp2_repository_id": "file2"
}
]
}
],
"type": "iso"
}
]
},
Create another plan and run:
{
"plan": {
"plugins": [
{
"repositories": [
{
"name": "file",
"pulp2_importer_repository_id": "file",
"repository_versions": [
{
"pulp2_distributor_repository_ids": [
"file-many"
],
"pulp2_repository_id": "file"
}
]
},
{
"name": "file2",
"pulp2_importer_repository_id": "file2",
"repository_versions": [
{
"pulp2_distributor_repository_ids": [
"file-large"
],
"pulp2_repository_id": "file2"
}
]
}
],
"type": "iso"
}
]
},
File2
repo will have 2 distributions displayed file-large
and file-many
. In addition there is a concern of hitting base_path collision because same distributor file-many
has been used to distribute 2 different repos.
NOTE Importers will suffer as well from correctness problem in case same importer will be used for 2 different repos in between the migration plans
Actions
Fix re-migration when distributors/importers changed in migration plan.
closes #7889 https://pulp.plan.io/issues/7889