Quantcast
Channel: VMware Communities : All Content - vRealize Orchestrator
Viewing all 10285 articles
Browse latest View live

vro workflows from vcenter

$
0
0

Hello,

I want to give users of the virtual infrastructure the ability to perform actions in the vcenter for exemple snapshot a VM

I want them to do this action from vco to be able to tag the snapshot description always with same type of informations

 

in the  vCenter web client  the user can access the workflow from the orchestrator menu and as a context action

I think context action is the right methode for this type of  request but the direct workflow access from the orchestrator menue is still active and if the user start the workflow from this part he have access to all the VMs event those that he does have no permission on

 

is there a way to deactivate the access for some users to the workflows except by the context action?


Test Login doesn't work with vRA Authentication Provider (domain user)

$
0
0

Hi all!

 

I've installed 2 vRA instances which are behind F5 load balancer, and also 2 instances of vRO (also clustered and behind F5).

I've configured the Directory (Active Directory) in vRA, synced groups and everything seem to work - I can login with domain users and also specifically with the vRO service account which we created previously (I've also granted all the available permissions to the admin group, including IaaS and Tenant admin).

I've also successfully added the authentication provider to vRO and it found the Admin Group from the AD (from vRA).

After configuring it, and restarting the appliance, the test connection fails on the same user which is able to login to vRA (the same tenant).

 

A few things to notice:

- It happens on both vRO nodes, and it happened also before I joined them to a cluster.

- Both nodes are synced.

- In the authentication provider, if I choose to use the default tenant (vsphere.local) instead of our new tenant (rp), and choose the "vroadmins" as the admin group, the test connection works fine for the administrator user.

- Also, even if I choose our new tenant (rp), and choose "vsphere.local\all_users" as the admin group, the test connection works fine for a local user I created in vRA (on that tenant).

 

I'll attach some pictures to make it more clear.

Directory.PNG

vro_auth_provider.PNG

 

 

 

test_login.PNG

Problem with Script Action in Orchestrator

$
0
0

Greeting,

 

I've been trying to create a dynamic drop down list in vRealize using Action Script in Orchestrator, following this guide:

http://2vsteaks.com/find-vro-workflow-used-xaas-service-blueprint-vra-7/

 

The thing is, when I created a property definition with External Value to use Action Script, I couldn't see the script that I created in Orchestrator

I'm having a real headache here. Could anyone provide some guidance?

 

Regards.

Workflow executioner

$
0
0

Hey guys,

 

Do you know of a way to get the information about the user currently executing the workflow? I have been searching around without any luck on the variable you need to accomplish this:

 

I thought i could tie into the workflow token but cant seem to find a way to grab it other than the array of events.

 

var token = workflow;

var Info = token.logEvents; 

 

I am trying to grab this email out during the workflow in order to use as a final email notification.

 

Thanks!

 

vRO 7.2

vCenter 6.5

Dynamic Types plug-in generator package

$
0
0

The plug-in generator package is a set of wizard and template workflows allowing to create a plug-in without doing any scripting.

 

Read more about Dynamic Types in this article.

To familiarize yourself with creating a Dynamic Types plug-in V2 you can follow this tutorial and/or this tutorial.

 

Requires:

Download the plug-in generator version 2 from sample exchange (Since November 2, 2016 since the package was moved from Flowgrab)

 

Handle REST APIs with JSON or XML message formats.

 

  • - Wizard based workflow to create a plug-in inventory handling
    • Multiple hosts *
    • Multiple levels of objects *
    • Caching to avoid repeating requests *
    • Requires a single URL per object to implement findRelation, findAll, findById *
    • Get object properties using
      • Simple properties: JavaScript like doted syntax
      • Complex properties: JSONSelect (By Lloyd Hilaiel) *
      • Complex properties with high performance: pluggable actions
  • - Wizard based workflow to create and invoke object methods that are wrappable into plug-in workflows *
  • - Export plug-in to a end user installable package including runtime

 

* New functionality of version 2

Special thanks to Brandon Saxe for integrating JSONSelect in Orchestrator.

 

 

Disclaimer: These samples workflows are provided AS IS and are not considered production quality and are not officially supported. Use at your own risk.

vRO 7.2.0 Problem with Authentication Provider

$
0
0

Hi all,

 

yesterday I changed the Authentication Provider in my vRO 7.2.

 

Authentication Mode: vRealize Automation

Host address: my_vRA_Appliance.my.domain

Default Tenat : My_Default_Tenant

Admin group: my.domain\vRAAdmins

 

I saved everything but when testing the Login I aways get following Error:

 

<!DOCTYPE html><html><head><title>Error report</title></head><body><h1>HTTP Status 500 - Request processing failed; nested exception is javax.ws.rs.BadRequestException: HTTP 400 Bad Request</h1></body></html>


And I cannot login to my Orchestrator client anymore... I already Googled alot but didn't find anything.


Hopefully someone can help me with that problem!


Thanks in advance

Susie

How to know the "requested by" field for populating value of Property Dictionary in Runtime in vRA7.0

$
0
0

Hello All,

 

I need to populate the drop down values of Certain Property say " Approver" in my catalog item during requesting the catalog. I have already created a Property Dictionary "Approver" with the external value ( an external vRO workflow ). But I need to execute a SQL query in the external Action and that action will basically return the result of all approvers of catalog requester. Now my question is that how do I know the value of "Requested By"   filed before submitting of the catalog request ? I need to pass the requested by value as a input parameter of the external action.

 

Could it be done by some other way ? Please help me out. I need to have this "Approver" field to be generated with proper value during catalog request.

 

Thanks,

Koushik

EBS Workflow Runner

$
0
0

What is the purpose of EBS Workflow Runner and how does it work.

 

I am used to having an EBS Subscription call a workflow directly.  But now I see a runner; which i am not sure how it works.

can't find any infomration on it.


vRA 7.2 Model Enties Cheat Sheet

$
0
0

Hello,

I am trying to use vRO to get data from vRA but I am having trouble of trying to find a good place to see what are attributes of the model entities (for example All of the attributes for a Reservation such as storage reserved, memory reserved, etc).  Is there a map of the attributes for all of the model entities for vRA

Check - Manager can update membership list

$
0
0

I am trying to figure out how to check the "Manage can update membership list" checkbox in ad from within a vRO workflow.  At this point i have vRO creating the group in the correct ou, setting the pre2000 name, setting its scope and type assigning the manage by user and populating the group membership all from within the ad extensions in vRO.  I can set this setting from PowerShell with the exchange extension but i would rather not have to shell out to do such a simple function.  Does anyone have an idea how i can do this?

 

Capture.PNG

xpath searches in the vCenter plugin for exact match and case insensitivity

$
0
0

I figured I would go ahead and post some updates to the community on the xpath searches that are working for me in 7.2 with the most current vSphere plugin.  They have changed quite a bit from what was working for me in the past.  It seems like recently some change in either the plugin or vRO has effected how the plugin responds to the search string.  In previous examples on here the translate portion of the expression was missing the numeric, dash, and period which seemed to work fine up until now.  Adding those characters end up in a correct translation.  Also the escape sequencing is needed now whereas before it would cause issues.  If you find this helpful give me a "like" I'm trying to level up on here!

 

if (vroVersion <= "6") {

  System.debug("vRO Version 6 detected... using old xpath expressions");

  if (exactMatch == true && caseSensitive == false) vms = VcPlugin.getAllVirtualMachines(null, "xpath:name[translate(.,'abcdefghijklmnopqrstuvwxyz-0123456789.','ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789.')='" + vmName.toUpperCase() + "']");

  if (exactMatch == true && caseSensitive == true) vms = VcPlugin.getAllVirtualMachines(null, "xpath:name='" + vmName + "'");

  if (exactMatch == false && caseSensitive == false) vms = VcPlugin.getAllVirtualMachines(null, "xpath:name[contains(translate(.,'abcdefghijklmnopqrstuvwxyz-0123456789.','ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789.'),'" + vmName.toUpperCase() + "')]");

  if (exactMatch == false && caseSensitive == true) vms = VcPlugin.getAllVirtualMachines(null, "xpath:name[contains(.,'" + vmName + "')]");

}

else {

  if (exactMatch == true && caseSensitive == false) vms = VcPlugin.getAllVirtualMachines(null, "xpath:name[translate(.,\'abcdefghijklmnopqrstuvwxyz-0123456789.\',\'ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789.\')]=\'" + vmName.toUpperCase() + "\'");

  if (exactMatch == true && caseSensitive == true) vms = VcPlugin.getAllVirtualMachines(null, "xpath:name=\'" + vmName + "\'");

  if (exactMatch == false && caseSensitive == false) vms = VcPlugin.getAllVirtualMachines(null, "xpath:contains(name[translate(.,\'abcdefghijklmnopqrstuvwxyz-0123456789.\',\'ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789.\')],\'" + vmName.toUpperCase() + "\')");

  if (exactMatch == false && caseSensitive == true) vms = VcPlugin.getAllVirtualMachines(null, "xpath:contains(name,\'" + vmName + "\')");

}

get vCenter VM from vCAC VM

$
0
0

I couldn't find an action for this and it doesn't seem to be  a property of the vCAC vm.  It sure would be nice if it were.  I snagged this code from one of the workflows in the vCAC plugin that does what I would like so I figured I would repost here.  I also attached an action.  Takes a vCAC:VirtualMachine input and returns a VC:VirtualMachine out.

 

var sdkConnections = VcPlugin.allSdkConnections;

System.log(sdkConnections.length + " sdk Connections found...");

for each (var sdkConnection in sdkConnections) {

  try {

  vCenterVm = sdkConnection.searchIndex.findByUuid(null, vCACVm.vmUniqueID, true, false);

  } catch(e) {System.log("Error for SDK connection " + sdkConnection.name + " : " + e);}

  if (vCenterVm != null) {

  System.log("Resolved vCenter VM " + vCenterVm.name);

  return vCenterVm;

  break;

  }

}

vRO 7.1 and 7.2 inventory auto refresh

$
0
0

I've notice that the inventory doesn't auto refresh anymore when I create new elements. And now I can see that this behavior is a "new feature" according with the Release Notes:

 

"

What's New in vRealize Orchestrator 7.1

...

The Orchestrator client no longer processes the notification events related to the inventory tree that are sent by the Orchestrator plug-ins. This makes the use of the IPluginNotificationHandler obsolete and requires users to manually refresh the inventory tree.

"

 

Is there any way to get this behavior back? As a developer, it is a kind of annoying this new no behavior.

 

Thanks a lot.

D.

Workflow To Get workflow logs

$
0
0

Hey,

In my place of work I don't have the ability to use the console to get the full workflow logs from a workflow run.  Is there a way to get the logs of a workflow token from a workflow that was run by a different user?

Using vAPI endpoint in vRO to deploy an OVF from Content Library

$
0
0

I have been testing two methods of deploying an ovf from vRO 7.2 in a vCenter 6.5. This would be used in conjunction with a workflow that would deploy many similar vm's from the same ovf for a testing environment.

 

First method is using the OVF Transfer plugin - I have this working and it looks pretty handy and does everything I need it to.

 

The Second method would be to use the vAPI Endpoint method to deploy ovf from the content library.

 

I am finding it hard to understand how to get the vAPI method working or to find any blogs examples or how to's on this

 

I have added my vAPI endpoint in vRO and imported the vAPI metamodel.

Am looking at below example but having difficulty extraction what I need to get a working workflow.

 

vSphere 6.0 Documentation Center

content-library-api-samples/LibraryCount.java at master · vmware/content-library-api-samples · GitHub

 

 

Has anyone been able to do this or anything similar. I could always use the OVF plugin but am curious about the possibilities of a new method of doing this and other tasks. Not looking for completed workflows or anything just a point in the right direction of how to. Also general information/opinions/experiences from anyone who has used either method


Avamar Plugin for vCO

$
0
0

Hi all,

 

I need to avamar integration with vCO for take vcloud director vms backup. I reviewed some articles and everybody says that there is not yet avamar plugin for vCO. is this correct ?

 

But, today i found EMC Data Protection plugin for vCO and it looks like that it is possible to make avamar integration with vCO. My first question is, is this really Avamar ( Avamar Virtual Appliance ) vco plugin or different solution ?

 

My second question is, if this is not really avamar plugin, what should be the best solution for take vCloud Director vms backup with avamar ? REST API, CLI or anything else...

 

 

avamar1.PNG

 

avamar2.PNG

Orchestrator, use of XML object as attributes

$
0
0

Hello

I want to use xml objects as attribute on workflows to create actions for adding a node for example

for this I need to create  parameters of type void or xmlnode according to the documentation

http://www.vroapi.com/Class/XML/5.5.1/XMLDocument

vRO API Explorer by Dr Ruurd and Flores of ITQ

but in configuring attribute on workflow xmlnode and void types does not exist

I have tried any type

but when loading the xml to an attribute

XMLDocument = XMLManager.loadDocument(XMLin,false);

 

it gives me an error 

[2017-03-13 12:16:39.207] [I] Cannot create XMLDocument object : java.lang.NullPointerException

 

is the only solution  to pass string values ? and to have to reload all the objects in each modules of the workflow?

How to stay up-to-date with the latest plugins

$
0
0

Hello all,

 

I've been wondering, how can I stay up to date on the latest plugins. Recently we had a bug with our PowerShell plugin after upgrading to VRO 7.2 the plugin was running twice. Once we found out the other post regarding this issue, we've fixed the problem.

 

But there was a huge gap between us finding the problem and finding the solution. It doesn't seem there's an easy way to track this. I don,t want to browse the marketplace everytime, and even for the PowerShell plugin, I've found it on the forum, since its usually packaged within VRO updates, I guess ?

 

So, how can I track down my plugin version number vs what is available ?

 

Thanks,

Guidance on CRUD Operation

$
0
0

Greetings,

 

I've been trying to write a workflow to retrieve information about Network Profile using CRUD operation, following the guide below

http://pubs.vmware.com/orchestrator-plugins/index.jsp?topic=%2Fcom.vmware.using.vcac.plugin.doc_62%2FGUID-E53805FF-CE6D-4806-9CC3-B5089065C940.html

I used StaticIPv4Address as the entity set name

 

var model = "ManagementModelEntities.svc";

var entitySetName = "StaticIPv4Address ";

var property = new Properties();

property.put("VirtualMachineID",null);

var entities = vCACEntityManager.readModelEntitiesByCustomFilter(vcacHost.id, model, entitySetName, property, null);

 

But when I ran the workflow, it returned an error:

[2017-03-15 10:00:54.317] [E] Error in (Workflow:Clone_CRUD_Eg / Get Properties (item1)#4) EdmEntitySet StaticIPv4Address is not found

 

I checked for the table named "StaticIPv4Address" in IaaS database and found it. So I thought it might be the model name that caused the problem. But I don't know how to correct it, since this CRUD operation thing confuses me

vRO error : Unable to authenticate with OAuthToken! The token is expired.

$
0
0

Hi,

 

Following upgrade (7.0.1 -> 7.2.0) of vRA HA stack (1 primary & 1 secondary) with embedded vRO instance I'm meeting some troubles about this error message :

Unable to authenticate with OAuthToken! The token is expired.

It seems to be a problem on the master instance of vRO that is not able to use/call the 'OAuthTokenLifetimeService' that can renew tokens.

 

Maybe this service crashed ?

 

The main problem I'm seeing is that external actions using authentication against vRA host can't work during provisioning request.

But I suspect a lot of errors occuring in some scheduled workflows.

 

I changed the cluster master, and the problem moved to the new primary...

So I suspect that the 'OAuthTokenLifetimeService' only runs on the primary node and fails after some time.

 

From this moment now, I met the issue 2 times : one time on each primary node.

But I'm afraid to see the problem coming back soon.

 

Could someone give me some help ?

 

Thanks,

 

Tim.

 

Viewing all 10285 articles
Browse latest View live


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