Project

Profile

Help

Issue #5957

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

Added by jsherril@redhat.com over 1 year ago. Updated about 1 year 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.

Associated revisions

Revision ac432d8e View on GitHub
Added by ipanova@redhat.com over 1 year ago

Do not rely on repo-type from the notes

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

Revision 2a689a81 View on GitHub
Added by ipanova@redhat.com over 1 year ago

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

Revision 2a689a81 View on GitHub
Added by ipanova@redhat.com over 1 year ago

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

Revision 2a689a81 View on GitHub
Added by ipanova@redhat.com over 1 year ago

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

History

#1 Updated by ttereshc over 1 year 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

#2 Updated by ttereshc over 1 year ago

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

#3 Updated by ipanova@redhat.com over 1 year ago

  • Status changed from NEW to MODIFIED

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

#5 Updated by ttereshc over 1 year ago

  • Project changed from Pulp to Migration Plugin

#7 Updated by ttereshc about 1 year ago

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

#8 Updated by bmbouter about 1 year 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

Please register to edit this issue

Also available in: Atom PDF