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

Rest API Workflow to Service Now

$
0
0

I have a workflow that works perfectly in vRO 6.0.3.  I migrated the workflow to vRO 7 and I am getting this error when running : Unsupported value for header: Accept=*/*  I'm setting the header with this command

request.setHeader("Accept","application/json");

 

Here is the full response

 

|  'attribute': name=errorCode type=String value=

|  'attribute': name=restOperation type=REST:RESTOperation value=dunes://service.dunes.ch/CustomSDKObject?id='d18034f6-cdd2-484e-bfbd-752ac1274f3d:7f70ca66-6c2f-4353-bcad-e96843fbd2fc'&dunesName='REST:RESTOperation'

|  'attribute': name=statusCodeAttribute type=Number value=400

|  'attribute': name=hostResource type=ResourceElement value=dunes://service.dunes.ch/ResourceElement?id='0dc69f5c-e39e-49a8-bd65-9cbd6bda9b2d'&dunesName='ResourceElement'

|  'output': name=statusCode type=Number value=400

|  'output': name=contentLength type=Number value=232

|  'output': name=headers type=Properties value=#[#Snapi-Request-Id#=#string#a288deff-68d3-48b6-8478-d841c53bc001#+#Strict-Transport-Security#=#string#max-age=15768000; includeSubDomains;#+#Server#=#string#gunicorn/19.3.0#+#X-Cnection#=#string#close#+#Set-Cookie#=#string#JSESSIONID=C2C4D02AB5F1042977303385B65B0EC2;Secure; Path=/; HttpOnly, BIGipServerpool_disney=1400914186.41278.0000; path=/#+#Content-Length#=#string#232#+#Date#=#string#Sun, 28 Feb 2016 03:27:23 GMT#+#Content-Type#=#string#application/json#]#

|  'output': name=contentAsString type=String value={"error":{"message":"Unsupported value for header: Accept=*/*","detail":"Unsupported value for header: Accept=*/* Check logs for error trace or enable glide.rest.debug property to verify REST request processing"},"status":"failure"}

|  'output': name=numbers type=Array/string value=#{##}#

|  'output': name=output type=string value=[]

|  'output': name=results type=string value={"error":{"message":"Unsupported value for header: Accept=*/*","detail":"Unsupported value for header: Accept=*/* Check logs for error trace or enable glide.rest.debug property to verify REST request processing"},"status":"failure"}

|  'no inputs'

*** End of execution stack.

 

Anyone seen this and have any idea?


Can't see vRA Tenant Items in vRO

$
0
0

Hi,

I’m a just starting out in vRO (and vRA, all version 7) and having some problems.

I follow this great post but I stuck at “Assign a state change workflow to a blueprint and its virtual machines”.

After selecting the “vCAC host” (the IaaS server?)

I need to select the Blueprint; the problem is that I can’t see my blueprint from vRO.

I can see this list –

 

 

Under this I have all sort of items (tenant, business groups, Catalog items etc…) but not from my tenant (blueprints, services and catalog items)  –

 

Do I need to import/register my Tenant?

Do I need to import/register the blueprint?

Is it permission problem?

vRealize Orchestrator 7 - SSO issue

$
0
0

Hi,

 

I have deployed vRealize Orchestrator 7 appliance in my staging environment. I have configured vSphere as "Authentication mode", see attached screenshot:

firefox_2016-02-29_11-29-20.png

According to the web UI the authentication provider has been well configured.

 

When I want to login through "Orchestrator Client" there is "Current node is not ACTIVE" :

jp2launcher_2016-02-29_11-35-35.png

In /var/log/vco/app-server/server.log I found these message :

putty_2016-02-29_11-38-07.png

I guess you probably will ask for more information, please feel free to.

 

Thanks for your help,

 

Regards,

 

Fred

Query member of ldap group

$
0
0

Hi,

I am writing a workflow in vRO that, as part of the run, will check if the user running the workflow is a member of a certain ldap group. It seems like a fairly simple task but I'm no developer so if it's more than a basic script then it's in the realm of 'difficult'.

 

For info, the ldap group itself will be determined by looking up the value of a custom attribute of a vcenter VM and looking up the relevant ldap group in a hash map.

 

hopefully this is nice a simple!

 

Cheers.

NSX-v DynamicTypes plug-in V2 Installation fails with vRO 7

$
0
0

Hi everybody,

 

I'm having similar problems to this topic:

NSX-v DynamicTypes plug-in V2 Install Failed

 

Clean install of vRO 7.0.0.16989-3310032 with DynamicTypes 1.1.0.3209451

Packages:

dynamictypes-plug-in-generator-version-0.0.25.package

nsx-v-version-0.0.8.package

 

The packages had to be modified with hazenet'ssolution found here:

https://flowgrab.com/project/view.xhtml?id=49a97305-a6d6-4c81-a44f-a492c2299c34&download=true&download_id=DownloadTask-4643347098158664

Due to a bug (?) with installing packages from Flowgrab with vRO 7.

 

Anyway, when running Plugin gen -1- install plug-in the workflow throws a validation error as seen below:

 

Screenshot_1.png

 

Looks like the namespace parameter is not bound:

Screenshot_2.png

 

Yet the workflow requires the "namespaces" parameter:

Screenshot_3.png

 

I guess I could fix this and simply bind a parameter with null value but it would probably mess up the import code where the namespaces are passed:

 

DynamicTypesManager.importConfigurationFromPackage(namespaces, file);

 

Anyway, what should be the namespace there? Any way to hardcode it or properly fix it? Maybe just pass an empty array?

 

Regards,

Mike

Orchestrator 7 not interacting with vCenter

$
0
0

Hi,

 

I have deployed Orchestrator 7, "Authentication Provider" seems to be well configured so I can login to the client with SSO based account.

chrome_2016-03-01_14-34-04.png

Host address: myvcenterFQDN

URL: myvcenterFQDN/cm

Admin group: mySSOdomain\Administrators

Default tenant: mySSOdomain

 

If I go to workflows then try to run "Create simple virtual machine"

javaw_2016-03-01_14-47-15.png

I do not see anything in "vCenter Server" entry:

javaw_2016-03-01_14-47-02.png

it looks like Orchestrator has to permission on vCenter.

 

Should I change something?

 

Regards,

 

Fred

Add Properites to SOAP invoke request

$
0
0

Hello,

I created a workflow that invokes a soap request but it only lets you add a subset of properties that I want to add to my request.  I know it creates the below

 

System.log("creating request...");
var request = operation.createSOAPRequest();

request.setInParameter("request.machineId",request_D_machineId);
request.setInParameter("request.properties[0]",request_D_properties_OB_0_CB_);
request.addInParameterAttribute("request.properties[0]", "name", request_D_properties_OB_0_CB__OP_name_CP_);
request.addInParameterAttribute("request.properties[0]", "value", request_D_properties_OB_0_CB__OP_value_CP_);

 

is it just a matter of adding a bunch of below:

request.addInParameterAttribute("request.properties[0]", "name", request_D_properties_OB_0_CB__OP_name_CP_);

request.addInParameterAttribute("request.properties[0]", "value", request_D_properties_OB_0_CB__OP_value_CP_);

 

or should create a properties parameter?

AD User Account Creation Properties - Cannot Change Password And Password Never Expires

$
0
0

Hello,

 

Does anyone know how to leverage the AD Plugin 2.0 to address setting the switches "Cannot Change Password" and "Password Never Expires" for a AD user account?  I noticed the plugin has a method associated with the scriptable object for setChangePasswordAtNextLogon but not the two referenced above.  Can it be done through the setAttribute method?

 

Thanks in Advance,

 

Mike


Technical Preview Version of VMware vRealize Orchestrator Plug-In for VMware Update Manager 7.0.0

$
0
0

Version 7.0.0.3615605

  • This version is compatible with vSphere plug-in 6.0.2 (packaged with vRO 7.0) and above
  • Ability to manually/automatic accept EULAs
  • Cluster-ready plugin
  • Support for update category patch criteria
  • Configuration workflows for managing

Package Generation for syncing to other vRO servers.

$
0
0

I would like to develop a workflow script or action capable of creating a new Package and have that script add workflows, configurations and actions that i specify into that package.  I've got a multi-developer project that will have multiple 'packages' each with a large number of workflows, actions and configurations that may change often.  Managing a package manually seems like it would be prone to human error and automation seems the best approach here.

 

I've learned how to utilize scripts to enumerate thru workflow categories (ie, folders) to grab all workflows associated with a project. But i cannot seem to locate any possible way to create a new package and add items to it. the new package() constructor can be called, and name assigned but no package is actually created in vRO, and there's no .save() method documented.

 

I've found there are a huge number of undocumented ways to access information while inside a workflow script, and i was hoping someone had a way to do this.  If it's not possible via script, is it possible via a plugin? i haven't learned plugin development yet but would be willing to if it's required for interacting with packages.

 

Thanks for any help anyone can provide.

How to create a Property Group and assigned to that Property Group to a BluePrint in vRA 7.x via vRO 7.x workflow?

$
0
0

Dear,

 

Currently I am having some issue with creating the Property Group in vRA 7.x via some workflow in vRO 7.x.

I would like to design a workflow in vRO and from that workflow I need to create a Property Group in vRA and also need to assign that Property Group with some existing BluePrint in vRA.

I can do this thing by manually from vRA but I am looking for some API/actions so that I can do the same thing from vRO workflow.

 

Can you please help me ?

 

Thanks,

Koushik

About vRealize Notification Problem

$
0
0

I have a question. I am using Trial Version vRealize Operations Manager 6.0. System is working as stabil. But I have a problem when send notification e-mail. All Notifications Message arrive for once my e-mail. Then, Only Message arrive for one virtual machine. The Others Virtual machine messages doesn't arrive. Notification screen is below.

 

Can you help me? Regards.vRealize Notification.jpg

Virtual Machine Disks consolidation is needed

$
0
0

Hi All,

 

     After removing the snapshots through orchestrator,  login into the VI-client, the VM summary shows that "configuration Issues" "Virtual Machine disks consolidation is needed".

 

Could you guide me how to do consolidation through orchestrator.

 

 

"

var logtext;
if(activeSnapshot.config){
var vmName = activeSnapshot.config.name;
var snapshotID = activeSnapshot.id;

var task = activeSnapshot.removeSnapshot_Task(removeChildren);
//var task = activeSnapshot.removeSnapshot_Task(consolidate);
var actionResult = System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(task) ;

logtext = "The snapshot with the id " + snapshotID + " from the Virtual machine '"+vmName+"'has been removed.";
}else{
logtext = "The snapshot with the id " + activeSnapshot.id + " has already been removed.";
}

content = content + "<br>" + logtext;
System.log(logtext);"

 

Note:- The above code belongs to Remove snapshot code.

AD Plugin: get configuration

$
0
0

Hi,

 

with AD Plugin 2.x i can use multiple domains. But now i need to focus one of these in my workflows. For example: i need to create a computer account in a specified domain (1 of 20).

My reasoning is to search for all configured domains about their properties, but i can't get this.

 

var configuration = new AD_ServerConfiguration();


configuration = ConfigurationManager.getConfigurationById("c4a40c51-dc14-4ae6-b699-c1d65b764acc");
var host = configuration.host;
System.out(host);

 

The Output is: TypeError: Cannot find default value for object.

 

Does anyone have an idea? How focused you your domain?

wfToken doesn't return all the output parameters of the launched workflow

$
0
0

Hi there,

 

[Details: vro 6.0.2 build: 2700137 ]

I have this below code to save the launched worflow parameters.

var wfToken = workflowToLaunch.execute(workflowParameters);

 

Following are the outputs of launched workflow:

1. dbUpdated (boolean)

2. errorOutput (string)

3. uuid (string)

 

I am trying to get the values from wfToken variable using following code:

  var outputs = wfToken.getOutputParameters();

 

The issue is that only dbUpdated and uuid are showing up where as errorOutput is null. I can see in the launched workflow logs that the errorOutput has a value but it shows null when I try to get it using below method. Please help.

  System.log ("+++++++++++++++++++++++" + outputs.get("uuid"))

  System.log ("+++++++++++++++++++++++" + outputs.get("errorOutput"))

  System.log ("+++++++++++++++++++++++" + outputs.get("dbUpdated"))

 

 

Thank you,

 

Ritu


Odd deadlock errors

$
0
0

Has anyone seen these type of update errors (attaching stacktrace). I am getting this on one of our systems (v5.5.3) with MSSQL database:

 

2016-03-03 11:54:25.260-0500 [8a81abd7533d613901533d66b02f009e] WARN  {USERID:WORKFLOWNAME:7da698be-aea1-4f6d-8793-02e88559c135:8a81abd7533d613901533d66a4f7006e} [WorkflowItemSubElementsRunner$SubWorkflowHandlerImpl] Unable to update a sub workflow token / content

ch.dunes.util.DunesServerException: org.springframework.dao.CannotAcquireLockException: could not execute batch; SQL [update vmo_subworkflowtoken set globalstate=?, itemname=?, parentwftokenid=?, runningpassword=?, runningusername=?, serveruri=?, workflowid=?, workflowtokenid=? where id=?]; nested exception is org.hibernate.exception.LockAcquisitionException: could not execute batch

 

It seems to be intermittent on a couple of workflows that use locking mechanism and nested type of sub workflow calls.It results in outer workflow hanging indefinitely. ALLOW_SNAPSHOT_ISOLATION and READ_COMMITTED_SNAPSHOT are set on the database.

 

I have a support case opened but I hope someone ran into this type error and can point in the right direction while I am waiting for support to complete their investigation.

How can I retrieve ResourcePool in vRealize Orchestrator without using vCenter Server plugin installed in vRealize Orchestrator

$
0
0

Hello,

 

 

I'm trying to get ResourcePool from the vCenter into vRealize Orchestrator but there is no vCenter Server instance in the vCenter Server. Can anyone suggest how we can do this using JavaScript or any other way.

 

 

Thank You.

VRO Active Directory Plugin support for Cross Domain / Trusted domain operations?

$
0
0

I know the new AD plugin supports multiple domains, but I wanted to know if it works with cross domain operations(Domain Trusts).

I am trying to add a user/computer from domain A to AD Security group in domain domain(B) which is trusted.

Using the default AD plugin comes with vRO 6.0.3(Active Directory 2.0.3.2824604)

Change VM Notes to AD Computer Description

$
0
0

Hi,

Simple Question..

We upgraded from vCenter 5 to VCA 6 with vRO 7. in vc5 we had Shell scripts that changes VM Notes with Computer Description in Active Directory (AD is our Master).

I want to do the same workflow in vRO, but didnt find the right objects..

Any idea?

 

thx

trunx

Custom resource types

$
0
0

Can anyone point me to some documentation of any sort on custom resource types ?

 

What I'm trying to find out is if one was going to create a advanced service to  request/release pulic ip address, what type should be used for that ?

 

Is the DynamicTypes:DynamicObject type or something else ?

 

Thanks

Viewing all 10285 articles
Browse latest View live