Project

Profile

Help

Task #1815

closed

Task #1601: Migrate /var/lib/pulp/content to new 2.8 storage paths.

Create a common 2.8 storage path migration to be used by plugins

Added by jortel@redhat.com about 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
2.8.3
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Sprint 1
Quarter:

Description

Create a common migration that is used by plugin migrations to migrate content units to the new 2.8 standard storage path.

This approach ensures the migration algorithm is:
- Consistent
- Idempotent (can be resumed)
- Tested
- Memory efficient
- Good performance

The plugin needs to define a migration because it has knowledge of the model.

The plugin knows:
- The collection name.
- The unit keys (needed to calculate the path)
- Whether the storage path is to a directory or individual file.

So, each plugin will define a migration for its content types but all of the heavy lifting is done in the common migration supplied by the platform.

Also available in: Atom PDF