Quantcast
Viewing all 6251 articles
Browse latest View live

Updating workflow attributes during execution

Hi,

 

I have a workflow that waits until a custom event takes place or reaches maximum time limit before going to the next item. I need to update the maximum time limit value while the workflow is running. I want to do this from another workflow when certain conditions are met.

 

To put it simply, is it possible to update attributes of a workflow instance from another workflow?

 

I have checked WorkflowToken object and do no see anything to perform an update operation. An help is appreciated. Thanks in advance.


Cannot "Register vCenter Orchestrator as a vCenter Server extension" in Orchestrator 8.0.0

Hi all

 

the workflow "Register vCenter Orchestrator as a vCenter Server extension" does to work to register the orchestrator 8.0.0 extension on vCenter 6.7U3.

 

It fails with the error: "java.lang.IllegalArgumentException: cert parameter is required (Workflow:Register vCenter Orchestrator as a vCenter Server extension / Register extension (item1)#10198) "

 

The problem is correctly described in the Release Notes of the 8.0.0 as a "Known Issue".

 

Unfortunately no solution or workaround is provided.

 

I was wondering if such workaround exists, perhaps registering the extension by alternative methods.

 

Otherwise I guess I will be forced the customer to roll back to the previous version.

 

Thank you

vRO Configuration Element in Presentation | Attribute Name vs Value

Hello Community,

I'm not sure why, but I can't seem to figure out how to list Attribute "names" as a drop down list in the workflow presentation.  I can get the Attribute "values" to populate, but not the names.  Wondering if someone has a code snippet for the Action I need to create to accomplish this. 

 

Config Element Path:  Library>>Dev

Config Element Name: devDataCenter

Image may be NSFW.
Clik here to view.
snag.2019.10.29.001.jpg

Present the Configuration Element attribute names to user as a drop down list.  (DataCenterA, DataCenterB, or DataCenterC).  After user selects the "name" of the attribute, pass the attribute value back to workflow(if possible, I can also just go look up the value later if that's the only option).  I'm stumbling on getting the array of names created and I might be misunderstanding the "Type" that I need (Should it be Array of String or something else?)  As you can see in the image, the values would mean nothing to the user.  They need the friendly name.

 

I realize that I can create a static list in the presentation layer and then look up the values from the config element using an action, but this will be presented in several different workflows and I want all workflows to dynamically update if we add a DataCenter.  I can get around all this and make this scenario work, but I'm looking to A) learn and B) work more efficient.

 

It is entirely possible that I'm fundamentally missing the point of Configuration Elements as I'm pretty new to this vRO stuff.

 

Thanks for your help!

Image may be NSFW.
Clik here to view.

HTTP 500 error when trying to Import vRO workflow via Webservice

HTTP 500 error when trying to Import vRO workflow via Webservice

Hello everyone,

I'm new to the VMWare ecosystem and I'm currently using vRO 7.5, and trying to automate certain tasks via its Webserice using Python.

I was able to retrieve informations about workflows and others objects and even export them as zip files.

But when I try to import a workflow, I keep getting a HTTP 500 error with no further explanation.

The documentation about importing objects isn't detailed enough, apart from saying that the HTTP POST should follow the RFC 2387 standard.

In the other hand, the API reference shows that we need also to provide the categoryId when making the POST request.

On the internet, I can't find if someone had the same issue, but I found an example of workflow import using Powershell. (https://code.vmware.com/samples/804/perl-python-and-powershell-samples-to-execute-vro-workflow-over-rest?h=import%20workflow)

That script prepare the HTTP requests to include the file and the categoryId.

I tried to do the same using Python, but no luck as I always get an HTTP 500 when I POST to that URL.

Here an example of the HTTP Request, does anyone know how to solve this issue ?

POST /vco/api/workflows/ HTTP/1.1
Host: REDACTED
User-Agent: python-requests/2.22.0
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive
Content-Length: 5634
Content-Type: multipart/form-data; boundary=2d5cffe22f92f89a824123fe6eea67c7
Authorization: Basic REDACTED


--2d5cffe22f92f89a824123fe6eea67c7
Content-Disposition: form-data; name="categoryId"

ff8080816db5174f016dd8f060fa1ab3
--2d5cffe22f92f89a824123fe6eea67c7
Content-Disposition: form-data; name="overwrite"

true
--2d5cffe22f92f89a824123fe6eea67c7
Content-Disposition: form-data; name="file"
Content-Type: Content-Type: application/octet-stream

PK\x03\x04...
--2d5cffe22f92f89a824123fe6eea67c7--

reply: 'HTTP/1.1 500
...

best way to log warnings and errors and email results

I'm creating some workflows where I want to log the occasional warning/error and email them upon completion so the person who started the workflow knows if there's anything that needs to be verified. I think I have two options:

 

1) use a config element with an array of string and custom action to keep appending to the array (my workflows create a temporary config element specific to that workflow run anyway)

 

2) use Server.warn() and Server.error() and I think I saw a Server.something function that can gather up all the entries for me automatically and then I can email them.

 

For #1 I may need to try and find the config element when I'm in sub workflows or pass extra parameters in my logging action to help me find the config element to use. Maybe there's some magic I can use to find info from parent workflows if I know the original "master" workflow has the config element as an attribute?

 

For #2 I'm thinking is the easiest but I'm worried the database will grow too large overtime and cause problems. I seem to be finding conflicting info as to whether or not there's an automatic cleanup process.

 

This is vRO 7.6 (does it make a difference if it's standalone or embedded in vRA?). Would version 8 change anything?

vcenter items missing in workflow presentation selection

I added a host to vcenter and went to select it by browsing the inventory to select a host object when starting my workflow. Host was available to select any everything was fine.

 

The workflow failed after removing the host from vcenter so I added the host back to vcenter manually so I could retry my workflow.

 

Now when I try to rerun the workflow the host isn't showing up inventory. In the code I can do a cluster.host and I see the host in there but I can't select it . If I go to the inventory view and drill down i don't see the host their either. If I wait several hours eventually the host will appear.

 

This is vRO 7.6 (embedded in vra) and the vcenter plugin version is 6.5.0.12799420.

 

Is there anything i can do to force a refresh (right click > reload doesn't do anything)?

Right way of creating a vRO plugin

Hi All,

 

As part of our plugin development we have created our workflows using vRO client. Now the question comes is, what's the right way create a vRO plugin out of these workflows so same can be shipped to the customers?

 

The approach we are thinking of so far in this direction is:

 

1. Created a eclipse project for vRO plugin using maven

2. Command that let us import the workflows from vRO appliance. Do we have any such command?

3. Create a plugin using mvn install

 

Please let me know if that's the right approach to create a plugin from workflows and also request you to help with the commands if there are any.

 

Thanks and Regards,

Salil

Image may be NSFW.
Clik here to view.

Run Program in Guest as Administrator

Hi,

 

I am trying to run powershell script by passing it as an argument value "-command Set-ExecutionPolicy -ExecutionPolicy ByPass;c:\temp\script.ps1" to workflow "Run Program in Guest ". However, I want to run this script as an administrator on the machine.

Could someone please suggest how can I achieve that ? I have tried using "-command Set-ExecutionPolicy -ExecutionPolicy ByPass;c:\temp\script.ps1 -verb RunAs" but no avail.


Ignore content type response when using vCACCAFERestClient and parse as string

Hello,

 

I am attempting to make a request to the Content Service API in vRA and return the XaaS custom form to parse out the available values in the fields. As the response is text/yaml, vRO is throwing an error saying it cannot find a HttpMessageConverter for the response type of text/yaml.

 

Is there anyway to force the request and receiving the response as just a string?

 

Here is the code:

 

 

var endpoint = 'com.vmware.csp.core.content.service.api';
var restClient = vcacHost.createRestClient(endpoint);

var url = "/contents/{form-guid}/data";
var response = restClient.get(url);

 

And the error message:
Could not extract response: no suitable HttpMessageConverter found for response type [class java.lang.Object] and content type [text/yaml;charset=UTF-8]


Thank you for your help!

Image may be NSFW.
Clik here to view.

List path in guest - Linux

Hi,

 

I try to run "List path in guest" on a Linux virtual machine server (Redhat 7.6).

 

If I run it with user root it finishes successfully.

If I run it with another user (with root privileges) it fails with the following error:

error in (Workflow:List path in guest / Scriptable task (item1)#7) Failed to authenticate with the guest operating system using the supplied credentials.

 

On windows servers I can choose any users and the workflow finishes successfully.

 

ant ideas?

Interract with a cluster when the name is known

Hello Community,

 

I would like to instantiate clusters without getting them from "VcPlugin.getAllClusterComputeResources" because I already know their names.

 

What are the few code lines to achieve this?   Thanks a million in advance

 

Fred

Image may be NSFW.
Clik here to view.

Getting error "cannot convert to com.vmware.o11n.sdk.model driven.model wrapper"

Hi All,

 

I'm getting an error within a vRO action, here's the code snippet:

 

var sdkConnections = VcPlugin.allSdkConnections;

for each (var sdkConnection in sdkConnections)

{

      var vCenterVm = sdkConnection.searchIndex.findByUuid("", vmId, true, true);

}

 

 

Here's the error (thrown by the var vCenterVm..... line):

 

cannot convert to com.vmware.o11n.sdk.model driven.model wrapper

 

This code works fine on many instances of vRO apart from just one (vro version 7.5, vcenter version 6.5)

 

Any ideas?

 

Thanks,

 

Tim.

How to parse the "Invoke an external script" result >> PowerShellRemotePSObject

Hello Community,

 

I have a problem understanding the return object type of a external powershell script call.

From the Invoke an external script Workflow I get back a PowerShell:PowerShellRemotePSObject result.

 

I need to parse the result to reuse the data from the Script execution. In nearly 90% the following scriptable task will do the job:

 

if (psResult.invocationState  == 'Failed'){

    System.error(invResult.getErrors());

} else {

    dataFromResult = psResult.getRootObject();

    for each (key in dataFromResult.keys) {

            System.debug(key + " = " + dataFromResult.get(key));

    }

}

 

but unfortunately when more than one action is done in the powershell script I get back a result object with kind of nested objects and I don't really know how to unpack them.

 

I'm really looking forward to read some ideas.

 

Kind Regards,

Dex

Image may be NSFW.
Clik here to view.

how to add more cpu to a vrealize automation vm by vrealize orchestrator?

Hi guys,

can someone help me on this topic?

I just want to add a vcpu to my vm which is created by vrealize automation. i just want to know how can i request to vrealize automation by vrealize orchestrator

i found this method (vcaccafe:consumerresourceoperation )  but i couldnt find a good document in regard to writting the script

vRealize orchestrator 8.0 " 404 page not found"

Hello All,

 

I have successfully deployed the vro 8.0 and when i try to login to the https://appliance_IP , i get the following error:

 

404 page not found

 

 

I haven't done any configuration and would like to start using the new 8.0 vRO. Any help on this will be highly appreciated

Image may be NSFW.
Clik here to view.

vRO 8.0 how to set NTP servers information

Hi,

 

Installed latest vRO 8.0. Found that it do not have 5480 port where we can login to set NTP servers information which helps to sync the servers so we can create vRO authentication login user credentials.

 

As of now with out syncing this information, unable to create login credentials for Client. And getting below error.

"Error! Error while configuring authentication: Server rejected the provided time range"

 

So how to set this information in vRO 8.0?

 

Thanks

Pawan

Schedule VCSA 6.5 Backup via vRealize Orchestrator or PowerCLI Script

Hi,

 

I want to configure & schedule VCSA 6.5 backup via vRealize Orchestrator or PowerCLI script. In VCSA 6.7, VMware has added functionality to schedule backup of vCenter servers, however in VCSA 6.5 this is missing.

 

http://www.vmwarebits.com/vcenterbackup

 

In above link "RobBastiaansen" has provided way to configure via vRealize orchestrator. However, I am not sure if someone has tested or validated this.

 

Please assist me in configuring automated backup of VCSA that can be copied over network via SCP.

Image may be NSFW.
Clik here to view.

logs in HTML5 interface filled with __item_stack

The log tab in the HTML5 interface is filled with __item_stack entries when my workflows are running making it hard to see any of the logging I'm doing. Is there any way to hide all that noise?

Image may be NSFW.
Clik here to view.

vro 8.0 java rest client

hi please provide any sample code doc to use VRO 8.0 java rest client ?
Image may be NSFW.
Clik here to view.

No Roles Management at Administration

Author : mbanov

URL : http:////docs.vmware.com/en/vRealize-Orchestrator/7.6/com.vmware.vrealize.orchestrator-using-ops-client.doc/GUID-7C14DC2E-B315-4C35-8997-B1D351D638F6.html

Topic Name : Assign Roles in the vRealize Orchestrator Client

Publication Name : Using the VMware vRealize Orchestrator Client

Product/Version : vRealize Orchestrator/7.6

Question :

I logt in to the vRealize Orchestrator HTML 5 Client as an administrator and I want to assign a new role. But I can't find at the administration menu the roles management. How can I find this?

Viewing all 6251 articles
Browse latest View live


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