Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-6790

Child group repository with only one yum enabled member breaks yum metadata merge

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9
    • Fix Version/s: 2.11, 3.0.0-m3
    • Component/s: Yum
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      Sprint 27, Sprint 28, Sprint 29

      Description

      Create a set of yum enabled repositories:

      
      
      GroupA --> GroupB
           |       |
           |       |--> Repo1
           |
           |--> Repo2
           |--> Repo3
           |--> Repo4
      

      Because "GroupB" only has one member mergerepo is never run against it. Consequentially it contains no yum metadata. This breaks running mergerepo against "GroupA", it will fail every time with error:

      Could not merge repos: Could not setup merge repo pkgsack: Cannot retrieve repository metadata (repomd.xml) for repository: repo1. Please verify its path and try again

      I think the simplest fix for this would be:

      1. Implement NEXUS-6801 (prevent generation of sqlite metadata)
      2. If a group only contains one member copy that member's metadata and rewrite the URL in the primary.xml.gz file

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rseddon Rich Seddon
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Joe Tom Joe Tom
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title