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

vRA API - Assigning Storage Reservation Policies

$
0
0

Has anyone managed to use the API to allocate Storage Reservation Policies to a Storage Path via the vRA API? I can't seem to figure out where to set this.

 

The UI version of what I'm trying to do:

 

Infrastructure -> Edit Compute Resource -> Configuration -> Storage Path -> Drop-down to select Storage Reservation Policy.

 

The closest I've got is:


/reservation-service/api/data-service/schema/Infrastructure.Reservation.Virtual.vSphere/default/reservationStorages/values - gets me the datastores

/reservation-service/api/data-service/schema/Infrastructure.Reservation.Virtual.vSphere/default/computeResource/values - gets me the compute resources I need to edit


Any help appreciated.




IP address(es) of the VM in vRealize Business report

$
0
0

Hello.

 

I want to generate reports with VM details that will include the IP address(es) of the all the NIC cards for all the VMs. How can I do this?

I also want to filter it by user name (given as an input to the report, if possible).

 

Thanks

vRA 7 embedded vRO or external?

$
0
0

Looking at deploying a distributed HA vRA 7 environment and I haven't been able to determine if the embedded vRO appliances are HA and/or if they are recommended over external vRO appliances.

 

Does anyone know?

vRA 7.3 Delete an Imported AWS Instance

$
0
0

We have vRA 7.3 in our environment and have imported a number of AWS instances.  They appear correctly in the Items -> AWS -> EC2 Instance Name section, however, there are some imported Instances that are listed which were terminated at some point and are no longer in our AWS environment.  The vRO plugin does not see them either, but when I go to vRO Inventory view -> vRA appliance -> Items they are there.  My question is how to I remove these stale Instance listings?  From my troubleshooting/research these are not registered in the IAAS component so would only be found on the appliance.  I've tried manually removing from the vRA postgres DB but they are not found.  Any ideas?

Change lease

$
0
0

Hi,

is it possible to change the lease of a VM creation Blueprint after the Blueprint is created?

I am only able to create the lease of a VM if i newly create a blueprint.

Thanks

Frank

Get info VM delete in x days

$
0
0

Hi,

 

is it possible to inform the create of a vm that the vm will be delete in x days?

As an example. If i have created a VM that running time is 30 days, i will send an mail to the owner of the vm that it will be shutdown in 5 or maybe 10 days?

Frank

[INFRASTRUCTURE] - EXPORT / IMPORT from Dev to Staging environment : ERROR 404

$
0
0

Hi guyz,

 

we work actually on three vRA environment "Dev, Staging & Production".

 

We have a DEV environement UP & RUNNING and we want to replicate it to vRA Staging environement.

We have used :

 

- PowervRA script : https://paulsmithit.wordpress.com/2017/07/19/exporting-and-importing-vra-content-using-powervra/comment-page-1

 

and tried also with :

 

- Vcloud Client : https://dailyhypervisor.com/using-the-vra-cloud-client-to-export-and-import-blueprints

 

but we always the same RESULT.

 

Our XAAS blueprint doesn't work with this error:

 

2017-12-28 13:29:32,698 vcac: [component="cafe:advanced-designer" priority="ERROR" thread="tomcat-http--45" tenant="smartcloud-dev" context="J4BY0v71" parent="J4BY0v71" token="TiaC3H6k"] com.vmware.vcac.designer.service.catalog.controller.CsFormsController.getFormBatchUpdate:246 - Error while retrieving form metadata for form Request.Submit for binding smartcloud-dev!::!39532f66-6142-41ff-ac2f-71894b6f7cec. Reason org.springframework.web.client.HttpClientErrorException: 404

2017-12-28 13:29:32,700 vcac: [component="cafe:advanced-designer" priority="ERROR" thread="tomcat-http--45" tenant="smartcloud-dev" context="J4BY0v71" parent="J4BY0v71" token="TiaC3H6k"] com.vmware.vcac.platform.service.rest.resolver.ApplicationExceptionHandler.handleHttpStatusCodeException:673 - 404

org.springframework.web.client.HttpClientErrorException: 404

 

We have try lot of VMware KB without succes.

 

Do you have an IDEA please ?

How to distinguish between "Destroy" and "Reprovision" for vRO Workflows?!

$
0
0

Hi there,

 

I'm struggling around with this special issue.

 

We have some vRO subscriptions in vRA to clear DNS-Records and AD-Computer Accounts after destroying deployments. In case of destroying something this is working fine.

But in case of reprovision we often get timing issues. If a computer account gets deleted and recreated shortly afterwards, it often happens that the "create AD Account" Job fails and and the new deployed VM joins into a wrong OU (default OU Computers) to AD where many of our necessary GPOs are not linked.

 

My big question is. How can vRO distinguish between reprovision and a completely unprovision (destroy)??

Because the cleanup job should only run if I give a destroy request

 

Or how should I setup the conditions for the subscriptions.

I've tried: VMPSMasterWorkflow32.Disposing and VMPSMasterWorkflow32.Unprovision -> both states seems to be used in reprovision AND destroy. Therefore -> useless for my purpose.

 

I need a condition which can differentiate between destroy and reprovision.

 

Does anyone have any ideas?

Many Thanks in advance


upgrade vrealize automation 7.1 to 7.3 Update failed (code 0-2)

$
0
0

Hi All,

i recently updated my vrealize automation test environment from 7.1 version to 7.3  without problems

When updating my production environment i obtain the following error

 

"Update failed (code 0-2)"

 

In updatecli.log i see this detali message:

"Script /etc/bootstrap/postupdate.d/20-vcac failed, error status 2"

 

Investigating morethe problem seems to be in "forms_valuedefinition" table when executing this query:

 

update forms_valuedefinition set scope_level= 'system', scope_levelfilter ='system' where  key like 'PropertyDefinition-null-%'

 

that fails (correctly) with a key constraint error (see table example below)

 

                        key                                                       | scope_level | scope_levelfilter

------------------------------------------------------+-------------+-------------------

PropertyDefinition-null-VirtualMachine.Network0.Name | tenant      | tenant1

PropertyDefinition-null-backup                                        | tenant      | tenant1

PropertyDefinition-null-backup                                        | tenant      | tenant2

PropertyDefinition-null-VirtualMachine.Network0.Name | tenant      | tenant2

 

In test environment i have just one tenant, in production I have more then 10 tenant

 

Any idea?

 

Thank you very much

 

 

 

REST API: How to list VM templates

$
0
0

Hi,

 

I was wondering how to list VM templates outside of a Content Library with REST APIs.

I can list VMs but no templates returned and I can't find the good REST method to do it.

Does someone knows how to do this?

 

Thanks,

Romain

Trigger an event broker event by updating a custom property

$
0
0

I've got a custom property for a virtual machine that is in a property group. Its part of the blueprint and gets set to a value at request time by users. I'd like to enable users to update this property at a later date, and have it trigger a vRO workflow.

I've been trying to use "virtualMachineAddOrUpdateProperties" in the Machine Provisioning topic, without much luck.

To be clear, this update property request would be happening well after the machine is provisioned. Does any one have any tips or ideas?

vRA 7.3 Small Installation: DEO/DEM Installation fails

$
0
0

Hello, i am  having a specific issue when i am trying to install vRealize Automation, in a small installation on my servers.

My physical environment consists of 2xDL380g7 as well as a Dell R510  doing shared storage over 10gbe.

 

vCenter 6.5 (7312210) as well as ESXi HP Custom images are installed v6.5 (6765664)

Cluster layout: https://puu.sh/yQGd8/0284d4200f.png

Active directory is enabled on a Windows Server DC2016, resonsible for authentication.

DNS Forwarding to the Gateway Pfsense - R210II which handles DHCP/DNS etc.

 

Using the reference documentation i created the serverrs for a small deployment

One vRA-01, IAAS-SQL, IAAS-Web-01

(This installation has also been tried with a full enterprise installation. but same error occured)

 

Now onto the error itself

Error message in installation details: https://puu.sh/yQGia/5e748e6c9c.png

Error Installation-log located on Pastebin: vcac deo fail - Pastebin.com

 

MSDTC has following settings https://puu.sh/yQJy4/b575c69052.png

serviceaccount: service.vra

Migrating vRA7-managed VMs from one vCenter (vRA Endpoint) to another - actions required in vRA?

$
0
0

Hi,

 

We are going through a migration project to move from legacy vCenter 5.5 instances (existing vRA 7 Endpoints) to new vCenter 6 instances and new compute and Storage DRS clusters

 

Migration will be done via swinging the ESXi 5.5 hosts in the legacy 5.5 vCenters into new vSphere clusters in the v6 vCenters, and recreating the storage DRS clusters.

 

We are planning on having the new vCenters configured as vRA 7 endpoints in advance

We will also be creating new vRA7 reservations from the new vCenters and new compute/storage clusters, and explicitly mapping the new reservations to the same vRA 7 reservation policies as-per the original reservations that the virtual machines are currently assigned to in vRA.

 

Once all hosts and VMs are migrated, we will look to decom the existing reservations on the old vCenter 5.5 endpoints, and then decom the endpoints.

 

Can anyone provide any feedback on this process, specifically the following questions:

1. Will we need to manually run the "Change Reservation" option (under Managed Machines in the vRA web portal) for each VM after it has been migrated from the old vCenter 5.5 to the new vCenter 6?

2. Could the process above cause any impact to vRA functionality?

3. Is there a better or improved process to that described above (e.g. a vRO workflow) available?

 

Many thanks in advance for any info ....

Justin

Provisioning Problems: VMs stuck in state "Finalized"

$
0
0

Hi there,

 

since some weeks we are experiencing increasingly issues with stucking deployments.

 

Not always but often this issue occures while new deployments, but more often while reprovision a VM. The affected VM is running and ready for login but stays in state "Finalized" instead of "On".

Therefore all Day2-Actions except of "Destroy" are inaccessable for enduser. We have a workaround Workflow, where a user can select his stucking VM and reset the status to "On" in Iaas DB. But this is not a solution, because this behaviour occures at about 80% of every reprovion task.

 

Does anyone have similar issues?

 

Attention: These Logs are upside down because they are exported from Log Insight. The newest lines are on top.

Here a badtrace from all.log ->

 

ATDEVCICPWS0031: Workflow upgrade completed

ATDEVCICPWS0031: VirtualMachineTracking: workflowId=[59ab1756-3c37-4714-a1dc-ce266bf4e0ca], state=[Finalized] is being upgraded, state plugins will not be called

ATDEVCICPWS0031: Not executing external workflows or any activities in state Requested while workflow is being upgraded.

ATDEVCICPWS0031: Not executing external workflows or any activities in state Requested while workflow is being upgraded.

ATDEVCICPWS0031: Waiting for workflow upgrade to complete ...

ATDEVCICPWS0031: VirtualMachineTracking: workflowId=[59ab1756-3c37-4714-a1dc-ce266bf4e0ca], state=[Requested] is being upgraded, state plugins will not be called

ATDEVCICPWS0031: Not executing external workflows or any activities in state Requested while workflow is being upgraded.

ATDEVCICPWS0031: Not executing external workflows or any activities in state Requested while workflow is being upgraded.

token="zzEvD0ay"] GetWorkItem AgentID:ESXVCSA12Q taskType: PowerOn Long Running: False Data Collection: False Can run long running data collection: True Can run long ru

token="cUQ9h25J"] Machine 59ab1756-3c37-4714-a1dc-ce266bf4e0ca: Name: ATDEVCICPWS0031, State: Finalized.

oken="cUQ9h25J"] ATDEVCICPWS0031: [EventBrokerService] Resuming workflow with id 59ab1756-3c37-4714-a1dc-ce266bf4e0ca on queue 6061669e-a75d-427a-b955-a85cd0dbcced. Sta

token="cUQ9h25J"] [EML001] ATDEVCICPWS0031: Email template file not found [C:\Program Files (x86)\VMware\vCAC\Server\Templates\ManagerPowerOn.xslt] for template [Manage

token="cUQ9h25J"] ATDEVCICPWS0031: Sent email to ----using template PowerOn

 

and here a snippet from good trace ->

 

Virtual Machine ATDEVCICPWS0031 is on

ATDEVCICPWS0031: [EventBrokerService] Resuming workflow with id 59ab1756-3c37-4714-a1dc-ce266bf4e0ca on queue a572343e-7232-436a-b84b-14766a0831a2. State

Machine 59ab1756-3c37-4714-a1dc-ce266bf4e0ca: Name: ATDEVCICPWS0031, State: On.

ATDEVCICPWS0031: sendEBSMessage56(workflow=59ab1756-3c37-4714-a1dc-ce266bf4e0ca) Sent event with id 5f6ec210-f13e-11e7-560a-31c639da8969

ATDEVCICPWS0031: sendEBSMessage56(workflow=59ab1756-3c37-4714-a1dc-ce266bf4e0ca) About to send an event with timeout (00:30:00) for state VMPSMasterWork

ATDEVCICPWS0031: sendEBSMessage56(workflow=59ab1756-3c37-4714-a1dc-ce266bf4e0ca) for state VMPSMasterWorkflow32.On phase PRE event

ATDEVCICPWS0031: [EventBrokerService] Resuming workflow with id 59ab1756-3c37-4714-a1dc-ce266bf4e0ca on queue 2de0d7f0-2069-4bc4-844b-ecdcf3d0a2ef. Stat

ATDEVCICPWS0031: sendEBSMessage55(workflow=59ab1756-3c37-4714-a1dc-ce266bf4e0ca) Sent event with id 5bc19890-f13e-11e7-560a-31c639da8969

ATDEVCICPWS0031: sendEBSMessage55(workflow=59ab1756-3c37-4714-a1dc-ce266bf4e0ca) About to send an event with timeout (00:30:00) for state VMPSMasterWorkf

ATDEVCICPWS0031: sendEBSMessage55(workflow=59ab1756-3c37-4714-a1dc-ce266bf4e0ca) for state VMPSMasterWorkflow32.TurningOn phase POST event

