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

Migrate VM

$
0
0

Hi,

actually i am working for a project, which needs to migrate VMs between Hostsystem.

Of course we got clusters, as well DRS Groups, so i found the action "migrate_VM", which is usable for DRS Cluster, so good for the project.

I filled out these action, but the VM is not moving to another hostsystem.

 

vm.migrateVM_Task(null , null , VirtualMachineMovePriority.highPriority , VirtualMachinePowerState.poweredOn);

 

Input is a VC:VM Object, maybe some has got an answer or a workaround for this problem ...


Logging into VM and a few other Orchestrator Questions

$
0
0

Right now to deploy VM's we use Customization Templates and apply them against a template. There is one part where during the configuration of the host I need to manually log into the VM so it can run some scripts to configure WMI and a few other items and then it automatically logs me out and reboots. Is there something in Orchestrator that would log a machine in to allow the scripts to run and reboot?

 

Also is there a way to be specific about data stores I want a .vmdk in? Like can I say create the VM in a data store with the most free space that starts with the name vnx-300* for example.

Using "Complete a Work Item" workflow

$
0
0

Hi

 

I would like to set the justification when using the WorkItemAction of Reject. How do I pass this to this built in workflow?

 

cheers,

Jakub

Horizon pluging for vRO 1.4 Workflow "Configure vCAC Blueprint to Provision Machine to Pool" FIXED

$
0
0

Hi all,

 

in the newest update of the Horizon Plugin for vRO (1.4) there teh Workflow "Configure vCAC Blueprint to Provision Machine to Pool" is broken.

The problem is that it still contains the OLD vRA type vcac:Blueprint not the NEW one vcacCafee:CompositeBlueprint.

 

Attached the fixed workflow

Parsing output from Remedy Plugin Response

$
0
0

Hi,

 

. I’m reading a workorder from remedy using remedy plugin in vRO, which is successful and output is returned in  var actionResult(Array/ Remedy:ITSMRecord) having key and values. Now I need key values matching the key 1000*****.in a o/p variable to pass it in workflow.

 

  1. Input: actionResult   --> Type : Array/ Remedy:ITSMRecord
  2. Expected Output: WorkOrderNumber --> Tried using  Array/Remedy:ITSMRecord, Array/string, Array/Remedy:ITSMField, string, ITSMRecord, ITSMField

But throws error as not an array or invalid conversion

 

---------------------------------------------------------------------------------------------------------------------------------

System.log("Records Returned [" + actionResult.length + "]");

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

var f = actionResult[i].getFields();

System.log("Record contains [" + f.length + "] fields");

for(var t=0;t<f.length;t++){

System.log("\tKey [" + f[t].getKey() + "] :: Value [" + f[t].getValue() + "]");

if(f[t].getKey()=="1000*****"){

WorkOrderNumber = f[t].getValue()

}

}

}

--------------------------------------------------------------------------------------------------------

Kindly help me out fixing this

 

Thanks,

Manu

use vco resource as mail attachment

$
0
0

Hello I want to store all my orchestrator procedures in the resource store of VCO

and when I send a request to a team by mail I send the doc (pdf) attached in the mail

in the resource, the element  file is recognised as "mime type" = application/pdf

I have modified the "sent mail" workflow adding those lines 

 

var fileAttachment = new MimeAttachment(); if(mimeRessource){//mimeRessource is the resource element fileAttachment.name = mimeRessource.name; fileAttachment.content = mimeRessource.getContentAsMimeAttachment(); message.addMimePart(fileAttachment,"text/html; charset=UTF-8");

 

 

but the file cannot be read by the user who open the mail

the error in adobe reader is "the file is not recognized as a pdf"

 

 

sure I am missing something

documentation is messed up

$
0
0

Somehow my REST documentation got corrupted on my server and I cannot read it completely.  Any ideas on how to restore it?  Any place the documentation is publicly available?

 

I'm trying to determine the possible values for things like conditions and sortOrders.  Where do I find that information?

 

Tx Dom

Database connection error: Unknown DSN type SQL Server Native Client 11.0

$
0
0

While configuring VMware vCenter Orchestrator to use the vCenter Server database, the configuration of the database gives the error:

Cannot connect to jdbc:vdb:VCDB. Connection error was: Unknown DSN type for VCDB: type = SQL Server Native Client 11.0, driver = C:\Windows\system32\sqlncli11.dll

 

The SQL Server Native Client 11.0 driver is used in the System DSN ODBC connection to the vCenter Server database. vCenter Server runs fine and has no problems connecting to the database. The selected database type in vCO is: vDB. The DSN of the vCenter Server database is: VCDB.

 

Does anybody know how to solve this problem?


Version control for vCO workflows and packages

$
0
0

vCO workflows have version numbers although you have to put the version numbers explicitly via vCO Client (UI). What about Packages (vCO workflow packages)? When I export the packages and then import them to different systems for different use cases, how can I make sure I install the correct version of packages?

Thanks.

'Copy file from vCO to guest' workflow stripping CRLF

$
0
0

Hi Everyone,

 

I am trying to write out a text file with input parameters used to silently install an application.  The application install needs the text file entries to appear on specific lines.  I am trying to do this by writing the file and using the 'Copy file from vCO to guest' workflow, but the workflow appears to be stripping out CRLF. 

 

Here is some example js I am using in a scriptable task to write the file:

//FileWriter constructor

var myFileWriter = new FileWriter(fileConstructor);

//open the file for writing

myFileWriter.open();

//Empties the existing file.  Without it we append

myFileWriter.clean();

//write into the file

myFileWriter.writeLine("Line1");

myFileWriter.writeLine("Line2");

myFileWriter.writeLine("Line3");

myFileWriter.close();

 

...browsing the result on the Orchestrator appliance, the file contents appear as I would expect:

Line1

Line2

Line3

 

However, after running the 'Copy file from vCO to guest' and opening the file in Windows 2008 R2 SP1 guest operating system, the file contents are:

Line1Line2Line3

 

Can anyone explain why this is, and perhaps offer a workaround so that the result on the guestOS resembles what is on the vRO appliance? 

 

Thanks!

 

Appliance Version:7.2.0.19944 Build 4629837

Policies in embedded vRO

$
0
0

I am not sure if this is a bug or not but here is a very odd behavior we have encountered with embedded vRO (from vRA 7.2). I am testing our policy setup where we have several AMQP subscriptions with each one bound to their own queues on a single direct exchange. On embedded vRO a message from single queue inexplicably triggers every single subscription. This is certainly not intended and differs from the result we typically get on a standalone vRO instance (7.1) against the same queue service setup. The intended behavior is that single queue triggers single subscription that is bound to it.

 

I have been able to reproduce this in my lab. Not sure if this is embedded versus standalone or version difference at this point.  Was hoping to get some community feedback if anyone has encountered this situation.

Run test recovery to cloud on multiple vm

$
0
0

Hi,

 

I am trying to run test reovery on multiple vms using the workflow sample in in the vsphere plugin in vco. There is a workflow in the vco that allows you to run a test failover to cloud on one vm but I want to failover more than just one vm.

 

I made a change to the existing one. I changed to array in the replication parameter and it lets me select multiple vms but it fails with the following error when i run the workflow

 

com.vmware.library.vr.recover/testRecoverToCloud_1) Error in (Dynamic Script Module name : testRecoverToCloud_1#0) TypeError: Cannot find function testFailover in object DynamicWrapper (Instance) : [VRVcToCloudSourceGroup]-[class com.vmware.hms.o11n.model.VcToCloudSourceGroup] -- VALUE : com.vmware.hms.o11n.model.VcToCloudSourceGroup@31f0f077,DynamicWrapper (Instance) : [VRVcToCloudSourceGroup]-[class com.vmware.hms.o11n.model.VcToCloudSourceGroup] -- VALUE : com.vmware.hms.o11n.model.VcToCloudSourceGroup@7c01ec95.

test1.PNG

 

can some one please help me create a workflow that runs a test recovery/real recovery to cloud.

vRealize Orchestratro 7.2 - Cluster Mode - Maximums

$
0
0

Hello,

 

I am trying to locate the official documentation for the maximum number of Nodes (active as well as standby) for a vRealize Orchestrator 7.2 Cluster mode.

As mentioned in the Install and Configure guide Configure an Orchestrator Cluster one can specify the number of nodes where are active and also add additional vRO Servers as needed.

 

I want to know what is the maximum number of nodes supported for vRO Cluster - mode deployment.

 

Thank you.

Duplicate workflow keeps version number the same.

$
0
0

When I duplicate a workflow and select not to copy the version history the resulting duplicated workflow still has the same version number as the original. Is this by design? I would like to reset that to 0.0.0.

 

Paul

vRO java plugin error

$
0
0

We are creating a vRealize Orchestrator plugin for Storage automation.

 

Our plugin is based on the Model-driven archetype and vRO SDK 7.x. In our Model, we have defined objects like Volume and VolumeOpResult. Volume has a Finder defined while VolumeOpResult does not have a finder. In essence Volume is a Type, while VolumeOpResult is just a Scripting class. The VolumeOpResult has a property which returns a Volume.

 

We have a workflow GetVolume, which makes a call to the plugin method which returns a VolumeOpResult. We get the Volume object from the property of the VolumeOpResult and when we try to output the sane Volume object as an out param in the workflow we are getting the following error:

 

[2017-04-20 14:27:21.275] [E] Workflow:GetVolume / Scriptable task (item1) : ch.dunes.model.type.ConvertorException: Unable to convert object, 'Volume_Wrapper[_target=com.storage.model.Volume@47842112]' plugin exception reason : convertToResult() --> Finder 'Storage:Volume' : unexpected error 'ch.dunes.model.sdk.SDKFinderException: convertToResult() --> Finder 'Storage:Volume' id 'getInternalId()' is null for the Finder object 'Volume_Wrapper[_target=com.storage.model.Volume@47842112]''

[2017-04-20 14:27:21.307] [E] Workfow execution stack:

***

item: 'GetVolume/item1', state: 'failed', business state: 'null', exception: 'Unable to convert object, 'Volume_Wrapper[_target=com.storage.model.Volume@47842112]' plugin exception reason : convertToResult() --> Finder 'Storage:Volume' : unexpected error 'ch.dunes.model.sdk.SDKFinderException: convertToResult() --> Finder 'Storage:Volume' id 'getInternalId()' is null for the Finder object 'Volume_Wrapper[_target=com.storage.model.Volume@47842112]'''

workflow: 'compo' (ecd93d26-180b-482b-9abf-6b1365e3a2b0)

|  'attribute': name=vol type=Storage:Volume value=null

|  'input': name=volName type=string value=NP.7

|  'input': name=connection type=Storage:Connection value=dunes://service.dunes.ch/CustomSDKObject?id='gQcDdjyISAiDNKY3r6anFw'&dunesName='Storage:Connection'

|  'no outputs'

--workflow: 'GetVolume' (9bafe882-ce1d-41ae-80ed-465620bd8718)

  |  'attribute': name=vol type=Storage:Volume value=__NULL__

  |  'input': name=volName type=string value=NP.7

  |  'input': name=connection type=Storage:Connection value=dunes://service.dunes.ch/CustomSDKObject?id='gQcDdjyISAiDNKY3r6anFw'&dunesName='Storage:Connection'

  |  'output': name=outVol type=Storage:Volume value=null

*** End of execution stack.

 

Any suggestions on how to resolve the above error. Thank you in advance.


SQl Plugin - LAST_INSERT_ID()

$
0
0

Hello,

 

Trying to use the SQL Plugin, I'm doing a insert into, and then I want to retrieve the id of that operation. But it always returns 0.

 

My guess is that the executeCustomQuery, vs readCustomQuery, is not in the same connection ? If I go directly into my MySQL server, and do the same insert, I get the id without any issue. But with VRO it doesn't work. I could extract the last id from the table, but that's not the best thing to do, is there something else I could do in my code to get the id ?

 

Here's my code:

 

var date = (new Date(Date.now() - ((new Date()).getTimezoneOffset() * 60000))).toISOString().slice(0, 19).replace('T', ' ');
var query = "INSERT INTO nas (project_id, creator_id, request_type_id, charge_io_id, stockage_type_id, service_id, operating_system_id," +             "site_id, comments, status, servers, created_at, updated_at) VALUES ('" + project_id + "'," + demandeur_id + "," + request_type_id + "," +             charge_io_id + "," + stockage_type_id + "," + service_id + "," + operating_system_id + "," + site_id + ",'" + comments + "','created','" +             serveurs + "','" + date + "','" + date + "');";


System.log(query);
var response = execQuery(query,"exec");
System.log(response);


query = "SELECT LAST_INSERT_ID();";
var response = execQuery(query,"read");
System.log(response);
System.log(response[0].getProperty(response[0].getFieldNames()[0]));


/////////////////////////////////////////////////// function /////////////////////////////////////////////////////
function execQuery(query, type){
  try {  if (type == 'exec'){  var response = database.executeCustomQuery(query);  } else if (type == 'read'){  var response = database.readCustomQuery(query);  } else {  throw 'Query type invalide';  }  } catch (e) {  throw 'Couldn\'t get a response from the database. Error: ' + e;  }  return response;
}

 

And the logs:

[2017-04-26 09:07:24.499] [I] INSERT INTO nas (project_id, creator_id, request_type_id, charge_io_id, stockage_type_id, service_id, operating_system_id,site_id, comments, status, servers, created_at, updated_at) VALUES ('536',23,36,39,42,45,80,63,'test','created','asd','2017-04-26 09:07:24','2017-04-26 09:07:24');
[2017-04-26 09:07:24.519] [I] 1
[2017-04-26 09:07:24.528] [I] DynamicWrapper (Instance) : [SQLActiveRecord]-[class com.vmware.o11n.plugin.database.ActiveRecord] -- VALUE : ActiveRecord: {LAST_INSERT_ID()=0}
[2017-04-26 09:07:24.531] [I] 0

VcHostFibreChannelHba.device doesn't reflect what is seen in vCenter

$
0
0

I'm writing some workflows to take care of automatic zoning using the Cisco MDS REST API.  As part of that I need to be able to identify ESXi host HBAs on the SAN fabric.  Today, we create device aliases based on the name of the HBA in vCenter.  For example, if I have a host called tstdev-hb2-0004 and it shows HBAs vmhba0, vmhba1, vmhba2, vmhba3, my aliases would be:

tstdev-hb2-0004-vmhba0

tstdev-hb2-0004-vmhba1

tstdev-hb2-0004-vmhba2

tstdev-hb2-0004-vmhba3

 

When I run this code:

for each (var hba in u_host.configManager.storageSystem.storageDeviceInfo.hostBusAdapter)

  if (hba instanceof VcHostFibreChannelHba)

  {

  System.log(hba.device);

  }

}

 

I expect:

vmhba0

vmhba1

vmhba2

vmhba3

 

(which is what is displayed in vCenter)

 

But what I get back is:

vmhba1

vmhba2

vmhba3

vmhba4

 

How can I get the display names as displayed in vCenter?

vro to call vra to scale in a deployment

$
0
0

I am using code for all day 2 operations on a vm. Destroy/Power on etc.  However, the scale-in function does not seem to work for me.

 

I i get the operations for the deployment like this .. but it does not execute a scale in. any ideas ?

 

var form = vCACCAFERequestsHelper.getRequestFormForResourceAction(operation);

 

System.log("Expected inputs:");

var fields = vCACCAFERequestsHelper.getFormKeys(form);

System.log(fields.length);

for each (var field in fields) {

    System.log( " - " + field);

}

 

 

System.log("Creating scale in request...");

var request = vCACCAFERequestsHelper.requestResourceAction(operation, form);

System.log("Scale in request submitted.");

System.log("request.stateName: " + request.stateName);

System.log("request.executionStatus: " + request.executionStatus.value());

Request a resource action

$
0
0

I am trying to use "Request a resource action" library workflow to change lease on a vRA resource. Having trouble with input (I believe) and getting "400 BAD_REQUEST (Dynamic Script Module name : requestResourceAction#14)".

Catalog resource and Resource operation are populated with proper selections but in input values array I have the following:

 

provider-ExpirationDate2017-05-04T16:44:13.846Z

 

And it inevitably fails to generate the request. Are there any other additional properties that need to be provided to complete built-in change lease action on vRA resource? Perhaps format is incorrect?   

Setting a workflow attribute to a module does not pull module into package

$
0
0

I've gotten into the habit of setting a variable to modules which I use over and over to avoid reloading them potentially thousands of times (following some advice in the best practices white paper).  I have just noticed that when I build a package the modules don't get pulled in.  I would consider this a bug right?

Viewing all 10285 articles
Browse latest View live


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