OS & CPU Tab Fails to Load in Template Creation

When selecting OS&CPU in the Create Template, I just get a blank page in the browser - WHY ?

Early December last year, stopped the PoC because of this, but I thought I would continue this year, and still the same issue.

Tried restarting services, restarting the server. different accounts, different browsers, Edge, Chrome and Firefox

Opennebula 7.0.1

Hello Andrew,

We have been checking release 7.0.1, but we are not able to reproduce the error. It would be very helpful if you could provide us with some additional information.

Please open Sunstone in Chrome and open the DevTools console by pressing F12. Once the console is open, click on the OS & CPU tab. An error should appear in the console; please copy that error and send it to us.

Additionally, any details about your environment would be helpful (for example, whether this is a fresh OpenNebula installation, whether you have hosts configured, if you are using KVM, etc.).

Kind regards,

There are 4 errors (RED), and 34 warnings (yellow) - here are the RED errors
react-dom.production.min.js:216 TypeError: Cannot read properties of undefined (reading ‘split’)
at Host.js:139:50
at Array.map ()
at Te (Host.js:139:6)
at values (cpuModelSchema.js:54:26)
at FormWithSchema.js:393:25
at Array.reduce ()
at FormWithSchema.js:387:36

react-dom.production.min.js:216 TypeError: Cannot read properties of undefined (reading ‘split’)
at Host.js:176:48
at Array.map ()
at Ae (Host.js:176:6)
at values (bootSchema.js:71:25)
at FormWithSchema.js:393:25
at Array.reduce ()
at FormWithSchema.js:387:36

react-dom.production.min.js:123 Uncaught TypeError: Cannot read properties of undefined (reading ‘split’)
at Host.js:139:50
at Array.map ()
at Te (Host.js:139:6)
at values (cpuModelSchema.js:54:26)
at FormWithSchema.js:393:25
at Array.reduce ()
at FormWithSchema.js:387:36

This is a fresh installaton of Opennebula 7.0.1.

Everything was configured by the installation.

Hello Andrew,

The KVM_CPU_MODELS attribute is not present on one of your hosts, and this is causing the failure. We will fix this in future versions of OpenNebula.

In the meantime, to continue with your PoC, please follow these steps:

  1. Check whether any of your hosts are missing the KVM_CPU_MODELS attribute. You can verify this using the CLI:

    onehost show <idHost>
    
    
  2. For any host that does not have the KVM_CPU_MODELS attribute, update the host using the CLI:

    onehost update <idHost>
    
    
  3. Add the attribute KVM_CPU_MODELS=“” (with an empty value).

  4. Refresh Sunstone and check the OS & CPU tab again.

Also, could you let us know how the host is configured?

Thanks!

We just installed via minione, so it looks like this

admin@host:~$ onehost show 0
HOST 0 INFORMATION
ID                    : 0
NAME                  : host
CLUSTER               : cluster
STATE                 : MONITORED
IM_MAD                : collectd
VM_MAD                : kvm
LAST MONITORING TIME  : -

HOST SHARES
RUNNING VMS           : 2
MEMORY
  TOTAL               : 125.6G
  TOTAL +/- RESERVED  : 125.6G
  USED (REAL)         : 0K
  USED (ALLOCATED)    : 896M
CPU
  TOTAL               : 1200
  TOTAL +/- RESERVED  : 1200
  USED (REAL)         :
  USED (ALLOCATED)    : 110

MONITORING INFORMATION
HYPERVISOR="kvm"
IM_MAD="collectd"
VERSION="7.0.1"
VM_MAD="kvm"

NUMA NODES

  ID CORES        USED FREE
   0 - - - - - -  0    6
   1 - - - - - -  0    6

NUMA MEMORY

 NODE_ID TOTAL    USED_REAL            USED_ALLOCATED       FREE
       0 62.6G    -                    0K                   -
       1 63G      -                    0K                   -

NUMA HUGEPAGES

 NODE_ID SIZE     TOTAL    FREE     USED
       0 2M       0        -        0
       0 1024M    0        -        0
       1 2M       0        -        0
       1 1024M    0        -        0

WILD VIRTUAL MACHINES

NAME                                                      DEPLOY_ID  CPU     MEMORY

VIRTUAL MACHINES

  ID USER     GROUP    NAME                                                               STAT  CPU     MEM HOST                                               TIME
  34 admin    oneadmin Ttylinux - KVM-34                                                  runn  0.1    128M host                                           1d 18h31
  33 admin    oneadmin Service WordPress - KVM-33                                         runn    1    768M host                                           1d 20h56

We updated and now have

HYPERVISOR=“kvm”
IM_MAD=“collectd”
KVM_CPU_MODELS=“”
VERSION=“7.0.1”
VM_MAD=“kvm”

and it’s not made any difference

Hello Andrew,

The IM_MAD attribute on the host is not correct; it should be set to “kvm”. Please follow the steps below:

  1. Use onehost update to change IM_MAD to "kvm".

  2. Execute onehost sync --force.

  3. Execute onehost forceupdate.

Please perform these steps and let us know whether the issue is resolved.

Thanks!

We were thinking of uninstalling and re-installing and trying again.

okay, lets change that, our posts crossed, no idea why that is what it is!

Thank you FIXED!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.