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

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

XMLWordPrintable

    • Moderate
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, when a `BindableKinds` resource did not have a status, the web console crashed, fetching and showing the same data in a loop. With this fix, you can set the `BindableKinds` resource status array to `[]`, expecting it to exist without a status field. As a result, the web browser or the application does not crash. (link:https://issues.redhat.com/browse/OCPBUGS-4072[OCPBUGS-4072*])
      Show
      * Previously, when a `BindableKinds` resource did not have a status, the web console crashed, fetching and showing the same data in a loop. With this fix, you can set the `BindableKinds` resource status array to `[]`, expecting it to exist without a status field. As a result, the web browser or the application does not crash. (link: https://issues.redhat.com/browse/OCPBUGS-4072 [ OCPBUGS-4072 *])
    • Done

      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.

              cjerolim Christoph Jerolimov
              openshift-crt-jira-prow OpenShift Prow Bot
              Sanket Pathak Sanket Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: