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

Deploy of newly tagged multiarch manifest not permitted when redeploy is disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.25.0
    • Fix Version/s: 3.37.0
    • Component/s: Docker
    • Labels:
    • Story Points:
      3
    • Sprint:
      NXRM MadMax Sprint 20
    • Notability:
      3

      Description

      Attempting to deploy a newly tagged fat/multiarch manifest fails against a Docker repository that has redeploy disabled.

      To reproduce:

      1. Using the "docker manifest" command build and push a multiarch image to a Docker hosted repo that has redeploy disabled (for details on how to build and push a multiarch image see the "The hard way with docker manifest"
      section of https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/)

      2. Rebuild the manifest with a new tag and push to the Docker repo  e.g. 

      docker manifest create \
      docker-hosted-repo/multiarch-example:new-tag \
      --amend docker-hosted-repo/multiarch-example:manifest-amd64 \
      --amend docker-hosted-repo/multiarch-example:manifest-arm32v7 \
      --amend docker-hosted-repo/multiarch-example:manifest-arm64v8
      
      docker manifest push docker-hosted-repo/multiarch-example:new-tag

      Expected:

      Newly tagged manifest is successfully pushed similar to how retagging and repushing an existing image is permitted when redeploy is disabled.

      Actual:

      Push fails with a "400 - Repository does not allow updating assets: docker-hosted-repo" and "blob upload invalid: blob upload invalid" response on the Docker client side.

      Workaround:

      Allow redeploy on the Docker hosted repo.

        Attachments

          Activity

            People

            Assignee:
            ybulatnikov Eugene Bulatnikov
            Reporter:
            hardeepn Hardeep Nagra
            Last Updated By:
            Eugene Bulatnikov Eugene Bulatnikov
            Team:
            NXRM - Mad Max
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title