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

kubevirt-plugin error blockes OCP console from loading

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 4.12
    • None
    • None
    • Approved
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      kubevirt-plugin loading errors will block OCP console

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

      OpenShift Virtualization 4.11.0
      4.12.0-0.nightly-2022-10-25-210451

      How reproducible:

      Always

      Steps to Reproduce:

      1. Install OpenShift Virtualization v4.11.0, once operator is successfully installed, 'kubevirt-plugin' will be automatically enabled
      $ oc get csv -n openshift-cnv
      NAME                                       DISPLAY                            VERSION   REPLACES                                   PHASE
      kubevirt-hyperconverged-operator.v4.11.0   OpenShift Virtualization           4.11.0    kubevirt-hyperconverged-operator.v4.10.5   Succeeded
      $ oc get console.operator cluster -o json | jq .spec.plugins                              
      [
        "kubevirt-plugin"
      ]
      2. Visit OCP web console, console can not be loaded
      3. Try to disable kubevirt-plugin to unblock OCP console, but 'kubevirt-plugin' will still be enabled automatically
      $ oc patch consoles.operator.openshift.io cluster --patch '{ "spec": { "plugins":null } }' --type=merge
      console.operator.openshift.io/cluster patched $ while true; do oc get console.operator cluster -o json | jq .spec.plugins; sleep 5; done
      null
      null
      null
      null
      null
      null
      null
      null
      null
      null
      [
        "kubevirt-plugin"
      ]
      [
        "kubevirt-plugin"
      ]
      [
        "kubevirt-plugin"
      ]
      [
        "kubevirt-plugin"
      ]
      [
        "kubevirt-plugin"
      ]
      [
        "kubevirt-plugin"
      ]
      [
        "kubevirt-plugin"
      ]
      

      Actual results:

      2. OCP console can not be loaded, we can see errors:
      TypeError: Cannot read properties of undefined (reading 'kind')
          at main-chunk-a11a42254eb484c06c56.min.js:1:1
          at main-chunk-a11a42254eb484c06c56.min.js:1:1
          at Array.some (<anonymous>)
          at main-chunk-a11a42254eb484c06c56.min.js:1:1
          at Object.useMemo (vendors~main-chunk-9d2f3b76c436a200a7e4.min.js:172233:1)
          at t.useMemo (vendors~main-chunk-9d2f3b76c436a200a7e4.min.js:172200:1)
          at f (main-chunk-a11a42254eb484c06c56.min.js:1:1)
          at na (vendors~main-chunk-9d2f3b76c436a200a7e4.min.js:172233:1)
          at Hs (vendors~main-chunk-9d2f3b76c436a200a7e4.min.js:172233:1)
          at wc (vendors~main-chunk-9d2f3b76c436a200a7e4.min.js:172233:1)

      Expected results:

      2. it looks like there are some errors when loads kubevirt-plugin, kubevirt-plugin should fix the error or else console should deal with errors and continue loading

      Additional info:

       

       

              tnisan@redhat.com Tal Nisan
              rhn-support-yapei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: