Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all 9859 articles
Browse latest View live

Get the Request ID shown in vRA into an email

$
0
0

Hello and thanks in advance!

 

I'm trying to get the request number from the vRA request (specifically when a user requests a new server) and i want to pump that to Orchestrator to insert into an email.

 

Has anyone done this?

 

Also, has anyone else abandoned the vRA built in emails and created your own in orchestrator? How did you format the scripting in vRO for html formatted emails with vra variables?


How to get request ID of failed catalog requests?

$
0
0

I am using the following code to get the request ID on post blueprint catalog request completed event subscription and it's working fine when catalog request completes successfully. However, if it fails, it was not able to get the request ID. The input parameters are payload and vCACCAFE:VCACHost(vRA/vRO 7.2) and please help.

 

function getRequestId(deploymentId, vCACHost) {

var requestId = getRequestIdFromDeploymentId(deploymentId);

System.log('Request ID: ' + requestId);

return requestId;

}

 

function getRequestIdFromDeploymentId(deploymentId) {

var items = vCACCAFEEntitiesFinder.getCatalogResources(vCACHost);

for each(item in items) {

if (item.providerBinding.bindingId == deploymentId) {

return item.requestId;

}

}

throw 'Could not get request ID.';

}

 

var deploymentId = payload.get('deploymentId');

var catReqId = getRequestId(deploymentId, vCACHost);

 

Another method which I have tried below, but no success for failed catalog requests

 

var catRequestId = System.getContext().getParameter("__asd_catalogRequestId");

System.log(catRequestId);

var req = vCACCAFEEntitiesFinder.getCatalogItemRequest(vCACHost,catRequestId);

var catReqId = req.id;

System.log(catReqId);

Select Value in Blueprint

$
0
0

Hello Guys

 

In a blueprint of Centos 7.5, I create a workflow of assign a new disk from 100GB to 200GB post finished the request. This not present errors and the disk is created without problems, but the customer need in the blueprint the conditions of enable or not the options of add the new disk.

 

If the user select "Yes" in the request the slider of select of size of disk be enabled, but the user select "No" the slider do not enabled.

 

Is possible to do what the client asks?

 

Regards

 

SAN

VRA 7 Installation Wizard stuck on "Waiting for Host to Trigger Prerequisite Check"

$
0
0

I'm attempting to use the vRA 7 installation wizard and it continues to stop on the prerequisite check with this message:  "Waiting for Host to Trigger Prerequisite Check" - it will stay there for hours without doing anything.  Any ideas?  I tried adding a manual entry to the hosts file to the IAAS system.  Any other ideas?

Infrastructure > Recent Events is empty [vRA 7.3]

$
0
0

After rebooting a standalone vRA 7.3 appliance using the VAMI interface I no longer see entries in "Recent Events". Otherwise everything seems normal and everything under "vRA Settings" in the VAMI interface looks OK and the only service that shows not registered is "release-management: com.vmware.csp.component.devops.release.management".

 

How do I fix this?

Updates/Patches & Hotfixes

vRA Action - Create Snapshot - Size calculation

$
0
0

hi all

 

Can any of you confirm this behaviour or have any further information?

 

A user has tried to take a snapshot of a VM in the vRA portal which failed with the following message:

CreateSnapshotError: Reservation with name XYZ does not have enough resources to create a new snapshot for machine with name ABC and ID 123.

 

This makes sense for me, because the VM is 2200GB and in the reservation the corresponding datastore has only 1300GB free space.

vRA will probably take the maximum snapshot size and check it with the free space on reservation. Can anyone confirm that?

And is there a way to disable this check?

 

What I don't really understand is that the snapshot was taken in vCenter, although the request is failed in vRA.

 

Thanks.

Andi

Trying to update selected snapshot in Linked Clone blueprint from Orchestrator

$
0
0

I have been working on this for a while now and can't figure it out. Here's the situation:

- I have 1 source server that gets new data every weekend

- I destroy all linked clones before the data refresh and delete the current snapshot

- The refresh happens and I create a new snapshot

- I have to go into vrealize designer and set the new snapshot in the blueprint <-- this is the step I can't seem to automate

- create new linked clones ready for monday

 

I have everything else automated in workflows for Orchestrator but can't seem to figure out how to update what snapshot a blueprint is using when the component is a vSphere Linked Clone.

 

My latest attempt was setting "snapshot_name", "source_machine_external_snapshot", and "source_machine_vmsnapshot" on the blueprint using the following: (the commented out lines are from various attempts)

 

//System.log(blueprint.getComponents());
var components = blueprint.getComponents();
for each(var componentkey in components.keys){
var component = components.get(componentkey);
var data = component.getData();
for each(var item in data.keys){
System.log("item:" + item);
if(item.indexOf("snapshot") > -1){
var facets = data.get(item).getFacets();

if(item == "snapshot_name"){
System.log(item + ": " + facets.get("fixedValue"));
// var myval = vCACCAFEConstantValue.fromString("VM Snapshot 8%252f28%252f2018, 4:27:43 PM");
var myval = vCACCAFEConstantValue.fromString("second snapshot");
//facets.put("fixedValue", myval);
//System.log(item + ": " + facets.get("fixedValue"));
}
if(item == "source_machine_external_snapshot"){
System.log(item + ": " + facets.get("fixedValue"));
// var myval = vCACCAFEConstantValue.fromInt(3);
var myval = vCACCAFEConstantValue.fromInt(3);
//facets.put("fixedValue", myval);
//System.log(item + ": " + facets.get("fixedValue"));
}

if(item == "source_machine_vmsnapshot"){
System.log(item + ": " + data.get(item).getFacets().get("fixedValue"));
var i1 = data.get(item);
var f1 = i1.getFacets();
var f2 = f1.get("fixedValue");
// var entity = new vCACCAFEEntityReference(null, "Infrastructure.Compute.Machine.Snapshot", "58", null);
var entity = new vCACCAFEEntityReference(null, "Infrastructure.Compute.Machine.Snapshot", "58", null);
var myval = new vCACCAFEConstantValue(entity);
f1.put("fixedValue", myval);
i1.setFacets(f1);
//data.put(item, i1);
//System.log(item + ": " + data.get(item).getFacets().get("fixedValue"));
}
// for each(var facet in facets.keys){
// System.log(item + ": facet:" + facet);
// System.log("facet detail:" + facets.get(facet).getValue().value);
// }
var m = data.get(item);
m.setFacets(facets);
//data.put(item, m);
}

/* var facets = item.getFacets();
for each(var facet in facets.keys){
System.log(facet);
}*/
}
//component.setData(data);
//components.put(componentkey, component);
}
//blueprint.setComponents(components);

Any ideas?


Failing at WEB install

How to share Disks between two VMs in a vRealize Automation Blueprint

$
0
0

Hi,

 

I am trying to automate installation and configuration of Oracle RAC with ASM disks. I have created two node Oracle RAC cluster using 5 disks (3 *CRS, 1 * DATA and 1 * FRA). First, I added 5 disks (in addition to OS disk) to a node1 and configured under ASM. Then, I added those disks as an existing disk (by pointing to VMDK file) in node2. How to achieve this disk sharing in a Blueprint ?

 

Thanks for you help

velu

Adding security policies during request

$
0
0

Is it possible to pass the security policies as input for a request (Blueprint contains on-demand security groups) and associate them with existing or On-demand security groups? I currently don't see any properties section under On-demand security group and not sure if this is possible. Appreciate your response.

REST HOST configuration in vRO failing with "cannot find function getCertificateAuthorities in object DynamicWrapper"

$
0
0

Hi,

I 've been trying to add a netbackup NSS Rest host  and its failing  with following message.

 

[2018-08-30 15:34:40.212] [E] Error in (Workflow:Import a certificate from URL with certificate alias / Validate (item1)#12758) TypeError: Cannot find function getCertificateAuthorities in object DynamicWrapper (Instance) : [_Config]-[class com.vmware.o11n.plugins.configurator.model.PluginInventory] -- VALUE : com.vmware.o11n.plugins.configurator.model.PluginInventory@80dbcf25.

[2018-08-30 15:34:40.230] [E] Workflow execution stack:

***

item: 'Configure NSS Rest Host/item8', state: 'failed', business state: 'null', exception: 'TypeError: Cannot find function getCertificateAuthorities in object DynamicWrapper (Instance) : [_Config]-[class com.vmware.o11n.plugins.configurator.model.PluginInventory] -- VALUE : com.vmware.o11n.plugins.configurator.model.PluginInventory@80dbcf25. (Workflow:Import a certificate from URL with certificate alias / Validate (item1)#12758)'

 

 

any help is greatly appreciated!

Change ID Cluster by Name

$
0
0

Hello Guys

 

In VRA 7.4 when the approver received the request, this show the ID of Cluster and not Cluster Name where the VM is provisioned.

 

In the request show:

 

Cluster: 0f9fd2dd-3a2b-4fc3-bba6-f69dda4d6a9d

 

Is possible change the ID by the name of Cluster?

 

 

Regards

 

Sebastian

Automatic import of VMs in VRA

vRO - NSX Plugin - NSX:PoolMember and groupingObjectId

$
0
0

During working on workflow for creating a server pool (and using the existing default wf), I've encountered a problem - it seems that while passing groupingObjectId of security group (objectId param.) it is not populated upon server pool creation - am I the only one or have anyone seen such behaviour?

As mentioned above I am using what was already provided by VMware so it goes something like this:

 

var poolMembers = new Array();

var poolMember = new NSXPoolMember();

poolMember.groupingObjectId = securityGroup.objectId;

 

I noticed that while using API calls apart from object id, it's name is also passed, here I can see no attribute for passing name. I wonder if that might be the issue.

Any comments appreciated.


Orchestration and regular expression

$
0
0

Hi,

 

I'm writing simple workflow for VRA in Orchestrator, but have problem using regular expression:

 

Code is simple, I'm trying to extract index from hostname from regular expression, but it gives me error:

 

var regex = new RegExp("(?<index>\\d+)", "s");

 

+

[2018-09-03 19:27:09.167] [E] Error in (Workflow:cs.xxxx.customizeHostname / getVirtualMachineID (item1)#64) SyntaxError: invalid flag after regular expression

 

Even this expression is valid for javascript interpreter (works), but when using in Orchestrator (VRA 7.4), it fails with given error.

 

Dubravko

Cannot see custom workflows in VRA's New Workflow Subscription

$
0
0

Hi All,

 

I have a custom workflow I have designed to rename a virtual machine after deployment. However, during the subscription configuration I am unable to see that workflow or any other workflows I have created.

 

It only lists default workflows VRO has already came up with. How can I resolve this.

 

Thanks in advance.

- SajithRu.

Not Able to view all the reservations in vRA 7.3

$
0
0

Hello All,

 

  I am not able to view all the reservation in the vRA 7.3 environment , I am part of Tenant administrator,BG Administrator,Fabric Admin group. Still I could not see some of the reservations and the machine deployed in the particular reservation.

 

  What is the access I should have and where to check ??

 

 

Regards,

Ravindra M

Transaction (Process ID 106) was deadlocked on lock resources with another process : vRA 7.2 Logs

$
0
0

Hello All,

 

I see lot of errors in vRA Infra Logs as below , not sure what exactly it mean.  Is the dead lock on IAAS SQL server DB or in vRA postgress  DB ??

 

Is there any work around or solutions for this ??

 

 

Exception has been thrown by the target of an invocation.

Inner exception: The maximum number of transaction retry attempts, 40, was reached.

Inner exception: An error occurred while executing the command definition. See the inner exception for details.

Inner exception: Transaction (Process ID 106) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Custom Properties in the Approval Police

$
0
0

Dears,

Anyone can help, how I can make the Custom Properties Mandatory and a Dropdown list like the traditional Custom Properties in the request form in the Approval Police set by the Approver during Approval,

Attached the screenshot 

Viewing all 9859 articles
Browse latest View live




Latest Images