Uploaded image for project: 'Hybrid Application Console'
  1. Hybrid Application Console
  2. HAC-4896

[ROSA] Widget broken with a TypeError due to undefined ccs property while scaling default worker or any machine pool.

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • Infrastructure
    • False
    • False
    • None

      Description of problem:

      While scaling up a default worker node(also happens with other machine pools) of a ROSA cluster , widget was broken and thrown with an undefined css property type error as below.

      Browser console error as below.

       
      Uncaught TypeError: Cannot read properties of undefined (reading 'ccs')
          at _ (machinePoolsHelper.js:292:16)
          at o.value (EditNodeCountModal.jsx:140:35)
          at finishClassComponent (chrome-root.c4eb45000e0a54bf.js:41406:31)
          at updateClassComponent (chrome-root.c4eb45000e0a54bf.js:41352:24)
          at beginWork (chrome-root.c4eb45000e0a54bf.js:43265:16)
          at HTMLUnknownElement.callCallback (chrome-root.c4eb45000e0a54bf.js:25823:14)
          at HTMLUnknownElement.o (helpers.js:72:23)
          at Object.invokeGuardedCallbackDev (chrome-root.c4eb45000e0a54bf.js:25872:16)
          at invokeGuardedCallback (chrome-root.c4eb45000e0a54bf.js:25936:31)
          at beginWork$1 (chrome-root.c4eb45000e0a54bf.js:49105:7)
          at performUnitOfWork (chrome-root.c4eb45000e0a54bf.js:48214:12)
          at workLoopSync (chrome-root.c4eb45000e0a54bf.js:48120:5)
          at renderRootSync (chrome-root.c4eb45000e0a54bf.js:48088:7)
          at recoverFromConcurrentError (chrome-root.c4eb45000e0a54bf.js:47504:20)
          at performSyncWorkOnRoot (chrome-root.c4eb45000e0a54bf.js:47750:20)
          at flushSyncCallbacks (chrome-root.c4eb45000e0a54bf.js:33701:22)
          at chrome-root.c4eb45000e0a54bf.js:47305:13  

      See detailed recording  TypeErrorUndefinedCCSC.mp4

      How reproducible:

      always

      Steps to Reproduce:

      1. Open OCM UI staging.
      2. Open a ROSA cluster cluster.
      3. Go to machine pools tab and select context menu "scale" for a machine pool(select worker)
      4. Change the autoscaling to enable or provide min and max node counts.(disable the autoscale if it is already enabled)
      5. Save the changes by clicking "Apply" button and see the behavior.
      6. Repeat the step 4 & 5 with other machine pools.
      7. See the behavior. 

      Actual results:
      At step 5, Once user click "Apply" button , widget is broken and reported type error as above.

      Expected results:

      Node/machine pool definition should  save without any widget issues

              rawagner@redhat.com Rastislav Wagner
              jmekkatt@redhat.com Jayakrishnan Mekkattillam
              Archiver:
              rhn-support-sthamilt Stacey Hamilton
              Jayakrishnan Mekkattillam Jayakrishnan Mekkattillam

                Created:
                Updated:
                Resolved:
                Archived: