Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-4283

`oc adm release mirror` does not support to import image from directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • 4.12.0
    • 4.13.0, 4.12
    • oc
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description:
      When use `oc adm release mirror` with option --from-dir will hit error :
      error: must specify a release image with --from

      How reproducible: Always

      Steps:
      Use `oc adm release new` to create the release manifests to a directory;
      `oc adm release new --reference-mode=source --keep-manifest-list -f 12708358_4.11.0-0.nightly-multi-2022-04-18-120932-release-imagestream.yaml --name 4.11.0-0.nightly --to-dir=/tmp/new4.11releaseimage`
      Use `oc adm release mirror` with --from-dir to mirror the image :
      `oc adm release mirror --from-dir=/tmp/new4.11releaseimage --keep-manifest-list --to=localhost:5000/psundara/openshift-release --apply-release-image-signature --insecure`

      Actual Result:
      2. Hit error:
      oc adm release mirror --from-dir=/tmp/new4.11releaseimage --keep-manifest-list --to=localhost:5000/psundara/openshift-release --apply-release-image-signature --insecure
      error: must specify a release image with --from

      Expected Result:
      2. Could read the release manifests and mirror the image successfully.

              aguclu@redhat.com Arda Guclu
              yinzhou@redhat.com Ying Zhou
              None
              None
              Ying Zhou Ying Zhou
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: