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

VMworld 2018 @ Barcelona

$
0
0

Hello @ all!

 

Any one else at the VMworld in Barcelona at the Moment? If yes here is a Kind of 'Where’s Waldo?' Game

 

Robert


vRA e2e testing login problem using Cypress framework

$
0
0

Hi, is there anyone that is using Cypress for e2e testing and has the same problem as I have while I am trying to login to the vRa?

There is error message in picture below.

cypress_errror.PNG

Remove vRO Plugin : Clustered vRA

$
0
0

Hey all,

 

I'm trying to remove a plugin from vRA's embedded vRO within a clustered environment.  I've removed the like from the plugin XML, removed the .dar file from the plugins directory, restarted the services and removed the workflows and packages from vRO like the KBs explain.  What they don't explain is how to do this in a clustered environment (I can't find a KB on this).  For external vRO in the past I've been able to remove the plugin manually from the database but those commands don't seem to work with embedded vRA.

 

I've done all the appliance side actions to all nodes in the cluster, but of course I could only remove the workflows and packages from the master node because it's the only active node in the cluster.

 

Any thoughts on this would be very helpful!

Only one Snapshot in vRA 7.x?

$
0
0

Hi,

 

i will create more than one vm-snapshot with die vRA Portal. The first one ist no problem, but the second one fails with the following error: [Error code: 42100 ] - [Error Msg: Infrastructure service provider error: The action is invalid for the machine.]

Does anyone know the reason? Is really only a snapshot possible?

 

Regards

xaas composite blueprint

$
0
0

can a xaas bluerpint be combined with another , a composite workflow in vRA ?

if answer is yes , can any output parameter of xaas workflow 1 be associated to input of xaas workflow 2 , how ?

vRA 7.3 RHEL7.4 Blueprint Fails "CustomizeOS: Failure executing script '40_external_script.sh'

$
0
0

Hello all,

 

I'm working on a RHEL Blueprint where I am using the Custom Properties ‘Linux.ExternalScript.Name’, ‘Linux.ExternalScript.LocationType’, and ‘Linux.ExternalScript.Path’ to execute a script named ‘post_deploy.sh’ that is stored locally on the Template VM. You can see that the permissions are set so that all users can read and execute (note, the following screenshot is from a failed deployment VM and not the actual template. I’m showing this just to point out which script I’m referring to):

image1.jpg

image2.jpg

The “CustomizeOS” stage is failing with error, “Failure executing script ‘40_external_script.sh’ and no other detail.

image3.jpg

 

I’ve dug around at several other logs on the failed VM to see if there’s more verbose info in any of them, but I’ve had no luck. I have no idea why this part is failing. Assuming I used the wrong value for the script path, I’ve tried changing the value of the Linux.ExternalScript.Path to simply ‘/post-deploy.sh’ rather than ‘/root/post_deploy.sh’, but no luck there either.

 

I tried manually running the script on the VM and saw the following error:

image5.jpg

So then I looked at the ‘getprop.py’ script to see what it was doing:

image4.jpg

 

So, the ‘40_external_script.sh’ and ‘getprop.py’ scripts are part of the Linux vRA Agent and since there’s an import error “No module named bag”, I’m thinking the Agent is messed up, but I’d like to see some better log info to help validate my assumption.

 

Any suggestions on how to troubleshoot this further?

 

Thank you all!

Linux Machine to Domain

$
0
0

Hi All,

 

I am able to use Customization scripts to join a Windows Machine to a domain once built within VRA. Question is how can i do the same for a Linux Machine ?

 

was thinking of using Install Ansible run playbook on local host to join domain, uninstall Ansible during the creation of the machine within VRA. but there has to be a more simpler way

Filter applicable networks for a reservation policy during requesting new VM

$
0
0

Hello,

currently I am trying to deploy a VM from one blueprint on vRA 7.3 where I am able to select applicable networks during request.

Made up easy, my setup looks like this:

- I have two independent vCenters that are not linked
- I have a Windows template in both vCenters that are exactly the same and also have the same name
- I have several networks within each vCenter with different names
- In vRA I configured network profiles for each network
- In vRA I configured a reservation policy for each vCenter
- In vRA I configured a reservation for each vCenter and applied the network profile to each available network and applied each vCenter its own reservation policy
- In vRA I configured just one Blueprint and left the reservation policy empty
- In vRA I created the custom property VirtualMachine.Network0.Name linked to the script action com.vmware.vra.networks/getApplicableNetworks as external value and attached it to my blueprint
- In vRA I created a custom
property __ReservationPolicyID linked to the script action com.vmware.vra.reservations/getApplicableReservationPolicies and attached it to my blueprint

 

So far so good,

now during a new request I am able to select by dropdown a reservation policy to place the new VM either in vCenter A or B. But on the network selection dropdown I am getting displayed all networks from all reservations within the user's current business group. So I checked the code of the script action com.vmware.vra.networks/getApplicableNetworks and it does exactly that :)

What I want to do is modify this script action, so it does only return the networks from the reservation policy currently selected in the request. As I have a reservation policy for each vCenter and each reservation is bound to one of those policies, I would end up with only the networks from one vCenter getting displayed.

The problem is, that I do not know how to modify the code to achieve this :/ I couldnt figure out what the objects/variables look like in the code or which methods are availabe and what they actually do :( I am also looking for some kind of API or Documentation.

 

//For example: what is returned in to the variable and what does it look like? How can I filter the reservations to only get the one matching the selected one in the request?
var reservations = System.getModule("com.vmware.vra.reservations").getReservationsForUserAndComponent(user, tenant, host, blueprint, component);


Adding Compute Resources to Fabric Groups programmatically through vRO

$
0
0

vRealize Orchestrator version 7.3
vRealize Automation version 7.3    

 

We're planning on either programmatically create a new fabric group or update an existing fabric group, however i'm sitting here looking at vRO and I dont see (image below) an option to set Compute Resources on a Fabric Group. Is there no way to add/edit Compute Resources on a Fabric Group or is there some other method I have to use in order to add/edit Compute Resources?

 

 

found this VRA 7.1 - API Calls to create Fabric Groups here in the forums either im not understanding whats being said or Compute Resources was not being addressed in that thread. If it was, can someone who has a better understanding please explain it better, thanks.

 

 

fabricGroups.png

Limiting number of network adapter per vm in vRA 7.4

$
0
0

Hi all

I have set number of 1 per vm in my blueprint but when user goes to vRA panel and then in reconfigure section can add more than 1 network adapter to his virtual machine

vra.jpg

 

and I also want to prevent the users to change their external network profile ( if we have 2 external network profiles)

 

SNAT_004.jpg

 

Thank you

Changing the url of vmrc on vRA vmrc Console

$
0
0

Hi

is it possible to change "Download VMRC" url to a local url?

 

SNAT_005.jpg

vRO Updated properties to Software Component

$
0
0

I need to have a VM property updated by vRO and then use it in a Software Component to install an application.  When I bind the Software Component property to the VM property, the information seems to be copied at request time as the software component is still working with the pre-vRO updated value.  Is there some flag, or something, that I need to set to tell vRA to use the dynamically updated value and not the value when the user clicks Submit?

 

vRA 7.3

 

Carl L.

vRA does not support same hostname in multi tenant env

$
0
0

A real multi-tenancy should allow the same hostname to be used in different tenants. But in vRA current versions you can not keep same hostname in different tenants even though you have different End points.

Because  the vm entries are there in cat_resource on vPostgres db and also on virtualmachine table in the IaaS SQL database. This looks a product limitation . In case we provide option to our customer to choose custom hostname while submitting request ,we have to restrict our customer to follow a naming convention for hostnames.

 

Does anyone come across same issue , and already raised a feature request ?

View Security Groups to which VM belongs to

$
0
0

Dear all,

 

Good evening.

 

When I make a deployment of a VM or VMs and then I check to which security groups one of the VMs belongs to, (through VRA UI, security tab of the VM), I can see all the security groups that are linked with the reservation that is linked with the Blueprint that was used for the deployment.

 

Let's say that I add the VM to another security group, as a Day 2 operation, I cannot see this security group under the Security tab.

 

Is there any way that I can see all the security groups to which a VM belongs to through the VRA webUI? Any ideas?

 

Thx

Tasos

 

PS. Our vRA is 7.5

Is it possible in vRA 7.4 to write a custom form that allows requestor to select between multiple Linux options and then create a VM based on this?

$
0
0

Hi all,

Is it possible in vRA 7.4 to write a custom form that allows the requestor to select between multiple Linux options and then create a VM based on this?

For example, first pull down to select between Ubuntu, CentOS, RedHat, OpenSuse

The next pull down to select version: If the first pulldown is selected to "Red Hat" then display available Red Hat versions RHEL 7.0 or RHEL 7.1 ... newest.

The next pull down is to select 32-bit or 64-bit.

Possible?

Possible but how many person-weeks of coding required?

 

Thanks in advance!

-Chris


Best Practice on Mapping VRASN Best Practice on Mapping VRASN VMware Virtual Machine Instances & VMware Virtual Machine Instances

$
0
0

What is the best practice used to map CI's discovered (i.e. by discovery Virtual Machine Instance [cmdb_ci_vm_instance]) and those created by the plugin (i.e. VRASN VMware Virtual Machine Instance [x_vmw_vmware_vrasp_vrasn_vmware_virtual_machine_instance])?

 

I find the plug in documentation (i.e. "V4.0 User Installation Guide[Configuring-the-vRealize-Automation-Plug-in-for-ServiceNow]") confusing. So, if this is the description of the CI mapping, I'd really appreciate a more "entry level" process.

 

Thanks in advance.

Certificate issue on Identity Manager page

$
0
0

Hi,

 

I try to configure SSO in my vRA environment according to this web site:

How to configure Kerberos Authentication with vRA 7 - 2vSteaks

 

When I click on KerberosIdpAdapter (point number 5), It redirects me to Identity Manager page.

However, the page give me a certificate error:

You connection is not private.

I don't have the continue link.

 

My environment is configured to work with a certificate.

When going to vCAC page or appliance management page, it uses my local CA certificate I requested.

 

Any idea what can be the problem?

 

Thanks!

vRA/vRO 7 - Get the custom properties values

$
0
0

I am trying to update the VM hostname and created a few property definition and added them into the property group.

 

Within the property group, I have created:

 

  • Extensibility.Lifecycle.Properties.VMPSMasterWorkflow32.BuildingMachine
  • Extensibility.Lifecycle.Properties.VMPSMasterWorkflow32.Request

 

Both have the values __*,*

 

The property group is added to the blueprint and I have also created the new Event Subscriptions with the following setup:

 

  • Select "Machine Provisioning" topic
  • Added the following conditions
      • Data > Lifecycle state name EQUALS VMPSMasterWorkflow32.BuildingMachine
      • Data > Lifecycle state phase EQUALS PRE
      • Data > Machine > Machine Type EQUALS Virtual Machine

 

 

In the vRO workflow scripting, I am passing the "Payload" as Properties into the workflow

 

I am able to retrieve the machine ID

var machine = payload.get("machine");

machineId = machine.get("Id"); // Value is returned

 

var machineProperties = machine.get('properties'); // Getting NULL when retrieving the properties

 

The machineProperties is returning NULL and I am not able to proceed further to retrieve the property definition that I have specified.

 

Am I missing anything? Please help! Thanks.

When a VM build request fails in vCAC 6 and vRO 6 based environment, how to find the exact workflow where it has failed?

$
0
0

Usually both the vRA portal and the vRO shows only the main workflow where it failed. But We need to find out the exact workflow where it has failed so we could troubleshoot. Is there any specific way we can know the child workflow failed and how to troubleshoot it.

Get VM from Post Approval

$
0
0

Hi all,

Im trying to get the VM Name (or vCAC:VM or VC:VM) from a Post Approval Event. However I'm not getting there.

 

What I did:

  • vRA 7.5
  • Created Approval (tried both)
    • Catalog Item Request
    • Catalog Item Request - VM
  • Created Subscription for post Approval

 

Whats Happening:

When you run the following code after the deployment you get the VCAC:VM as well as the Deployment, however during the PostApproval Phase the Deployment doesn't have a Child (e.g. the VM) and the code doesn't show the vCAC:VM at all as a Resource.

Additionally there is no difference in between the properties and context the different approvals provide. So even with the VM approval no name or reference to the VM.

The only way I have found so far is to loop all vCAC:VMs pull there Properties and search for the _rootRequestID. However that is a bit hard with some 1000+ VMs...so there must be a better way.

 

My approval workflow (attached)

LogAllProp packed here : logAllProps

 

Code:

requestID=payload.sourceInfo.externalInstanceId;
tenant=System.getContext().getParameter("__asd_tenantRef");
var vcacCafeHost = vCACCAFEHostManager.getDefaultHostForTenant(tenant , "true")
var client = vcacCafeHost.createCatalogClient();
var requestService = client.getCatalogConsumerRequestService();
var resources = requestService.getResourcesProvisionedByRequest(requestID, null).getContent();
for each (resource in resources){    System.log(resource.name)
}

 

All props and context the Approval provides:

(sourceInfo.externalInstanceId is the root Request ID)

 

[2018-11-15 11:28:07.562] [I] ## Context #####################################

[2018-11-15 11:28:07.564] [I] __asd_catalogRequestId (string): 3dddb191-c851-4b8e-ad76-cd8b1afd4af1

[2018-11-15 11:28:07.567] [I] __asd_correlationId (string): 15a11bd9-4986-4f30-890a-8ed19f004dfd

[2018-11-15 11:28:07.569] [I] __asd_requestInstanceId (string): 223e23b0-e8c1-11e8-4ab2-b56832208a21

[2018-11-15 11:28:07.571] [I] __asd_requestInstanceTimestamp (string): "2018-11-15T10:28:03.563Z"

[2018-11-15 11:28:07.574] [I] __asd_requestInstanceTypeId (string): approval-com.vmware.cafe.catalog.request.post

[2018-11-15 11:28:07.576] [I] __asd_requestTraceId (string): zBPpqOka

[2018-11-15 11:28:07.578] [I] __asd_requestedBy (string): approval-service

[2018-11-15 11:28:07.580] [I] __asd_requestedFor (string): approval-service

[2018-11-15 11:28:07.582] [I] __asd_targetResourceId (string): 2589ccfb-eecf-4ef9-86dc-16a5e651b47f

[2018-11-15 11:28:07.585] [I] __asd_targetResourceProviderId (string): 5f68559d-276b-4163-9844-cf8d0a27a1e6

[2018-11-15 11:28:07.587] [I] __asd_targetResourceProviderTypeId (string): com.vmware.csp.core.cafe.approvals

[2018-11-15 11:28:07.589] [I] __asd_targetResourceTypeId (string): ApprovalRequest

[2018-11-15 11:28:07.592] [I] __asd_tenantRef (string): acme

[2018-11-15 11:28:07.594] [I] ## Payload #####################################

[2018-11-15 11:28:07.597] [I]  (properties) [3]

[2018-11-15 11:28:07.599] [I] /businessJustification (string): string

[2018-11-15 11:28:07.600] [I] /createDate (date): Thu Nov 15 2018 10:28:03 GMT-0000 (UTC)

[2018-11-15 11:28:07.602] [I] /fieldNames (properties) [1]

[2018-11-15 11:28:07.604] [I] /fieldNames/businessJustification (string): string

[2018-11-15 11:28:07.606] [I] /requestInfo (properties) [10]

[2018-11-15 11:28:07.608] [I] /requestInfo/approvalLevel (properties) [4]

[2018-11-15 11:28:07.610] [I] /requestInfo/approvalLevel/classId (string): ApprovalLevel

[2018-11-15 11:28:07.612] [I] /requestInfo/approvalLevel/id (string): 4a0a372e-ddfc-4cfc-9c07-10ccc86bfe81

[2018-11-15 11:28:07.614] [I] /requestInfo/approvalLevel/label (string): vraPostApproval

[2018-11-15 11:28:07.615] [I] /requestInfo/approvalLevel/type (string): entityReference

[2018-11-15 11:28:07.617] [I] /requestInfo/approvalLevelName (string): vraPostApproval

[2018-11-15 11:28:07.619] [I] /requestInfo/approvalRequestId (string): 2589ccfb-eecf-4ef9-86dc-16a5e651b47f

[2018-11-15 11:28:07.621] [I] /requestInfo/createDate (date): Thu Nov 15 2018 10:28:03 GMT-0000 (UTC)

[2018-11-15 11:28:07.623] [I] /requestInfo/itemDescription (string):

[2018-11-15 11:28:07.625] [I] /requestInfo/itemName (string): smallRHEL

[2018-11-15 11:28:07.626] [I] /requestInfo/requestRef (string): 47

[2018-11-15 11:28:07.628] [I] /requestInfo/requestedBy (string): acme_admin@vsphere.local

[2018-11-15 11:28:07.630] [I] /requestInfo/requestedFor (string): acme_admin@vsphere.local

[2018-11-15 11:28:07.632] [I] /requestInfo/subtenantId (string): 06890147-51f7-4857-98c7-e5b6ca2d9dcd

[2018-11-15 11:28:07.634] [I] /requestInfo/type (string): entityReference

[2018-11-15 11:28:07.636] [I] /serviceId (string): ea08b8e8-196f-4cd7-bff4-92c5f504aac8

[2018-11-15 11:28:07.637] [I] /sourceInfo (properties) [3]

[2018-11-15 11:28:07.639] [I] /sourceInfo/externalClassId (string): request

[2018-11-15 11:28:07.641] [I] /sourceInfo/externalInstanceId (string): 15a11bd9-4986-4f30-890a-8ed19f004dfd

[2018-11-15 11:28:07.643] [I] /sourceInfo/serviceId (string): ea08b8e8-196f-4cd7-bff4-92c5f504aac8

[2018-11-15 11:28:07.645] [I] #############################################

Viewing all 9859 articles
Browse latest View live




Latest Images