Actions
Issue #6949
closedRe-migration of a distribution tree fails
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Quarter:
Description
Jun 10 11:57:15 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1136]: TypeError: 'NoneType' object is not subscriptable
Jun 10 11:57:15 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1136]: for image in extra_info['images']:
Jun 10 11:57:15 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1136]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/content.py", line 262, in migrate_to_pulp3
Jun 10 11:57:15 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1136]: Traceback (most recent call last):
Jun 10 11:57:15 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1136]: future: <Task finished coro=<ContentMigrationFirstStage.migrate_to_pulp3() done, defined at /home/vagrant/devel/pulp-2to3-migration
Jun 10 11:57:15 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1136]: pulp: asyncio:ERROR: Task exception was never retrieved
This code path relies on the values in the extra_info which in re-run are none because the object is already created in pulp2
https://github.com/pulp/pulp-2to3-migration/blob/master/pulp_2to3_migration/app/plugin/content.py#L245 https://github.com/pulp/pulp-2to3-migration/blob/master/pulp_2to3_migration/app/plugin/content.py#L260
Actions
Fix distribution tree re-migration.
productmd serializes treeinfo data wrongly. Under
images
the images from [stage2] section is not present. All images are available underdownload
serialized data.closes #6949 https://pulp.plan.io/issues/6949