Project

Profile

Help

Story #95

closed

As a user, I can manage ostree content units by branch

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

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

100%

Estimated time:
Platform Release:
Target Release - OSTree:
1.0.0
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
February 2015
Quarter:

Description

Users wants pulp to model ostree content units where each unit is a branch head instead of a snaphot of the entire repository. They also want us to only publish objects associated to those commits and not just links to the entire backing repository. Red Hat composed repositories will include a version field in the commit metadata. Users want the commit metadata inventoried with each content unit and displayed in our CLI. They also want us to chnage what is published to only include links into objects/ that are referenced by branch head commits. Currently we are simply linking to the entire objects/ directory which exposes too much.

Details

  • Update the type definition to model each unit as a branch head. The unit key will be something like: {remote_id:<id>, branch_id:<path>, commit_id:<hash>}.
  • After pulling from a remote repository, add a content unit per branch head instead of one unit representing a snapshot of the entire repository.
  • Include the metadata contained in the commit with the unit metadata. OSTree repositories composed by Red Hat will contain a version.
  • Update the CLI to display this metadata.
  • Update publishing to perform the following steps:
  • Create a new ostree repository
  • Add a file in the refs/ for each content unit.
  • Do a local-pull from the backing ostree repository to create hard links to the objects.

Deliverables

  • OSTree repositories contain a unit per branch that includes the commit metadata.
  • Published ostree repositories include a file in refs/heads per content unit.
  • Published ostree repositories objects/ contains hard links to only those objects referenced by the branch head commits.
  • The ostree CLI displays commit metadata for each unit.

Also available in: Atom PDF