Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-5363

"oc image mirror" supports mirroring registry.fedoraproject.org/fedora:latest

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • oc
    • None
    • False
    • None
    • False
    • Not Selected
    • 0
    • 0% 0%

      1. Proposed title of this feature request
      2. What is the nature and description of the request?
      At the time of writing this card, "oc image mirror" failed on registry.fedoraproject.org/fedora:latest

      The image can be pushed by skopeo or podman.
      fmissi found that there is some conversion that those two tools do while oc does not.

      https://redhat-internal.slack.com/archives/CKJR6200N/p1712158072362369?thread_ts=1712151841.974139&cid=CKJR6200N

      We would like oc to catch up the gap.

      oc version --client
      Client Version: 4.15.3
      Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
      
      
      oc image mirror --keep-manifest-list --registry-config=/tmp/qci.c --continue-on-error=true --max-per-registry=20  registry.fedoraproject.org/fedora:latest=quay.io/openshift/ci:ci_fedora_latest_001
      quay.io/
        openshift/ci
          blobs:
            registry.fedoraproject.org/fedora sha256:2294dababd49bfb4deef8e62903f4bf375ebfa59fffea27d0526e7c391017eca 1.285KiB
            registry.fedoraproject.org/fedora sha256:7525e2517202a7630938771183bb62f19bbcb38cf97849209656ab20c7043bbf 1.285KiB
            registry.fedoraproject.org/fedora sha256:c69851f93e41b7e286f388e1b47d748e76f6fed57c55ac1fa24a7d161b468d0a 1.285KiB
            registry.fedoraproject.org/fedora sha256:f13345b0116244719779be944d057612b553e9a70152735b25cd33003cdddf37 1.287KiB
            registry.fedoraproject.org/fedora sha256:9a13ff6d14519531e297244f898e994d9d6ec497dd728d757b7409c959540738 63.27MiB
            registry.fedoraproject.org/fedora sha256:f83e80b7145c10823a1b5eae8c6c1329c9ade77e09b007debecec1a6107e076b 65.09MiB
            registry.fedoraproject.org/fedora sha256:6d8d6ec60f699233fd4044a221b8ac325fe5d25f362c07e1af85ecd97a8e29b1 65.53MiB
            registry.fedoraproject.org/fedora sha256:07ae9eb5199531517a7f312db7774cf12e72e35abb56aa2d430ec251023f95af 71.28MiB
          manifests:
            sha256:486aa79dbc727dee6a4dd073028baa5852d14635b1690d03a22cca953b316e79
            sha256:d11a7a19fd1cf4d66d4cac2a81dc1c7a15615ad29d6d416cc73bb300d2939260
            sha256:d8bd66112b3a5e685fc125d9e124ba1d625c325a495e496b019bb38dfa2921c9
            sha256:e8be56b6c736592aecfb1169ef6f3cc3ad6dd321b576a3cec43a137656283137
            sha256:d7986dbf1934004c885dbc8a1ecd651f71431bacb4fd3d091264a650d2a04a32 -> ci_fedora_latest_001
        stats: shared=0 unique=8 size=265.2MiB ratio=1.00
      phase 0:
        quay.io openshift/ci blobs=8 mounts=0 manifests=5 shared=0
      info: Planning completed in 570ms
      sha256:d11a7a19fd1cf4d66d4cac2a81dc1c7a15615ad29d6d416cc73bb300d2939260 quay.io/openshift/ci
      sha256:486aa79dbc727dee6a4dd073028baa5852d14635b1690d03a22cca953b316e79 quay.io/openshift/ci
      sha256:e8be56b6c736592aecfb1169ef6f3cc3ad6dd321b576a3cec43a137656283137 quay.io/openshift/ci
      sha256:d8bd66112b3a5e685fc125d9e124ba1d625c325a495e496b019bb38dfa2921c9 quay.io/openshift/ci
      error: unable to push manifest to quay.io/openshift/ci:ci_fedora_latest_001: manifest invalid: manifest invalid
      info: Mirroring completed in 820ms (0B/s)
      error: one or more errors occurred
      

      3. Why does the customer need this? (List the business requirements here)

      OpenShift CI has an automation that uses oc-cli to mirror the external images in to quay.io which CI test can reference in the tests.

      4. List any affected packages or components.
      oc

            gausingh@redhat.com Gaurav Singh
            hongkliu Hongkai Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: