Hi,
I'm trying to get host utilization statistics using the workflow posted here:
The problem is the returned information doesn't change on subsequent runs, even though showing changed on vCenter .
Tried disabling inventory service within /opt/vmo/app-server/server/vmo/conf/vmo.properties , but didn't help.
None of the following helped too:
esxHost.reload();
VcPlugin.refreshObjects(esxHost);
VcPlugin.refreshObjects(esxHost.parent);
Additional info:
vCO Appliance v5.1.1.0
vSphere v5.1.0u1
Hosts are part of a Cluster
Any help highly appreciated.
Mehran
This is the solution:
1- Upgrade the vSphere Plug-In to the latest preview version from here:
Technical Preview Version of VMware vCenter Orchestrator Plug-In for VMware vSphere 5.1.2
2- Disable the inventory service in vCO by editing "/opt/vmo/app-server/server/vmo/conf/vmo.properties" and adding the following line:
com.vmware.o11n.vim.useInventoryService=false
3- Restart the vCO daemon either via web interface or "/etc/init.d/vcod restart" within shell.
4- Refresh host data in the work flow before getting the stats with:
VcPlugin.refreshObjects(esxHost);
I hope this helps someone.
This is the solution:
1- Upgrade the vSphere Plug-In to the latest preview version from here:
Technical Preview Version of VMware vCenter Orchestrator Plug-In for VMware vSphere 5.1.2
2- Disable the inventory service in vCO by editing "/opt/vmo/app-server/server/vmo/conf/vmo.properties" and adding the following line:
com.vmware.o11n.vim.useInventoryService=false
3- Restart the vCO daemon either via web interface or "/etc/init.d/vcod restart" within shell.
4- Refresh host data in the work flow before getting the stats with:
VcPlugin.refreshObjects(esxHost);
I hope this helps someone.
Hello ! I'm facing the same issue for quite some time now, I tried your solution but it doesn't work for me.
I always have the same values from my workflow, the only way i found to refresh the data is to right-click on the vcenter instance in the inventory tab and click reload.But I can't use this way because i have to fully automate the checking of my data without any human clicking. So is there a way to call that reload button from the API ?
Thanks !