Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all 6251 articles
Browse latest View live

vCACCAFE:VCACHost not showing content that exists on tenant

$
0
0

When expanding the folders in a VCACHost object I'm only seeing a subset of the content that exists in a tenant. For example, when expanding one of the objects and going to Administration > Composite Blueprints, some of the composite blueprints are not shown however, they do exists as I can see them when using vRA tenant through a browser.

 

Any ideas why only a portion of the content is showing up in the VCACHost object in vRO?

 

vRO version: 7.3.0.5481809

Build number: 5481809

 

Plugin: vCACCAFE (vRealize Automation)

Version: 7.3.0


VRO - Display execution of Subworkflows

$
0
0

Hello,


I am very new to vRO that has been stood up in my environment.  Something I noticed is that some of my workflows display the execution of subworkflows underneath in the workflow runs.  This is immensely helpful in troubleshooting issues and displaying variables.  It also spawns a workflow run under the child workflow itself

 

I have noticed though, that not all calls to subworkflows are displayed.  I have tried to research and compare proprieties of workflows that display vs those that do not with no luck.  What determines if a subworkflow is displayed in the workflow run.

 

Example of a child run attached.

 

Thanks!
Cody

Add either a reboot or a power on element to a workflow.

$
0
0

I have a workflow that has a ForEach element that mounts an ISO to CDROM to an array of VMs.    This works great.  I would then like to reboot this array of VMs.  I added another ForEach [reboot vm] element and set the array to be traversed to be my VMs.I set the source parameter to be the VM attribute.  I run it and it attempts to work fine, until it hits a VM that is powered off.  IT then stops and errors out.  You can not reboot a VM that is powered off.  I guess I need to check the power state against the array and if the VM is powered off, I woudl like to power it on; if it is powered on, I would like to reboot it.  How would I go about this?

 

Thanks 

vRO third party plugin - workflow folder structure between of phase 1 does not get upgraded to phase 2 structure when plugin is upgraded.Can this be done and how?

$
0
0

Hi,

Our team has developed the first and second version of a third party plugin for one of our clients. 

The workflows in phase 1 were categorized in various subfolders. For phase 2 workflows, the sub folder structure was changed, and is different from phase 1 structure. THe workflows also have been moved to different folders in phase 2 from where they were in phase 1.

 

And this works fine when the phase 2 of plugin is installed afresh, we are able to see the new folder structure for all workflows. However, it was observed that when the plugin is upgraded from phase 1 to phase 2, the folder structure does not change. It stays the same as was in phase 1 and workflows too remain in the phase 1 structure.

 

How can we ensure that the new folder structure gets applied when the plugin version is upgraded (without uninstalling the previous version of plugin) ? 

Thanks in advance.

Where is Javadoc of Orchestrator Java SDK & SsoAuthenticator class?

$
0
0

Hi,

I am using VMware vRealize Orchestrator 7.3.0.

 

I trying to use Orchestrator Java SDK, having two questions.

 

1. Is there Javadoc for Orchestrator Java SDK?

I saw "https://<our-vro-server>/vco-repo/javadoc", but there is no package "com.vmware.o11n.sdk.rest.client".

Is it closed?

 

2. Where is SsoAuthenticator class?

This page has a sample code to auth by Single Sign-on.

Using vCenter Single Sign-On Authentication with the Orchestrator REST API

 

I already saw Accessing Objects in Third-Party Systems :

SsoAuthenticator class can be found in o11n-rest-client-sso.jar, part of vCO Java REST SDK.

But, our vRO's archetype repository doesn't have SsoAuthenticator.

Other classes like "VcoSessionFactory" is found in "o11n-rest-client-services" at "com.vmware.o11n" group.

 

 

Please let me know the answer. Thanks.

Upload File (ISO) to a datastore

$
0
0

I need a create  workflow that will upload a specific file to a datastore.  The destination will not change. I created a workflow and I created attributes for destFilePath, datacenter and datastore.  I have set the values to these.  The only item that I am asking for input is the srcFilePath.  I added ActionElement for FileUploadDatastore. I run this workflow and the I am getting invalid file/path for srcFilePath.  Trubleshooting, I simply tried to run the Upload a File Workflow.  It has the four inputs: Datacenter, Datastore, Source Path, Destination Path.  WHen i click on the field to select the Datacenter plugin, the session locks up.  Any ideas what is ocurring ?  Thx

 

Tom

requesting user in vro custom input

$
0
0

I am trying to create a vRA XaaS service that puts the user account that requested the service on a drop-down menu.  This is of course part of a much larger plan.  This is just testing how to get the user account data on that menu.

 

So, I created an action

---------------------------------------  Code ------------------------------------------------

var ans = ["fooy"];

var tenant;

var name;

try {

    tenant = vCACCAFEHost.tenant;

    name =  System.getContext().getParameter("__asd_requestedBy");

} catch (e) {

    ans = ["Exception", e];

}

 

ans = [ "testing", "tenant:" + tenant, "Req by:" + requestedBy, "Name:" + name, "done"];

return ans;

 

-----------------------------------------------------

 

Then I created a vRO Workflow for vRA to call

 

 

 

 

 

-----------------------------------------------------------------

 

Then create and run the XaaS blueprint.

But when I run it, All I get is

 

What am I missing here.  How do I get the account of the user requesting this blueprint on this menu?

 

The entire system is vRA 6.2.2 and vRO 6.,0.3

 

Thanks all,

Carl L.

 

    tenant = vCACCAFEHost.tenant;

Rookie question VC:StoragePod check whether SRDS is enabled

$
0
0

Hello all,

 

I'm a total novice in matters  vRealize Orchestrator and JavaScript and I hope that somebody can provide some initial aid.

 

While I have quite a lot of working experience with VMware vSphere the API stuff is pretty new to me.

 

In vRealize Orchestrator I want to create a workflow or maybe an action which uses a datastore cluster of type VC:StoragePod

as input and I want to retrieve some basic information about the give datastore cluster. For example I want to know whether 

SDRS is enabled or something like that.

 

For storage DRS  I found that in  VcStorageDrsPodConfigSpec there is the attribute "enabled" and there also is a

method called isEnabled. VcStorageDrsPodConfigInfo also has  "enabled" as an attribute.

 

My problem is that I currently have no clue how to access the attribute "enabled" for a given VC:StoragePod as I don't know

where to start. It would be great if someone can enlighten me how everything is related and connected and how to use it.

 

Kind regards,

 

Lars


import file in vro with utf8 encoding

$
0
0

Hello, I use the scripting class

new MimeAttachment(csvfilepath);

to import in VRO a CSV file,

the issue is that there are special caracters in the CSV file. How can I import the file in utf8 encoding? for vro to be able to understand special caracters?

is that possible?

thanks

how to asign a dv_port in a VM with a workflow

$
0
0

how to asign a dv_port in a VM with a workflow

Upgrade to vRO 7.3 from 6.x breaks Dynamic Types

$
0
0

I've noticed that vRO 7.3 came with Dynamic Types version 1.3 and it breaks all configurations from the version 1.0.x.

 

After the upgrade, all configurations are broken, all vRA Custom Resources, related XaaS Blueprints and related XaaS Actions are broken. Trying to fix all this is a very complicated and if you have a large deployment with several tenants its even worse.

 

Is there any way to upgrade in a way that all keep working?

 

D.

Empty Orchestrator Control Center

$
0
0

Hi,

 

I have deployed a vRO 7.3.

After a deployment I logged in to Orchestrator Control Center as root and configured vSphere Authentication mode as described here:

Configure a Standalone Orchestrator Server with vSphere Authentication .

 

Now I am not able to configure anything in Orchestrator Control Center.

When I Log in with SSO user who is member of configured Admin group I see empty page (see screenshot). There is the only header and footer but no link.

Capture.PNG

And I am not able to log in to Orchestrator Control Center as root because the login page is from sso and it cannot authenticate appliance local user.

 

Any idea what is wrong?

 

Thanks for help.

Pavel

automaticaly create a configurationElement attribute of type array of type

$
0
0

Hello

I have quite finished my Configuration Element automatisation with

Server.createConfigurationElement(category,name)

I am able to add attributes with

newElementCat.setAttributeWithKey(attrbname,attrbvalue);

 

but I can not find a solution to create a category of type array/ClusterComputeRessourse

the actions I found permit to update an array attribute but not to create one

 

does someone have a solution ?

Problem with limiting input options in vSphere web client

$
0
0

I am trying to streamline a VM provisioning workflow I have had for quite a while, but I am finding issues with making the inputs more targeted.  My intent is to use the vSphere web client as the interface, rather than launching the vCO/vRO client.  Is there something wrong with the vSphere client or am I doing something wrong here?  The environment is vSphere 6.5u1, vRO 7.3.0 with the replaced vSphere plugin.  I'm a couple of revs back on the plugin, but newer than the 'release' version.  We also have a full lab with all components, mirroring our production architecture.  Results are the same across both environments and I can test without impacting prod.

 

I have found this as an example of what I'm trying to do:

http://www.vcoportal.de/2014/05/vco-input-presentation/

 

Basically they re-point the root of the tree browser so that you don't have to 'drill down' to find the information you need.  I have a few places where I'm trying to do this, by different methods.  They all work rougly as expected in the vCO client but not in the vSphere client.  The results are varied, and sometimes mind boggling.  I'll go over a couple of different use cases

 

1. Folder selection

I want to have the person running the workflow select the folder to drop the VM into within the vSphere structure.  To make this happen I have two variables for the workflow which are defined as the 'vm' root that comes out of the box in the vSphere plugin, each one is for one of the vCenters. When you select the vCenter in a previous step, it sets a third variable, vcThisFolderRoot, to the corresponding vm root folder for that vC.  In the presentation I have this defined as the input

When you walk through the workflow, this is the result in the vRO client

but this is the same thing in the vSphere web client

Notice how I had to drill all the way down to get to 'vm' but it was the root in the vRO client.

 

2. Cluster selection.

I have two vCenters in ELM, you pick one and are supposed to pick the cluster to deploy your VM into.  The variable holding the two vCenters is this:

The presentation is like so:

When you select one, the next item, reqCluster, is dynamically set with this

The code in there is this:

GetAction("com.vmware.library.vc.cluster","getAllClusterComputeResourceForVimHost").call( #vcProd )

 

In vRO client you get a list of the clusters defined on only the selected vC.  In vSphere you get *all* clusters on both vC systems.

 

I have a couple of other uses, like picking ActiveDirectory OUs from an array of defined objects presented in a dropdown.  The objects come from the AD plugin.  Works as expected in vRO, but in vSphere it shows *every* returned OU, somehow.  This is just weird.  That makes me think the filtering is just straight up broken, but I don't see how it can even query that info.

vRO workflow to reconfigure the Num of vCPU for VM in vRA 6.2.3

$
0
0

Hi guys,

Anybody have an example of WF to reconfigure the Num of vCPU for vCAC:VirtulMachine ...?

 

Please advise.


target specific AD server in workflows

$
0
0

I've got a problem with active directory replication and creating computer accounts as part of my workflow.

 

I'm running vRO 7.2.

 

I have vRO + vcenter at site A, domain controller at site A and vms are created with site A as primary dns.

 

I have a esxi server in a remote site B but added to vcenter in site A. Computers/vms at site B point to B as their primary DNS.

 

Replication can be up to 15 minutes between site A and B so if I'm unlucky I'll get issues joining the domain and other fun stuff. (I have to pre-create computer accounts so if replication doesn't happen and I to contact a domain controller without that account when joining, it either takes a long time or times out)

 

Site A has always been my default and I just added site B but there doesn't seem to be a way to create or destroy computer accounts on site B. I only see a way to target a specific AD server in some of the get methods. Is there a way to target a specific AD_Host when doing other operations?

Timing Question

$
0
0

I have a WF that has two input, vm name and users.  This WF then creates an AD group based on the vm name and populates the selected users. Once that is done I am adding that group to the vm's local admin group. 

 

I would like to get the list of users to add as part of the provisioning process. I can add the WF as a XaaS component and get that list of users.  I can also call the WF through the event broker but then I wouldn't have that list of users that I need. I can create a seperate XaaS component that can get the list of users.

 

I]m not sure the best way to proceed.  Any suggestions?

Convert string array to object and add to an array of objects

$
0
0

I am reading in a string (comma separated user names)  and converting it to a string array. I am taking each item in my string array and searching AD for the user account.  I am storing the result into an AD:User variable.  I now need to add that variable to an Array/AD:User variable.

 

I am trying to use push but the error I get is that I cannot call method "push" of null.  When I add AD:User variable to a string array it works just fine. Google says the push method should work just fine. How do you add the AD:User variable to the Array/AD:User array?

Can't Import Certificate running Add Powershell Host Workflow

$
0
0

Running VRO 7.2.

 

I get this error when running Add Powershell Host Workflow:

[I] Manage SSL certificate called for URL->https://hostname:5986/wsman/

 

I don't understand why because I can punch that url into my browser and view the certificate under developer settings.

 

Everything is setup on the powershell host for winrm, the cert is even valid. I just don't understand why this is happening.

 

2017-06-23 16:19:45.583+0000 [WorkflowExecutorPool-Thread-1] DEBUG {:Add a PowerShell host:EF8180808080808080808080808080803D80808001270557368849c62c352aa82:token=ff8080815cd5b977015cd5c0739a0009} [WinRmPowerShellClient] handleStream STDERR buffer broker_serialize : The term "broker_serialize" is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + broker_serialize "$host" + ~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (broker_serialize:String) [], Co mmandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

 

 

So is this something I'm doing wrong? It doesn't seem like it. Did Microsoft push something in a patch? If so, please update your powershell plugin!

Workflow execution stack with errors

$
0
0

Hi,

 

I wrote these few lines:

 

var fileManager = VcPlugin.allSdkConnections[0].fileManager;

for each (datastore in myDatastores) {
     allVMXfiles = System.getModule("com.vmware.library.vc.datastore.files").getAllConfigFile(datastore);     for each (result in allVMXfiles) {          var myVMXfile = result.split("/")[1];          System.log("Backup of: " + result);          fileManager.copyDatastoreFile_Task(result, Datacenter, "[NFS] VMXsBackup/"+myVMXfile, Datacenter, false);     }
}

knowing that 'Datacenter' is declared at Workflow level as 'VC:Datacenter'

 

the execution does not work and here is output with errors that I need to understand:

Error in (Workflow:Get VM configuration files (VMX) 1.1 / Exporting VMDKs (item3)#13)

[2017-12-12 11:59:23.004] [E] Workfow execution stack:

***

item: 'Get VM configuration files (VMX) 1.1/item3', state: 'failed', business state: 'null', exception: ' (Workflow:Get VM configuration files (VMX) 1.1 / Exporting VMDKs (item3)#13)'

workflow: 'Get VM configuration files (VMX) 1.1' (03619ecb-6f9e-47ad-9971-d8a54f9750b7)

|  'attribute': name=datastores type=Array/VC:Datastore value=#{#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-12477'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10729'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10728'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10739'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10727'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10738'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10737'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10736'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10735'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10734'&dunesName='VC:Datastore'#;

|  'attribute': name=myDatastores type=Array/VC:Datastore value=#{#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-12477'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10729'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10728'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10739'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10727'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10738'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10737'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10736'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10735'&dunesName='VC:Datastore'#;#VC:Datastore#dunes://service.dunes.ch/CustomSDKObject?id='vcenter1/datastore-10734'&dunesName='VC:Datastore'#

|  'attribute': name=Datacenter type=VC:Datacenter value=__NULL__

|  'attribute': name=vCenterSDK type=VC:SdkConnection value=__NULL__

|  'no inputs'

|  'no outputs'

*** End of execution stack.

thanks a lot in advance

 

Fred

Viewing all 6251 articles
Browse latest View live