Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-32467

Disk modal is crashed if open it too quick

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • CNV v4.14.0
    • CNV v4.14.0
    • CNV User Interface
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ---
    • ---
    • Important
    • No

      Description of problem:

      Add disk modal is crashed if open it too quick, the error in devtools is:  main-chunk-a794fd62aa1b2208a636.min.js:1 unhandled error: Uncaught TypeError: Cannot read properties of null (reading 'spec') TypeError: Cannot read properties of null (reading 'spec')
          at ensurePath (https://console-openshift-console.apps.uit-414-auto.rhos-psi.cnv-qe.rhood.us/api/plugins/kubevirt-plugin/utils_resources_shared_ts-utils_resources_template_utils_selectors_ts-chunk.js:2349:25)
          at https://console-openshift-console.apps.uit-414-auto.rhos-psi.cnv-qe.rhood.us/api/plugins/kubevirt-plugin/utils_resources_shared_ts-utils_resources_template_utils_selectors_ts-chunk.js:2344:33
          at Array.forEach (<anonymous>)
          at ensurePath (https://console-openshift-console.apps.uit-414-auto.rhos-psi.cnv-qe.rhood.us/api/plugins/kubevirt-plugin/utils_resources_shared_ts-utils_resources_template_utils_selectors_ts-chunk.js:2344:15)
          at https://console-openshift-console.apps.uit-414-auto.rhos-psi.cnv-qe.rhood.us/api/plugins/kubevirt-plugin/utils_styles_ListPageCreateButton_scss-utils_components_AffinityModal_components_AffinityEdit-d1eab6-chunk.js:4329:80
          at produce (https://console-openshift-console.apps.uit-414-auto.rhos-psi.cnv-qe.rhood.us/api/plugins/kubevirt-plugin/vendors-node_modules_openshift-console_dynamic-plugin-sdk-internal_lib_api_common-types_js-no-cd364a-chunk.js:99:16178)
          at produceVMDisks (https://console-openshift-console.apps.uit-414-auto.rhos-psi.cnv-qe.rhood.us/api/plugins/kubevirt-plugin/utils_styles_ListPageCreateButton_scss-utils_components_AffinityModal_components_AffinityEdit-d1eab6-chunk.js:4328:61)
          at https://console-openshift-console.apps.uit-414-auto.rhos-psi.cnv-qe.rhood.us/api/plugins/kubevirt-plugin/utils_styles_ListPageCreateButton_scss-utils_components_AffinityModal_components_AffinityEdit-d1eab6-chunk.js:3816:90
          at Object.useMemo (https://console-openshift-console.apps.uit-414-auto.rhos-psi.cnv-qe.rhood.us/static/vendors~main-chunk-f867efda18dacd214d13.min.js:281:64802)
          at t.useMemo (https://console-openshift-console.apps.uit-414-auto.rhos-psi.cnv-qe.rhood.us/static/vendors~main-chunk-f867efda18dacd214d13.min.js:273:5743) TypeError: Cannot read properties of null (reading 'spec')
          at ensurePath (utils.ts:80:19)
          at utils.ts:75:29
          at Array.forEach (<anonymous>)
          at ensurePath (utils.ts:75:11)
          at helpers.ts:69:15
          at produce (immer.esm.mjs:1:16373)
          at produceVMDisks (helpers.ts:68:17)
          at DiskModal.tsx:107:37
          at Object.useMemo (vendors~main-chunk-f867efda18dacd214d13.min.js:179166:1)
          at t.useMemo (vendors~main-chunk-f867efda18dacd214d13.min.js:179133:1)

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

      4.14

      How reproducible:

       

      Steps to Reproduce:

      1. click Catalog
      2. click VirtualMachine
      3. select a VM
      4. click Configurations tab
      5. click "Add disk"

       

      Actual results:

      the disk modal is crashed when move quickly

      Expected results:

      the disk modal is opened

      Additional info:

       

              mschatzm@redhat.com Matan Schatzman
              gouyang1@redhat.com Guohua Ouyang
              Ying Cui Ying Cui
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: