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

console always query 'openshift' CSVs when listing namespaced operator details

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.16
    • Management Console
    • None
    • Low
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      console always send GET CSV requests to 'openshift' namespace even copiedCSV is not disabled

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

      4.16.0-0.nightly-2024-05-15-001800    

      How reproducible:

      Always    

      Steps to Reproduce:

          1. Install operator into a specific namespace on the cluster(Operator will be available in a single Namespace only.) for example, subscribe APIcast into project 'test'
          2. Check if copiedCSV is disabled
          >> window.SERVER_FLAGS.copiedCSVsDisabled 
          <- false      // copiedCSV is NOT disabled
      
      $ oc get olmconfig cluster -o json | jq .status.conditions
      [
        {
          "lastTransitionTime": "2024-05-15T23:16:50Z",
          "message": "Copied CSVs are enabled and present across the cluster",
          "reason": "CopiedCSVsEnabled",
          "status": "False",
          "type": "DisabledCopiedCSVs"
        }
      ]
           3. monitor the browser console errors when check operator details via Operators -> Installed Operators -> click on the operator APIcast 
          

      Actual results:

      3. we can see a GET CSV request to 'openshift' namespace is sent and 404 was returned
      GET
      https://console-openshift-console.apps.qe-daily-416-0516.qe.devcluster.openshift.com/api/kubernetes/apis/operators.coreos.com/v1alpha1/namespaces/openshift/clusterserviceversions/apicast-community-operator.v0.7.1    

      Expected results:

      3. copiedCSV is not disabled, probably we should not send request to query CSVs from 'openshift' namespace 

      Additional info:

       

            rh-ee-ndhevar Nitin Dhevar
            rhn-support-yapei YaDan Pei
            Yanping Zhang Yanping Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: