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

The "Complete Resource" is full.

$
0
0

compute resource.PNG

 

Not long ago, I created an excessive Reservation.

Actually, I didn't use the reservation. I just made a Reservation.

VM is not deployed due to an issue, now it has disabled almost all Reservations.

 

However, the Compute Resource Tab indicates that the memory is overused.

I have refreshed all values in "Data Collection", but the usage does not go down.

 

 

What should I do? I need your advice.

Thanks !


How to programatically add a role to a custom group

$
0
0

I am using vRA Rest API to build a custom application.  I am trying to find an API which allows me to add a role to a custom group.

 

The screen shot shows where in the vRA GUI this can be done.

 

Any suggestions would be appreciated.

Creating a blueprint in vRA: no NSX Transport Zones shown

$
0
0

Hello,

 

Recently I deployed a development environment of vRealize Automation. I created the vCenter endpoint and NSX endpoint. I also created a fabric group with the cluster that has NSX installed.

When I create a blueprint, under the NSX tab, I try to select the Transport Zone, but the list is empty. There is a transport zone called Global, which has been there before vRA was deployed.

 

Any chance that I can get some help?

 

Thanks!

vRA / vRO 7.6 - retrieve >100 vms using workflow fails, even with raising limits + pagination

$
0
0

I have stumbled upon a know error, but do not know how to fix it.

I use an odata query since the time when the limit was set in the vRA plugin, following the resolution in VMware Knowledge Base

ATM I want to query about 500 VMs. Follwoing error is displayed:

state: 'failed', business state: 'null', exception: '[Rest Composite Exception]:  ( [Rest Error]: {Status code: 400}, {Error code: 20152} , {Error Source: null}, {Error Msg: Error while retrieving resources from provider [Infrastructure Service] for resource type [Virtual Machine].}, {System Msg: Error while retrieving resources from provider [{com.vmware.csp.component.iaas.proxy.provider@iaasservice.name}] for resource type [{com.vmware.csp.component.iaas.proxy.provider@resource.type.registration.name.Infrastructure.Virtual}].} )  ( [Rest Error]: {Status code: 400}, {Error code: 42000} , {Error Source: null}, {Error Msg: Request was denied due to exceeded resource size limit. The maximum number of resources allowed is 100.}, {System Msg: Infrastructure service provider error: Request was denied due to exceeded resource size limit. The maximum number of resources allowed is 100.}

Here is the code I use:

// Query each business group on each host for catalog reosurces; this will include cafe vms AND deployments    for each (host in cafeHosts){        service = host.createCatalogClient().getCatalogConsumerResourceService();        for each (businessGroup in businessGroups){            var filter = new Array();            filter[0] = vCACCAFEFilterParam.substringOf("organization/subTenant/id", vCACCAFEFilterParam.string(businessGroup.id));            var query = vCACCAFEOdataQuery.query().addFilter(filter);            var odataRequest = new vCACCAFEPageOdataRequest(1, 700, query);            resources = service.getResourcesList(odataRequest);            vCACCAFEVMs = vCACCAFEVMs.concat(resources);            }    }    System.log("[LOG] Total Found CatalogResource items: " + vCACCAFEVMs.length);

 

Inputs are an array of cafe hosts and subtenants (businessGroups).

The above mentioned error is displayed even though the query limit is raised up to 1000.

When using pagination, like here:

var odataRequest = new vCACCAFEPageOdataRequest(2, 500, query);

zero results are returned.

Alternatively, starting a query using the finder method:

vCACCAFEVMs = Server.findAllForType("vCACCAFE:CatalogResource");

results in the script freezing and the vRO server using more and more heap memory (up until it probably crashes, with an OOM error):

 

Plugin versions used:

VRAServer 7.6.0-SNAPSHOT.12974158

vCAC 7.6.0.12923318

vCACCAFE 7.6.0.12923319

 

What is the currently correct method for querying >100 vRA VMs?

 

Edit: After a vco-server restart and changing the code to

for each (host in cafeHosts){    var service = host.createCatalogClient().getCatalogConsumerResourceService();     var query = vCACCAFEOdataQuery.query();    var i;    for (i = 1; i < 21; i++){        var items = service.getResourcesList(new vCACCAFEPageOdataRequest(i, 100, query));        if (items.length == 0) { break }        vCACCAFEVMs = vCACCAFEVMs.concat(items);    }
}

I get correct results again.

I still have no idea why the "limits exceeded" error appears even when the query limit is lifted.

Catalog Item

$
0
0

Hi

Can I shared Catalog Item with more than 1 service ?

Please Share Experience of vRA VCAP Exam

$
0
0

Hi ALL,

 

If anybody having Experience  of vRA vCAP Exam then Please share it

 

EXAM Code :3V0-31.18: Advanced Deploy vRealize Automation 7.3 Exam 2018

No history logs after deleting VM

$
0
0

Hi all,

I was deleting a VM from the vRA portal and it got stuck for a couple of days in Disposing status, after that the VM got removed from the portal in Managed Machines and from the vcenter aswell.

In Deployments -- > components there is still an entry with the VM name and a red mark on it, in the right panel it says: MachineID parameter missing, then If I click on that VM Name it opens and shows it as "Off".

 

When I go to the History logs or Requests in that tenant there are no entries for that VM at all, what could be causing the logs to not be saved? where can I check if they are stuck somewhere?

 

VRA: v7.5.0.458

Is there a way to limit the number of vCPUs?

$
0
0

Hello, I would like to limit the number of vCPUs available in a particular business group. (NOT MHz)

 

Is this only enabled in vRO?

 

I would be very grateful if you could give me any helpful information.

 

Thanks !

Have a nice day.


Is it possible to deploy from a Pool of VMs

$
0
0

Hey guys,

 

We are on VRA/VRO 7.3.

 

I'm wondering if anyone has ever tried deploying from a pool of VMs already created, for new requests.

 

Today (in a nutshell), it basically takes about 40 minutes or so to clone a VM because of the workflows it runs through in VRO. This is exacerbated by the software components it runs after this. We have an idea to basically pull a pre-made VM, and just run whatever software component on top of it. This way, we basically bypass the ~40 minutes it takes to clone, and run the workflows. If there are no workflows, then the idea is then the app owners then have their machines in a couple mins, at the quickest, and really the contention of time, is based on the software component they run. This also ensures us the VM is already set up and ready to go, as opposed to it failing somewhere in the workflow pipeline, and ultimately failing the build in it's entirety.

 

Basically, our customers (like I'm sure, many of yours), want their VMs... NOW!! Even if we didn't have a set of workflows to run, the clone process in itself, takes us about 15 mins. Also, because of the abundance of complex workflows we run, we also increase the risk, of workflow failures. By having the pool we provision from, would bypass any failures that the customer would experience themselves.

 

Does what I say make sense?

 

I'd also be interested to hear what other have done to expedite the processes to providing VMs in VRA.

Specifying reservation (not using reservation policy)

$
0
0

Is there a way to calculate and use a specific reservation instead of using a reservation policy?

 

Use case: we tied a reservation policy to a cluster, but want to track allocations of different type VMs on separate reservations available to the same business group. By using reservation policy we can only force using the cluster but not the reservation itself. Is this possible at all?

Lifecycle Manager (vrlcm 2.1 ) - Export VM Template failed due to core dumped

$
0
0

Hello all,

 

We (my team and me) are trying to use vRLCM to distribute vRO , vRA and VM Templates over our vRealize Infrastructure.

 

and we are blocked with exporting VM Template.

 

We have tried with several different VM with all the time the same result: FAILED.

 

Then, I've tried to find how LCM was working and to replicate steps manually.

 

What I found:

On the old version: LCM -> vRO (Embedded) -> Blackstone External -> Python Script -> OVF Tools.

On the new version (2.1) LCM -> Blackstone External -> Python Script -> OVF Tools.

 

On both version, I've got the same error and same error message:

 

/opt/vmware/vlcm/blackstone/ovft/ovftool.sh -o --noImageFiles --noSSLVerify vi://administrator@vsphere.local@HOSTNAME/****/vm//VRM/templates/latest/VMTEMPLATE /data/content/vSphere-Template/0057f50b-62f2-49a4-93ec-a76aa5446216-v1/VMTEMPLATE.ovf

Enter login information for source vi://HOSTNAME/

Username: administrator%40vsphere.local

Password: ***********

Opening VI source: vi://administrator%40vsphere.local@HOSTNAME:443/****/vm//VRM/templates/latest/VMTEMPLATE

Opening OVF target: /data/content/vSphere-Template/0057f50b-62f2-49a4-93ec-a76aa5446216-v1/VMTEMPLATE.ovf

Writing OVF package: /data/content/vSphere-Template/0057f50b-62f2-49a4-93ec-a76aa5446216-v1/VMTEMPLATE.ovf

Transfer Completed

Segmentation fault (core dumped)

 

Thus, via the Web interface, it failed,

via the command line it failed.

 

Is someone able to give me some solutions or way to debug the current export ?

 

Os Version:

NAME="VMware Photon"

VERSION="1.0"

ID=photon

VERSION_ID=1.0

PRETTY_NAME="VMware Photon/Linux"

ANSI_COLOR="1;34"

HOME_URL="https://vmware.github.io/photon/"

BUG_REPORT_URL="https://github.com/vmware/photon/issues"

ESXi Version:

VMware ESXi, 6.7.0, 10302608

 

Did someone use vRLCM to export and import Template between multiple vSphere Infrastructures ?

 

Thank you,

System Exception when connecting vCenter as an end point

$
0
0

Good Afternoon,

 

I know this sounds like a very basic issue but something doesnt seem right.

 

I am trying to add vCenter to my VRA instance and when I test the connection or when I try to save the connection, it wont do anything but instead I keep getting "System Exception" bar at the top of the screen.

 

the endpoint name matches my agent name

 

my url points to my vCenter

 

I am using a domain account that has administrative rights to vCenter

 

This is one of the easiest tasks to do...but for some reason, not today!

 

Any help would be greatly appreciated.

Provision Container Host through vRealize 7.5

Containers Management Issue

$
0
0

Not matter what permissions or entitlements I grant to a user/biz group, the group drop down under containers appears empty. The user is added to multiple business groups so there should be multiple groups listed. The user is added to all container roles. Any suggestions?

 

 

 

vRA/vRO 7.6 - creating array of all cafe VMs - methods not consistent

$
0
0

Hello,

I've created a small inventory script in vRO, which needs all vRA cafe VMs (type: VCACCAFE:CatalogResource) as input.

Loading all CatalogResources ist not an issue, this is done using an odata query and the results are consistent, that is, each time the method delivers the same amount of objects (assuming no changes are made in vRA).

The weird part begins, when I try to filter out non-VM objects from the array, that is everything, that is not of the virtual machine type: Deployments, Networks and other objects provisioned in vRA, that are of no use in the context of this workflow.

I tried different methods for determining if the CatalogResource object is a virtual machine, but each time the script is run, a different amount of objects is returned and as a result, the output is not consistent and cannot be used - some vRA vms are missing each time but also some are duplicated.

 

What would be an affective way to return all vRA vms as an array? Is there no method that would return consistent results? The only one I could think of, is to load all vCAC Vm objects first and the find the corresponding catalog resource for each, by name, but that would be slow.

 

Here's the code snippet I use for testing, input is the array of cafeHosts. WARNING - using it can result in excessive JVM Memory usage:

for (var j=0;j<3;j++){    System.log("====== iteration " + j);    var vCACCAFEVMs = [];    // Query each host for catalog resources; this will include cafe vms AND deployments; using odata query with pagination        for each (host in cafeHosts){            var service = host.createCatalogClient().getCatalogConsumerResourceService();             var query = vCACCAFEOdataQuery.query();            var i;            for (i = 1; i < 20; i++){                var items = service.getResourcesList(new vCACCAFEPageOdataRequest(i, 100, query));                if (items.length == 0) { System.debug("Breaking query of host " + host.name + " on iteration " + i); break }                vCACCAFEVMs = vCACCAFEVMs.concat(items);            }        }        System.log("Total Found CatalogResource items: " + vCACCAFEVMs.length);    /*var result = [];    for each (vm in vCACCAFEVMs){ result.push(vm.name) }    System.log(result);*/    // Filter out non-VMs using .resourceTypeRef values        var vCACCAFEVMs_v2 = vCACCAFEVMs.slice();        var i = vCACCAFEVMs_v2.length;        while(i--){            if (vCACCAFEVMs_v2[i].resourceTypeRef.getId() != "Infrastructure.Virtual" && vCACCAFEVMs_v2[i].resourceTypeRef.getLabel() != "Virtual Machine") { vCACCAFEVMs_v2.splice(i, 1) }        }        System.log("CatalogResource after filtering out non-VMs using .resourceTypeRef value: " + vCACCAFEVMs_v2.length);    var result = [];    for each (vm in vCACCAFEVMs_v2){ result.push(vm.name) }    System.log(result.sort());    // Filter out non-VMs using cafeVm to vcacVm convert        var vCACCAFEVMs_v3 = vCACCAFEVMs.slice();        var i = vCACCAFEVMs_v3.length;        while(i--){            var vCACVMs = Server.findAllForType("vCAC:VirtualMachine", "VirtualMachineName eq '" + vCACCAFEVMs_v3[i].name + "'");            if (vCACVMs[0] == undefined) { vCACCAFEVMs_v3.splice(i, 1) }        }        System.log("CatalogResource after filtering out non-VMs using cafeVm to vcacVm convert: " + vCACCAFEVMs_v3.length);    var result = [];    for each (vm in vCACCAFEVMs_v3){ result.push(vm.name) }    System.log(result.sort());
}

vRA tenant creation design assistance

$
0
0

Hi All,

I have 2 vsphere clusters in a vcenter endpoint "Gold" and "Silver" cluster. The "Gold" Cluster is for production worload  VMs and the "Silver" cluster is for Dev/Test workload VMs.

 

Use case is to have a drop down in the catalog request form to select "Production" or "Dev/Test" and have the VMs build in the correct cluster.

 

I have only 1 tenant. Should I create 1 fabric group with both the resources of "Gold" and "Silver" cluster compute resource, have 1 reservation to map the compute resources to my business group? Or is there some other approach suggested for this?

 

Also, after creating a blueprint, I will need to create a dynamic value for "Production" and "Dev/test". The dynamic value will need to be pointed to action in vRO which will help selecting the cluster based on the input. Please assist with pointing me to some resource that will help me in creating the action item.

 

I am just beginning to work on the product.. Any suggestions and input will be highly appreciated. Thanks in advance.

vRA endpoint 'AD

$
0
0

Hi

I am getting this error via XaaS reset user password

 

Unable to update a vCO endpoint of type 'AD'. Reason: 'InternalError: com.vmware.o11n.plugins.configurator.util.CertificateException: Connection reset (Workflow:Import a certificate from URL with certificate alias / Validate (item1)#5). Any help ?

 

vRA API call logs

$
0
0

I am troubleshooting deployments made using the vRA API. I am trying to find any log files that will show the API calls being received by vRA including the request json payload. I can't seem to find this anywhere.

I have tried using the API to get the request info at catalog-service/api/consumer/requests/{requestID} but the requestData field is always empty. I have also tried looking in /var/log/vcac/catalina.out on the appliance, but the JSON I see there seems to be a modified version of the JSON after the request.

Is there anywhere I can see the API calls as they come in? Like the original POST or GET requests including the request JSON data?

Regards,

Darren

vRO 7.6 - Restore Deleted Workflows

$
0
0

Hello,

 

I can't find the option "Restore Deleted Workflows" in vRO 7.6.0.12923317.

 

The steps described here are strait forward Restore Deleted Workflows

 

Anyone else have this issue? There is any "special" setting that I missed?

 

 

Thanks.

vRA ServiceNow (SNOW) Integration

$
0
0

Hi,

We use Snow and we are looking for a solution to publish a self-service portal.

Summary from the requirements:
- Create VMs
- Create Snapshots / Delete Snapshots automaticly after x days

- Console Access to VM (Somehow permission must be given)

- etc.

 

I'm also interested:

Can other things be published in the catalog via vRA? (As example a Powershell Script which is then executed on a Windows server via vRA)

 

Basically I'm looking for a portal where users can manage their own VMs.

And we have other small services which we can publish (create backup, enable VM maintenance mode, etc.)

 

How do you do that?

Viewing all 9859 articles
Browse latest View live


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