Project

Profile

Help

Issue #6754

closed

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

Added by jsherril@redhat.com over 4 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:
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.

Actions #1

Updated by dalley over 4 years ago

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

Added by dalley over 4 years ago

Revision 67efb881 | View on GitHub

Fix crashing issue w/ multiple plugin type migrations

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

Added by dalley over 4 years ago

Revision 67efb881 | View on GitHub

Fix crashing issue w/ multiple plugin type migrations

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

Added by dalley over 4 years ago

Revision 67efb881 | View on GitHub

Fix crashing issue w/ multiple plugin type migrations

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

Actions #2

Updated by dalley over 4 years ago

  • Status changed from ASSIGNED to MODIFIED
Actions #5

Updated by ttereshc over 4 years ago

  • Sprint/Milestone set to 0.2.0
Actions #6

Updated by ttereshc over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF