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

Should only show the selected catalog when after apply the ICSP and catalogsource

    XMLWordPrintable

Details

    • Moderate
    • 13
    • CFE Sprint 234
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      The oc-mirror 4.12 version shows all the catalog content in the Openshift Console for OCI FBC operators (mirrored from a disk location).
      This results in confusion for the user as not all content of this catalog was mirrored.
      The fix consists in rebuilding the catalog image to reflect the mirrored content prior to pushing it to the destination registry.
      Show
      The oc-mirror 4.12 version shows all the catalog content in the Openshift Console for OCI FBC operators (mirrored from a disk location). This results in confusion for the user as not all content of this catalog was mirrored. The fix consists in rebuilding the catalog image to reflect the mirrored content prior to pushing it to the destination registry.
    • Bug Fix
    • Done

    Description

      Description of problem:
      After apply the ICSP and catalogsource should only show the selected catalog item but not all the items in the Source .

      version:
      oc-mirror version
      Client Version: version.Info

      {Major:"", Minor:"", GitVersion:"4.13.0-202212191656.p0.g159c539.assembly.stream-159c539", GitCommit:"159c5394ec582601b6e5a5685d8e5b09498ea24c", GitTreeState:"clean", BuildDate:"2022-12-19T17:14:17Z", GoVersion:"go1.18.4", Compiler:"gc", Platform:"linux/amd64"}

      Steps:
      1) use the config to filter catalog:

      cat imageset-copy.yaml 
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      mirror:
       operators:
       - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.11
         originalRef: registry.redhat.io/redhat/redhat-operator-index:v4.11
         packages:
         - name: cluster-kube-descheduler-operator
      

      `oc mirror --config imageset-copy.yaml --use-oci-feature --oci-feature-action=copy oci://my-oci-catalog`
      2) use the config to mirror :

      cat mirror.yaml 
      apiVersion: mirror.openshift.io/v1alpha2
      kind: ImageSetConfiguration
      mirror:
        operators:
          - catalog: oci:///home/ocmirrortest/Oci/my-oci-catalog/redhat-operator-index
            originalRef: registry.redhat.io/redhat/redhat-operator-index:v4.11
            packages:
              - name: cluster-kube-descheduler-operator
      

       `oc-mirror --config mirror.yaml --use-oci-feature --oci-feature-action=mirror docker://ec2-3-16-76-217.us-east-2.compute.amazonaws.com:5000/descheduler`
      3) apply the ICSP and catalogsource file;
      4) login in web-console to check the catalogsource

      Actual result:
      4) Show all items in the Source , see the attachments.

      expected result:
      4) Should only show the mirror item in the source .

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: