Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-2179

Support repo mirror of repos that don't have a latest tag

    XMLWordPrintable

Details

    • 0

    Description

      Per the documentation,

      In order for Quay to get the list of tags in the remote repository, one of the following requirements must be met:

      An image with the "latest" tag must exist in the remote repository OR
      At least one explicit tag, without pattern matching, must exist in the list of tags that you specify

      When trying to mirror GCP images which don't have a "latest" tag, I indeed get the following.

      repomirrorworker stdout | 2021-06-30 19:45:38,763 [160] [DEBUG] [util.repomirror.skopeomirror] SKOPEO ARGS: /usr/bin/skopeo inspect --tls-verify=True 'docker://eu.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler:*'
      repomirrorworker stdout | 2021-06-30 19:45:39,313 [160] [DEBUG] [util.repomirror.skopeomirror] Skopeo [STDERR]: time="2021-06-30T19:45:39Z" level=fatal msg="Invalid image name "'docker://eu.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler:*'", unknown transport "'docker""2021-06-30 19:45:39,314 [160] [DEBUG] [util.repomirror.skopeomirror] Skopeo [STDOUT]:
      repomirrorworker stdout | 2021-06-30 19:45:39,314 [160] [DEBUG] [util.repomirror.skopeomirror] SKOPEO ARGS: /usr/bin/skopeo inspect --tls-verify=True docker://eu.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler:latest
      repomirrorworker stdout | 2021-06-30 19:45:40,207 [160] [DEBUG] [util.repomirror.skopeomirror] Skopeo [STDERR]: time="2021-06-30T19:45:40Z" level=fatal msg="Error reading manifest latest in eu.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler: manifest unknown: Failed to fetch "latest" from request "/v2/k8s-artifacts-prod/autoscaling/cluster-autoscaler/manifests/latest"." 

      Now the enhancement request is to switch from

      skopeo inspect ... snip ... docker://eu.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler
      

       
      to

      skopeo list-tags docker://eu.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler
      

      which does correctly give the tags. See also https://github.com/containers/skopeo/blob/main/docs/skopeo-list-tags.1.md .

      Attachments

        Activity

          People

            obulatov@redhat.com Oleg Bulatov
            frvge Frank van Gemeren (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: