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

Authentication Error connecting to Orchestrator from client

$
0
0

          Hello all:

I am new to vRO and am stuck trying to connect from the Orchestrator client to my Orchestrator service.  Here are the steps I have done to setup my home lab.

vCenter Server Virtual Appliance

1. Deployed vCenter Server Virtual Appliance

2. Connect to [vcsa-server]:5480

3. Accepted license agreement and ran through configuration wizard

Everything seems to be fine except when I try https://vcsa-server:9443 I get page not found, but I thought that should take me to the vSphere Web Client

 

vCenter Orchestrator

1. Deployed vCenter Orchestrator ova using VMware WorkStation

2. Imported SSL certs and setup SSO connection to vCenter server

 

vCenter Orchestrator Client

1. Launch the client and the login popups up

I put in the IP and vcoadmin/vcoadmin

It returns with Node is not ACTIVE

server.log

I guessing the problem is somewhere in the authentication checker, but not sure what that means


Technical preview version of VMware vCenter Orchestrator Plug-In for Microsoft Active Directory

$
0
0


Technical preview version of VMware vCenter Orchestrator Plug-In for Microsoft Active Directory

This is a patch release of the plug-in.


Version 2.0.2-2670588

  • Fixed AD:UserGroup.userMembers return null when user name contain comma.
  • Fixed AD:UserGroup.userMembers return null when the users are not part of default domain.

 

Version 2.0.1-2597988

  • Fixed Configure "Active Directory plug-in options" workflow does not set default server.

 

Version 2.0.0-2543027 GA

  • Add support for Multiple Active Directory hosts

     GA version available for download from - VMware vCenter Orchestrator Plug-In for Microsoft Active Directory Release Notes

 

Version 1.0.6-2315152

  • Fixed validation warning messages in the AD plugin's workflows.


Version 1.0.5-1866388

  • OU/AD objects from the AD plugin are getting lost/not-found. In configurations, a value with the attribute of AD:OrganizationalUnit reports "Not found"
  • Fix "Object 'OU:DC=xxxx,DC=yyyy,DC=com' of type ActiveDirectory not found" for AD entities containing special characters like COMMA in CN value.


Version 1.0.4-760

  • Plugin configuration performed trough workflows.
  • Fix. Deleted ad object is still returned by the plugin.

 

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

The release is not an official and is intended for testing purposes only. It is not recommended for production usage.


get MacAdress

$
0
0

im trying to retrive the MacAdress of a VM as String. Lets say i have a virtual machine with only one vmxnet3 nic. As Input i select vc:virtualmachine.

How do i get the mac adress of that one nic?

 

There must be a simple way or ?

Infrastructure and Administrator workflows

$
0
0

I have two types of workflows that I need to run:

 

1.  Infrastructure management.  These are things that Orchestrator needs to do with scheduled workflows.  They should not be dependent on the active directory account of an employee for authentication to vSphere, but rather a service account.   Therefore I need to share a unique session in my orchestrator configuration and run everything through that service account. (Unless I am thinking wrong - if so correct me)

 

2.  Administrator tasks - these are things that need to be run on an Ad-Hoc basis by administrators of the vSphere environment.  Logging of who did what in vCenter is important, and using permissions and authorization set up already in vCenter is important for these workflows, as there are different levels of permissions for vSphere admins configured in vCenter that need to apply when these kinds of workflows are run. As  a result I need to configure vRO to use "session per user" instead of "Share a Unique session" (Unless I am thinking wrong - if so correct me)

 

 

However I can only configure Orhestrator to use "session per user", or to use "share a unique session", but not both.  How have people solved this problem?  Does this call for two orchestrator installations, one for adminstrators and one for infrastructure components? 

System.getModule("com.vmware.library.vcac").getUserEntityByName(iaasHost,name) throws null pointer exception

$
0
0

Hi All,

 

var userEntity = System.getModule("com.vmware.library.vcac").getUserEntityByName(iaasHost,name); throws null pointer exception. In getUserEntityByName action it throws at vCACEntityManager

  .readModelEntitiesByCustomFilter(iaasHost.id, modelName, entitySetName, properties, headers); It pretty null pointer exception for createModelEntity too. It used to work before not sure what changed in the environment. I have tried rebooting VCAC Portal, IaaS Server, db etc. 

 

There is similar discussion https://communities.vmware.com/message/2295520. VCAC Plugin is 6.1 in my env and it has worked before.

 

Any help appreciated.

vCO connect vCenter failed,(Invalid credentials) https://lcvc.vm.com:443/sdk

$
0
0

I add a vcenter server instance successful,but can't operator the vm,for example,rename a vm.

Error follow up:

(Invalid credentials) https://lcvc.vm.com:443/sdk

 

please see the attachment,tks!

VCO 6 support for vsphere/vcenter 5.5?

$
0
0

Hello,

 

Could someone please enlighten me if VRealize orchestrator 6 supports vsphere/vcenter 5.5?

 

I've deployed VCO on the above environment but when I go to the configuration (port 8283), I see vsphere configuration but it asks for a component manager url (not something that I've deployed and I believe is in vcenter 6?)

 

 

Thanks

Convert strings to Array (Composite Type)

$
0
0

I'm trying to create a Composite Type array within vCO for the purpose of passing data via the Guest Script Manager package.  I'm using the Guest Script manager to run a PowerShell script that will deploy the 1st domain controller in a new forest.  As of right now I only have 2 customized variables within the script; "$aminPassword" & "$domainName". If I was executing everything directly from vCO I'd have no issue because I could manually select the variables to replace when running the "Run Script in VM Guest" workflow.  Since the process will be initiated from vRA, I have to go through the painstaking process of creating a wrapper.

 

The workflow within the Guest Script Manager package where this logic is located is called "Run Script in VM Guest".  Within that workflow, there's a scriptable task called "Update Script"  That object has 2 inputs: vcoPath (type:String, attribute) who's value is the path where script is stored on vCO server, and scriptVariables (type: Composite Type(StringtoReplace:string,ReplacingString;string):scriptVariables).  The latter variable would normally be populated during the manual invocation of the workflow when the requester selects the script that they want to have ran.  Since I'm using vRA for the requesting, I have to script the population of the variable based upon string inputs.

 

The code for the Update Script scriptable task is:

 

var scriptFile = new FileReader(vcoPath);

 

scriptFile.open();

var script = scriptFile.readAll();

 

for each (var scriptVariable in scriptVariables) {

    System.log("Replacing variable " + scriptVariable.get("stringToReplace") + " with value " + scriptVariable.get("replacingString"));

    var search = escapeRegExp(scriptVariable.get("stringToReplace"));

    script = script.replace(new RegExp(search, "g"),scriptVariable.get("replacingString"));

}

 

//Saving unique file

System.log("Saving script " + vcoPath + " with content : \n" + script);

var fileWriter = new FileWriter(vcoPath);

fileWriter.open();

fileWriter.clean();

fileWriter.write(script);

fileWriter.close();

 

function escapeRegExp(str) {

  return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");

}

 

 

 

I found the following script online to build the Composite Type array, but it doesn't seem to be working:

 

scriptVariables = new Array();

var jsObj = { name: "$domainName", value: domainName};

scriptVariables.push(jsObj);

var jsObj1 = { name: "$securePassword", value: somepassword};

scriptVariables.push(jsObj1);

 

In my solution, $domainName and $securePassword are the variables that are being replaced with the values of the vCO WF variables domainName and somePassword.

 

The error that I'm getting occurs on the "Update Script" scriptable task stating:

[2015-01-01 03:31:16.420] [I] Replacing variable null with value null

[2015-01-01 03:31:16.420] [I] TypeError: Cannot call method "replace" of null (Workflow:Wrapper Run script in VM guest / Update script (item29)#13)

 

I put a breakpoint on the scriptable task which holds the code to create the Composite Type array and saw that in fact it was creating an array consisting of 2 columns and 2 rows, but that it was empty.

 

I've been wracking my brain on this one for a while now and have only found a couple of posts on the web that have been only remotely helpful which brings me finally to my question:  Does anyone know how to resolve this?

 

v/r

 

Jeremy


Scheduled workflows

$
0
0

I am using "session per user" in Orchestrator, but I would like to run scheduled workflows under a dedicated service account.  If I log in to orchestrator with my AD account, can I set up a workflow to run under a service account and schedule it, and have it run under that account instead of my account?

How to use string input as VC Atttibutes ?

$
0
0

Hello everybody,

 

I am discovering VCO. And i need your help.

How can i use string input as a VC attributes at the end ? Then use this return as input for another workflow.

 

The workflow i am trying to set up is:

1-  Name of VM to search in vCenter: String as input (example: "TOTO")

2-  Search "TOTO" virtual machine in the vCenter, if found then

3-  Use this result to clone a VM TOTO

 

For step 1 and 2, it is working, i can search based on the string input and get a result.

 

But for step 3, i am using another workflow "Create virtual machine"  and it takes in put a VC:VirtualMachine.

And it is not working because the type i get in step 2 is not compatible with the input for step 3.

 

Step 3 input is waiting for VC:VirtualMachine

And Step 2 output is Array/VC:VirtualMachine.

 

I tried to change the type input for step 3 as Array/VC:VirtualMachine.

 

Each time i got the error message :

TypeError: Cannot find function cloneVM_Task in object DynamicWrapper (Instance) : [VcVirtualMachine]-[class com.vmware.vmo.plugin.vi4.model.VimVirtualMachine] -- VALUE : VirtualMachine<vm-907>'LYNC01'. (Dynamic Script Module name : cloneVM_1#13)

 

I don't want that the workflow use the search VC plugin, but i need to set input.

 

If someone has an idea.

 

Thx all.

How to Handle SOAP Response

$
0
0

Hello (vCO Beginner),

I am using the SOAP Plugin and trying to figure out how to handle the response from the a SOAP host Here is the Log that I am getting from the SOAP response

[2014-05-09 12:53:43.124] [I] out parameters...

[2014-05-09 12:53:43.135] [I] out parameters available:

[2014-05-09 12:53:43.136] [I]   + parameter name: 'GetRequestStatusResult', value: '<Response>

  <OutputParameters>

    <ServiceRequestID>SR138917  </ServiceRequestID>

    <ServiceRequestStatus>DEPLOYING OS</ServiceRequestStatus>

    <ServiceRequestCreated>5/9/2014 3:20:25 PM</ServiceRequestCreated>

    <ServiceRequestCompleted></ServiceRequestCompleted>

    <CurrentActivity>MA138921</CurrentActivity>

    <CurrentActivityTitle>DEPLOYING OS</CurrentActivityTitle>

    <ActivityStartUTC>05/09/2014 15:32</ActivityStartUTC>

    <ActivityEndUTC></ActivityEndUTC>

    <DurationTotalSeconds></DurationTotalSeconds>

    <AverageDurationSeconds></AverageDurationSeconds>

    <SecondsOffAverage></SecondsOffAverage>

    <EstimatedCompletionUTC></EstimatedCompletionUTC>

  </OutputParameters>

  <Warnings></Warnings>

  <Exceptions></Exceptions>

</Response>'

 

 

Will it be best to try and just parse the text or try and use another method with vCO

SSL Handshake Error with External SOAP Host

$
0
0

Hi all,

 

I previously got Orchestrator 5.5 working with our external Service Now instance where we can order a VM in the SN catalog and Orchestrator will provision it via a SOAP call to the Orchestrator API. However, now since I upgraded Orchestrator (we use the appliance) to 6.0, it is giving an SSL Handshake error on the SOAP request from Service Now. I have a snapshot backup of the appliance from before the upgrade, but I'd obviously rather not revert if I don't have to, as the rest of the Orchestrator functionality seems to be running just fine. It's only this API thing that is giving me an issue. Any ideas? I'll post the full XML error below:

 

 

<?xml version="1.0" encoding="UTF-8"?><results error="javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure" probe_time="31"><result error="javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure"><output/></result><parameters><parameter name="topic" value="SOAPProbe"/><parameter name="queue" value="output"/><parameter name="error" value=""/><parameter name="from_sys_id" value=""/><parameter name="sys_id" value="00a06235dd2f3100c4c8a38a5ee758e6"/><parameter name="state" value="ready"/><parameter name="sys_created_on" value="2015-04-21 19:08:59"/><parameter name="from_host" value=""/><parameter name="agent" value="mid.server.servername"/><parameter name="processed" value=""/><parameter name="ecc_queue" value="00a06235dd2f3100c4c8a38a5ee758e6"/><parameter name="response_to" value=""/><parameter name="source" value="https://orchestratorname:8281/vco/vmware-vmo-webcontrol/webservice"/><parameter name="sequence" value="14cdd6227690000001"/><parameter name="name" value="test"/><parameter name="table_name" value="ecc_queue"/><parameter name="agent_correlator" value=""/></parameters></results>

 

Thanks for any pointers.

Andrew

vRealize Orchestrator 6.0.1 and vSphere 5.1

$
0
0

Hi.

 

Just today, I downloaded vRO 6.0.1 but I'm having trouble in connecting vSphere vcenter and this new orchestrator appliance.

 

In the vSphere web client, I only see the local orchestrator server which is version 5.1.

 

How do i get my new vRO 6.0.1 appliance to appear as a orchestrator server? I'd like to be able to run workflows from the 6.0.1 appliance.

 

thanks!

 

Anoop

Adding failover host to the vSphere HA fails with error “ A specified parameter was not correct “ in vCO workflow

$
0
0

Hi,

 

I am trying to configure vSphere HA through vCenter Orchestrator workflow, I am facing strange error when I try to add failover host in HA. It works for some cluster and hosts but it could not for others, it throws following error

 

error Task 'ReconfigureComputeResource_Task' error: A specified parameter was not correct.

 

Following is my code snippet from my workflow


var clusterConfigSpec = new VcClusterConfigSpecEx();

clusterConfigSpec.dasConfig = new VcClusterDasConfigInfo();

 

clusterConfigSpec.dasConfig.admissionControlPolicy = new VcClusterFailoverHostAdmissionControlPolicy();

var fHosts = [];

for(var i in inFailoverHosts){

var vcSysHost = System.getModule("com.vmware.PTLAB").getHostSystemMatchingName(inFailoverHosts[i]);

                System.log("%%%%%% vcSysHost "+vcSysHost.name);

                fHosts.push(vcSysHost);

}

 

clusterConfigSpec.dasConfig.admissionControlPolicy.failoverHosts = fHosts;

reconfigTask = cluster.reconfigureComputeResource_Task(clusterConfigSpec, true);

 

Please help me to resolve the issue.

When is the right time to call getOperations on CatalogResource

$
0
0

Hi All,

 

 

I have a workflow that calls VCAC blueprint to provision  VM. It waits till VM is provisioned( waits till TriggerForCatalogItemRequest is triggered) and then calls vim3WaitToolsStart action. It then needs to take "Reconfigure" action on the catalogResource i.e. VM. To get "Reconfigure" action it calls catalogResource.getOperations(). It has worked many times and fails sometimes. catalogResource.getOperations() throws "TypeError: Cannot find function getOperations in object notfound" i.e it does not even find getOperations function. I am surprised it works many times and fails few times. Sometimes getOperations returns only few operations out of 11 operations and that does not have "Reconfigure" action. It looks like VM in IaaS is not completely built as per IaaS server. Is "vim3WaitToolsStart" correct action to call before calling getOperations on catalog resource?

 

Any help appreciated.


Invoke external PowerShell script problems with Get-Tag

$
0
0

Hey all,

 

just upgraded to vSphere 6 and ran into some problems with the following setup:

 

vCenter: 6.0

vRO: 6.0.1

PowerCLI on PowerShell Host: 6.0

 

When deploying VMs a workflow is called to Set some vSphere Tags with a powershell script through the remote Powershell host.

It was working fine before the upgrade and also works fine when I run the script locally on the powershell host.

 

But when I run it through the "Invoke an external script" or "Invoke a PowerShell script" workflow from Library -> PowerShell, it either just reports "null" or ends in an error

 

I slimmed the script down as much as possile and still get the error with this little script:

 

Add-PsSnapin VMware.VimAutomation.Core -ea "SilentlyContinue"
Connect-VIServer vcenter.server -User user-Password 'supersecretpw'
Get-Tag -Category Organisationseinheit -Name ZE-RZ
Disconnect-VIServer vcenter.server -Confirm:$false
Exit 0

 

It still produces the following error:

 

PowerShellInvocationError: Errors found while executing script
VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.VimException: 23.04.2015 14:19:14   Get-Tag      Value cannot be null.
Parameter name: collection    ---> System.ArgumentNullException: Value cannot be null.
Parameter name: collection   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)   at VMware.VimAutomation.ViCore.Impl.V1.Service.ViCoreObjectInteropCoreServiceProviderImpl.GetObn(IList`1 connectionIdList, IList`1 objectNameList, IList`1 objectInterfaceTypeList, IList`1 contextList)   at VMware.VimAutomation.Sdk.Impl.V1.CoreServiceImpl.GetObn(IList`1 connectionIdList, IList`1 objectNameList, IList`1 objectInterfaceTypeList, IList`1 contextList, String contextRelationName)   at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ObnSelector.GetObjectsByNameCore(PropertyInfo parameter, String objectName)   at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ObnSelector.SelectObjectByNameCore(PropertyInfo parameter, String objectName)   at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ObnSelector.SelectObjectByName(PropertyInfo parameter)   at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.ObnSelector.SelectObjectsByName()   at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.BaseCmdlet.ProcessRecordErrorHandled()   at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.BaseCmdlet.ProcessRecordErrorHandled()   --- End of inner exception stack trace ---   at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
 (Dynamic Script Module name : invokeScript#14)

 

Any idea?

 

Best Regards

 

Tim

CentOS 7 - Customization doesn't Work

$
0
0

Hellow Guys,

I have a perfect customization spec. Working very good with rhel6 and centos6.

My problem started when I need to test the spec with the rhel7 or centos7.

 

Below, a litter bit the my code:

 

var myCustomizationFixedName = new VcCustomizationFixedName();  myCustomizationFixedName.name = HOSTNAME;
//------------------------------------------------------------------------------------------
// Fixa o hostname e domain
//------------------------------------------------------------------------------------------
var myCustomizationLinuxPrep = new VcCustomizationLinuxPrep();  myCustomizationLinuxPrep.domain = dnsDomain;  myCustomizationLinuxPrep.hostName = myCustomizationFixedName;
//------------------------------------------------------------------------------------------
// Cria um Custom Spec e attach os objetos de rede, DNS e adapter
//------------------------------------------------------------------------------------------
var myCustomizationSpec = new VcCustomizationSpec();  myCustomizationSpec.identity = myCustomizationLinuxPrep;  myCustomizationSpec.globalIPSettings = attGlobalIPSettings;  myCustomizationSpec.nicSettingMap = attNicSettingMap;
cloneSpec.config = configSpec;
cloneSpec.customization = myCustomizationSpec;

 

When I use this spec, the VMware Orchestrator create the Virtual Machine, configure IP but doesn't configure the HOSTNAME. The problem it's!!!! Doesn't configure HOSTNAME.


Somebody already had this problem?
Thank very much!!!!

Get and Set Dynamic Type Output via Script

$
0
0

I am running vRO 6.0.1. I have built a dynamic type for Veeam. I can see the objects in the inventory and can select them as attributes in workflows. I'm attempting to get the Dynamic Type Object through a script and set it as an output variable of the script but its not working. I have created the dynamic type using the Dynamic Types Plug-In Generator v2.

 

I have the namespace "Veeam" with the types:

VeeamHost

     jobFolder

          job

 

I set an output attribute with the type "DynamicTypes:Veeam.job" and name jobOut

 

My script is just:

 

jobOut = Server.findForType("DynamicTypes:Veeam.job","29714267-f517-4f76-a621-902b3e789772/urn:veeam:Job:26eddcda-ea52-469b-b4c9-0b80fec098ae");

System.log("Found Job: " + jobOut); 

 

After execution the jobOut variable is blank. In the logs i see:

 

Found Job: DynamicWrapper (Instance) : [DynamicTypesDynamicObject]-[class com.vmware.o11n.plugin.dynamictypes.model.DynamicObject] -- VALUE : dynobj:[ __ns:Veeam __tp:DynamicTypes:Veeam.job __id:29714267-f517-4f76-a621-902b3e789772/urn:veeam:Job:26eddcda-ea52-469b-b4c9-0b80fec098ae]

 

Does anyone have an idea of how to populate the DynamicTypes:Veeam.job output with the actual veeam job i got via the script?

Not able to start remote/proxy workflow

$
0
0

Hi,

I am encounterred and issue with starting remote/proxy workflow, which works in LAB env, but after move to prod it is not work.

 

Here is server.log output:

WARN  [RestTemplate] GET request for "https://myVCO:8281/api/workflows/92faa800-2e7b-4149-8f8a-43716c8c2a37" resulted in 400 (3f4c1c12-bb9a-461d-8230-3fb00a74582e-rest-false not bound caused by: 3f4c1c12-bb9a-461d-8230-3fb00a74582e-rest-false not bound); invoking error handler

 

could anybody help?

 

This ID 92faa800-2e7b-4149-8f8a-43716c8c2a37 is ID of my workflow and ID 3f4c1c12-bb9a-461d-8230-3fb00a74582e I am not able to find in any worlflow in my system

Any hint to find workflow with this ID?

 

Message was edited by: holashh

Retrieving workflows execution details

$
0
0

I would like to build some sort of Workflow Monitoring into my Orchestrator operations. So, I have found several existing examples that get me some of what I am looking for, but still need a little help.

 

1. Workflow execution details WF: http://www.vcoteam.info/articles/learn-vco/176-how-to-retrieve-workflow-execution-details.html

 

this wf prints to the System.log the data I need. However, I would like to have the contents emailed by using the built in "scheduled workflow" capability. I believe to email the contents I need to change out code to something like below.

 

I just not sure how to get it sent via email. change the System.log entries to something like:

 

body = ""; body += [enter your system log content here] // For example:

body += key + ": " + value + " ("+System.getOb jectType(value) +")";

 

2. I also found this other example : Workflow failure monitor https://communities.vmware.com/docs/DOC-23862

I configured the attributes per the notes from Bobby, but when I run it it's not finding any "failed" workflows of which there are some.

Viewing all 10285 articles
Browse latest View live


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