Project

Profile

Help

Issue #5481

closed

Migration plugin expects to migrate only FileContentUnit

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

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 59
Quarter:

Description

Some pulp content do not have files, and they are subclassed from ContentUnit and not FileContentUnit.

These content types does not have `downloaded` attribute, therefore following query fails:

    for i, record in enumerate(mongo_content_qs.only('id',
                                                     '_storage_path',
                                                     '_last_updated',
                                                     '_content_type_id',
                                                     'downloaded').batch_size(batch_size)):

https://github.com/pulp/pulp-2to3-migrate/blob/7603684984c3d937499c3f5b5fd389b5ca01bf51/pulp_2to3_migrate/app/pre_migration.py#L72

Also available in: Atom PDF