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

vRealize Orchestrator REST API Hangs after a few delete commands

0
0

So I was working on a script to poll the VRO API for workflows, which would essentially track these until completion, and archive them to a database.  The logic is basically:

 

 

1. Look at vRO and get a listing of executions for a given workflow, and get the details (execution Id, parameters, completion time, completion status, last step, etc.)
2. Check the database table where I am storing these to see if this execution Id has been logged
3a. If the execution Id is already logged, update the entry.
3b. If the execution Id is not already logged, insert the new entry.

4. Check the status of the execution - if it is in a completed state of some form (failed, completed), delete that entry from VRO..

 

The script worked great for logging - and it worked perfectly fine right until the point that I started deleting workflows.

 

I am basically running:

 

DELETE https://{vro_server}:8281/vco/api/workflows/{workflow_id}/executions/{execution_id}/

 

I am running this using Invoke-RestMethod in Powershell.  I also noticed that in the relations.link property of the return JSON when retrieving a execution, there are some other verbs available:

 

https://{vro_server}:8281/vco/api/workflows/{workflow_id}/executions/{execution_id}/logs/

https://{vro_server}:8281/vco/api/workflows/{workflow_id}/executions/{execution_id}/remove/

https://{vro_server}:8281/vco/api/workflows/{workflow_id}/executions/{execution_id}/state/

 

I had tried playing with the /remove/ resource, but I tried GET, PUT, PUSH, and DELETE, and it threw a 404 on each.  So it's entirely possible I'm going about this the wrong way, and if so, feel free to stop me here.


So, first I tested the DELETE verb against the execution.  This worked on my test execution.  So I added the logic into the script, added a long sleep, turned on verbose output, and kicked it off and watched.  There was 2 successful deletes right at the beginning.  It moved to the third, and I noticed it took longer.  Eventually I got an error indicating that the operation timed out.  It failed on the 4th as well.  I killed the script, and after making a couple modifications, I kicked it off again.  This time, even getting my listing of executions failed with a time-out issue.  It then moved on to my next VRO appliance (I have 4, because they only support 5 vcenter SDK connections each), it successfully pulled in all my executions, and then just like the first appliance, there was 1 success, then failure.  Then, a second failure. Then a success. Another failure, another success.  And then it moved to all failures.  Now if I try hitting the REST API for either of these appliances, it fails.

 

What gives?  Did I do something wrong?  How do I start this sucker back up?


API Call to all tenants

0
0

I'm running a vRA 7.0.1 environment and wondered if anyone has had luck making API calls, whether via CloudClient or any other method, that includes All Tenants rather than just the one you're authenticated with?  When in the vRA website, I have the ability to see all property definitions, whether for "this tenant" or "all tenants".  However, via API I'm only allowed to see the list for tenant I'm connected to.  Is there a way to manage that via API at a higher level? Is there any sort of all tenants property or flag I could set for example?

 

The driver for this is to programmatically export several things including property definitions.  I need to do this regardless of tenant.  Any tips or guidance is appreciated!

vRA 7.2 - vRO 7.2 Action getApplicableNetworks failed: 403 on Action getReservationsForUserAndComponent

0
0

Thanks to bdadmin for raising 'getApplicableNetworks retrieves more than Business Group networks' on 16-Mar-2017 15:39 and thanks to poorem who answered on 18-Mar-2017 18:25 , a very good example for select network at provisioning time, thanks.

______________________

Using out of the box vRO 7.2 'getApplicableNetworks' who calls 'getReservationsForUserAndComponent' or poorem's modified version both fail with 403 in my vRA 7.2 system.

 

'403 FORBIDDEN Your authentication credentials do not provide sufficient access to the resource.' is the only lead I have.

 

All other Actions and Workflows works fine communicating with VCACCAFE:VCACHost connection , it is only 'getReservationsForUserAndComponent' that fail with 403.

Looking at the script in getReservationsForUserAndComponent:

________________________________________________________________________________________________________________________

// get reservation filtered by sub tenants

var reservationFilter = getReservationFilterForSubTenants(subTenants);

var reservations = [];

if (reservationFilter) {

    reservations = reservationService.getAllReservations(reservationFilter).getContent();    <===== This call fail with http 403

}

 

return reservations

________________________________________________________________________________________________________________________

 

vRO's vRA Plugin use AD authentication and all other workflows/Actions works fine.

 

Anyone have an idea of what it is don't get right here ?

Network connectivity issue between VRA and IaaS host

0
0

Hi everyone,

 

I'm having trouble with vra installation wizard. In Prerequesite Checker windows ,There is an error displayed: There is a network connectivity issue between this Virtual Appliance and LAPTOP-BNJH7QEC. And when I press Run to execute the prerequesite checker., it just keeps the status Waiting for host to trigger prerequisite check for a long time.

 

I have already checked the connection between IaaS host and vra host. They can ping to each other. The vra version I installed :VMware-vR-Appliance-7.3.0.536-5610496_OVF10_2

If anyone met this issue before, please guide me how to figure out. And if anyone knows the log file that contains information about this connection, pls give me the path. Thanks in advance

 

The vra host can discover IaaS host:

 

But it takes forever to do the prerequisite checker to IaaS host:

vRealize appliance connectivity issue with my server Iaas

0
0

Hello everyone,

I'm a junior cloud architect and I'm deploying vRealize Automation for a Proof of Concept. I already deploy the appliance on my vCenter but during the configuration with the wizzard from Prerequisite checker step, it shows: .

And when i click run button for check the prerequisites in the Iaas server, it never show the list of prerequisites for the Iaas server.

It stucks on "Waiting for host to trigger prerequisite check".

If i can't know if my Iaas server meet all the requirements, i can't take the risk to pursue the installation, it will fail.

 

Thank's for the interrest.

vRA 7.2 Change catalog resource iconID

0
0

Hello everybody,

 

I tried to change an iconID of a catalog resource in vRA with the following code in vRO:

 

var catalogItems = vCACCAFEEntitiesFinder.getCatalogResources(host)

 

for each(var c in catalogItems){

     if(c.name == "VM-YPHUF-002"){

     System.log(c.name + " - " + c.getIconId());

     c.setIconId("Infrastructure.CatalogItem.Machine.Virtual.vSphere");

     System.log(c.name + " - " + c.getIconId());

     }

}

 

But, when I refresh vRA the iconID still the same (cafe_default_icon_genericCatalogItem)

 

Also I tried to make a post via Rest Api in catalog-service/api/consumer/resources/. But the method is not allow.

 

Any ideas?

What is the custom property which determine the Disk Provisoning Type?

0
0

Hello ,

 

I am wondering what would be the custom property which determines the Disk Provisioning type while building the VM. I had noticed, the VMs which are cloned with VM Template with Thin provisoning get thin provisioned Disk however if we add addtional disk to the VM from vCAC, they get provisioned as 'Thick Provision Lazy Zeroed' which i do not want but i wanted to control this Type.

I am sure there should be property holding value for the same but i am not able to find it, has anyone used it or aware of ?

 

Br,

 

MG

Please advise how to provision or configure hard disk type of think or thin from vRA

0
0

Hi Friends,

 

What I found in "https://docs.vmware.com/en/vRealize-Automation/7.3/vrealize-automation-73-custom-properties.pdf"

VirtualMachine.Admin.ThinProvision

Determines whether thin provisioning is used on ESX compute resources using local or iSCSI storage. Set to True to use thin provisioning. Set to False to use standard provisioning. This property is for virtual provisioning.

 

It only effecting to local or iSCSI storage?

 

I would like to have thick or thin new hard disk provision from vRA.

I am using FC SAN storage.

Please kindly advise and waiting your reply. Thank you.


Failed to get access token from https://my.vmware.com. Please check connection and credentials

0
0

Does anyone know what the requirements for vRealize Suite Lifecycle Manager is to gain access to my.vmware.com through proxy?

Failed to get access token from https://my.vmware.com. Please check connection and credentials

Open Engineering Console vRA

0
0

I want to know how we can open/use the developer console in vRA appliance server.

The shell-ui has two options one as shell-ui-app https://<appliance_url>/shell-ui-app but it redirects back to /vcac and another is the shell console inside the server, when enabled gives the engineering console for updating and do admin operations on the appliance.

Does anybody know how to enable the same ??

Requests are stuck - invalid credentials

0
0

Hi Team,

 

I just integrated my vRA 7.3 with Istanbul SNOW instance using plug-in 3.0. I am able to request (and approve) services from the vRA catalog, however requests are stuck. See screenshot below.

Screen Shot 2018-02-20 at 12.15.45.png

 

In the plugin log I can see the following error message, however I am not able to identify what are the invalid credentials.

 

REST call error found inside VRASNRequestUtil.getTemplateViaRest: Method failed: (/catalog-service/api/consumer/entitledCatalogItems/94748c1b-40fa-4ec0-a239-6ef0807b73c6/requests/template) with code: 401 - Invalid username/password combo

 

Thanks

Paolo

vRealize Automation Server Creation Slow.

0
0

I am able to create my servers from vRealize Automation but the servers in vCenter are being created very slow. If I create a server directly in vCenter it creates it very fast. The servers are being created on the same subnetwork that the vCenter exists on so there shouldn't be any bottlenecks between networks.

Community for vRealize Suite Lifecycle Manager (vRSLCM)?

0
0

Is there a VMTN community for vRealize Suite Lifecycle Manager (vRSLCM)?

Understanding Software Component Communication in VRA 7.3

0
0

My team is working to move to using the Software Component capabilities in VRA 7.3.  Currently everything we do for provisioning is done using stub workflows we developed in VRO when we were on VRA 6.2.  I need to get a better understanding of how the communication works, because our Information Security is concerned that we have tenant VM's initiating communication to our cloud management platform.  We obviously need to prevent bad actors from having the ability to have any type of communication to this platform.

 

From what I understand, this is how Software Components work in general.  I'd appreciate it if anyone can correct me on how this work.

 

  1. VRA initiates the provisioning of a tenant VM
  2. VRA assigns a unique ID for the gugent
  3. The tenant VM is stood up and turns on
  4. The tenant VM then contacts VRA identifying itself with the unique ID for the gugent over SSL
  5. VRA confirms identification and identifies the software components that need to be installed
  6. VRA tells the tenant VM what to install/configure

 

I need to know how VRA prevents just any server from providing the unique ID (which I believe is the gugent ID that is readily available in files in the gugent folder on each VM) so that VRA then starts working with that VM.

 

Any help would be greatly appreciated.

Force Data collection for Certain AWS endpoints as part of a workflow

0
0

Hi,

 

I've created a image creation and deployment process via VRA for AWS, my only issue now is that the data collection only happens once a day, is there any way i can do this on demand via VRO, i know there is a workflow for Force Data collection, but i suspect this is for all endpoints, i would like to try it only on certain endpoints. Is there any way to modify the workflow to specify which endpoint? Or does anyone know any other method?


Manual user action - Email approval question

0
0

Can any one help on how to approve a manual user action from the email?

 

In our workflow, there is a 'user interaction' element which sends mail and also adds a 'Manual User Action' entry in the Inbox of VRA portal.

In the portal, the approver can select 'yes' or 'no' and press 'Submit' to approve or reject respectively.

But in the email client, there is no such option. Clicking on the 'Submit' link and sending the composed mail seems to 'Reject' always.

How can we 'approve' using email?

 

Thanks

Is it possible to install vRealize automation or vRealize orchestration appliances on windows/linux platform without the vcenter server/vsphere web client? if yes, then anyone can provide necessary information in terms of steps to configure VRA/VRO.

0
0

Hi,

 

Anyone can share their thought on the Question in the subject line, as I have some requirement to setup VRA/VRO, but facing some difficulties, as I don't want to pre-install vSphere Exi Management server/vSphere vcenter server to serve the purpose.

 

I have searched a lot, and find out that VRO version 6.5.1 supports windows installer, but now nothing is provided or listed on VMware product portal. Kindly addressed this concern on high priority.

 

Regards,

Saumya Gupta

How to provision a VM into AWS using a custom blueprint and by using Java SDK/REST API programatically.

0
0

Hi,

 

I am trying to find out some steps to start the provisioning of a VM in a AWS cloud programmatically using JAVA SDK/REST API, but haven't find any fruitful information, like from where to start.

 

I have a basic knowledge about VRA/VRO in creating, deploying, and provisioning a VM using VRA console itself.

 

But willingly interested in replicating the similar scenario using Java SDK or the REST API.

 

Can anyone provides some suggestions/steps/links to start with

 

Regards,

Saumya Gupta

vRO 7.0.1 - Get AD Computer Attributes

0
0

hi all,

I'm trying to retrieve specific attribute of specific AD computer.

I saw that there are api in vRO 7.0.1 but I'm not sure how to use it.

can someone please help with it and show me some examples to achieve this goal?

 

thank you

vRA SNOW Plugin timeline for compatibility with ServiceNow Kingston

0
0

Is there any roadmap/timeline for support of existing and comming ServiceNow releases?

Viewing all 9859 articles
Browse latest View live




Latest Images