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

What is a 'queue' in an Orchestrator error message.

$
0
0

Using the error message below as an example, what is a 'queue'? Is it a workflow token?

 

The following component requests failed: vSphere_vCenter_Machine_1. Request failed: <machine name>: sendEBSMessage17(workflow=<workflow id>) Error in state VMPSMasterWorkflow32.UnprovisionMachine phase PRE event (queue = <queue id>): Extensibility consumer error(20999) - HTTPError: status code: 404 (Workflow: <workflow name #1> / Check status code (item3)#1) and <machine name>: sendEBSMessage19(workflow=<workflow id>) Error in state VMPSMasterWorkflow32.MachineProvisioned phase PRE event (queue = <queue id #2>): Extensibility consumer error(20999) - HTTPError: status code: 500 (Workflow: <workflow name #2>/ Check status code (item3)#1).


Is there a vra or vro extension or plugin capability to add to the Application capabilities?

$
0
0

As an example, like most developers, source control is the lifeblood in any significantly complex system...Not a big fan of the versioning features that come with vra/vro - the 'diff' feature is not a diff...it shows the before and after, but WE have to do the 'diff' in our heads - REALLY???. So, is their an Application extension/plugin SDK so that I can say, as a simple example, add my own hook into the menu system which can run commands which checks into a REAL source control system?

 

And yes, I've seen the codestream features for versioning. Again - it's features are not source control they are merely history tracking. What I want (and I bet I'm not alone here) is third-party source control integration, to tie into the rest of our systems be it JIRA or TFS projects and bitbucket or TFSVC or TFS Git integration.

 

Is there some kind of vRO or vRA Application extensiblity SDK? Or if not, maybe some undocumented hooks that I can figure out?

Trying to Add VM Tags Via vRO Workflow

$
0
0

UPDATE: Just realized that for the property (vRA.Deployment.Tags) I only have the tag name entered in the Value column for the dropdown. Do I need to add a way to reference the tag category? Not sure how to add that to the property.

UPDATE 2: Doesn't look like the workflow requires a tag category. I'm trying to force the workflow to give me more information in the logs, see at what step it's failing.

 

Hey everybody,

Novice vRO user here (yaaaay) - so I've been tasked with having vRA assign 1 of 2 tags to every single VM when it's being created (for these examples, "Backup Tag 1" and "Backup Tag 2"). We're doing this to enable auto backups in Avamar.

Here's the site that I've been using: Assigning vCenter tags using vRealize Orchestrator – The vGoodie-bag

So far I have:

 

  1. In vRO client, run "Import vAPI metamodel" successfully.
  2. Imported this package: vCenterTagging/com.vGoodie-Bag.library.vapi.package at master · KnutssonDevelopment/vCenterTagging · GitHub
  3. Went to the setVcTags workflow in vRO (vGoodie-Bag > setVcTags) > edit > endpoint > changed to "https://[my vCenter FQDN]/api"
  4. Created property "vRA.Deployment.Tags" as a dropdown (X = Backup Tag 1, Y = Backup Tag 2) and added it to the Blueprint.
  5. (I already have a LifeCycle Property Group with pretty much all the "VMPSMasterWorkflow32" entries, plus two "CloneWorkflow" ones, so just made sure that was in the Blueprint as well.)
  6. Created a new Subscription: setVcTags > Machine provisioning > Lifecycle state name = "VMPSMasterWorkflow32.MachineActivated" > State phase = "POST" > selected the "setVcTags" workflow from the imported package > Finish
    1. NOTE: This is one of the steps where I got confused, since they mention sorting workflows in vRO but don't give any information at all - I'm assuming the fact that I chose a state phase when creating the subscription means I'm good?

 

Now when I build a VM in vRA, it successfully builds, and after a while vRO says that the setVcTags workflow ran successfully (under Logs it has two messages - "Settings vCenter Tags" and then "Tags: Backup Tag 1") - however, no Tags appear in vCenter for that VM.

 

I'm assuming I'm just missing something with how I've set this up in vRO - obviously vRA is calling the workflow because I see it running, but nothing's making it back to the VM. Maybe I haven't tied in the right action at the end of the workflow or something? I'm really sorry if I've missed something obvious, this is my second time trying any serious workflow, and the first one I'm piecing together myself.

 

Let me know if any other info is helpful, and I would love any suggestions of what to check next. Thanks!

Trying to use vCACCAFEEntitiesFinder.findCatalogResources - java.lang.reflect.InvocationTargetException

$
0
0

I am trying to get the following workflow to run. It has one vCACCAFE:VCACHost input bound to the script for selecting the vRAHost:

System.log ("vCACCAFEHostPlugin: " + vRAHost)

var filter = new Array();

filter[0] = vCACCAFEFilterParam.substringOf("owners/ref", vCACCAFEFilterParam.string("username@domain"));

var query = vCACCAFEOdataQuery.query().addFilter(filter).toString(); 

System.log("Query: " + query);

System.log("vRAHost " + vRAHost)

try{

var catResources = vCACCAFEEntitiesFinder.findCatalogResources(vRAHost,query);

}catch (e){

System.log(e);

}

When I run the above, it comes back with InternalError: java.lang.reflect.InvocationTargetException (Workflow:Get Machines....
 
Is there something going on with the vRA host we are trying to use?
 
Is there anyway to get any additional information from the error other than an InvocationTargetException?
 
 
Any assistance would be greatly appreciated.
 
 
Thank you,
 
Bob Wieberdink
 
 
var filter = new Array();
filter[0] = vCACCAFEFilterParam.substringOf("owners/ref", vCACCAFEFilterParam.string("aic2811@amway.com"));
var query = vCACCAFEOdataQuery.query().addFilter(filter).toString(); 
 
System.log("Query: " + query);
 
System.log("vRAHost " + vRAHost)
try{
 
var catResources = vCACCAFEEntitiesFinder.findCatalogResources(vRAHost,query);
 
}catch (e){
System.log(e);
}

REST client errors with vAPI endpoint

$
0
0

Just wanted to run this by the community to see if anyone observed this in their environments (vRO 7.2/vCenter 6.5)

Getting this error intermittently and not able to simulate on demand:

 

Status code 500

{"type":"com.vmware.vapi.std.errors.internal_server_error","value":{"messages":[{"args":["Rejecting login on a session where login failed"],"default_message":"Provider method implementation threw unexpected exception: Rejecting login on a session where login failed","id":"vapi.bindings.method.impl.unexpected"}]}} (Dynamic Script Module name : promiseTagCategory#74)

 

Line 74 would be this:

 

function getTagCategories(restHost,sessionID) {

    var request = restHost.createRequest("GET", "/com/vmware/cis/tagging/category");

    request.setHeader("vmware-api-session-id",sessionID);

    var response = request.execute();

    if (response.statusCode != 200) throw "Status code " + response.statusCode + "\n" + response.contentAsString;

    // Returning an array of tag category ids

    return (JSON.parse(response.contentAsString)).value;

}

 

Sounds like server side is the culprit but I am not certain what to look for on vCenter to debug further.

VMWare Orchestrator 7.2

$
0
0

Hi,

 

Our environment consists of two vRA appliances with Orchestrator, development and production.   We do all our development work in our dev vRO and use Codestream to migrate it across to our production vRO when it is ready and tested.

 

We require full read/write access in Dev, however would like to restrict our Production instance to read only for all users to allow them to view workflows and all workflow runs for troubleshooting, but no ability to make changes to any workflows.

 

I have configured a user with rights to "view, inspect and execute", however this doesn't provide the level of of permissions required - we are able to view workflows, but can not see any previous runs / history.

 

Is there something I am missing here, or does vRO not support this functionality?

 

Cheers,

Mark

Trouble Copying File from VCO to Guest while using Attribute that is an Array

$
0
0

I'm getting an error message when trying to pass an array of VM names form a folder to the "For Each Copy File from VCO to Guest" workflow.

 

[2018-01-23 16:10:25.755] [E] Workflow execution stack:

***

item: 'Copy All Files To Parent VMs/item2', state: 'failed', business state: 'null', exception: 'java.lang.IllegalArgumentException: Iteration over multiple arrays requires that they have the same length: vm'

workflow: 'Copy All Files To Parent VMs' (0cceadcc-3853-44f3-9131-76dd9ec8a04f)

|  'attribute': name=vmFolder type=VC:VmFolder value=dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/group-v4701'&dunesName='VC:VmFolder'

|  'attribute': name=VMList type=Array/VC:VirtualMachine value=#{#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-1343'&dunesName='VC:VirtualMachine'#;#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-8774'&dunesName='VC:VirtualMachine'#;#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-5446'&dunesName='VC:VirtualMachine'#;#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-9429'&dunesName='VC:VirtualMachine'#;#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-8770'&dunesName='VC:VirtualMachine'#;#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-6103'&dunesName='VC:VirtualMachine'#}#

|  'attribute': name=vmUsername type=Array/string value=#{#string#Admin#}#

|  'attribute': name=vmPassword type=Array/SecureString value=#{#Any#__NULL__#}#

|  'attribute': name=vcoPath type=Array/string value=#{#string#/opt/vcofiles/1-EnableWindowsUpdate.bat#}#

|  'attribute': name=guestFilePath type=Array/string value=#{#string#C:\#}#

|  'attribute': name=overwrite type=Array/boolean value=#{#boolean#true#}#

|  'output': name=actionResult type=Array/VC:VirtualMachine value=null

|  'output': name=var type=Array/boolean value=null

|  'no inputs'

*** End of execution stack.

 

Here are my Visual Bindings:

 

For getAllVirtualMachine Element:

 

 

Foreach (Copy file) Workflow:

 

 

Main workflow Schema:

 

 

Is this just not possible? I don't want to use Powercli to copy files since I want to encrypt the parent VM's credentials. I need to pass multiple files over to the parent VM's during patching.

 

Thanks

Installing or updating a plugin vRO 7.3 cluster any special considerations?

$
0
0

We've got a clustered pair of vRA appliances and we use the embedded vRO clustered as well on these appliances in our vRA prod environment.  My past experience with clustered vRO is that you had to be carefull when modifying the plugin configuration.  It required taking all but one node offline, install/upgrade, shutdown, move on to next node etc.  In vRO 7.3 is this still required or will control center do this all cleanly for me without needing to manually shutdown services?  I see no documentation related to this so I am assuming that is the case.

 

Thanks!


Invoke a Powershell script

$
0
0

Hi,

 

I try to use Invoke a Poweshell script workflow.

When I run it manually I choose the powershell host and put the script.

It works fine.

 

However, I have a long script.

I want to create a workflow which has two objects:

1. Scriptable task - where I define my long script

2. Invoke a Powershell script - which receive the script attribute form the previous object.

 

How I need to write my scriptable task if I have the following line?

 

if ($true){

     write-host "OK"

}

else{

     write-host "NotOK"

}

 

Thanks!

sccm powershell vco

$
0
0

Hi,

 

I try to run powershell commands of SCCM from vmware orchestrator with the workflow named: Run script in VM guest (Guest Script Manager)

These are the following commands:

 

Import-module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + '\ConfigurationManager.psd1')

 

#Get SiteCode

$SiteCode = Get-PSDrive -PSProvider CMSITE

Set-location $SiteCode":"

 

When the user who run these commands is login to the sccm server, the workflow finish successfully.

Once the user is logoff, and I run again the workflow, it fails with the following error:

item: 'Run script in VM guest/item25', state: 'failed', business state: 'null', exception: 'Set-location : Cannot find path 'C:\Windows\system32\:' because it does not

exist.

 

Running the same command with a scheduled task in the same serer it works!

 

any idea?

Run Workflow before IPAM Runs

$
0
0

We use Infoblox to manage IP addresses and have the Infoblox plugin installed and working. However, i want to do some things prior to IPAM workflow running.  I've tried several different things with event broker and none of them run before IPAM.  Any help would be greatly appreciated.

Thanks!

Copy file from vCO to guest and windows 10 issues?

$
0
0

I'm trying to test a simple copy file operation from VCO to guest, I get this error:

 

Error in (Workflow:Copy file from vCO to guest / Scriptable task (item1)#11) Unable to access file C:\Patching.zip

[2018-01-25 12:50:38.302] [E] Workflow execution stack:

***

item: 'Copy file from vCO to guest/item1', state: 'failed', business state: 'null', exception: 'Unable to access file C:\Patching.zip (Workflow:Copy file from vCO to guest / Scriptable task (item1)#11)'

workflow: 'Copy All Files To Parent VMs' (0cceadcc-3853-44f3-9131-76dd9ec8a04f)

 

 

It seemed to copy over to all my windows 7 parent images we have, however it didn't copy over to the Windows 10 image with the above error. I checked the security tab on the C:\ drive and it is the same as all other C:\ drives on the windows 7 machines.

 

Anyone else had this issue?

 

Thanks!

vRO 7.3 - VM powerState not updating for shutdownVM action

$
0
0

Hi

I setup a new vRO 7.3 appliance in November, imported my custom packages, that have traversed versions since vCO 4.x, and made customization's to the WF and actions as needed for this deployment.  Within the last week I've experienced the powerState not updating within the com.vmware.library.vc.vm.power.shutdownVM() action.  Restarting 'vco-server' service only temporarily resolves the issue.  I then duplicated the shutdownVM action and at the beginning of the while loop I obtain the VM using VcPlugin.getAllVirtualMachines(...) hoping this would correct the issue but the issue continues to pop-up.

Updated to vSphere plugin 6.5.0-7208762 two weeks ago, after having an issue where Any types were not passing between actions/workflows.

 

I was considering using 'Get vCenter entities by properties' in-place of my VcPlugin.getAllVirtualMachines(...) but I'm not sure this would correct the issue.  So I figured I would post here in hopes someone could help or should I open a ticket?

 

Thank you!

Workflow Validation?

$
0
0

Hello,

 

is there any way to make a validation check for workflow warnings or errors for all workflows via vRO API or inside a vRO workflow? The Reason for my question is, that we have a vRO package deployment pipeline for the environments DEV, TEST & PROD in Jenkins and we would like to have a validation check of all workflows or workflow folder at the beginning of the deployment.

 

Any Idea? Or Solution? Thanks for help!

 

best regards

Philipp

How to deserialize the response object in Java REST SDK?

$
0
0

Is there any way to deserialize from the output of the WorkflowExecution?

I can execute the workflow successfully.

But the response is too difficult to parse to object.

Here is the snippet of my Java code to execute the vRO workflow:

val session: VcoSession = sessionFactory.newSession(authentication)
val workflowService: WorkflowService = new WorkflowService(session)
val executionService: ExecutionService = new services.ExecutionService(session)
 
val workflow: Workflow = workflowService.getWorkflow("workflow_uuid")
val context: ExecutionContext = new ExecutionContextBuilder()
val execution: WorkflowExecution = executionService.execute(workflow, context)
VcoSession session = sessionFactory.newSession(authentication);
WorkflowService workflowService = new WorkflowService(session);
ExecutionService executionService = new services.ExecutionService(session);
WorkflowExecution execution = executionService.execute(workflow, context);
Properties virtualMachine = new ParameterExtractor().fromTheOutputOf(execution).extractProperties("vm");
System.out.println(virtualMachine);

 

My wish is to deserialize virtualMachine to like com.vmware.vim.binding.vim.VirtualMachine.

(Properties class gives only getProperty method.)

Is there any example about deserialization of Java REST SDK,

Or the good way?

Thanks.


Populating a dropdown based on the value of another dropdown

$
0
0

Hi folks, i'm new to VCO, so please excuse a certain degree of ignorance as I'm still learning :)

So here's what I'm trying to achieve: A workflow with three fields

1) An application version (predefined array)
2) Name of a SQL Server (array of servernames retrieved from a sql query)
3) Name of a Database (array of databases retrieved from a sql query)

 

 

