Project

Profile

Help

Task #3371

closed

Support OSTree in pulp3 (based on pulp2 implementation)

Added by jortel@redhat.com about 6 years ago. Updated almost 4 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Target Release - OSTree:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Overview

Add a pulp3 plugin to support OSTree. Most of the heavy lifting can be canablized from the pulp2 plugin.
Mainly just need to:

  • Port mongoengine models to django models.
  • Add django scaffolding (viewset, serializers, etc).
  • Port code from Steps to tasks.
  • Directly reuse the libostree (lib) module.

Model

Metadata(GenericKeyValueModel):

Remote(Model):
"This is a local OSTree repository where everything is stored."

  • url (CharField)
  • storage_path (CharField)

Commit(Model):

  • hash (CharField)
  • metadata (GenericKeyValueRelation) => Metadata (cascade)
  • remote (ForeignKey) => Remote (cascade)

Ref (Model):

  • path (CharField)
  • commit (ForeignKey) => Commit (cascade)
  • remote (ForeignKey) => Remote (cascade)

Branch(Content):

  • ref (ForeignKey) => Ref (protect)

RemoteSummary(Model):

  • remote (ForeignKey) => Remote (protect)
  • repository (ForeignKey) => Repository (cascade)
  • ref (ForeignKey) => Ref (protect)

Questions:

  • How do orphaned refs, commits and remotes get cleaned up?

Also available in: Atom PDF