Project

Profile

Help

Issue #5899

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

Added by jsherril@redhat.com over 1 year ago. Updated about 1 year 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"
            }
         ]
      }
   ]
}

Associated revisions

Revision 2dd9da11 View on GitHub
Added by dalley over 1 year ago

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

Revision 2dd9da11 View on GitHub
Added by dalley over 1 year ago

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

Revision 2dd9da11 View on GitHub
Added by dalley over 1 year ago

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

History

#1 Updated by dalley over 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dalley

#2 Updated by meldaresearch over 1 year ago

  • File 15d.jpg added

#3 Updated by fao89 over 1 year ago

  • File deleted (15d.jpg)

#4 Updated by fao89 over 1 year ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 63

#5 Updated by dalley over 1 year 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.

#6 Updated by dalley over 1 year ago

  • Status changed from POST to MODIFIED

#7 Updated by ttereshc over 1 year ago

  • Project changed from Pulp to Migration Plugin
  • Category deleted (25)

#9 Updated by ttereshc about 1 year ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
  • Sprint/Milestone set to 0.1.0

#10 Updated by ggainey about 1 year ago

  • Tags Katello added
  • Tags deleted (Katello-P1)

Please register to edit this issue

Also available in: Atom PDF