Project

Profile

Help

Story #3091

As a user, I can create a manifest for the files in a directory

Added by ehelms@redhat.com over 1 year ago. Updated 5 days ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
% Done:

100%

Platform Release:
2.16.0
Blocks Release:
Backwards Incompatible:
No
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 31

Description

This is a request to provide a supported command line tool, installable as an RPM, to generate PULP_MANIFEST files in the right format for a directory structure. This should handle recursive generation as well as being able to re-run it and generate an updated PULP_MANIFEST.

There are a few examples of this in use today:

1. http://docs.pulpproject.org/plugins/pulp_rpm/tech-reference/iso-plugins.html#iso-importer
2. https://gist.github.com/jlsherrill/321cf092fce13d1c4f3a
3. https://gist.github.com/jlsherrill/e7c72e1ed82379955c2208ac472b0be7

Rather than have floating around tools, users would benefit from a simple, supported tool from the Pulp project that properly generates what Pulp requires to sync a repository.

Requirements for the tool:
- name = 'pulp-manifest'
- it takes 1 positional argument that specifies a path to the directory where the PULP_MANIFEST file should be created
- it creates PULP_MANIFEST file by walking the directory structure recursively and recording information about files in the CSV format: file_name,checksum,file size
- if a PULP_MANIFEST already exists, it should be regenerated
- pulp-rpm.spec file should be updated to have this tool installable as a separate RPM.

Associated revisions

Revision 65868d13 View on GitHub
Added by werwty over 1 year ago

Add tool to create PULP_MANIFEST for files in a directory

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

Revision 053587ad View on GitHub
Added by bmbouter about 1 year ago

Add 2.16 release notes to index

This fixes a doc build error.

re #3091

History

#1 Updated by dalley over 1 year ago

  • Triaged changed from No to Yes

#2 Updated by mhrivnak over 1 year ago

  • Tracker changed from Issue to Story
  • Project changed from Pulp to RPM Support
  • Subject changed from Add a command line utility to turn a directory into a file (iso) repository to As a user, I can create a manifest for the files in a directory
  • Description updated (diff)
  • % Done set to 0

#3 Updated by mhrivnak over 1 year ago

  • Description updated (diff)

#5 Updated by dkliban@redhat.com over 1 year ago

I see this as a command line tool called 'pulp-manifest'. For version 0.1 it can take 1 positional argument that specifies a path to the directory where the PULP_MANIFEST file should be created. If a PULP_MANIFEST already exists in the directory, it is removed and a new one is created by walking the directory structure recursively and recording all the files to the manifest.

#6 Updated by ttereshc over 1 year ago

  • Description updated (diff)

#7 Updated by dkliban@redhat.com over 1 year ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes

#9 Updated by ttereshc over 1 year ago

  • Sprint/Milestone set to 53

#10 Updated by bizhang over 1 year ago

  • Description updated (diff)
  • Status changed from NEW to POST
  • Assignee set to bizhang

#11 Updated by werwty over 1 year ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#12 Updated by bmbouter about 1 year ago

  • Sprint set to Sprint 31

#13 Updated by bmbouter about 1 year ago

  • Sprint/Milestone deleted (53)

#14 Updated by ttereshc about 1 year ago

  • Platform Release set to 2.16.0

#15 Updated by bmbouter about 1 year ago

  • Status changed from MODIFIED to ON_QA

#16 Updated by bmbouter about 1 year ago

  • Status changed from ON_QA to CLOSED - CURRENTRELEASE

#17 Updated by bmbouter 5 days ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF