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

vRA 7.4 Custom forms

$
0
0

Hi All,

I'm working with the custom forms now a few weeks and my clients are very happy with the new design. Much better structured etc. But some blueprints needs businessgroup specific properties. So previous vRA 7.4 I was able to see/use those properties in the request form.

So my question is: Is it possible to use Businessgroup related properties and values (inherit)  in vRA 7.4 Custom Forms? ATM i cant see them.


Looking for the right Custom Properties for event VMPSMasterWorkflow32.EVENT.ReconfigureVM

$
0
0

I`m having problems finding the correct Custom properties fro the events VMPSMasterWorkflow32.EVENT.ReconfigureVM so that I get more information into vRO.

For the normal VM provisioning process the stuff was mapped by pretty good here: vRealize Automation 7 – Enabling the Event Broker » Extending Clouds see the spreadsheet. However I cant not figure out where to get that information. No vmware doc seams to have a list or some ideas

 

What i want to do is hook into the reconfigure Action. The reconfigure action triggers the following (vRA7.1) events:

  • VMPSMasterWorkflow32.EVENT.ReconfigureVM.Pending
  • VMPSMasterWorkflow32.EVENT.ReconfigureVM.Successful
  • VMPSMasterWorkflow32.EVENT.ReconfigureVM.Complete
  • VMPSMasterWorkflow32.EVENT.ReconfigureVM.Failed

But without the customer property I only get this information from the payload:

/lifecycleState/phase : EVENT

/lifecycleState/state : VMPSMasterWorkflow32.VMPSMasterWorkflow32

/lifecycleState/event : VMPSMasterWorkflow32.VMPSMasterWorkflow32.EVENT.ReconfigureVM.Complete

/componentId : vSphere_Machine_1

/blueprintName : test

/componentTypeId : Infrastructure.CatalogItem.Machine.Virtual.vSphere

/IaaSTimeoutId : 1019

/endpointId : 398eb55d-a68e-4ff2-8f1b-07d4d4bafb93

/machine/externalReference : vm-618

/machine/owner : configurationadmin@vsphere.local

/machine/name : test31

/machine/id : e2824606-c8e1-4678-9f9d-6f19611ce9ad

/machine/type : 0

/requestId : 06fdb66f-1253-45a7-b6d5-e40e86483f0e

__asd_requestedBy

__asd_tenantRef

__asd_targetResourceProviderTypeId

__asd_requestInstanceId

__asd_requestInstanceTypeId

__asd_catalogRequestId

__asd_requestedFor

__asd_targetResourceId

__asd_requestInstanceTimestamp

__asd_targetResourceTypeId

__asd_correlationId

__asd_requestTraceId

__asd_targetResourceProviderId

 

What I need would be the the machine properties of the VM, such as:

/machine/properties/VirtualMachine.Memory.Size : 1024

/machine/properties/VirtualMachine.Cafe.Blueprint.Component.Cluster.Index : 0

/machine/properties/VirtualMachine.CPU.Count : 1

/machine/properties/__Clone_Type : CloneWorkflow

/machine/properties/__clonespec : Linux

/machine/properties/VirtualMachine.Admin.TotalDiskUsage : 5120

/machine/properties/VirtualMachine.Disk0.Label : Hard disk 1

 

Anyone?

 

PS: you can rad the properties pretty easy with the following vRO workflow:

function getSubproperties(subject,prop){    for each (subkey in prop.keys) {        subcontent=prop.get(subkey);        if ((typeof subcontent) == "object"){            getSubproperties((subject+"/"+subkey),subcontent);        } else {            System.log((subject+"/"+subkey) + " : " + subcontent);          }    }
}


for each (key in payload.keys) {
    content=payload.get(key);    if ((typeof content) == "object"){        getSubproperties(("/"+key),content);    } else {            System.log("/"+key + " : " + content);      }
}

Change Business Group of a Deployment

$
0
0

Has anyone run across a way to change the business group of an entire deployment?  We've had instances where VMs were deployed under the wrong business group and we want to migrate it to the correct business group, but there doesn't appear to be an easy way to change that.  It looks like you can go into Managed Machines and individually re-assign the VMs to a different business group / reservation, but the deployment itself seems to stay on the original even after all the VMs have been moved.  I feel like that should be a pretty common use case, but I can't find any info on doing it. 

Gugent on Windows not working, _debug_deployment not honoured

$
0
0

Good morning,

 

I have a strange issue with Gugent on Windows. I have installed the Guest User Agent and Software Bootstrap agent on Windows (tried both 2012 R2 and 2016), using the prepare_vra_template scripts (after unblocking it first).

 

When I try to deploy a workload with a software component I receive the following error:

 

The following component requests failed: vSphere__vCenter__Machine_1. Request failed: Machine SQL1: InstallSoftware : "Error writing properties to C:\opt\vmware-appdirector\agent\appd.properties_7/-01-_ 145_24.30".

 

This causes the entire deployment to fail.

 

However, if I set _debug_deployment to true on the blueprint, things get stranger. The VM that has been deployed it powered off and deleted (therefore removing all evidence), yet the deployment is marked as "partially succeeded".

 

I have no issues deploying Linux workloads with software components. The Windows templates have not been hardened, and are not set to join the domain (so hence no whacky GPOs taking effect).

 

There's nothing obvious in catalina, and all services are started without issue.

 

Anyone seen anything like this before?

 

 

-Mark

[vRA 7.4] how to block VM network modification in the reconfigure action for users?

$
0
0

Hello,

 

I have a concerne about the reconfiguration action for our end users. in the network part of the VM reconfiguration they can modify the network of their VMs. this is a strong issue from a security standpoint. do you know how this can be blocked?

 

I know that I can limit the number of NIC in the blueprint but How can I denied them to modify the network. (network.profilename)

 

thank you in advance for your help.

 

sincerely

 

Eric

[vRA 7.4] how to get a list of VM names from the deployment ID

$
0
0

Hello,

in the post expiration step of disposing a machine, I have several software components that have uninstall sequence that need to be executed (unregister the machine from a centralise maangement tool, etc...). by default the expired machine is powered off and deleted when the archiving period is over. thus the uninstall sequence of software components are not executed.

I'm trying to power on the machine when the event (component request) DESTROY on specific componentID happend. the thing is I can only retreive the deploymentID from this event. no direct info of its parent machine.

do you have a way to find the VM that are in the deployment based on its ID?

thank you in advance for your help

sincerely

Eric

VCAP7-CMA Design Exam

$
0
0

Hello guys,

 

Anyone preparing the VCAP7-CMA design exam ?Please contact .I need some help.

HTTP Proxy white list


VM blueprint disregarding "hostname" custom property

$
0
0

Hey all - have a new 7.4.0 HA environment setup for testing.  I have a blueprint setup with a custom property "Hostname" and fill it out during the request... yet the VM is still deployed in vCenter with the machine prefix info.  I can't figure out why it's ignoring this.  Any thoughts?

ASD Resource Actions - Form not loading in vRA unable to find resource error

$
0
0

vRA 6.2.2

vRO 6.0.2 external appliance with vRA plugin for 6.2.2 installed and configured including component registry authentication for vRA.

Distributed install with signed SSL certificates on all vRA and vRO components.

vRA and vRO using a single PSC instance for single sign on.

 

In a test environment we are working with the Advanced Service Designer to create new service blueprints and resource actions. I have set up the vRO appliance as an endpoint within vRA and then specified it explicitly for my tenant under Administration>Server Configuration. The test connection works fine and I can browse the vRO inventory under Advanced Services when creating service blueprints or resource actions without issue, and have successfully created a service blueprint to deploy a VM which works fine, VM is provisioned and appears in vRA. I'm having a strange problem with the resource actions though, I can create and publish resource actions in vRA under Advanced Services but when I try to use them the form isn't loading and I get a generic error message.

 

For example, following the VMware documentation I used the Quick Migration of Virtual Machine preconfigured workflow and published it as a resource action in ASD, and associated it with a Service and Entitlement so it could be used. When I select a VM under Items in vRA I see the icon for the resource action and can select it, but then the request form doesn't load (for this workflow it should prompt you to select the destination host to migrate the VM to) and in red text the message "Unable to find resource. Script action com.vmware.vcac.asd.mappings/mapToVCVM cannot return result" appears and the spinning wheel icon remains on screen until vRA times out and logs the user out.

 

I've tried other vRO workflows (custom made) and tried selecting the action on both a VM provisioned using my custom ASD service blueprint as well as a vanilla windows vRA blueprint but they all result with the same error. Also tried a complete shutdown and power up of vRA and vRO without success. There are no errors in catalina.out on the vRA appliances when the error appears on screen, but around the first time it appeared there was a warning in the log "GET request for https://vRO_FQDN:8281/vco/api/catalog/Workflow+documentation/metadata/ico resulted in 404 (Module 'Workflow+documentation' not found); invoking error handler" and then a couple more similiar messages about "Error making request to vCO. Reason: 404 Plugin 'Workflow+documentation' not found".  The catalina.out file on the vRO appliance appears to have a java.lang.NullPointerException message around the correct time for the error appearing on screen but not 100% sure whether it is related or if I am even looking in the correct log file.

 

In vRO I can see the mapToVCVM workflow in the inventory as described in the VMware docs under Orchestrator>vCAC>ASD>Resource Mappings>vCenter and the account I am logged into vRA as is a tenant admin (with user role in associated service, entitlement and business groups) and a vRO admin.

 

On another test rig I have been able to publish the Quick Migration of Virtual Machine without issue using the same configuration and use the action to migrate a VM in vCenter from vRA, although this was v6.2.1 of vRA and v6.0.1 of vRO.

 

Has anyone has seen something similiar or have any ideas on what might be wrong to help with troubleshooting this.

snapshot expire Email Notification reminder

$
0
0

How we can send email notification reminder to the VM owner sate that your VM Snapshot is going to expire after 2 days in VRA .

Updating Component Profiles Using vRO

$
0
0

It seems when adding features to vRA, accompanying workflows to manage those features in vRO are slow to come by. The new component profiles have been around for a few releases, but I still cannot find anyway to update them programmaticlly from vRO. We want to use the image profiles to allow for more dynamic blueprints. The issue is we have over 100 templates to use and manually adding them to the GUI image profile value sets is very tedious.

 

The feature was added in vRA:

But there is no inventory item in vRO that reflects them:

 

 

When can we expect to have workflows or actions in vRO that match this new feature? It would really help us out to be able to create these entries using a for loop in vRO and then update them programmatically using vRO over time, as we update the templates.

vRealize Operations Manager Version 6.6.1.6163035

$
0
0

Hi Friends,

 

I am using vRealize Operations Manager Version 6.6.1.6163035

 

Could you please help me, How to find out the ideal VMs to capture reports and create New Template with parameters.

 

Is there any readymade template and please share good blogs.

 

Thanks advance

 

Regards,

Johnson.s

Deploy VM from OVA/OVF Template blueprint network issues

$
0
0

Hi,

 

I'm trying to create a new blueprint to deploy VMs from an OVA. It's a common task where I work, as some of our providers send us pre-configured OVAs for us.

 

I've tried the most simple blueprint, a new VM from the "ImportOvfWorkflow" connected to an existing network. The OVF automatically loads the required Custom Properties:

 

VMware.Ovf.Configuration.vm.fqdn

VMware.Ovf.Configuration.vm.ipaddr

VMware.Ovf.Configuration.vm.defaultNetmask

 

and so on...

 

I have two issues with this. Firstly, the most simple solution would be to ask the values on the request. I've tried this, but it fails. It successfully configures FQDN and IP Address but it fails to set the values for Gateway, Subnet Mask, DNS Servers and Search Domains. The VM fails to power-on because these are mandatory values and afterwards the VM gets deleted.

 

The other issue that I have is that manually configuring the IP address on request is not as ideal as I would want it to be. Is there a way to tell the Custom Properties to get the Network configuration from what VRA is going to set to the Network0?

 

Any help is appreciated.

vRealize Automation with Jira

$
0
0

Hi All,

 

  We have a requirement that we need to automate vm provisioning on vmware and cloud environments such as AWS and Azure. Also, we need to integrate with JIRA to track and close ticket automatically. Lets say, if the user created a ticket in Jira, vRealize Automation process the request automatically from JIRA and provision the infrastructure and close the ticket automatically. There is no human intervention on the end-2-end process. Please let me know whether it is achievable with vRealize automation. If yes, please let me know how to implement this solution.


Embedded vRO action execution taking long time

$
0
0

I have three vRA environments running 7.3.1, each with 2 vRA appliances running all services in an HA pair and two IaaS boxes running all services in an HA pair with a MSSQL HA back end. In our server deployment forms we dynamically look up the networks that are available to the requestor using vAPI and assessing tagged VPGs. In my dev and test environments this process runs in about 10 seconds. In my production environment it takes about 2 minutes running against the same vCenter server. We've checked the system resources and nothing looks constrained while its running the query. I've purged the database and cleaned up completed WF execution logs with no help. I've verified that the vRO cluster is healthy. I extended the vRO java heap size on both servers to 6GB. Does anyone have any idea what i can do to try to get this to run faster?

 

This is what i'm executing:

 

if (endpoint == null) {     throw "'endpoint' parameter should not be null";
}

var client = endpoint.client();
var tagging = new com_vmware_cis_tagging_tag(client);
var tags = tagging.list();

for each (tag in tags) {
     var t = tagging.get(tag);     System.log(t.name);     if (t.name.toLowerCase() == tagName.toLowerCase()) {          System.log('Found tag ' + t.name);          return t.id;     }
}

throw "Error: Could not find any tag by name: " + tagName

vRA 7.4 Custom forms with property definition type drop down shows up as a text field

$
0
0

I have (2) property definitions that are pre-populated drop downs. Lot's of values that change over time. I'm pulling data from SNOW to populate these and update them on a daily basis. They are configured to show on the request form.

 

I have added both property definitions to my blueprint as custom properties. But when I edit the custom form they come in as text field and not as a drop down. Of course if I change the display type to drop down, the values are lost and the form expects them to be provided in the form?!?!?

 

So how do you use a property definition type drop down in a custom form?

vRealize Email Justification

$
0
0

Hi,

 

I am currently using the Default Email. is it possible to have an Reason Text Field in the Request form and have the contents from that text field sent with the email for approval?

My company is currently requesting this feature.

 

Thanks.

vRA Guest agent stops after executing CustomizeOS task

$
0
0

I am using vRA 7.3.1 (build 8004226). I have created a CentOS 7 template in vcenter and installed vra guest agent on it. However when I place a request for a centos composite blueprint, it executes CustomizeOS task and nothing happens after that. Here are last few lines from GuestAgent.log file -

 

2018-07-18 13:37:54 Application: [Information] vrm.proxyagent.uri -> https://fe-vra-iaas.fe.local/VMPS2Proxy

2018-07-18 13:37:54 Application: [Information] Executing '10_set_hostname.sh' ...

2018-07-18 13:37:54 Application: [Information] Wait for completion of '10_set_hostname.sh'

2018-07-18 13:37:54 Application: [Information] Executing '20_static_ip.sh' ...

2018-07-18 13:37:54 Application: [Information] Wait for completion of '20_static_ip.sh'

2018-07-18 13:37:55 Application: [Information] Executing '30_DiskSetup.sh' ...

2018-07-18 13:37:55 Application: [Information] Wait for completion of '30_DiskSetup.sh'

2018-07-18 13:37:55 Application: [Information] Executing '40_external_script.sh' ...

2018-07-18 13:37:55 Application: [Information] Wait for completion of '40_external_script.sh'

2018-07-18 13:37:55 Application: [Information] <workItemResponse id="eb77a8f7-5369-435b-bac3-7da6e514f4df">

        <task type="CustomizeOS">

                <result succeeded="true">

                        <message/>

                </result>

        </task>

</workItemResponse>

 

2018-07-18 13:37:55 Application: [Information] Successfully sent the work item response for id=eb77a8f7-5369-435b-bac3-7da6e514f4df

2018-07-18 13:37:55 Application: [Information] /usr/share/gugent/config.xml

2018-07-18 13:37:55 Application: [Information] found termination node

2018-07-18 13:37:55 Application: [Debug] Uninitializing subsystem: Logging Subsystem

 

At this point if I run /usr/share/gugent/rungugent.sh script explicitly, it executes next task (Finalize) but again it stops before reporting this task as complete to vRA and I can see that workitem.xml is still there in site folder.

 

What could be the reason behind this behaviour and how to debug this?

vRA VAMI Advanced Services Page

$
0
0

Hello, I worked with a VMware engineer a few months ago on a service request and he accessed a page off the VAMI that showed the services statuses and loading phases but I cannot recall it. We are having issues starting the IaaS Service and I would like to see that page by chance it gives us more details on why the service won't start. Thanks, Luc

Viewing all 9859 articles
Browse latest View live




Latest Images