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

vCACCAFEHost.getHostWithCredentials problem

$
0
0

I am trying to create temporary vCAC host using the api host = vCACCAFEHost.getHostWithCredentials(Username,Password); I also tried the vCACCAFEHost.getHostForTenant and I always get following exception with cannot find function. Do I need to do something?

 

2016-03-05 21:51:08.756] [E] Error in (Workflow:SapScaleUp / Construct BP Object (item6)#1) TypeError: Cannot find function getHostWithCredentials in object DynamicWrapper (Class) : [vCACCAFEHost]-[class com.vmware.o11n.plugin.vcac.model.VCACHost] -- VALUE : null.

[2016-03-05 21:51:08.777] [E] [class com.vmware.o11n.plugin.vcac.model.VCACHost] -- VALUE : null. (Workflow:SapScaleUp / Construct BP Object (item6)#1)'


How to generate the Web service client stub from Orchestrator WSDL definitions by using code Axis generator

$
0
0

How to generate the Web service client stub from Orchestrator WSDL definitions by using code Axis generator 

 

I have tried with Axis2 1.6.1 code generator through command line tool. My command was

 

wsdl2java.bat -o -uri http://xx.xx.xxx.xxx:8280/vmware-vmo-webcontrol/webservice?WSDL

 

Is it correct command to generate the Web service client stub from Orchestrator WSDL definitions?

 

I am not able to see the following classes get generated with above command VSOWebControlService.java, VSOWebControlProxy.java, VSOWebControlServiceLocator.java

 

 

-AnuragR

Clone from template without network

$
0
0

Hi,

 

I want to create a new workflow which do the followings tasks:

1. clone from a template (no network adapter is connected to the template)

2, add a new network adapter to the new virtual machine

3. run sysprep (config the network adapter, add to domain etc)

 

I find  the workflows which deal with cloning, but all of them begin with getting information about the network adapter of the template.

Therefor, when I try to use these workflows, I receive the error: Fault.NicSettingMismatch.Summary

 

Is there any other workflows that I can use in order to accomplish my task?

 

Thanks!

vRO 6 - input validation on array of values - array of IP addresses

$
0
0

I'm working on a workflow, where the users have to input an array of IP addresses. The validation takes place in the user presentation, via Custom Validation, where the input IP address array is called and an action with the following code is executed:

 

var re = new RegExp("^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$");

for each (IP in IPAdresses){
    System.log("Checking IP: " + IP);    if (!IP.match(re)) { return "IP " + IP + " incorrect" } else { return null }
}

 

This works for a single input, with an array, only the top element (the last inserted) is checked in the user presentation. How should I modify the action, so that all input values are validated?

Thanks in advance...

Add orchestrator server with multi-node plug-in error - java.lang.NullPointerException

$
0
0

Hi all,

I have fresh installation of vRO 6.0.2 for testing purposes.

I have to test all our features and one of these is interconnection with multi-node plug-in.

My case is: I have one instance of vCO in version 5.1 and multi-node plug-in in version 72 (the latest one for this build) and trying to connect to my new vRO 6.0.2 (with build-in multi-node plug-in).

I am able to connect server and I see him in inventory, but when I try to generate a proxy workflows, I got the error

java.lang.NullPointerException (Workflow:Add an Orchestrator server / Add host (item0)#14)

Here is server.log output:

2015-09-09 21:44:03.426+0200 [http-bio-10.77.38.46-8281-exec-3] INFO  {} [Execution] Executing workflow 'Add an Orchestrator server'
2015-09-09 21:44:03.426+0200 [org.springframework.jms.listener.DefaultMessageListenerContainer#0-2] INFO  {} [Execution] Invoking workflow handler.8acda6ae4fb305de014fb3a2ed62023e
2015-09-09 21:44:03.714+0200 [WorkflowExecutorPool-Thread-27] INFO  {Add an Orchestrator server:8acda6ae4fb305de014fb3a2ed62023e:eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86:[eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86]} [Config_Network] get Properties:
2015-09-09 21:44:03.714+0200 [WorkflowExecutorPool-Thread-27] INFO  {Add an Orchestrator server:8acda6ae4fb305de014fb3a2ed62023e:eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86:[eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86]} [Config_Network] getRemoteCertificate:
2015-09-09 21:44:03.729+0200 [WorkflowExecutorPool-Thread-27] INFO  {Add an Orchestrator server:8acda6ae4fb305de014fb3a2ed62023e:eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86:[eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86]} [Config_Network] certificated found:1
2015-09-09 21:44:03.729+0200 [WorkflowExecutorPool-Thread-27] INFO  {Add an Orchestrator server:8acda6ae4fb305de014fb3a2ed62023e:eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86:[eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86]} [Config_Network]  - Common Name (6 characters min) = vro_server
2015-09-09 21:44:04.051+0200 [WorkflowExecutorPool-Thread-27] INFO  {Add an Orchestrator server:8acda6ae4fb305de014fb3a2ed62023e:eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86:[eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86]} [Config_Network] Imported certificate from X.509 into dunes keystore
2015-09-09 21:44:09.208+0200 [WorkflowExecutorPool-Thread-27] WARN  {Add an Orchestrator server:8acda6ae4fb305de014fb3a2ed62023e:eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86:[eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86]} [RestTemplate] GET request for "https://vro_server:8281/vco/api/inventory/System/Workflows/" resulted in 404 (/vco/api/inventory/System/Workflows/); invoking error handler
2015-09-09 21:44:09.208+0200 [WorkflowExecutorPool-Thread-27] WARN  {Add an Orchestrator server:8acda6ae4fb305de014fb3a2ed62023e:eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86:[eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86]} [ProxyWorkflowManager]
2015-09-09 21:44:09.208+0200 [WorkflowExecutorPool-Thread-27] INFO  {Add an Orchestrator server:8acda6ae4fb305de014fb3a2ed62023e:eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86:[eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86]} [SCRIPTING_LOG] java.lang.NullPointerException (Workflow:Add an Orchestrator server / Add host (item0)#14)
2015-09-09 21:44:09.208+0200 [WorkflowExecutorPool-Thread-27] WARN  {Add an Orchestrator server:8acda6ae4fb305de014fb3a2ed62023e:eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86:[eaef3c7d-c71e-4fa9-b70a-1ac3d807ba86]} [WorkflowItemTaskRunner] Script execution error on workflow : Add an Orchestrator server / 'Add host'(item0) : java.lang.NullPointerException (Workflow:Add an Orchestrator server / Add host (item0)#14)

 

Should this be caused by missing firewall rules?

 

Thanks,

Jan

Not able to add 2nd Powershell host from another domain

$
0
0

I am using powershell plugin 1.0.6.

 

below is the content of my krb5.conf, I was able to add the powershell host for the default_realm but now when I try to add the host from the second domain I am getting below error.

 

No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Fail to create credential. (63) - No service creds)) (Dynamic Script Module name : addPowerShellHost#16)

 

below is my krb5.conf file. not sure what I am missing here.

 

[libdefaults]
default_realm=ABC.CORP
udp_preference_limit = 1
dns_lookup_kdc = true
[realms]
ABC.CORP = {
kdc = tc2dcad101.abc.corp
kdc = tc2dcad102.abc.corp
admin_server = tc2dcad101.abc.corp
default_domain = abc.corp

}
123.XYZ.PROD = {
kdc = lontc2dc01.123.xyz.prod
kdc = lontc2dc02.123.xyz.prod
admin_server = lontc2dc01.123.xyz.prod
default_domain = 123.xyz.prod

}
[domain_realms]
tc2dcad101..abc.corp=ABC.CORP
tc2dcad102..abc.corp=ABC.CORP
lontc2dc01.123.xyz.prod=123.XYZ.PROD
lontc2dc02.123.xyz.prod=123.XYZ.PROD

[logging]
default = FILE:/var/log/krb5/krb5kdc.log
kdc = FILE:/var/log/krb5/krb5kdc.log
admin_server = FILE:/var/log/krb5/kadmind.log
# default = SYSLOG:NOTICE:DAEMON

Issues using vRO to set permissions in vCenter 6.0U1b

$
0
0

Hello Guys,

I installed a vCenter 6.0U1b appliance and a vRO 6.0.3 appliance using both the PSC (SSO) authentication (Active Directoryy integrated). Our domain is formated as follow: subdom.domain.com.

 

If I manage permissions with the vCenter Web Client console, I'm able to supply the AD account principal using the following syntax: subdom.domain.com\username. And the permissions are working fine (Web Client and vSphere Client).

In case I use vCenter API through Orchestrator vCenter Plugin the permissions are always set with the form subdom\username, and thanks to vCenter 6 Web Console, the object is not available for the user (but still available with the vSphere "old school" Client)

 

Are someone else aware of this issue and maybe (I hope so ) a workaround already exists?

 

Thanks for your help.

 

Bz.

vRA Event Subscription does not update properties.

$
0
0

Good morning all.

I'm trying to use the Event Broker Template workflow to update a property. I downloaded them from this URL vRA7 Event Broker Workflow Templates

 

I can see the event fire in the event log, and the workflow does come back as successfully run, but the property is never added or updated. However, the log has no information in it.

 

//Update or add any Custom Properties here, for example:

virtualMachineAddOrUpdateProperties = new Properties();

virtualMachineAddOrUpdateProperties.put('some.bogus.property', 'ACME');

 

virtualMachineAddOrUpdateProperties is bound to an output parameter with the same name.

Screen Shot 2016-03-08 at 11.39.57 AM.png

 

The log issue is consistent if running the client on MAC or PC (Win 7).

 

vRO client is version 7.0.0.3310137.

 

I'm not sure how to troubleshoot this, or even if I'm chasing a bug.

 

For those that were able to get this work, would you be kind enough to provide some working code?


AD Plugin return AD:OrganzationalUnit type

$
0
0

I am trying to update my AD plugin to a more recent version but encountering conversion error while working with AD plugin v2.0.6:

 

Unable to convert object, no sdk type defined for class : #_v2_#,#ActiveDirectory#,#8f281e6b-d8e7-4417-9a73-2519b635950e#,#DC=example,DC=com#

 

Using older AD plugin v1.0.3 we could extract sub-domain reference from a configuration element with attributes set as AD:ActiveDirectory type, and return with output parameter set to AD:OrganiazationalUnit type. Is this type conversion no longer supported?

How can I set specific Properties on a Virtual Machine when I provision from VRA 7?

$
0
0

Hello,

 

Here is a simple scenario - I have Linux VM on which I have my own properties "Property_1" and "Property_2". I have converted this to template.

 

On VRA 7 I have used this template in Blueprint and I do use Clone and Workflow type as Clone Workflow.

 

Is It possible for me pass the Property_1 and Property_2 from VRA and set this on the newly Cloned VM. If yes, will these values be set before the machine is created or after machine provisioning.

 

I could not get this working on VRA 6.x, so wanted to check if this supported in VRA 7.

 

Thanks,

Pankaj

vCAC bulk import question

$
0
0

Hi,

 

While doing a bulk import is the Grow Allocation and Increase Quota option selected by default?

When importing a single server, we manually have to select these options as Yes or No.

 

Need help in understanding the same.

 

Regards,

Chetan

issues to run ssh commands on hp OA

$
0
0

Hello,

 

I am having issues to run ssh commands on HP onboard administrator, I'm getting the following error:

Unable to execute command: InternalError: SSH_MSG_DISCONNECT: 2 Too many authentication failures for Administrator  (Workflow:Run SSH command / Execute SSH Command (item6)#20) (Workflow:Run SSH command / Execute SSH Command (item6)#36)

 

Did some of you got the same? any ideas ?

Thank you

Register vCenter VM in VRA without Data-Collection

$
0
0

Hi Community,

 

just wondering if there is any replacement for the depricated (and no longer functional as well) vRO Workflow "Register a vCenter Virtual Machine". It used to created the required model data in the vRA database but since it's no longer working one would have to run a full data-collection just to for example use the "Import vCenter Virtual Machine" workflow.

 

Any "official" way around this without data-collection?

 

 

Greetings

Robert

vRO workflow token can't get it's complex type attributes by invoking method WorkflowToken.getAttributes()

$
0
0

I have a workflow with a complex type attribute, default value was null for the attribute,  I want to run a script task to print current workflow token's attribute values by invoking method WorkflowToken.getAttributes(). Don't say to bind attribute with input/output parameter of script task than use the attribute directly, My objective is to create a generic action to do that thing. My script is:

var token = workflow;
System.debug(token);
if(token == null)
{    throw "No workflow token found";
}


System.debug("startDate: " + token.startDate);


var attributes = token.getAttributes();
if(attributes == null || attributes.keys.length == 0)
{
    throw "No attribute found for current workflow.";
}
System.debug("found " + attributes.keys.length + " attributes from current workflow.");


var keys = attributes.keys;
for (var i in keys) {
    var curKey = keys[i];    var curValue = attributes.get(curKey);   System.debug("attribute key: " + curKey + " attribute value: " + curValue);
}    System.debug("attribute key: " + curKey + " attribute value: " + curValue);
}

 

When I don't set value for the complex type attribute.

ComplexTypeNoValue.png

I could retrieve the attributes and get and null value of the complex type attribute.

Log.png

But once I set value of the complex attribute.

ComplexTypeWithValue.png

I got error when running the script task.

ErrorLog.png

I have tried many kinds of complex type, still get same error,I suspect if there's defect on vRO to retrieve complex type attributes from workflow token, or is there anything I missed? Can someone help me?

Technical preview version of VMware vCenter Powershell Plug-in 1.0.x

$
0
0

Technical preview version of VMware vCenter Powershell Plug-in 1.0.3

Version 1.0.3-304:

  • Fixes plugin inventory not shown when connecting to PowerShell 3.0 host 

 

Version 1.0.4

    Officially released version of VMware vCenter Powershell Plug-in 1.0.4 available here :VMware vCenter Orchestrator Plug-In for Microsoft Windows PowerShell Release Notes


Version 1.0.6 (2442318)

Prerequisite   : vCO 5.5.2+

Supports        : PowerShell 2.0, PowerShell 3.0, PowerShell 4.0

What's new   

    • Resolves problem adding powershell host that is not member of default realm in krb5.conf


Please use GA release of the plugin 1.0.7 availalbe as part of vRealizer Orchestrator 7.0.0


Please note, that the attached plug-in is QE verified, but still not a final version.



ActiveDirectory plugin - getAttribute("objectSid")

$
0
0

Hi,

 

Using v2.0.7 of the ActiveDirectory plugin, trying to get a User SID, and it returns something along the lines of "����~��+ט2" instead of the actual SID.

 

user.getAttribute("objectSid");

 

I can retrieve other attributes without an issue.

 

Can this be replicated by anyone else, if so is this a bug in the plugin?


Using vRO Appliance 6.0.3

Technical preview version of VMware vRealize Orchestrator Plug-In for Mail

$
0
0

Technical preview version of VMware vRealize Orchestrator Plug-In for Mail

This is a patch release of the plug-in.


Version7.0.0-3426007


  • Fix "Configure mail" standard workflow - swapped fromName and fromAddress parameters in the scripting ConnectionManager.save() call



SSL Page Accessibility Issues

$
0
0

We are building a new server that will be used to remotely kick off Orchestrator workflows using the web service (https://<servername>:8281/vco/vmware-vmo-webcontrol/webservice).  We ran Windows Update on the new server so that we are fully up to date.  Now when we try to access the URL to our Orchestrator server, we cannot connect.  If we open the URL in Internet Explorer, it returns with "This page can't be displayed".  If we open the URL with Google Chrome, we receive a bit more info stating that "This site can't provide a secure connection".  More details provided from Chrome state "The client and server don't support a common SSL protocol version or cipher suite".

 

The Orchestrator environments that have this issue are running on 5.5 and 6.0.  We also have a new environment running on 6.0.3 that was accessible from the new server.  We found another article on here saying to change the cipher value in the server.xml file, but that did not fix our issue. Does anyone know of any other fixes or workarounds for this issue other than to upgrade to 6.0.3?

 

Thanks,

Dan

SNMP scripting help

$
0
0

I am trying to script it so that when vCenter sends an SNMP trap that Orchestrator will pull the VM Name and send it to a workflow. I've been trying to make this using examples online, but it seems I have messed something up and I"m not sure where. The error I get is syntax error (no infos#17). Please help.

 

System.log("SNMP Trap Received");

System.log("Agent: " + event.getValue("agent"));

var key = event.getValue("key");

var snmpResult = SnmpService.retrievePolicyData(key);

// Get data as Array of Properties

var data = System.getModule("com.vmware.library.snmp").processSnmpResult(snmpResult);

System.log("Enterprise: " + snmpResult.enterprise);

// Log data

System.getModule("com.vmware.library.snmp").logResult(data);

 

 

//Custom to call Workflow to add vCPU

 

 

for (var i=0; i< data.length; i++) {

  var elem = data[i];

  var oid = elem.get("oid");

  var value = elem.get("value");

 

  if(oid = ="1.3.6.1.4.1.6876.4.3.307.0"){

  System.log("Launching workflow to add vCPU...");

  var params = new Properties();

  params.put("vmName", value);

  Server.getWorkflowWithID("f3c718f6-61a6-47d7-ad2b-2957ed02cf6e").execute(params);

  break;

  }

  else {

  System.log("VM name not found!!!");

  }

  }

AD Plugin doesn't display subdomains

$
0
0

I am trying to configure AD plugin 2.0.7 on Orchestrator 5.5.3. Loaded plugin fine and configured root domain with SSL connection (set it as default domain), however our subdomains are not showing up. All child domains listen on the same port number.

I am not sure if this is something to do with the way new plugin needs to be configured. Do we need to configure each child domain connection directly?

 

Also, is it normal for this version of plugin not to have a configuration page entry on the Orchestrators config web UI (service port 8283)?

 

Edit: in the orchestrator client, within my AD plugin tree I found that general tab details state that Sub domain autoconnect is set to false. However, I can't locate anywhere within plugin configuration workflows and option that allows me to set it.

Viewing all 10285 articles
Browse latest View live


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