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

KubeVirt plugin fails to load properly in local dev mode


    • Icon: Bug Bug
    • Resolution: Can't Do
    • Icon: Major Major
    • None
    • 4.15.0
    • Management Console
    • None
    • Important
    • No
    • False
    • Hide



      Description of problem:

      When I try to load console in the browser one of three things happens:

      1. The page loads normally
      2. The page loads, but the virtualization plugin isn't loaded
      3. The page doesn't load

      When situation #2 happens the following error is displayed in the browser console:

      Failed to get a valid plugin manifest from /api/plugins/kubevirt-plugin/ SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

      Chunks from the plugin don't have the Content-Encoding and Content-Type properties when the page fails to load.


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


      How reproducible:

      100% for me, but not all kubevirt UI team members are experiencing the issue.

      Steps to Reproduce:

      1. Clone the kubevirt-plugin repo and check out the main branch
      2. Run 'yarn dev' from the plugin root directory
      3. Set the BRIDGE_PLUGINS environment variable to "kubevirt-plugin=http://localhost:9001"
      4. Start the console bridge
      5. Refresh the page 1-2 times

      Actual results:

      After refreshing, the page will load without the kubevirt plugin or won't load at all.

      Expected results:

      The page will load with the kubevirt plugin after every refresh.

      Additional info:

      The page will load correctly if the cache is cleared, but additional reloads will cause the page to crash again.

            jhadvig@redhat.com Jakub Hadvig
            phbailey@redhat.com Phillip Rhodes
            YaDan Pei YaDan Pei
            0 Vote for this issue
            4 Start watching this issue