Project

Profile

Help

Issue #6952

closed

Migration of a distribution tree fails if it has no treeinfo file at all

Added by ipanova@redhat.com over 4 years ago. Updated over 4 years ago.

Status:
CLOSED - NOTABUG
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:
Sprint:
Quarter:

Description

Jun 10 12:15:48 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1990]: pulp: asyncio:ERROR: Task exception was never retrieved
Jun 10 12:15:48 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1990]: future: <Task finished coro=<ContentMigrationFirstStage.migrate_to_pulp3() done, defined at /home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/content.py:188> exception=TypeError("'NoneType' object is not iterable",)>
Jun 10 12:15:48 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1990]: Traceback (most recent call last):
Jun 10 12:15:48 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1990]: File "/home/vagrant/devel/pulp-2to3-migration/pulp_2to3_migration/app/plugin/content.py", line 253, in migrate_to_pulp3
Jun 10 12:15:48 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1990]: pulp3content, extra_info = pulp_2to3_detail_content.create_pulp3_content()
Jun 10 12:15:48 pulp2-nightly-pulp3-source-centos7.fluffy.example.com rq[1990]: TypeError: 'NoneType' object is not iterable

offending line https://github.com/pulp/pulp-2to3-migration/blob/master/pulp_2to3_migration/app/plugin/rpm/pulp_2to3_models.py#L720 Reason: we return none and then it fails later here https://github.com/pulp/pulp-2to3-migration/blob/master/pulp_2to3_migration/app/plugin/content.py#L251 Solution: fail gracefully without traceback


Related issues

Related to Migration Plugin - Issue #6951: Migration of a distribution tree fails if it has a treeinfo and not .treenfoCLOSED - CURRENTRELEASEipanova@redhat.comActions

Also available in: Atom PDF