Project

Profile

Help

Issue #5899

closed

migration plan fails with "local variable 'pulp2repo' referenced before assignment"

Added by jsherril@redhat.com almost 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
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 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"
            }
         ]
      }
   ]
}

Also available in: Atom PDF