Issue #5482
Updated by ipanova@redhat.com about 5 years ago
This traceback happens when pulp2 has multiple importer type ( from iso and docker plugin). MP tries to migrate also docker importer even if only iso plugin was specified in the plan <pre> pulp: rq.worker:ERROR: AttributeError: 'NoneType' object has no attribute 'migrate_to_pulp3' Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: Traceback (most recent call last): Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py", line 822, in perform_job Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: rv = job.perform() Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 605, in perform Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: self._result = self._execute() Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 611, in _execute Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: return self.func(*self.args, **self.kwargs) Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: File "/home/vagrant/devel/pulp-2to3-migrate/pulp_2to3_migrate/app/tasks/migrate.py", line 74, in migrate_from_pulp2 Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: loop.run_until_complete(migrate_importers(plugins_to_migrate)) Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: return future.result() Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: File "/home/vagrant/devel/pulp-2to3-migrate/pulp_2to3_migrate/app/migration.py", line 108, in migrate_importers Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: remote, created = await importer_model.migrate_to_pulp3(pulp2importer) Sep 19 10:53:03 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[13862]: AttributeError: 'NoneType' object has no attribute 'migrate_to_pulp3' <pre>