You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fails to list VMs on ESXi server.
This occurred with XO running on XCP-NG, built another XO on ESXi and have the same issue. Both running on Ubuntu 22.04.4 LTS.
Error message
From Logs:
esxi.listVms
{
"host": "10.0.0.113",
"user": "root",
"password": "* obfuscated *",
"sslVerify": false
}
{
"message": "Cannot read properties of undefined (reading 'committed')",
"name": "TypeError",
"stack": "TypeError: Cannot read properties of undefined (reading 'committed')
at storage.perDatastoreUsage.reduce.used (file:///opt/xo/xo-builds/xen-orchestra-202407081132/@xen-orchestra/vmware-explorer/esxi.mjs:301:41)
at Array.reduce (<anonymous>)
at file:///opt/xo/xo-builds/xen-orchestra-202407081132/@xen-orchestra/vmware-explorer/esxi.mjs:298:38
at Array.map (<anonymous>)
at Esxi.getAllVmMetadata (file:///opt/xo/xo-builds/xen-orchestra-202407081132/@xen-orchestra/vmware-explorer/esxi.mjs:265:8)
at runNextTicks (node:internal/process/task_queues:60:5)
at processImmediate (node:internal/timers:449:9)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202407081132/@vates/task/index.js:169:22)
at Task.run (/opt/xo/xo-builds/xen-orchestra-202407081132/@vates/task/index.js:153:20)
at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202407081132/packages/xo-server/src/xo-mixins/api.mjs:384:20)"
}
From Tasks:
{
"id": "0lycwrzcs",
"properties": {
"method": "esxi.listVms",
"params": {
"host": "10.0.0.113",
"user": "root",
"password": "REMOVED",
"sslVerify": false
},
"name": "API call: esxi.listVms",
"userId": "916c95e9-6003-46f6-b112-55d3cd52ae65",
"type": "api.call"
},
"start": 1720438692796,
"status": "failure",
"updatedAt": 1720438693916,
"tasks": [
{
"id": "xca97ee6kbm",
"properties": {
"name": "connecting to 10.0.0.113"
},
"start": 1720438692797,
"status": "success",
"end": 1720438693797,
"result": {
"_events": {},
"_eventsCount": 0
}
}
],
"end": 1720438693909,
"result": {
"message": "Cannot read properties of undefined (reading 'committed')",
"name": "TypeError",
"stack": "TypeError: Cannot read properties of undefined (reading 'committed')\n at storage.perDatastoreUsage.reduce.used (file:///opt/xo/xo-builds/xen-orchestra-202407081132/@xen-orchestra/vmware-explorer/esxi.mjs:301:41)\n at Array.reduce (<anonymous>)\n at file:///opt/xo/xo-builds/xen-orchestra-202407081132/@xen-orchestra/vmware-explorer/esxi.mjs:298:38\n at Array.map (<anonymous>)\n at Esxi.getAllVmMetadata (file:///opt/xo/xo-builds/xen-orchestra-202407081132/@xen-orchestra/vmware-explorer/esxi.mjs:265:8)\n at runNextTicks (node:internal/process/task_queues:60:5)\n at processImmediate (node:internal/timers:449:9)\n at process.callbackTrampoline (node:internal/async_hooks:130:17)\n at Task.runInside (/opt/xo/xo-builds/xen-orchestra-202407081132/@vates/task/index.js:169:22)\n at Task.run (/opt/xo/xo-builds/xen-orchestra-202407081132/@vates/task/index.js:153:20)\n at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202407081132/packages/xo-server/src/xo-mixins/api.mjs:384:20)"
}
}
To reproduce
Go To Import > From VMware
Input ESXi server info
Click Connect
Expected behavior
Should fetch a list of VMs on the ESXi server to be able to import.
Screenshots
No response
Node
v20.15.0
Hypervisor
ESXi 8.0.3
Additional context
ESXi version: 8.0.3
ESXi build number: 24022510
XCP-NG: 8.2.1 release/yangtze/master/58
The text was updated successfully, but these errors were encountered:
Are you using XOA or XO from the sources?
XO from the sources
Which release channel?
None
Provide your commit number
30dd8
Describe the bug
Fails to list VMs on ESXi server.
This occurred with XO running on XCP-NG, built another XO on ESXi and have the same issue. Both running on Ubuntu 22.04.4 LTS.
Error message
To reproduce
Go To Import > From VMware
Input ESXi server info
Click Connect
Expected behavior
Should fetch a list of VMs on the ESXi server to be able to import.
Screenshots
No response
Node
v20.15.0
Hypervisor
ESXi 8.0.3
Additional context
ESXi version: 8.0.3
ESXi build number: 24022510
XCP-NG: 8.2.1 release/yangtze/master/58
The text was updated successfully, but these errors were encountered: