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

Should only show the mirrored packages under the catalog source with v2 format

XMLWordPrintable

    • Important
    • None
    • CLID Sprint 253, CLID Sprint 254
    • 2
    • Rejected
    • False
    • Hide

      None

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

      Description of problem:

      After mirror operators by v2 format and install the catalogsource , when check the web console , show there are 112 packages under the catalog , but actually we only mirrored 3 packages .

       

      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-202403251146.p0.g03ce0ca.assembly.stream.el9-03ce0ca", GitCommit:"03ce0ca797e73b6762fd3e24100ce043199519e9", GitTreeState:"clean", BuildDate:"2024-03-25T16:34:33Z", 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)  with following imagesetconfig:
      cat config.yaml 
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      mirror:
        operators:
          - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.15
            packages:
              - name: devworkspace-operator
                minVersion: "0.23.0"
              - name: quay-operator
                maxVersion: "3.10.2"
              - name: cluster-logging
                minVersion: 5.8.3
                maxVersion: 5.8.5
      
      `oc-mirror --config config.yaml file://out --v2`
      `oc-mirror --config config.yaml --from file://out --v2 docker://xx.com:5000/default`
      
        2)  install the catalog source , idms and itms resources  kind: ImageSetConfiguration
      
      
      3) check the operator from console  4) Create cluster resource with file: itms-oc-mirror.yaml
         `oc create -f cs-redhat-operator-index-8bfb449c24d03d6ddbd05d3de9fe7a7dae4a2ecdb8f84487f28d24d6ca2d175c.yaml`

      Actual results: 

      3)  After catalog source running , login the web-console , show there are 112 operators under the mirror catalog source
      
      oc get packagemanifests --selector=catalog=cs-redhat-operator-index-v4-15  -o=jsonpath='{.items[*].metadata.name}'
      windows-machine-config-operator rhpam-kogito-operator self-node-remediation amq-broker-rhel8 bare-metal-event-relay submariner file-integrity-operator multicluster-global-hub-operator-rh loki-operator kernel-module-management multicluster-engine rhbk-operator odr-hub-operator openshift-custom-metrics-autoscaler-operator cryostat-operator opentelemetry-product amq7-interconnect-operator mcg-operator rh-service-binding-operator fuse-apicurito sandboxed-containers-operator machine-deletion-remediation node-maintenance-operator logic-operator-rhel8 red-hat-hawtio-operator odr-cluster-operator kubernetes-nmstate-operator kubevirt-hyperconverged mtr-operator apicast-operator service-registry-operator netobserv-operator rhacs-operator local-storage-operator odf-multicluster-orchestrator odf-operator servicemeshoperator quay-operator 3scale-operator kernel-module-management-hub compliance-operator aws-load-balancer-operator datagrid skupper-operator nfd odf-csi-addons-operator security-profiles-operator metallb-operator tempo-product vertical-pod-autoscaler lifecycle-agent node-observability-operator elasticsearch-operator devworkspace-operator amq-streams ptp-operator costmanagement-metrics-operator tang-operator bamoe-kogito-operator lvms-operator openshift-builds-operator kiali-ossm klusterlet-product amq-online container-security-operator eap gatekeeper-operator-product numaresources-operator ingress-node-firewall ocs-operator rhods-operator openshift-gitops-operator advanced-cluster-management volsync-product cluster-observability-operator topology-aware-lifecycle-manager mtc-operator node-healthcheck-operator fuse-online mta-operator sriov-network-operator fence-agents-remediation rhdh ocs-client-operator rhsso-operator quay-bridge-operator redhat-oadp-operator run-once-duration-override-operator aws-efs-csi-driver-operator devspaces external-dns-operator ansible-automation-platform-operator openshift-pipelines-operator-rh power-monitoring-operator deployment-validation-operator web-terminal cincinnati-operator businessautomation-operator cluster-logging openshift-secondary-scheduler-operator jaeger-product dpu-network-operator cluster-kube-descheduler-operator gcp-filestore-csi-driver-operator rhods-prometheus-operator jws-operator ansible-cloud-addons-operator clusterresourceoverride authorino-operator openshift-cert-manager-operator red-hat-camel-k secrets-store-csi-driver-operator fuse-console bamoe-businessautomation-operator mtv-operator serverless-operator
      
      

      Expected results:

      3) Should only show the mirrored packages : devworkspace-operator/quay-operator/cluster-logging 

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

                Created:
                Updated:
                Resolved: