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

Endless rerender loop and a stuck browser on the add and topology page when SBO is installed

    XMLWordPrintable

Details

    • Moderate
    • No
    • ODC Sprint 232
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      Cause: The web console gets into a loop where it fetches and shows the same data again and again when a BindableKinds resource was found without a status.

      Consequence: The browser of the user got stuck or the application crashes.

      Workaround: Set the BindableKinds resource status array to [].

      Fix: Expecting that the BindableKinds resource can exist without a status field and ignore it in this case.

      Result: The browser doesn't get stuck anymore and the web console doesn't crash.
      Show
      Cause: The web console gets into a loop where it fetches and shows the same data again and again when a BindableKinds resource was found without a status. Consequence: The browser of the user got stuck or the application crashes. Workaround: Set the BindableKinds resource status array to []. Fix: Expecting that the BindableKinds resource can exist without a status field and ignore it in this case. Result: The browser doesn't get stuck anymore and the web console doesn't crash.
    • Proposed

    Description

      This is a clone of issue OCPBUGS-4072. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-4026. The following is the description of the original issue:

      Description of problem:
      There is an endless re-render loop and a browser feels slow to stuck when opening the add page or the topology.

      Saw also endless API calls to /api/kubernetes/apis/binding.operators.coreos.com/v1alpha1/bindablekinds/bindable-kinds

      Version-Release number of selected component (if applicable):
      1. Console UI 4.12-4.13 (master)
      2. Service Binding Operator (tested with 1.3.1)

      How reproducible:
      Always with installed SBO

      But the "stuck feeling" depends on the browser (Firefox feels more stuck) and your locale machine power

      Steps to Reproduce:
      1. Install Service Binding Operator
      2. Create or update the BindableKinds resource "bindable-kinds"

      apiVersion: binding.operators.coreos.com/v1alpha1
      kind: BindableKinds
      metadata:
        name: bindable-kinds
      

      3. Open the browser console log
      4. Open the console UI and navigate to the add page

      Actual results:
      1. Saw endless API calls to /api/kubernetes/apis/binding.operators.coreos.com/v1alpha1/bindablekinds/bindable-kinds
      2. Browser feels slow and get stuck after some time
      3. The page crashs after some time

      Expected results:
      1. The API call should be called just once
      2. The add page should just work without feeling laggy
      3. No crash

      Additional info:
      Get introduced after we watching the bindable-kinds resource with https://github.com/openshift/console/pull/11161

      It looks like this happen only if the SBO is installed and the bindable-kinds resource exist, but doesn't contain any status.

      The status list all available bindable resource types. I could not reproduce this by installing and uninstalling an operator, but you can manually create or update this resource as mentioned above.

      Attachments

        Issue Links

          Activity

            People

              jakumar jaivardhan Kumar
              openshift-crt-jira-prow OpenShift Prow Bot
              Sanket Pathak Sanket Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: