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

Simultaneous guest operations on a single machine - The operation is not allowed in the current state.

$
0
0

Hello,

 

I am having an issue where my vRO workflows fail if I attempt to perform two guest operations on a single machine at the same time.  An example of how I can recreate the issue is start a guest script workflow that loops and attempt to use the built-in get processes from guest workflow.  Below is the error.  I am using VMTools 10.1.15 on the guest and it is running Server 2016.

 

I have been trying to narrow this down for some time and finally narrowed it down to two ops running at once.  Is this a limitation?  I have been researching and I have not seen anyone with this specific case.  I have not discovered anything useful in the Logs (Windows, VMware, VMTools).

 

 

Thanks!

Cody

 

 

 

 

[2017-12-21 14:32:56.313] [E] Error in (Workflow:Get processes from guest / Scriptable task (item1)#8) The operation is not allowed in the current state.

[2017-12-21 14:32:56.320] [E] Workflow execution stack:

***

item: 'Get processes from guest/item1', state: 'failed', business state: 'null', exception: 'The operation is not allowed in the current state. (Workflow:Get processes from guest / Scriptable task (item1)#8)'

workflow: 'Get processes from guest' (C98080808080808080808080808080800180808001322751030482b80adf61e7c)


Evaluate text file on GuestVM (Windows 10)

$
0
0

I have a workflow that will continuously runs a file, reboots the VM, runs the same file, reboots the vm, etc.  In this loop, I need to place a way to evaluate a log file.  I am looking for a single line in the log file (this is a log file that gets appended during the execution of the file that gets run automatically).  If the evaluation does not return the string I am looking for,  it will continue with the loop;  if it does find the string, I want the workflow to stop.  How can I do this thru Orchestrator?  So, the workflow will look

 

1.)  run file

2.) test for string

3a) If string does not exist in file, reboot vm and Go to Step1

3b)  If string does exist in file, stop workflow

 

 

How can I accomplish this?  Thanks

 

Tom

vRO 7.3 Internal Server Error when accessing controlcenter

$
0
0

Hey Guys

 

i´ve just deployed an vRO7.3 and configured it to use sso. I´ve put the right sso vcenter, the admin creds, the admingroup accepted the certificate. Checked the validation, everything was green only reboot was missing. After rebooting the appliance i was able to Login to the vRO application with my AD credentials and was in the vRO. Thought perfect everything fine.

 

Then i went to the controlcenter and got this error:

HTTP Status 500 - Internal Processing Error

type Status report

messageInternal Processing Error

descriptionThe server encountered an internal error that prevented it from fulfilling this request.


Pivotal tc Runtime 3.1.5.RELEASE/8.0.36.A.RELEASE

 

In the browser adress bar i saw: https://myvcentersso.com/websso/SAML2/SSO/vsphere.local?SAMLRequest=zVRbb5swF ..................

 

I´ve got the same error several months ago and cannot remember exactly the Problem. I only now that i´ve deployed the appliance again did a snapshot, and configured the SSO again and again. At one Point i´ve changed anything during the sso configuration. Maybe the IP instead of FQDN??

 

Does anyone have an idea what to do???

Is it possible to reset the appliance without reinstalling? Maybe a SSO reset, so that i can connect again to the Control Center and configure again?

Error with FileManager.MakeDirectory

$
0
0

Hi all,

 

I need to create a directory on a specific Datastore.  I use 'MakeDirectory' method from 'FileManager' as the following:

 

fileManager.makeDirectory("[myDatastore] myFolder/mySubFolder", Datacenter, true);

 

(knowing that 'fileManager' is instantiated, 'Datacenter' too and the Datastore does exist and is accessible).  The execution throws: "The object has already been deleted or has not been completely created".

 

Does anybody have an idea?

 

Thanks

 

Fred

Get VM name from request ID

$
0
0

Is it possible to retrieve the VM name of a newly provisioned vm from the catalog item request.id?  I know you can get the value from a known machine with the following:

 

System.getModule("com.vmware.library.vcac").getPropertyFromVirtualMachine(host, objVCACVirtualMachine, "__Cafe.Root.Request.Id")

 

I am hoping for something along the lines of (poorly formed query, but giving the idea):

     Server.findForType("vCAC:VirtualMachine","__Cafe.Root.Request.Id" == requestID);

 

At the moment, the only known is the request ID, however if there is a better way to retrieve the name of the newly created VM I would love to know.  From there I can perform the rest of the post provisioning tasks I need to take.

 

Any help would be greatly appreciated!

vRO Use Cases

$
0
0

I know this question could also be considered a vRealize Automation question. I posted in the vRO forums because vRO is the engine to get these done.

 

My question is this: Listed below are some use cases I have implemented. What are some other use cases for vRA/vRO?

I am especially interested in Infrastructure as a Service but feel free to post any use case!

 

What I do today:

 

VM Provisioning (Windows 2012 R2, Windows 2016, RHEL, Other Linux)

Run REST API against RHEL Satellite

VM Disk Add/Remove w/ vAPI commands against OS for Online and Extends

Add Memory to VM

Add CPU to VM

Add to specific vSphere Folder (for EMC Avamar Backups management)

vmnic Modifications, Add, Remove

VM Tagging

Guest OS Modifications via (vAPI); Example: Restart a Service

VMtools Upgrades

VM Hardware Version Upgrades

MS Cluster - Shutdown/Startup

Change Guest-OS Type

Cisco UCSM API Calls (Add VLAN to Port Channel)

Cisco UCS Central API Calls (Roll out new template)

Cisco UCS Director API Calls (Mainly used to gather information)

Fabric Zone Creation - Brocade & Cisco MDS

PureStorage - Multiple: volume creation, protection groups, snapshots, etc

EMC Isilon - Create departmental shares

SSL Certificate Generation

VMware SRM Integration - configure VM for DR and remove when decomissioned

BIG IP F5 - Multiple tasks; example: Add to Load Balancing Group and Create Redirects

Active Directory (CRUD)

DNS (CRUD)

 

Integrations:

Thycotic for password/username

Solarwinds IPAM for IP Management

SNOW (ServiceNow)

 

Almost all of the above is done directly through SNOW catalog requests.

 

Any other Automation\Orchestration ideas out there? Would be cool to start a discussion on ideas/possibilities.

 

We haven't integrated Chef, Puppet, Ansible or Salt run books yet but are working towards it.

 

What has been useful to you or your organization?

com.vra.reservations.getReservationsForUserAndComponent throwing 404 error when more than 12 subTenants vRA/vRO 7.3

$
0
0

I'm trying to run the com.vra.reservations.getReservationsForUserAndComponent action and it seems to blow up when I give it more than 12 subTenants.  I don't know if it has to do with the size of the filter that gets created or something along those lines.  I'm currently getting around this by creating my own action and looping through each subTenant and doing a single query.  I haven't tried testing this directly against the vRA api but if someone could investigate this it would be great. We have 28 subTenants in our environment that our service account has access to so this will always explode on us out of the box and I'd think the same in most larger deployments.

Get VCVM from VM Name

$
0
0

I have a situation in which I have the name value of the VM in which I need to return the vCACVM object.  I have found a solution that seems to be working, but wonder if there is a better way to achieve the same outcome.

 

As a side note, I am hoping someone would be able to provide a brief explanation on the substringof() eq "true" found in the code. I understand it is attempting to match the value supplied in vmName, and match it to the value being found in VirtualMachineName and if it returns true, that is the vCACVM I am looking for.  I guess I am looking for a bit deeper understanding of the method, and perhaps some accompanying documentation explaining why it was available for use inside of Server.findAllForType().

 

Solution was derived from: https://communities.vmware.com/message/2622002#2622002.

 

 

Inputs:

     vmName(string)

 

Attributes:

     vcaccafehost(VCACCAFE:VCACHost)

 

Code:

var vm= Server.findAllForType("vCAC:VirtualMachine", "substringof('" + vmName + "',VirtualMachineName) eq true")

System.log("vCACObj: " + vm);


Move ADUser to Different OU

$
0
0

Hello Folks,

Full disclosure - I'm very new to scripting in Orchestrator, and I'm having a hard time getting my arms around how to navigate through some of the more custom scripting that's required sometimes. 

My challenge is pretty simple. I need to move an AD User to a new OU. I've done a good amount of research, and have come up empty.

Did some digging in the API Explorer and found the rename method of the AD_User object, but honestly.. I'm not sure if this is going to be helpful or how to even use it.

My ask is pretty simple: Has anyone done this before, and if so, would you mind sharing a snippet of how you acheived this?

Is it possible to call an Action from within another Action [vRO 7.3]

$
0
0

Actions are a great way to build libraries for workflow but there are times when I would like to call an Action from another Action. I tried:

 

myResult = GetAction("MyModule","MyAction").call( 12345678.0 , "Hello world." );

 

... and that burst into flames. I also know about calling workflows from other workflow, but isn't what I'm looking for.

If vRealize Orchestrator Plugin for vSphere Web Client lists vCenter as "Unusable" - What permissions/configurations to check for?

$
0
0

This is specific to the vRealize Orchestrator Plugin for vSphere Web Client.

 

Version details:

vSphere 6.0 Update 1

vRealize Orchestrator 7.2

 

Configuration:

The vRO is configured to Authentication against the same vCenter Server (vSphere) with domain user "superadmin" with full Adminstrator permissions on vCenter Server and vRO.

The vCenter Server instance is added to vRO with "a session per user" mode providing the domain user "superadmin" credentials.

vRO is registered as a vCenter Server extension using "Register vCenter Orchestrator as a vCenter Server extension" workflow.

 

If vRealize Orchestrator Plugin for vSphere Web Client lists vCenter as "Unusable" - What permissions/configurations to check for?

Is there a VMware documentation to refer to?

 

Thank you in advance for your time.

 

vROPluginListsvCenterUnusable.png

How to schedule a workflow using the VRO REST-api

$
0
0

Hi