ATDEVCICPWS0031: [EventBrokerService] Resuming workflow with id 59ab1756-3c37-4714-a1dc-ce266bf4e0ca on queue 12706aac-e8c4-4eb5-ae6e-e541aeb56e82. Stat

[EML001] ATDEVCICPWS0031: Email template file not found [C:\Program Files (x86)\VMware\vCAC\Server\Templates\ManagerPowerOn.xslt] for template [ManagerP

ATDEVCICPWS0031: Sent email to ----- using template PowerOn

 

These are the last lines from log concerning this specific VM.

 

It seems to me IaaS is waiting for something. But between "PowerOn" and "PowerOn Long Running" are only a few seconds in logfile

Revert Snapshot example

$
0
0

I'm trying to find an example of reverting a snapshot (I create a single snapshot at start of VM life and then use Revert as a cleansing mechanism for developing software deployment scripts).

 

I have coded up (in Ansible) the various REST API calls to get the bearer token and machine details but can not find a good example of how to find the snapshot ID's for the machine, which seems to be the required parameter for the REST call


XaaS provisioning request - no item in the "Items" tab

$
0
0

Hi!

 

I'm trying to connect vRA 7.3 to external REST API system to provision and manage objects in it through vRA.

 

I configured Dynamic Types "My Type"  (with dynamic types plugin v2) and saw all my external objects in vRO inventory (under Dynamic Types plugin). Next I configured XaaS "Custom Resource" == "My Type", vRA showed all "My Type" properties without any problem. So, on the next step I created XaaS blueprint, connected vRO workflow to deploy an object in external system (workflow output parameter = "My Type" object, workflow properly returns "My Type" object). In XaaS blueprint I selected "Provisioning Resource" == "My Type", it showed proper mapping to my workflow output parameter... Published blueprint, added to service, grant permission to users, bla-bla-bla  

 

So, now I have my XaaS blueprint in "Catalog" tab, I can even request it (and vRO would deploy object in external system!!!), but - I don't see any my objects in the "Items" tab... vRO could see them in its own inventory... Without objects in "Items" I can't do day-2 operations or anything else!

 

So, question is - why I don't see XaaS objects in my "Item" tab? Where do I need to look to find out what's wrong with all this stuff?

Reconfiguring deployed through vRA VM OS disk size

$
0
0

I found this Discussion about changing properties of

VM through reconfigure from vRA:

vRealize Orchestrator Forum - VMware {code}

Can’t understand how do I get current HD ID and how to Use this. Any guidance will be appreciated.

My purpose is to create VM through vRA with OS size decided by the owner.

Vrealize Log Insight Content Pack is not showing Events and Logs

$
0
0

Hi All,

 

I have a problem in Vrealize Log insight dashboard.

I have downloaded multiple content packs but few content packs are not showing events while others are not showing and generating any events logs, 

 

I have added Windows, Exchange, Active directory and SQL content packs with their respective machines via agent in vrealzie log insight. 

Microsoft Windows content pack and exchange content pack are showing the events but Active Directory and SQL content packs are not showing any events and logs.

 

Similarly i have also added 1 linux machine and 1 Cisco ASA firewall content pack with their respective machines via agents.

Cisco ASA firewall content pack is showing events but Linux content pack is not showing events of Linux system.

 

Can any one please help me in this regard that why some content packs are showing events while other content packs are not showing or generating any events,

 

Really need help from you guys in this, Waiting for the response,

 

Thanks

Muhammad Aamir Zaib Khan.

NSX Load Balancer Name

$
0
0

I have created a blueprint that through Orchestrator and Infoblox creates a load balancer and 2 vm. The problem is that the load balancer is created with a name "edge-***563fhf36h ...". I have tried several options and although the name is modified in the workflows log, it is not modified in vSphere, nor vRA, nor infoblox.

On-Demand Inline load balancer in vRA

$
0
0

Hi all,

 

We are using vRA and we are starting to design some simple blueprint with only one load balancer and some Apache web server running on port 8080.

LoadBalancer1.JPG

We are trying to use an On-Demand Inline load balancer in the blueprint to have the load balancer connected to one VIP network and to one Web network. ( the Apache Web pool network )

 

This design is executing properly but we want to customize and change the default Gateway for the Apache web server to point to the load balancer NSX Web interface.

Currently the default Gateway for the Web server is provisionning by a network profile in vRA and it is an interface on the DLR router.

Do you know how to change the default Gateway on VM during the blueprint execution or with Software component ?

The goal is to get the ip address from the On-Demand  load balancer during blueprint execution and assign this Gateway to Web server.

 

The final design should be like that. This should be automated during blueprint execution.

 

Capture.JPG

 

Any idea would be helpful

thanks a lot !

Viewing all 9859 articles
Browse latest View live


Latest Images