Project

Profile

Help

Issue #9123

closed

Issue #8622: CentOS 8 BaseOS .treeinfo's [general] section says AppStream instead of BaseOS

Mirrored .treeinfo metadata needs to be rewritten in cases where the relative location of the sub-repos moved

Added by dalley over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 101
Quarter:

Description

When .treeinfo contains relative paths to a location outside of the repository, as is the case with CentOS 8, Pulp cannot serve those sub-repos precisely as they are. So it syncs all of them and publishes all of them into one repository with subdirectories for the sub-repos, and writes the locations of these sub-repos into the .treeinfo metadata.

In the mirrored metadata case, the .treeinfo file will be pointing to the wrong locations, so we need to rewrite the .treeinfo file just like we do during a standard publish.

As .treeinfo isn't checksummed or signed we aren't prevented from doing this.


Related issues

Related to RPM Support - Issue #9098: Mirror-mode sync is not creating publications in the proper way for repos with distribution treesCLOSED - CURRENTRELEASEdalleyActions
Copied to RPM Support - Issue #9219: Mirrored .treeinfo metadata needs to be rewritten in cases where the relative location of the sub-repos movedCLOSED - DUPLICATEActions
Actions #1

Updated by dalley over 3 years ago

  • Related to Issue #9098: Mirror-mode sync is not creating publications in the proper way for repos with distribution trees added
Actions #2

Updated by dalley over 3 years ago

  • Related to Issue #8622: CentOS 8 BaseOS .treeinfo's [general] section says AppStream instead of BaseOS added
Actions #3

Updated by dalley over 3 years ago

  • Tags Katello added
Actions #4

Updated by dalley over 3 years ago

  • Triaged changed from No to Yes
Actions #5

Updated by dalley over 3 years ago

  • Status changed from ASSIGNED to CLOSED - DUPLICATE
  • Parent issue set to #8622

This doesn't really deserve to be closed as a duplicate, but since the patch is basically the same as #8622, I'm going to basically merge the two so that the changes are easier to backport.

Actions #6

Updated by dalley over 3 years ago

  • Copied to Issue #9219: Mirrored .treeinfo metadata needs to be rewritten in cases where the relative location of the sub-repos moved added

Also available in: Atom PDF