Actions
Issue #5899
closedmigration plan fails with "local variable 'pulp2repo' referenced before assignment"
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 63
Quarter:
Description
"traceback":" File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py\", line 822, in perform_job
rv = job.perform()
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 605, in perform
self._result = self._execute()
File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 611, in _execute
return self.func(*self.args, **self.kwargs)
File \"/usr/local/lib/pulp/src/pulp/pulp_2to3_migration/app/tasks/migrate.py\", line 55, in migrate_from_pulp2
loop.run_until_complete(migrate_repositories(plan))
File \"/usr/lib64/python3.6/asyncio/base_events.py\", line 484, in run_until_complete
return future.result()
File \"/usr/local/lib/pulp/src/pulp/pulp_2to3_migration/app/migration.py\", line 103, in migrate_repositories
repository_class = PLUGIN_MIGRATORS.get(pulp2repo.type).pulp3_repository
","description":"local variable 'pulp2repo' referenced before assignment"},"worker":"/pulp/api/v3/workers/3b778593-b9fa-4ba5-a60a-88019cc452d5/","progress_reports":
here's the plan i used:
{
"plugins":[
{
"type":"iso",
"repositories":[
{
"name":"3e1cf225-0192-4fb4-ae09-bd5b151d9a7b",
"repository_versions":[
{
"pulp2_repository_id":"3e1cf225-0192-4fb4-ae09-bd5b151d9a7b",
"distributor_ids":[
"3e1cf225-0192-4fb4-ae09-bd5b151d9a7b"
]
}
],
"pulp2_importer_repository_id":"3e1cf225-0192-4fb4-ae09-bd5b151d9a7b"
},
{
"name":"file_test-10-5",
"repository_versions":[
{
"pulp2_repository_id":"1-file_test-v1_0-3e1cf225-0192-4fb4-ae09-bd5b151d9a7b",
"distributor_ids":[
"1-file_test-dev-3e1cf225-0192-4fb4-ae09-bd5b151d9a7b",
"1-file_test-Library-3e1cf225-0192-4fb4-ae09-bd5b151d9a7b"
]
}
],
"pulp2_importer_repository_id":"1-file_test-v1_0-3e1cf225-0192-4fb4-ae09-bd5b151d9a7b"
}
]
}
]
}
Updated by dalley almost 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dalley
Updated by fao89 almost 5 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 63
Updated by dalley almost 5 years ago
- Status changed from ASSIGNED to POST
https://github.com/pulp/pulp-2to3-migration/pull/66
The most obvious way to fix this is to just implement https://pulp.plan.io/issues/5845, so that's what I did.
Added by dalley almost 5 years ago
Added by dalley almost 5 years ago
Revision 2dd9da11 | View on GitHub
Refactor migration plan parsing to keep track of plugin types
closes: #5845 https://pulp.plan.io/issues/5845 closes: #5899 https://pulp.plan.io/issues/5899
Added by dalley almost 5 years ago
Revision 2dd9da11 | View on GitHub
Refactor migration plan parsing to keep track of plugin types
closes: #5845 https://pulp.plan.io/issues/5845 closes: #5899 https://pulp.plan.io/issues/5899
Updated by dalley almost 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp-2to3-migration|2dd9da11c6e40fe74b12871722a2af78341fa4b3.
Updated by ttereshc almost 5 years ago
- Project changed from Pulp to Migration Plugin
- Category deleted (
25)
Updated by dalley almost 5 years ago
Applied in changeset pulp:pulp-2to3-migrate|2dd9da11c6e40fe74b12871722a2af78341fa4b3.
Updated by ttereshc over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
- Sprint/Milestone set to 0.1.0
Updated by ggainey over 4 years ago
- Tags Katello added
- Tags deleted (
Katello-P1)
Actions
Refactor migration plan parsing to keep track of plugin types
closes: #5845 https://pulp.plan.io/issues/5845 closes: #5899 https://pulp.plan.io/issues/5899