Then pass these to a powershell script to run.

Independently, these work. I can choose from the dropdowns and these are passed to my powershell script.

What I now would like, and am having difficulty with, is having the dropdown of #3 change based on the value selected from #2, because I want to constrain the user of the workflow to only the databases that exist on the specified SQL server.

I'm not quite sure how I can manage this though. how would I achieve this?

 

Thanks in advance.

I am getting an error while running workflow named "vCloud Director - Add a Gateway" on vCO.

$
0
0

Hello,

 

I have vCloud Director 8.10.1 and vRealize Orchestrator 7.0.1 on my environment.

 

I have installed vCloud Director Plugin on vCO successfully and I can run any workflow about vCloud Director such as Create Organization, Create VDC or anything else. But i am getting following error while running Edge Gateway creation workflow ;

 

Cannot convert compact to com.vmware.vmo.plugin.vcloud.model.schema.objects.GatewayInterfaces (Dynamic Script Module name : createGatewayConfiguration#4)

 

I ran this worflow on other vCloud Director environment for test purpose but getting same error.

 

Do you have any idea about this error ?

 

Thanks.

Dynamic Input Values Based on other Inputs

$
0
0

Hi,

 

My Orchestrator server has multiple domains connected. I want to create a workflow that searches one domain for a user, presents a list of users. When a user is selected, the workflow will create a user in the other domain based on the selected user. While googling how to search for a user and get a list presented I came across this Dynamic Input Values Based on other Inputs which basically does what I want. When I run this workflow, it only searches the default domain which is not the one I want to search. I guess I could change what is the default domain, but I´m unsure if that will brake anything else, so I am looking for a solution that will allow me to search the domain of my choice.

 

I´m not a programmer or very experienced at scripting, but trying to learn. Please keep this in mind.

 

Orchestrator version is 6.0.5. If this easier done in a later version, please let me know what version and how this is solved in that version.

 

Thanks in advance!

 

GB

Error: Tech preview of vRO vCenter plug-in for vSphere 6.5 - Version 6.5.0.7646854

$
0
0

Updating from 6.5.0.7208762, I get this error:

 

2018-01-26 13:45:35.200-0600 [serverHealthMonitorScheduler-1] WARN  {} [SiteAffinityServerEndpointProvider] CDC not configured java.lang.NoClassDefFoundError: com/vmware/identity/cdc/CdcFactory
2018-01-26 13:46:18.385-0600 [https-jsse-nio-0.0.0.0-8281-exec-6] WARN  {} [SDKModuleDescription] Unable to execute Plug-in 'invalidateAll' on module 'VC', reason : Unable to perform operation 'invalidateAll' on finder '_ROOT' reason : null
2018-01-26 13:46:18.394-0600 [https-jsse-nio-0.0.0.0-8281-exec-2] ERROR {} [VcoDelegatingWebFacade] Server Error...
ch.dunes.model.sdk.SDKFinderException: Unable to perform operation 'fetchRelation' on finder '_ROOT' reason : null

HTTP 400 after vCenter authentication configured on new vRO stand alone

$
0
0

I'm trying to run a stand alone version of vRO.  I was able to get into the control center initially and configure vCenter for authentication but right after connected vCenter vRO control center fails with http - 400

 

For example:

 

I try to go to this URL:

 

https://vRO.domain.com:8283/vco-controlcenter/#/

 

and get this in return:

 

https://vcsa01.domain.com/websso/

HTTP Status 400 - Issuer not recognized

type Status report

 

 

message Issuer not recognized

 

 

description The request sent by the client was syntactically incorrect.

Viewing all 6251 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>