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

items added or removed from yum metadata files when metadata is rebuilt may not be logged

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 3.22.1
    • Fix Version/s: 3.24.0
    • Component/s: Logging, Yum
    • Labels:
    • Notability:
      n/a

      Description

      When an RPM is added or removed from yum metadata files ( files inside repodata dir ), these additions and removals are not always logged when metadata is rebuilt. Also it seems that if a potential addition or removal is ignored for any reason, that is also not logged when metadata is rebuilt ( see NEXUS-23711 for that example)

      Example no logging at debug for deleting rpm from filelists.xml.gz
      2020-04-27 14:42:04,792-0300 INFO  [qtp1593775997-188] admin org.sonatype.nexus.repository.yum.internal.hosted.YumHostedComponentMaintenanceFacet - Deleting asset: Asset{metadata=AttachedEntityMetadata{schema=asset, document=asset#14:494324{bucket:#12:19,format:yum,last_updated:Mon Apr 27 11:24:41 ADT 2020,attributes:[4],component:#13:174574,name:hp-health-10.70-1846.6.rhel7.x86_64.rpm,size:357444,content_type:application/x-rpm,created_by:admin,created_by_ip:127.0.0.1,blob_ref:fonse-yum@FC8B73F8-E7838FA2-BD48C491-077AB00A-E4EAB64F:3a8e9497-f69c-4317-82df-e3600c4cd0f1,last_downloaded:null,blob_created:Mon Apr 27 11:24:41 ADT 2020,blob_updated:Mon Apr 27 11:24:41 ADT 2020} v1}, name=hp-health-10.70-1846.6.rhel7.x86_64.rpm}
      
      
      2020-04-27 14:43:04,884-0300 INFO  [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoFacetImpl - Rebuilding yum metadata for repository yum-fonse-dev
      2020-04-27 14:43:04,887-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Calculating directories for generating Yum metadata for repository yum-fonse-dev
      2020-04-27 14:43:05,706-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Writing non-repomd metadata for repository yum-fonse-dev and directory 
      2020-04-27 14:43:05,707-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Directory  is marked as use cache, appending metadata from existing cached files
      2020-04-27 14:43:06,077-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Building repomd.xml for repository yum-fonse-dev and directory 
      2020-04-27 14:43:06,079-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Reading metadata file ../sonatype-work/nexus3/tmp/filelists6120938752601801740xml.gz from directory  to get checksums 
      2020-04-27 14:43:06,088-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Reading metadata file ../sonatype-work/nexus3/tmp/primary5094065893032873218xml.gz from directory  to get checksums 
      2020-04-27 14:43:06,091-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Reading metadata file ../sonatype-work/nexus3/tmp/other4745912792310414941xml.gz from directory  to get checksums 
      2020-04-27 14:43:06,095-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Searching for comps.xml to add to metadata for directory 
      2020-04-27 14:43:06,141-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Removing temp files used in Yum metadata generation
      2020-04-27 14:43:06,141-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Removing temporary Yum metadata file ../sonatype-work/nexus3/tmp/filelists6120938752601801740xml.gz
      2020-04-27 14:43:06,141-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Removing temporary Yum metadata file ../sonatype-work/nexus3/tmp/primary5094065893032873218xml.gz
      2020-04-27 14:43:06,142-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Removing temporary Yum metadata file ../sonatype-work/nexus3/tmp/other4745912792310414941xml.gz
      2020-04-27 14:43:06,142-0300 DEBUG [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoServiceImpl - Removing temporary Yum metadata file ../sonatype-work/nexus3/tmp/repomd2930562572979078936xml
      2020-04-27 14:43:06,748-0300 INFO  [event-7-thread-12] admin org.sonatype.nexus.repository.yum.internal.createrepo.CreateRepoFacetImpl - Finished rebuilding yum metadata for repository yum-fonse-dev
      

      Expected

      Log all additions and removals of entries, or ignores of potential additions and removals in the yum repodata files at DEBUG log level

        Attachments

          Activity

            People

            Assignee:
            mallen Mick Allen
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Joe Tom
            Team:
            NXRM - Operations/Groot
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title