VMware Cloud Community
nimroddicker
Contributor
Contributor

Problem reading objects from vCloud Director plugin.

Hi all,

I'm running into odd issue when using vCO(4.2) with vCloud Director Plugin (1.5).

Whenever I'm using the vCloud Plugin I can see all of the vApps(In inventory) but I can't see the VM's inside (it's random, some of the vApps are empty and in some I can see VM's).

When using the object (vCloud:vApp) I get this message: "DynamicWrapper (Instance) : [VclVM]-(class com.vmwre.vmo.plugin.vcloud.model.VM] --VLUE: com.vmwre.vmo.plugin,vcloud.model.Vapp@a2db72f3"

I'm having problems troubleshooting this issue, is it a known issue?  

If not where can I find log \ other methods for troubleshooting this issue.

Thanks,

Nimrod

0 Kudos
8 Replies
abhilashhb
VMware Employee
VMware Employee

Hi Nimrod,

Have you connected the vCD to vCO using the System organization? If not please do it and then see if it works.

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos
nimroddicker
Contributor
Contributor

Thanks for the quick response Abhilash,

I'm connected to vCD using System org,

Any other ideas?

0 Kudos
Dan_Linsley
VMware Employee
VMware Employee

Could the cache in VCO be out of date?

Like the vCenter plugin, the Cloud Director plugin has a cache but it does not automatically update the cache like the vCenter plugin.

If the VMs were added to the vApp outside of VCO, you would not see them in VCO until after you run the updateInternalState() method on the vApp in VCO.

0 Kudos
Ethan44
Enthusiast
Enthusiast

Hi

Welcome to the communities.

Did you  tried to repairer add-on tool?

"I never look back, it distracts me from the now"
0 Kudos
nimroddicker
Contributor
Contributor

Hi,

I'm not familiar with this
tool, can you please give me some more details about this tool?

0 Kudos
nimroddicker
Contributor
Contributor

Hi Dan,

Thanks for the reply,

I'm using updateInternalState() in my workflow, it seems to have no effect
regarding the plugin behavior.

It seems that the first time when using any object from vCD the object
becomes invalid.

0 Kudos
Eichenbaum
Contributor
Contributor

Similar concern... In my case, the method:

     System.log(Host.configManager.dateTimeSystem.queryAvailableTimeZones());

Returns:

     DynamicWrapper (Instance) : [VcHostDateTimeSystemTimeZone]-[class com.vmware.vim.vi4.HostDateTimeSystemTimeZone] -- VALUE : com.vmware.vim.vi4.HostDateTimeSystemTimeZone@3dc8d

I'd expected an array as indicated in the API doc.

Is this result a reference that I need to further parse/evaluate?

Thoughts, ideas, help?

0 Kudos
tschoergez
Leadership
Leadership

I think you are talking about the vCenter API?

The log shows that you are acutally getting back an array of VcHostDateTimeSystemTimeZone elements (what a long class name :-), marked with the square bracket [ ] around the class name.

It just does not mention the word array anywhere.

So you should be able to loop through the result, and get the attributes you want for each object.

Cheers,

Joerg

0 Kudos