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

outbound docker proxy requests always insert /library/ and commonly return 404 at the remote

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.0.1
    • Fix Version/s: 3.0.2
    • Component/s: Docker
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Sprint 73

      Description

      When nexus sends an outbound docker proxy request, the path gets manipulated on the fly to insert /library/.

      2016-07-13 10:27:44,571-0400 DEBUG [qtp570843386-3412] admin org.sonatype.nexus.repository.view.Router - Request: Request{action='GET', path='/v2/rhel/manifests/latest', parameters={}, payload=HttpRequestPayloadAdapter{contentType='null', size=-1}, multipart=false}
      2016-07-13 10:27:44,574-0400 TRACE [qtp570843386-3412] admin org.sonatype.nexus.repository.docker.internal.DockerGroupHandler - Trying member: RepositoryImpl$$EnhancerByGuice$$a0148baa{type=proxy, format=docker, name='docker_proxy'}
      2016-07-13 10:27:44,582-0400 DEBUG [qtp570843386-3412] admin org.sonatype.nexus.repository.view.Router - Request: Request{action='GET', path='/v2/rhel/manifests/latest', parameters={}, payload=HttpRequestPayloadAdapter{contentType='null', size=-1}, multipart=false}
      2016-07-13 10:27:44,583-0400 TRACE [qtp570843386-3412] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Updating library request for: rhel and path: /v2/rhel/manifests/latest to: /v2/library/rhel/manifests/latest
      2016-07-13 10:27:44,583-0400 DEBUG [qtp570843386-3412] admin org.sonatype.nexus.repository.view.Router - Request: Request{action='GET', path='/v2/library/rhel/manifests/latest', parameters={}, payload=HttpRequestPayloadAdapter{contentType='null', size=-1}, multipart=false}
      2016-07-13 10:27:44,595-0400 DEBUG [qtp570843386-3412] admin org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl - Fetching: GET https://registry.example.com/v2/library/rhel/manifests/latest HTTP/1.1
      2016-07-13 10:27:44,808-0400 WARN  [qtp570843386-3412] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: GET /v2/library/rhel/manifests/latest: 404 - org.sonatype.nexus.repository.docker.internal.V2Exception: manifest unknown
      

      If the remote is anything other than dockerhub, this can fail with 404, and therefore Nexus returns 404 to the docker client. If /library/ was not inserted, it might have succeeded

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jtom Joe Tom
              Reporter:
              swiss-mobiliar-01 Patrick Roth
              Last Updated By:
              Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title