After upgrading vCO 5.5 to 5.5.1 I discovered to my dismay that it is now impossible to retrieve the vlan ID for a traditional portgroup; the reported vlanId is now always '0' (not null or undefined).
This is clearly a bug, and in my case it breaks all sorts of things.
I use the following code, which worked in 5.5:
var hosts=Server.findAllForType("VC:HostSystem");
var host=hosts[0];
allpg=host.config.network.portgroup
for (var n=0; n<allpg.length;n++) {
spec=allpg[n].spec;
var pgvlan=spec.vlanId
pgname=spec.name
System.log("Portgroup "+pgname+" has vlan "+pgvlan)
}
As of version 5.5.1, the vlan ID returned is always 0.
This is an issue with the inventory service. You can tell vCO to NOT use the inventory service by adding the following line to vmo.properties, then restarting your vco-server service:
com.vmware.o11n.vim.useInventoryService=false
VMware is aware of the issue and will resolve it in a future release. Until then, you can use the vmo.properties setting as a work-around
This is an issue with the inventory service. You can tell vCO to NOT use the inventory service by adding the following line to vmo.properties, then restarting your vco-server service:
com.vmware.o11n.vim.useInventoryService=false
VMware is aware of the issue and will resolve it in a future release. Until then, you can use the vmo.properties setting as a work-around
Have you opened a support request for this ?
Well, if I disable the inventory service I can't even access vcenter:
Which is bad
Then you definitely need to open an SR in case this is a known issue with a fix.
Yep, I did open an issue immediately after posting the thread here on the community.
Okay, I tried removing and readding one of my vcenters and either that, or the second restart of the vCO server, actually helped.
So now I am able to both access the vCenter inventory (whew) and the portgroupSpec contains the correct vlanId.
Thank you very much, Burke - that was a very quick response, impressive work
It seems that leveraging the inventory service has been the source of a lot of gaps like this one. You should be all set now.