Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtual machines view is empty #5

Closed
vita2 opened this issue May 9, 2018 · 4 comments
Closed

virtual machines view is empty #5

vita2 opened this issue May 9, 2018 · 4 comments
Assignees
Labels

Comments

@vita2
Copy link

vita2 commented May 9, 2018

hello tom,

thanks for helping me out with #4. now i've initialized the connection to my esxi host. it is an small esxi 5.5 system on a Dell PowerEdge T110 II.

in icingaweb2 i can see some objects like the host systems and resource pools. unfortunately there aren't any virtual machines. i can see 14 vms in the object table in my database so i guess they will synced. only the assignment to the host system will not work.

vcenter_overview

vcenter_hosts

the first time i started the daemon i've spotted a error message regarding the soap client:

MainRunner::initialize()
SOAPClient: got 2.56 KiB response in 9.83ms
Loaded VCenter information for vCenter id=1 from DB
Ready to fetch id/name/parent list
SOAPClient: got 11.19 KiB response in 1014.22ms
Got id/name/parent for 32 objects
Storing object tree to DB
Committed 32 objects
Loading existing HostSystem from DB
Got 0 existing HostSystem
SOAPClient: got 3.32 KiB response in 1154.79ms
Got 1 HostSystem from VCenter
Ready to store HostSystem
HostSystem: 1 new, 0 modified, 0 deleted (got 1 from API)
Loading existing VirtualMachine from DB
Got 0 existing VirtualMachine
SOAPClient: got 557.00 B response in 1003.73ms
SoapFault in /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Api.php:231 with message:
#0 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Api.php(231): SoapClient->__soapCall('RetrievePropert...', Array)
#1 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/PropertyCollector.php(32): Icinga\Module\Vspheredb\Api->soapCall('RetrievePropert...', Array)
#2 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/PropertyCollector.php(58): Icinga\Module\Vspheredb\PropertyCollector->collectProperties(Array)
#3 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/DbObject/BaseDbObject.php(131): Icinga\Module\Vspheredb\PropertyCollector->collectObjectProperties(Object(Icinga\Module\Vspheredb\PropertySet\PropertySet), Object(Icinga\Module\Vsphered
b\SelectSet\VirtualMachineSelectSet))
#4 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/DbObject/BaseDbObject.php(258): Icinga\Module\Vspheredb\DbObject\BaseDbObject::fetchAllFromApi(Object(Icinga\Module\Vspheredb\Api))
#5 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/MainRunner.php(165): Icinga\Module\Vspheredb\DbObject\BaseDbObject::syncFromApi(Object(Icinga\Module\Vspheredb\DbObject\VCenter))
#6 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/MainRunner.php(73): Icinga\Module\Vspheredb\MainRunner->syncAllObjects()
#7 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/MainRunner.php(350): Icinga\Module\Vspheredb\MainRunner->Icinga\Module\Vspheredb\{closure}()
#8 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/MainRunner.php(80): Icinga\Module\Vspheredb\MainRunner->runFailSafe(Object(Closure))
#9 [internal function]: Icinga\Module\Vspheredb\MainRunner->Icinga\Module\Vspheredb\{closure}(Object(React\EventLoop\StreamSelectLoop))
#10 /usr/share/icingaweb2/modules/reactbundle/vendor/react/event-loop/src/Tick/NextTickQueue.php(44): call_user_func(Object(Closure), Object(React\EventLoop\StreamSelectLoop))
#11 /usr/share/icingaweb2/modules/reactbundle/vendor/react/event-loop/src/StreamSelectLoop.php(173): React\EventLoop\Tick\NextTickQueue->tick()
#12 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/MainRunner.php(125): React\EventLoop\StreamSelectLoop->run()
#13 /usr/share/icingaweb2/modules/vspheredb/application/clicommands/DaemonCommand.php(24): Icinga\Module\Vspheredb\MainRunner->run()
#14 /usr/share/php/Icinga/Cli/Loader.php(265): Icinga\Module\Vspheredb\Clicommands\DaemonCommand->runAction()
#15 /usr/share/php/Icinga/Application/Cli.php(149): Icinga\Cli\Loader->dispatch()
#16 /usr/share/php/Icinga/Application/Cli.php(139): Icinga\Application\Cli->dispatchOnce()
#17 /usr/bin/icingacli(7): Icinga\Application\Cli->dispatch()
#18 {main}
Resetting vSphereDB main runner for vCenter id=1
SOAPClient: got 378.00 B response in 9.92ms
Closed database connection for vCenter id=1
MainRunner::initialize()
Got new session cookie from VCenter
SOAPClient: got 2.56 KiB response in 9.48ms
Loaded VCenter information for vCenter id=1 from DB
Sending Login request to https://xxx.xxx.xxx.xxx/sdk
Got new session cookie from VCenter
SOAPClient: got 819.00 B response in 35.52ms
SOAPClient: got 547.00 B response in 1003.04ms
SOAPClient: got 396.00 B response in 1.14ms
SOAPClient: got 394.00 B response in 1.57ms
Got 0 events
SOAPClient: got 394.00 B response in 1.82ms
Got 0 events
SOAPClient: got 394.00 B response in 1.44ms
Got 0 events
SOAPClient: got 394.00 B response in 2.09ms
Got 0 events
SOAPClient: got 394.00 B response in 1.64ms
Got 0 events
SOAPClient: got 394.00 B response in 1.42ms
Got 0 events

i suspect you won't support such kind of old esxi systems but i would like to know if it is a compatibility issue or rather a bug.

Your Environment

  • Director version (System - About): master
  • vSphereDB version: 0218e75
  • Icinga Web 2 version and modules (System - About): 2.5.3
  • Icinga 2 version (icinga2 --version): r2.8.4-1
  • Operating System and version: Debian Jessie 8.10 (3.16.0-5-amd64)
  • Webserver, PHP versions: Apache2 2.4.10-10+deb8u + PHP 5.6.33-0+deb8u1
@Thomas-Gelf
Copy link
Contributor

CurlLoader.php has debugRequest and debugResponse. Please change the hard-coded if (true) { to false and try again. I'm interested in the full response, guess I'm asking for a property 5.5 doesn't know about, but I'd really love to support 5.5....

@vita2
Copy link
Author

vita2 commented May 9, 2018

thanks for your response, tom. i have changed both lines in CurlLoader.php for the full debug output. in cause of some sensible data included in the debug output i will send you the log per mail in the next minutes.

@Thomas-Gelf
Copy link
Contributor

Just for the records, problem was runtime.paused, which isn't available before API v6.0. As I'd really love to support v5.5, I'll look for a nice way to blacklist certain properties based on API version.

Thomas-Gelf added a commit that referenced this issue May 9, 2018
@Thomas-Gelf Thomas-Gelf self-assigned this May 9, 2018
@Thomas-Gelf Thomas-Gelf added the bug label May 9, 2018
@Thomas-Gelf
Copy link
Contributor

I tried to fix this, in case it doesn't work please do not hesitate to reopen this issue.

Cheers,
Thomas

Thomas-Gelf added a commit that referenced this issue May 10, 2018
@reelmom reelmom mentioned this issue Feb 7, 2019
mcodato pushed a commit to WuerthPhoenix/icingaweb2-module-vspheredb that referenced this issue Nov 7, 2022
)

Rename the module name in the side menubar

Approved-by: SI Development <si.development@wuerth-phoenix.com>
Approved-by: Gianluca Piccolo <gianluca.piccolo@wuerth-phoenix.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants