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

prevent vmotion during machineprovisioned workflow

$
0
0

Hi All,

 

Sometimes during VM provisioning i.e. when machineprovisioned workflow stub is executing sometimes  vcenter does vmotion on the vm. Sometimes scripts are executed on the VM by machineprovisioned workflow. This messes things up. One option is to disable vmotion on a single VM being worked on. How to do this? Any other options.

 

Any help appreciated.


SRM 6.1.1 with vRealize Orchestrator 7.1

$
0
0

Hey

 

So I have just started using vRO to manage my SRM environment.

I have a vCenter Appliance 6.0 U2 in both Production and DR site (no ELM)

SRM used is 6.1.1 on both sites. Paired and being used without any issues from web client.

 

I deployed a vRO 7.1 on my production site and configured it to my vCenter successfully.

Then, ran a workflow to register it to the production vCenter. This completed too.

 

Then downloaded 6.1.1 SRM vmoapp and the plugin is installed successfully and the SRM workflow and libraries are available.

Then, ran the Configuration of Local Site and it completed too.

Under Administer mode > Inventory > SRM, I can see my local site (Production SRM site)

Ran the Remote Site workflow and it completed too, however, this is not seen in the SRM Inventory in Administer Mode.

 

Perhaps I am missing something simple?

 

 

Thanks

# Suhas

vRA support for Azure Managed Disks

$
0
0

It doesn't appear that managed disks are currently supported through the Azure plugin. Does anyone know if this is on the roadmap? Thanks.

Automate ESXI installation using vRO

$
0
0

Hi Everyone,

 

We have a requirement to automate our entire infrastructure build using vRO. On a bare minimum below are the list of things we would like to achieve.

 

1. Automated ESXI installation using vRO (SAN boot).

2. The Hardware is CISCO UCS blades.

 

What is the best suitable option that helps us to achieve the same. If anyone can guide us on the components that are needed it would be really helpful.

 

Thanks

Sandeep

Get a List of all NSX Firewall Sections in VRO ?

$
0
0

Hi Guys,

 

I'd like to get a list with all the NSX Layer3 Firewall sections using API in a VRO workflow.

 

I didn't find a way in REST to get the list of all firewall Sections. Instead, you need to pass the name of the section to get it.

 

I also tried to get that with the NSX API using:

 

NSXAppFirewallManager.getAllFirewallSections(nsxConnection)

 

but I got an error and don't understand what I'm missing there.

The error was : Unable to build Firewall Section for Inventory.

 

Any better way to do achieve that ?

 

Regards,

Thanks, Sylvain

vRO 7.3 Update Manager 6.5 plugin

$
0
0

Hello all.

i searched the forum and the download areas for a vum 6.5 plugin for Orchestrator 7.3. Nothing came up. Is there already a plugin for automating VUM 6.5 ?

Thanks in advance for your assistance.

Regards,

Alex

Workflow to request an available IP from Infoblox/IPAM.

$
0
0

I am looking at creating a workflow to request an available IP address from an InfoBlox / IPAM environment.  Essentially, the user would select the network (as an Input param), and the workflow would supply and reserve the available IP address.   What would be the process in accomplishing this.   We currently have the Infoblox appliance as an endpoint and configured for various vLANS.

vRO Update Manager - Remediation Async or not - differences

$
0
0

Hello in the vRO UM plugin there are two WF called:

 

Remediate

Remediate Asynchronously

 

When executing they look the same, what is the difference between them? Does one update all ESXi hosts in series while the other in parallel?


vRO and UM patching a vCluster

$
0
0

Hello, unfortunately I don't avail of a test environment as yet and I'm a little worried about launching vRO WF to patch an entire vCluster through UM. In the UM gui there is the possibility to tell the app to update x number of ESXi hosts at one time or let the app decide. How does it work in the vRO WF. I see the "Remediation asynchronously" which is probably the best choice, but what is the criteria it adopts when selecting hosts and set them in maintenance mode? Is it one by one or ?

SSH Execute Timeout

$
0
0

Hellow there,

I'm using "Run SSH command" Library workflow but some of my VMs are in a bad state and workflow is stuck on "Execute SSH Command" right after "Executing 'uptime' using encoding 'Default System Encoding'" for a very long time. Is there a way to set a timout on this execute? 

Any help is appreciated. Thanks.

Eugen

Read/Write Resource element not using a file

$
0
0

Page 18 of the vRO Coding Guide (ver 1.0) says

-----

Possibly use a CompositeType, or if it is really meant for internal use then you can save the Properties object as a Resource Element

-----

I cannot find any way to write a JS object into a Resource Element.  Nor for that matter, to read it back as an object.  I find lots of ways to read/write files to a Resource Element, just not objects as the coding guide states.  Can anyone help me?

 

Thanks,

Carl L.

 

Oh, and if anyone is interested, the coding guide is here:

https://docs.vmware.com/en/vRealize-Automation/7.3/vrealize_orchestrator_coding_design_guide.pdf

stop workflow if value does not exist

$
0
0

Hello,

actually, in a workflow access to an api object property stop the workflow if the object does not exist

in an inventory workflow I would like the workflow to continue to run even if the object does not exist and give an empty value as result

is that possible without having to code exception for each property in javascript ?

Find workflow name by ID / KB 2144484 not working [vRO 7.3]

$
0
0

I need to find a workflow by ID. The method described in KB 2144484 (http://kb.vmware.com/kb/2144484) doesn't work. From IE I get "Can't reach this page" browsing to either "https://<vRO>:8281/vco/api/workflows" or "https://<vRO>:8281" with either FQHN or IP address. If I browse to "https://<vRO>" I get the vRA banner page and from here I can successfully launch the Orchestrator client or browse to Control Center.

 

I'm sure this is dead simple but I am stuck.

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!

Technical Preview version of VMware vRealize Orchestrator SSH plug-in

$
0
0

Version 7.1.0-7585516

  • SSHSession scripting object got a new attribute soTimeout to control socket timeout
  • Added a couple of workflows to support SSH with key pair (contributed by Burke Azbill)

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);
}

Change AD UserGroup Scope and Type

$
0
0

I was recently asked by a colleague whether or not it is possible to change Group Scope for AD Groups since the AD Plug-in for vCO doesn't give you any options for Global, Distribution, or Domain local. Upon reviewing the answer for this, I found that it also does not allow you to differentiate between creating a Security group vs. a Distribution group.

 

See my article here for my approach in creating this package:How to change AD:UserGroup Scope and Type

 

UPDATE: I had originally attached the solution package to this community thread, but it has somehow managed to be corrupted and no longer able to import to vRO when downloaded from here. As a result of that behavior, I have removed the bad file from this post here and put a good copy of the .package file on my blog article linked above.

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.

Viewing all 10285 articles
Browse latest View live