Our WebClient plug-in starts workflows using the VRO REST api.  Now we want to be able to schedule the execution of the workflow.  I have seen that this functionality is availabe in the VRO itself, but can not find anything in the REST-api to do this.

Is this functionality available?

 

thanks

Cathy

Add physical to standard vswitch with orchestrator

$
0
0

I need to create a flow to manage physical network interfaces with standard vSwitches.

 

I can't find any sample or code to do it with orchestrator (using vro 7.2).

 

How can I create a custom script to assign one physical nic to one virtual switch?

 

Thanks.

 

Best regards.

SSH timeout

$
0
0

Is there a way to specify SSHsession timeout in Orchestrator's Run SSH command workflow? We seem to be getting hung up once in awhile, and it tends to happen during the destination VM boot up. Session gets opened but is not completed and get's stuck in established state indefinitely.

Xaas BP request template fails via postman API

$
0
0

We have imported a Xaas BP into vRA and its package into vRO. It is just a customized form with T-shirt size VM provisioning workflow. When we submit the catalog item from vRA portal it works seamlessly but when we get the https://vRAHOSTNAME/catalog-service/api/consumer/entitledCatalogItems/759788c4-bcfa-43d8-808b-3fa122fcbbf4/requests/templatetemplate using postman API it fails with below error

 

When I checked the vRA log the reason for failure is as below , we have manually created the Xaas BP instead of importing into vRA but still the same error appears in vRA logs. I am unsure what is service type ID in our Xaas BP. Please advice.

 

2017-07-06 11:12:45,147 vcac: [component="cafe:catalog" priority="ERROR" thread="tomcat-http--30" tenant="vsphere.local" context="KImIOHjs" token="KImIOHjs"] com.vmware.vcac.catalog.service

.impl.RequestServiceImpl.getCatalogItemInstanceBasedSchema:2381 - supplyMissingExternalSchemas failed

java.lang.IllegalArgumentException: Service type id was null or empty


Decision element based on output

$
0
0

I have created a simple workflow that merges both the Checks for File on Guest  and Deletes File on Guest canned workflow.  I am inserting a decision element that I would liek to take the OUTPUT (exists boolean out-param) from the Set Result scriptable task within (from the Check for File on Guest) and bind it to the input of my decision.  Essentially, if the exist parameter is true, it will excute the script to delete the file.  However, I can not figure out how to bind the input of the decision to the output of SetResult.  I am including a snippet showing the desired workflow.  Also below is the script of SetResult that shows the exists out-param.

 

exists = false;

for (var i in result) {

     var f = result[i];

     System.log(">" + f.path + "<");

     System.log(">" + path + "<");

     System.log(f.path + " : " + f.type + " p:" + (f.path == path) + " f:" + (f.type == "file"));

     if (f.path == path && f.type == "file") {

          exists = true;

          break;

     }

}

 

 

output.JPG

 

script.JPG

vRO inventory vSphere plug-in error in vm folders

$
0
0

Hello,

I have issue after upgrading my vRO from 7.2 to 7.3. When I go to Inventory vSphere vCenter Plug-in and try to open vm I can see: Error in plug-in

 

error2.jpg

error.jpg

 

What I noticed is that under my vCenter, user for vRO to vCenter connectivity has permissions only to specific VM folders, which I would like to stay with. When I add permissions for that user to see all VM folders (on datacenter level with propagate enabled) I can see those folders in vRO. It is only related to vRO 7.3, on my previous vRO 7.2 everything is ok.

 

Did you meet such problem? Any idea?

 

vRO 7.2 and Update Manager 6.5 plugin

$
0
0

Hello I searched for update manager 6.5 but nothing came up. Is there a UM 6.5 plugin for vRO 7.2?

Applying a .reg file to Windows 10 Registry.

$
0
0

I have a REG file that I store on my VCO appliance.  I have a work flow that will copy that REG file to my guest OS.  That woks fine.  I would like to apply that REG file and insert the data into my registry.  I have a workflow that will launch a program on the guest.  I am assuming that is probably what I will need to use.  I have tried a few variations of this, but it is not working.  What would be the best way to do this?

Reporting with word docuements

$
0
0

Hi,

 

My need today is to create a report for a worklow which creates a VM.

 

My first thought was to create a word document with bookmarks, and use VCO PowerShell plugin to run a script which edit bookmarks values..

 

I end up with a well-running script on my PowerShell host. But as soon as I try to call it from VCO, I end up with messages llike this

 

System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression.

 

Script is very light and simple

 

$Filename = "C:\data\Scripts\Bookmark1.docx"

$Filename = "C:\data\Scripts\Bookmark1.docx"

$Word = New-Object -ComObject Word.Application

$Document = $Word.documents.open($Filename)

$Bookmark = $Document.Bookmarks("Book2").Select()

$Word.Selection.text = "Bookmark is filled"

 

I've digged up a bit, and it seems that, as soon as VCO hits line 4, it goes boom.

 

Does anybody had any experience with this ? Can you help me ?

 

Thanks

Viewing all 6251 articles
Browse latest View live


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