VMware Cloud Community
tomer_leib
Contributor
Contributor

Automating vCloud Director tasks

Hi Guys,

I am new to Orchestrator and I need some guidance\advise here.

I'm looking for a way to create an automatic workflow so every new vDC that is created in our vCloud Director will be connected to direct network.

We're currently working on automating the Org and vDC creation using external system, but got blocked on the network part, which means that the current process is semi-automatic, since we must configure manually the network to each vDC.

So guro's and masters, please share with me some of your knowledge here Smiley Happy

0 Kudos
10 Replies
cdecanini_
VMware Employee
VMware Employee

Welcome !

First get the vCloud Director Plug-in matching your vCloud Director (look at the documents section here if you have a version requiring a most recent update). Once configured, check you can unfold your inventory.

Then look at the workflows provided in the library to see if they suit your needs. Try to get your workflow together using as many wf / actions from the library.

Lastly you may check the vCD notification package in the document section. This may help you to automatically trigger your workflow once the VDC had been created.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
tomer_leib
Contributor
Contributor

First of all, thanks for the fast response!

I must say that I'm sort of lost here, I can unfold and see the objects, but when I'm trying to use the workflow "Add an organization vDC network" it fails with the first process "toAdminObjectVdc" and not processing any longer.

0 Kudos
cdecanini_
VMware Employee
VMware Employee

You may have misconfigured the plug-in with using a specific organization instead of using system.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
tomer_leib
Contributor
Contributor

The plugin is configured using those settings:

User - administrator@system

Organization - system

Authentication - Basic with Shared Session

Did I missed something?

0 Kudos
cdecanini_
VMware Employee
VMware Employee

What is the error ? What version of vCD is this ?

Do you have a load balancer ?

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
tomer_leib
Contributor
Contributor

vCD - 5.5

No load balancer

The exception is:

TypeError: Cannot find function toAdminObject in object notfound. (Dynamic Script Module name : toAdminObjectVdc#1)

0 Kudos
cdecanini_
VMware Employee
VMware Employee

The object is not found. Can you check if you see it in the inventory ? Does it have an URL that is matching

Do you have the same host name in the plug-in configuration and in the configured vCD public API address ?

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
tomer_leib
Contributor
Contributor

Under Inventory I can see list of all vCD objects, should search for specific object there?

Yes, same URL and host name is configured.

0 Kudos
Burke-
VMware Employee
VMware Employee

I suspect you didn't quite understand what Christophe asked.... This point is VERY important and is the leading cause of object not found error:

1) Check the vCloud Director configuration under vCloud Director's web UI, under System, Public REST API URL

2) Check the vCD Plug-in configuration in vCO

The URL configured in step 2 MUST match the URL used in the vCD plug-in.

vCO sends an API call to the URL configured in the plug-in configuration....

vCD responds with XML containing URL links configured with the Public REST API URL...

When these two URLs don't match, the object not found error appears Smiley Wink

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos
tomer_leib
Contributor
Contributor

Hi Guys,

I did understand Christophe.

1. The vCD URL is vcloud.mydomain.com, when I check the settings for the REST API URL, it is empty, means that there is no special URL for the API.

2. The plug-in is configured to use the same URL.vcloud.PNG

0 Kudos