VMware Cloud Community
MehranA
Contributor
Contributor
Jump to solution

vCO gets outdated statistics from vCenter

Hi,

I'm trying to get host utilization statistics using the workflow posted here:

Get Host Effective Capacity

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

0 Kudos
1 Solution

Accepted Solutions
MehranA
Contributor
Contributor
Jump to solution

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.

View solution in original post

0 Kudos
2 Replies
MehranA
Contributor
Contributor
Jump to solution

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.

0 Kudos
AntLeguy
Enthusiast
Enthusiast
Jump to solution

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 !

0 Kudos