Task Virtual Machines failed
lucafwp opened this issue · comments
Luca Franzoi commented
Current Behavior
VM data are not collected correctly and the following error appears in daemon output as soon as it is started and connected to the vsphere environment:
[db] Task Virtual Machines failed. Undefined property: stdClass::$state: /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/DbObject/VirtualMachine.php (231)`
Also when clicking on a VM name from the list in the GUI the following error shows up and VM detail is not displayed:
Undefined property: stdClass::$state (VmNetworkAdapterTable.php:94)
#0 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Web/Table/VmNetworkAdapterTable.php(94): Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}()
#1 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Web/Table/VmNetworkAdapterTable.php(52): Icinga\Module\Vspheredb\Web\Table\VmNetworkAdapterTable->formatSimple()
#2 /usr/share/icingaweb2/modules/incubator/vendor/gipfl/icingaweb2/src/Table/QueryBasedTable.php(180): Icinga\Module\Vspheredb\Web\Table\VmNetworkAdapterTable->renderRow()
#3 /usr/share/icingaweb2/modules/incubator/vendor/gipfl/icingaweb2/src/Table/QueryBasedTable.php(115): gipfl\IcingaWeb2\Table\QueryBasedTable->fetchRows()
#4 /usr/share/icinga-php/ipl/vendor/ipl/html/src/BaseHtmlElement.php(323): gipfl\IcingaWeb2\Table\QueryBasedTable->renderContent()
#5 /usr/share/icinga-php/ipl/vendor/ipl/html/src/HtmlDocument.php(498): ipl\Html\BaseHtmlElement->renderUnwrapped()
#6 /usr/share/icingaweb2/modules/vspheredb/application/controllers/DetailSections.php(12): ipl\Html\HtmlDocument->render()
#7 /usr/share/icingaweb2/modules/vspheredb/application/controllers/DetailSections.php(24): Icinga\Module\Vspheredb\Controllers\VmController->section()
#8 /usr/share/icingaweb2/modules/vspheredb/application/controllers/DetailSections.php(32): Icinga\Module\Vspheredb\Controllers\VmController->addSection()
#9 /usr/share/icingaweb2/modules/vspheredb/application/controllers/VmController.php(55): Icinga\Module\Vspheredb\Controllers\VmController->addSections()
#10 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Vspheredb\Controllers\VmController->indexAction()
#11 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch()
#12 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch()
#13 /usr/share/php/Icinga/Application/Web.php(304): Zend_Controller_Front->dispatch()
#14 /usr/share/php/Icinga/Application/webrouter.php(109): Icinga\Application\Web->dispatch()
#15 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#16 {main}
Your Environment
- VMware vCenter®/ESXi™-Version: 7
- Version/GIT-Hash of this module: 1.7.1
- Icinga Web 2 version: 2.10.5
- Operating System and version: RHEL 8.8
- Webserver, PHP versions: 7.4.33