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

redeploy of same rpm version corrupts repodata

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Automatically Closed
    • Affects Version/s: 3.14.0
    • Fix Version/s: None
    • Component/s: Yum
    • Labels:
    • Story Points:
      5

      Description

      I have a CI/CD pipeline to build various rpm packages.

      Some packages are rebuilt from exactly the same source version as these are used as dependencies for building other packages (eg, gRPC requires Protobuf).

      At the end of the CI/CD pipeline all RPM packages are uploaded to the Hosted repository.

      This has the effect of redeploying the nearly the same RPM packages, their binary checksums can be different (eg, embedded timestamp in binaries) but most RPM metadata remains the same (package version)

      I first noticed that I had problems when I hosted RPMs and SRPMs sharing the same repodata folder (NEXUS-17884), I then re-created the repository and set a different repodepth so RPM and SRPM folders have their own repodata.

      Upon the first upload of a package everything works fine, but after a package is uploaded again clients get :

       

      https://.../repository/linux/master/RPMS/x86_64/grpc-1.15.1-1.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=linux clean metadata
      Trying other mirror.

      Note that there was no cached metadata, this occurs in a pristine centos 7 docker container.

       

      I'm using the latest OSS version. I unfortunately did not save the (corrupt) repodata, but it should be easy enough to reproduce.

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jansmets Jan Smets
            Last Updated By:
            Rich Seddon Rich Seddon
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title