Project

Profile

Help

Issue #6084

closed

Migration plugin error when trying to migrate the docker plugin with pulpcore 3.1+ and pulp_container >1.0

Added by dalley about 4 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
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 68
Quarter:

Description

Syncing only the docker plugin, and with only docker content in Pulp 2, using the plan

http POST :24817/pulp/api/v3/migration-plans/ plan='{"plugins": [{"type": "docker"}]}'

yields the error

Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: future: <Task finished coro=<DockerContentMigrationFirstStage.migrate_to_pulp3() done, defined at /home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py:116> exception=TypeError("__init__() got an unexpected keyword argument 'does_batch'",)>
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: Traceback (most recent call last):
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py", line 156, in migrate_to_pulp3
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: dc = DeclarativeContent(content=pulp3content, d_artifacts=[da], does_batch=False)
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: TypeError: __init__() got an unexpected keyword argument 'does_batch'
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: pulp: asyncio:ERROR: Task exception was never retrieved
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: future: <Task finished coro=<DockerContentMigrationFirstStage.migrate_to_pulp3() done, defined at /home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py:116> exception=TypeError("__init__() got an unexpected keyword argument 'does_batch'",)>
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: Traceback (most recent call last):
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py", line 156, in migrate_to_pulp3
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: dc = DeclarativeContent(content=pulp3content, d_artifacts=[da], does_batch=False)
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: TypeError: __init__() got an unexpected keyword argument 'does_batch'
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: pulp: asyncio:ERROR: Task exception was never retrieved
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: future: <Task finished coro=<DockerContentMigrationFirstStage.migrate_to_pulp3() done, defined at /home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py:116> exception=TypeError("__init__() got an unexpected keyword argument 'does_batch'",)>
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: Traceback (most recent call last):
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py", line 156, in migrate_to_pulp3
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: dc = DeclarativeContent(content=pulp3content, d_artifacts=[da], does_batch=False)
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: TypeError: __init__() got an unexpected keyword argument 'does_batch'
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: pulp: asyncio:ERROR: Task exception was never retrieved
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: future: <Task finished coro=<DockerContentMigrationFirstStage.migrate_to_pulp3() done, defined at /home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py:116> exception=TypeError("__init__() got an unexpected keyword argument 'does_batch'",)>
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: Traceback (most recent call last):
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py", line 156, in migrate_to_pulp3
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: dc = DeclarativeContent(content=pulp3content, d_artifacts=[da], does_batch=False)
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: TypeError: __init__() got an unexpected keyword argument 'does_batch'
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: pulp: asyncio:ERROR: Task exception was never retrieved
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: future: <Task finished coro=<DockerContentMigrationFirstStage.migrate_to_pulp3() done, defined at /home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py:116> exception=TypeError("__init__() got an unexpected keyword argument 'does_batch'",)>
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: Traceback (most recent call last):
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py", line 156, in migrate_to_pulp3
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: dc = DeclarativeContent(content=pulp3content, d_artifacts=[da], does_batch=False)
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: TypeError: __init__() got an unexpected keyword argument 'does_batch'
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: pulp: asyncio:ERROR: Task exception was never retrieved
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: future: <Task finished coro=<DockerMigrator.migrate_content_to_pulp3() done, defined at /home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py:73> exception=AttributeError("'NoneType' object has no attribute '_artifacts'",)>
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: Traceback (most recent call last):
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py", line 80, in migrate_content_to_pulp3
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: await dm.create()
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/content.py", line 83, in create
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: await pipeline
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: File "/home/vagrant/devel/pulpcore/pulpcore/plugin/stages/api.py", line 228, in create_pipeline
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: await asyncio.gather(*futures)
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: File "/home/vagrant/devel/pulpcore/pulpcore/plugin/stages/api.py", line 43, in __call__
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: await self.run()
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: File "/home/vagrant/devel/pulpcore/pulpcore/plugin/stages/content_stages.py", line 94, in run
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: await self._pre_save(batch)
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/docker/migrator.py", line 273, in _pre_save
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: artifact = man._artifacts.get()
Feb 04 01:34:21 pulp2-nightly-pulp3-source-centos7.localhost.example.com rq[16555]: AttributeError: 'NoneType' object has no attribute '_artifacts'

Related issues

Blocks Migration Plugin - Issue #5978: Migration of multiple plugins does not workCLOSED - CURRENTRELEASEdalleyActions

Also available in: Atom PDF