Task #1601
closedMigrate /var/lib/pulp/content to new 2.8 storage paths.
100%
Description
See: https://pulp.plan.io/issues/1600
To make /var/lib/pulp/content/ consistent, we need to write some a migration.
The migration needs to:
- update the _storage_path on content units to use the new 2.8 directory structure.
- move the file to the new location.
- update symlinks to point to the new file location.
Related issues
Updated by bmbouter almost 9 years ago
- Blocks Story #236: Don't re-download rpms if they exist on disk added
Updated by jortel@redhat.com almost 9 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to jortel@redhat.com
Updated by semyers almost 9 years ago
- Platform Release changed from 2.8.1 to 2.8.2
Updated by semyers over 8 years ago
- Platform Release changed from 2.8.2 to 2.8.3
Updated by jortel@redhat.com over 8 years ago
- Status changed from POST to MODIFIED
Updated by pthomas@redhat.com over 8 years ago
Jeff,
Could you please update this task to itemize what we should do to make sure we test this as much as possible.
Thanks
Preethi
Updated by jortel@redhat.com over 8 years ago
Testing Notes¶
The migration(s) affects:
- RPM
- DRPM
- SRPM
- YUM_METADATA
- DISTRIBUTION
- ISO
- PYTHON
- DOCKER
- PUPPET
OSTree not impacted.
The migration(s) do:
- Calculates a new storage path for all unit types that stores files.
- Moves the files content/.
- Updates the symlinks under published/
- Updates the unit in the DB
Using 2.7¶
For each content type listed above - create and sync and publish a repository.
Upgrade 2.8.3¶
Validate migrations run successfully.
Spot check paths in /var/lib/pulp/content have the format:
/units/<type>/12/3456789.../<file>
Where the 123456789... is a SHA256 of the unit key. The <file> will not be there for DISTRIBUTION. Mainly check the format.
Make sure none of the symlinks are broken and that all the content types can be consumed as published.
Then, repeat the test with RPMs set to deferred (Lazy) downloading.
Basically a massive regression test.
Updated by semyers over 8 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE