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

oc-mirror failed when try to mirror a full catalog

XMLWordPrintable

    • Moderate
    • Yes
    • CLID Sprint 263
    • 1
    • False
    • Hide

      None

      Show
      None
    • Hide
      *Cause*: What actions or circumstances cause this bug to present.
      *Consequence*: What happens when the bug presents.
      *Fix*: What was done to fix the bug.
      *Result*: Bug doesn’t present anymore.
      Show
      *Cause*: What actions or circumstances cause this bug to present. *Consequence*: What happens when the bug presents. *Fix*: What was done to fix the bug. *Result*: Bug doesn’t present anymore.
    • Bug Fix
    • In Progress

      Description of problem:

      When try to a full catalog will failed with error:
      2024/11/21 02:55:48  [ERROR]  : unable to rebuild catalog docker://registry.redhat.io/redhat/redhat-operator-index:v4.17: filtered declarative config not found

      Version-Release number of selected component (if applicable):

      oc-mirror version 
      W1121 02:59:58.748933   61010 mirror.go:102] ⚠️  oc-mirror v1 is deprecated (starting in 4.18 release) and will be removed in a future release - please migrate to oc-mirror --v2WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"v0.2.0-alpha.1-324-gbae91d5", GitCommit:"bae91d55", GitTreeState:"clean", BuildDate:"2024-11-20T02:06:04Z", GoVersion:"go1.23.0", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

           Always
          

      Steps to Reproduce:

      1.  mirror ocp with full==true for catalog :  cat config.yaml 
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.17
          full: true
      
      oc-mirror -c config.yaml docker://localhost:5000 --workspace file://full-catalog --v2

      Actual results:

      oc-mirror -c config.yaml docker://localhost:5000 --workspace file://full-catalog --v22024/11/21 02:55:27  [WARN]   : ⚠️  --v2 flag identified, flow redirected to the oc-mirror v2 version. This is Tech Preview, it is still under development and it is not production ready.
      2024/11/21 02:55:27  [INFO]   : 👋 Hello, welcome to oc-mirror
      2024/11/21 02:55:27  [INFO]   : ⚙️  setting up the environment for you...
      2024/11/21 02:55:27  [INFO]   : 🔀 workflow mode: mirrorToMirror 
      2024/11/21 02:55:27  [INFO]   : 🕵️  going to discover the necessary images...
      2024/11/21 02:55:27  [INFO]   : 🔍 collecting release images...
      2024/11/21 02:55:27  [INFO]   : 🔍 collecting operator images...
       ⠦   (20s) Collecting catalog registry.redhat.io/redhat/redhat-operator-index:v4.17 
      2024/11/21 02:55:48  [WARN]   : error parsing image registry.redhat.io/openshift4/ose-kube-rbac-proxy-rhel9 : registry.redhat.io/openshift4/ose-kube-rbac-proxy-rhel9 unable to parse image co ✓   (20s) Collecting catalog registry.redhat.io/redhat/redhat-operator-index:v4.17 
      2024/11/21 02:55:48  [WARN]   : registry.redhat.io/openshift4/ose-kube-rbac-proxy-rhel9 unable to parse image correctly : tag and digest are empty : SKIPPING
      2024/11/21 02:55:48  [WARN]   : [OperatorImageCollector] gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1@sha256:d4883d7c622683b3319b5e6b3a7edfbf2594c18060131a8bf64504805f875522 has both tag and digest : using digest to pull, but tag only for mirroring
      2024/11/21 02:55:48  [INFO]   : 🔍 collecting additional images...
      2024/11/21 02:55:48  [INFO]   : 🔍 collecting helm images...
      2024/11/21 02:55:48  [INFO]   : 🔂 rebuilding catalogs
      2024/11/21 02:55:48  [INFO]   : 👋 Goodbye, thank you for using oc-mirror
      2024/11/21 02:55:48  [ERROR]  : unable to rebuild catalog docker://registry.redhat.io/redhat/redhat-operator-index:v4.17: filtered declarative config not found

      Expected results:

      no error

      Additional info:

       
          

       

              skhoury@redhat.com Sherine Khoury
              yinzhou@redhat.com ying zhou
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: