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

Hit error when generating pruning plan for delete phase using --generate command with oc-mirror v2

XMLWordPrintable

    • Important
    • None
    • CLID Sprint 253
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress
    • Customer Facing

      Description of problem:

      Hit error when create pruning plan generation for delete phase using –generate for mirror2mirror

       

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

      oc-mirror  version WARNING: 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:"4.16.0-202404191609.p0.g9ac063b.assembly.stream.el9-9ac063b", GitCommit:"9ac063b0b88466183a50287af277c5ed40a8e238", GitTreeState:"clean", BuildDate:"2024-04-19T22:03:51Z", GoVersion:"go1.21.7 (Red Hat 1.21.7-1.el9) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

      always

      Steps to Reproduce:

      1) Use following isc to do mirror2mirror for v2:
      cat config.yaml
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      mirror:
        platform:
          channels:
            - name: stable-4.15
        additionalImages: 
          - name: registry.redhat.io/ubi8/ubi:latest
          - name: registry.redhat.io/ubi8/ubi-minimal:latest
        operators:
          - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.14
            packages:
            - name: 3scale-operator
          - catalog: oci:///app1/ibm-catalog
            targetTag: "v14"
            targetCatalog: "zhouy/catalog"
          - catalog: oci:///app1/noo/redhat-operator-index
            packages:
              - name: cluster-kube-descheduler-operator
              - name: advanced-cluster-management
      
      `oc-mirror --config config.yaml --v2 docker://xxx.com:5000/m2m  --workspace file:///app1/0416/clid20/`
      
      2) generate pruning plan for delete phase using --generate
      cat config-delete.yaml 
      apiVersion: mirror.openshift.io/v1alpha2
      kind: DeleteImageSetConfiguration
      delete:
        platform:
          channels:
            - name: stable-4.15
        additionalImages: 
          - name: registry.redhat.io/ubi8/ubi:latest
          - name: registry.redhat.io/ubi8/ubi-minimal:latest
        operators:
          - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.14
            packages:
            - name: 3scale-operator
          - catalog: oci:///app1/ibm-catalog
            targetTag: "v14"
            targetCatalog: "zhouy/catalog"
          - catalog: oci:///app1/noo/redhat-operator-index
            packages:
              - name: cluster-kube-descheduler-operator
              - name: advanced-cluster-management
      
      
      `oc-mirror delete --config config-delete.yaml --workspace file://clid20 --v2 --generate  docker://xxx.com:5000/m2m`

      Actual results: 

      2) Many errors for generate command: 
      
      2024/04/22 10:02:29  [ERROR]  : reading manifest d8e94620237da97e1b65dac4fb616d21d13e2fea08c9385145a02ad3fbd59d88 in localhost:55000/3scale-amp2/3scale-rhel7-operator-metadata: manifest unknown image : map[]
      2024/04/22 10:02:29  [ERROR]  : [delete-images] reading manifest d8e94620237da97e1b65dac4fb616d21d13e2fea08c9385145a02ad3fbd59d88 in localhost:55000/3scale-amp2/3scale-rhel7-operator-metadata: manifest unknown
      2024/04/22 10:02:29  [ERROR]  : reading manifest 4f72f049436af1a940833c61b075d84ad5910c7bb2df2a8de99618995c067dfe in localhost:55000/3scale-amp2/3scale-rhel7-operator: manifest unknown image : map[]
      2024/04/22 10:02:29  [ERROR]  : [delete-images] reading manifest 4f72f049436af1a940833c61b075d84ad5910c7bb2df2a8de99618995c067dfe in localhost:55000/3scale-amp2/3scale-rhel7-operator: manifest unknown
      2024/04/22 10:02:29  [ERROR]  : reading manifest 4f72f049436af1a940833c61b075d84ad5910c7bb2df2a8de99618995c067dfe in localhost:55000/3scale-amp2/3scale-rhel7-operator: manifest unknown image : map[]
      2024/04/22 10:02:29  [ERROR]  : [delete-images] reading manifest 4f72f049436af1a940833c61b075d84ad5910c7bb2df2a8de99618995c067dfe in localhost:55000/3scale-amp2/3scale-rhel7-operator: manifest unknown
      2024/04/22 10:02:29  [ERROR]  : reading manifest 68b310ed3cfd65db893ba015ef1d5442365201c0ced006c1915e90edb99933ea in localhost:55000/3scale-amp2/apicast-gateway-rhel8: manifest unknown image : map[]
      2024/04/22 10:02:29  [ERROR]  : [delete-images] reading manifest 68b310ed3cfd65db893ba015ef1d5442365201c0ced006c1915e90edb99933ea in localhost:55000/3scale-amp2/apicast-gateway-rhel8: manifest unknown
      2024/04/22 10:02:29  [ERROR]  : reading manifest 2b8525c55cfbd5b5d66b50868ebd8fe6f468b10715653d047cdae25fa28e5983 in localhost:55000/3scale-amp2/backend-rhel8: manifest unknown image : map[]
      2024/04/22 10:02:29  [ERROR]  : [delete-images] reading manifest 2b8525c55cfbd5b5d66b50868ebd8fe6f468b10715653d047cdae25fa28e5983 in localhost:55000/3scale-amp2/backend-rhel8: manifest unknown
      2024/04/22 10:02:29  [ERROR]  : reading manifest 97e6355fcfadf7fea1f30cc8bbf833c8a518655cef4d63051df29fbcde2c1f00 in localhost:55000/3scale-amp2/memcached-rhel7: manifest unknown image : map[]
      

      Expected results:

      2) no error

            luzuccar@redhat.com Luigi Mario Zuccarelli
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: