Project

Profile

Help

Issue #6754

migrating with multiple content types results in error RuntimeError: Event loop is closed

Added by jsherril@redhat.com over 1 year ago. Updated over 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Quarter:

Description

Passing a migration plan like this:

{
   "plugins":[
      {
         "type":"rpm",
         "repositories":[
            {
               "name":"8cdc45c8-d4da-4513-a672-ca91b601cf68",
               "repository_versions":[
                  {
                     "pulp2_repository_id":"8cdc45c8-d4da-4513-a672-ca91b601cf68",
                     "pulp2_distributor_repository_ids":[
                        "8cdc45c8-d4da-4513-a672-ca91b601cf68"
                     ]
                  }
               ],
               "pulp2_importer_repository_id":"8cdc45c8-d4da-4513-a672-ca91b601cf68"
            }
         ]
      },
      {
         "type":"iso",
         "repositories":[
 
         ]
      },
      {
         "type":"docker",
         "repositories":[
 
         ]
      }
   ]
}

results in:

RuntimeError: Event loop is closed
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/rq/worker.py", line 884, in perform_job
rv = job.perform()
File "/usr/lib/python3.6/site-packages/rq/job.py", line 664, in perform
self._result = self._execute()
File "/usr/lib/python3.6/site-packages/rq/job.py", line 670, in _execute
return self.func(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/pulp_2to3_migration/app/tasks/migrate.py", line 125, in migrate_from_pulp2
migrate_content(plan)
File "/usr/local/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py", line 34, in migrate_content
plugin.migrator.migrate_content_to_pulp3()
File "/usr/local/lib/python3.6/site-packages/pulp_2to3_migration/app/plugin/iso/migrator.py", line 59, in migrate_content_to_pulp3
loop.run_until_complete(dm.create())
File "/usr/lib64/python3.6/asyncio/base_events.py", line 460, in run_until_complete
self._check_closed()
File "/usr/lib64/python3.6/asyncio/base_events.py", line 377, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

But if i split each plugin into its own plan, it seems to run fine.

Associated revisions

Revision 67efb881 View on GitHub
Added by dalley over 1 year ago

Fix crashing issue w/ multiple plugin type migrations

closes: #6754 https://pulp.plan.io/issues/6754

Revision 67efb881 View on GitHub
Added by dalley over 1 year ago

Fix crashing issue w/ multiple plugin type migrations

closes: #6754 https://pulp.plan.io/issues/6754

Revision 67efb881 View on GitHub
Added by dalley over 1 year ago

Fix crashing issue w/ multiple plugin type migrations

closes: #6754 https://pulp.plan.io/issues/6754

History

#1 Updated by dalley over 1 year ago

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

#2 Updated by dalley over 1 year ago

  • Status changed from ASSIGNED to MODIFIED

#5 Updated by ttereshc over 1 year ago

  • Sprint/Milestone set to 0.2.0

#6 Updated by ttereshc over 1 year ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF