Project

Profile

Help

Issue #5957

closed

pulp 2to3 migration only works if notes field is filled out with the type

Added by jsherril@redhat.com almost 5 years ago. Updated over 4 years ago.

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

Description

the pulp 2to3 migration requires a notes field in at least a couple places:

https://github.com/pulp/pulp-2to3-migration/blob/master/pulp_2to3_migration/app/pre_migration.py#L233
https://github.com/pulp/pulp-2to3-migration/blob/master/pulp_2to3_migration/app/pre_migration.py#L285

however the notes field is only present if the repos were created with pulp-admin. Normal api usage does not create these fields.

Actions #1

Updated by ttereshc almost 5 years ago

The solution is to identify a repo type by its content:
- have a mapping content_type -> repo type
- at the repocontent pre-migration step identify the repo type based on any content unit in that repo
- empty repos won't be migrated

Actions #2

Updated by ttereshc almost 5 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 63

Added by ipanova@redhat.com almost 5 years ago

Revision ac432d8e | View on GitHub

Do not rely on repo-type from the notes

closes #5957 https://pulp.plan.io/issues/5957

Actions #3

Updated by ipanova@redhat.com almost 5 years ago

  • Status changed from NEW to MODIFIED

Applied in changeset commit:pulp-2to3-migration|ac432d8e0b54b26ede5133f2bf876c5a8a26a1be.

Added by ipanova@redhat.com almost 5 years ago

Revision 2a689a81 | View on GitHub

Do not rely on repo-type from the notes

Create mappings to know about repo types before premigration. Also fixes the marking of unused resources.

closes #5957 https://pulp.plan.io/issues/5957

Added by ipanova@redhat.com almost 5 years ago

Revision 2a689a81 | View on GitHub

Do not rely on repo-type from the notes

Create mappings to know about repo types before premigration. Also fixes the marking of unused resources.

closes #5957 https://pulp.plan.io/issues/5957

Added by ipanova@redhat.com almost 5 years ago

Revision 2a689a81 | View on GitHub

Do not rely on repo-type from the notes

Create mappings to know about repo types before premigration. Also fixes the marking of unused resources.

closes #5957 https://pulp.plan.io/issues/5957

Actions #5

Updated by ttereshc almost 5 years ago

  • Project changed from Pulp to Migration Plugin
Actions #7

Updated by ttereshc over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
  • Sprint/Milestone set to 0.1.0
Actions #8

Updated by bmbouter over 4 years ago

  • Tags deleted (Pulp 2 to 3 Migrate)

We're removing the 'Pulp 2 to 3 Migrate' tag to allow membership of the Migration Plugin project in Redmine to be the controlling area https://pulp.plan.io/projects/migration

Also available in: Atom PDF