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

XAAS blueprint to deploy VRA blueprint - Identify AWS Key Values

0
0

Hi,

 

I have managed make a XAAS blueprint to deploy a VRA Blueprint, but im getting stuck at the below when deploying.

 

In my reservation if i select the various AWS Security Groups they all get added to a machine if i leave the section blank, so when i try to manipulate the json data to select one i get the below error.

 

(com.vmware.library.vcaccafe.request/requestCatalogItemWithProvisioningRequest) Error in (Dynamic Script Module name : requestCatalogItemWithProvisioningRequest#0) [Rest Composite Exception]:  ( [Rest Error]: {Status code: 400}, {Error code: 20117} , {Error Source: null}, {Error Msg: The data specified within the request is invalid.}, {System Msg: The data specified within the request is invalid.} )  ( [Rest Error]: {Status code: 400}, {Error code: 11011} , {Error Source: null}, {Error Msg: The value for the 'amazon_securityGroups' field is not a MultipleLiteral but the field is defined as MultiValued.}, {System Msg: The value for the field id amazon_securityGroups is not a MultipleLiteral but the field is defined as MultiValued.} )

 

 

Below is the code of json that i need to fill in(i need it filled in like this because this is how vra sends it when i inspected it.)

 

{"key":"amazon_provisionInto", "value":{"type":"string", "value":"subnet"}}

{"key":"amazon_securityGroups", "value":{"type":"multiple", "elementTypeId":"INTEGER", "items":[{"type":"integer", "value":805}]}}

 

below is my json code

 

// this code works

json.app.data.amazon_provisionInto = "subnet";

System.log(json.app.data.amazon_provisionInto);

json.app.data.amazon_subnet_id = 18;

 

//this code doesnt work

json.app.data.amazon_securityGroups = 805;

System.log(json.app.data.amazon_securityGroups);

 

 

I have added the subnet in a VPC code and the subnet id code to show code of mine that works.

 

Anyone have any ideas as to why the AWS security group one fails?


Event Broker for failed requests

0
0

Does anyone know what settings i could use in the event broker to capture all events for any request that has failed, looking to send a more user friendly email then the ones VRA has.

Restric access to System Directory in vRA

0
0

Hi,

 

We want to restrict users from trying to log in to the System Directory in vRA. How can we accomplish this? We feel it's a security concern that any user can try to log into vRA via the System Directory. I have tried to restrict access using Network Ranges, but any network are still able to log in.

 

Thanks,

 

Nils

How to query the list of vRA 7.3 identifiers for AWS subnet

0
0

How do you query vRA to obtain the integer value for amazon_subnet_id given the AWS identifier for a subnet?

 

I have a vRO action to dynamically identify the AWS subnet given several parameters chosen in an XaaS blueprint.  That action returns a value (i.e. subnet-abcd1234).  I can pass the AWS subnet identifier to a blueprint using the API and do not get an error (json[bluePrintId].data.amazonSubnetId = "subnet-abcd1234)";

However the value seems to be completely ignored and the EC2 instance is put in a different subnet.

If I instead use the integer value I found from past provisioning requests (json[bluePrintId].data.amazon_subnet_id = 123;) the EC2 instance is put in the desired AWS subnet.

 

How do I either

1. Query vRA for the integer value that matches the AWS Identifier I want (i.e. lookup subnet-abcd1234 and have it return 123)

or

2. Pass the AWS identifier to the provisioning request so that it isn't ignored.

Automating VM-level Trend Reports by Cluster, Host

0
0

Let's assume I have the need to run a set of basic trend reports for all VMs in a given cluster.  I would love to automate this report and distribution.

 

In my hypothetical example, Cluster ABC has eight (8) Hosts and twenty (20) VMs.  I need to run monthly reports and the "customer" wants the "Virtual Machine CPU Diagnose" format.  I'd like to be able to select the Cluster or an individual Host and have the report generate charts on all VMs.  I can do this with List-style reports; but seemingly not with Trend-style reports.

 

Currently, I can either (1) manually generate this on each VM from the "Details tab", after resetting the date range, or (2) I can create a new report for each VM (which unfortunately only displays the standard 24-hour view).  Each view is only a single VM.

 

Given my relative newness to vRealize report generation, I might well be missing the simple answer.  I hope I can learn from you.

Connector not found

0
0

I'm getting the error Connector with id 98d89669-f911-4410-b4a6-f1b349900c43 not found when I am attempting to join a domain in the default tenant in an existing vRA 7.2 install. This is using the Integrated Windows Authentication method. It was pointed out to me that we need the directory source for products like vROps, vRNI and vRLI since they all query the back end infrastructure as opposed to the Tenant workloads.

 

Lets call the back end domain server.local which includes all the vRealize appliances, vCenter and ESXi nodes as well as NSX, SQL and IaaS servers, and refer to all the VMs being deployed to the various Business groups dev.local. I've setup a connection to dev.local using Active Directory over LDAP, but have no connection to server.local. The instructions I'm following for the overall configuration is based off the VVD 4.0 which has the default tenant (vsphere.local) connect to a domain. The error above is what I get when I attempt to connect to the domain server.local with a domain admin account.

 

My question (since I've already strayed from the VVD) is, must I define the Identity source for server.local in the default tenant before attempting to configure either the LDAP or IWA methodology?

 

Question 2 would be, do I have to use IWA if I am only trying to verify authenticating with specific service accounts in a specific OU in server.local or is LDAP more than adequate? (My AD admin is kinda freaking over joining the domain)...

 

Thanks in advance,

 

Roger

Unable to View Item Details of Provisioned Azure Deployments

0
0

Hi all,

 

I'm using the out of the box Azure blueprints to deploy devices. They provision as expected but when I try to view the Item Details for them the loading mask spins for awhile and eventually errors out with something like:

 

 

This behavior is seen on two instances I have, one a 7.2, and another a 7.3. Opening up catalina.out on the vRealize Automation appliance I see this peppered in the log:

 

2018-01-25 14:52:52,384 vcac: [component="cafe:shell" priority="ERROR" thread="tomcat-http--1" tenant="azure" context="k9OI17bf" parent="" token="k9OI17bf"] com.vmware.vcac.shell.service.ErrorServiceImpl.logToApacheCommons:59 - <a28f4ddb> Unexpected exception was caught

com.google.gwt.core.shared.SerializableThrowable: The connection to vCenter Orchestrator server timed out.

        at Unknown.xf(item-0.js) ~[?:?]

        at Unknown.Cf(item-0.js) ~[?:?]

        at Unknown.Kf(item-0.js) ~[?:?]

        at Unknown.new RId(item-0.js) ~[?:?]

        at Unknown.pQc(item-0.js) ~[?:?]

        at Unknown.nQc(item-0.js) ~[?:?]

        at Unknown.w9d(item-0.js) ~[?:?]

        at Unknown.z9d(item-0.js) ~[?:?]

        at Unknown.Mae(item-0.js) ~[?:?]

        at Unknown.Pae(item-0.js) ~[?:?]

        at Unknown.eval(item-0.js) ~[?:?]

        at Unknown.xg(item-0.js) ~[?:?]

        at Unknown.Ag(item-0.js) ~[?:?]

        at Unknown.eval(item-0.js) ~[?:?]

 

Only KB I can find around this is a 6.2 fix. Since my instances are 7.x I'm a little worried about applying this.

 

I have noticed that when I try to load a type Azure:VirtualMachine from a workflow run it takes forever to pull (might be the way the get logic was implemented, or the API call behind the scenes used), so I can see why this occurs.

 

Anyone run into this before?

Scroll bar is missing in actions tab in VRO 7.3 version. Is there a fix for it?


Bulk Import Problem

0
0

Hi guys.

 

I´m trying to import a VM but I have several errors. I attach the screenshot.

 

 

Thanks a lot in advanced.

How to get to Deployment ID from Request ID with CloudClient?

0
0

I'm trying to do some basic automation by using the CloudClient.  I've pretty much resolved this issue using a Python wrapper around the REST interface, but I'd rather not support that path if I can do the same with the supported tooling.

 

I'm able to login, fetch a request template, and submit the request.  I obviously can retrieve the request ID.  But I get pretty solidly stuck here, not knowing how to get the associated deployment ID.  From what I can tell, the request information never has the deployment info.  Is there a simply query to get the deployed details via the request ID, or other ID in the request details?

 

TIA.

VRA 7.3 VRO 7.3 How to get VirtualMachine.NetworkN.Address in DHCP environment

0
0

I am using VRA 7.3 and built VRO for VM provisioning in DHCP environment. When sending a paylod value of VirtualMachine.NetworkN.Address property is set to null since the DHCP involvement. Kindly help me to get the IP address of the first NIC.

 

Thanks,

Partha

Missing Infrastructure tab when logging using tenant and iaas admin. I only see administration and container tabs.

0
0

Missing Infrastructure tab when logging using tenant and iaas admin. I only see administration and container tabs.

 

Setup:

vRA 7.3

IaaS : Win 2012 R2

DB : SQL EXP 2012

 

 

 

Thanks in advance!

Dynamic fields not populating

0
0

We have several dynamic fields in vRA blueprints that have been imported into ServiceNow using the ITSM plugin. However, the fields themselves never seem to populate. The properties themselves transfer over in the ServiceNow catalog request, but the values of those properties aren't making it. I am looking for some assistance as in troubleshooting why these dynamic fields aren't populating as they should. We are running release 3 of the ITSM plugin which states that it supports dynamic fields.

 

The ServiceNow plugin seems to be making the calls into vRA to grab the values, it just seems nothing is ever making it back into ServiceNow.

 

Any help or direction would be greatly appreciated.

vRA Dropdown Default Value

0
0

Does anyone know of a way to set the default value in a dropdown in vRA 7?

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.


Adding Computer to Specific OU upon Provisioning.

0
0

I am trying to create a custom property that will allow me to choose which OU to place my newly created VM upon provisioning. I added a custom property named domainOU and added a value of OU=TEST,DC=mydomain,DC=local. Will this work and place the VM into the OU named TEST when it creates the VM?

Cloud Client exception with "vra deployment list --requestId" when the total number of requests is above 5000

0
0

Hi,

I'm using vra 7.3 and cloud client 4.4.

 

A couple of days ago I started getting this weird error message all of a sudden in my automation pipe I have using Cloud Client.

 

Flow:
1. I do a successful request of a blueprint/deployment through cloud client.


2. I get the requestId back from the successful request I made. I also verified the requestId in the GUI under Requests.

 

3. I then use

   CloudClient>vra deployment list --requestId <the id I got from above here>

4. But I then got

 

com.vmware.cloudclient.exception.CloudClientException: Failed to convert '<id from above>' to type Request for option 'requestId'
Error: Unable to find a Request by the name or id '<id from above>'.


5. The above message is the same as if I wrote a requestId that does not exist, but it did.

 

---

I started to dig deeper...


1. This Business Group has 5000+ requests (5197 something), I could verify this in the GUI

 

2. I then used the same command but instead of writing the requestId I pressed the Tab key, twice.

 

   CloudClient>vra deployment list --requestId

   Display all 5000 possibilites? (y or n)

 

3. Wait a minute... I have more than 5000 requests.

 

4. I compared and tested the following

   CloudClient>vra request list --pagesize 5000
   CloudClient>vra request list --pagesize 5200

 

But still only saw up to 5000 requests.

 

5. I tested to set default pagesize in cloudclient.config above 5000, to like 5200 but then I had to use --page 2 to see the request entries above 5000.

vra request list --page 1 (showed 5000 entrys)
vra request list --page 2 (showed 197 more)

 


---

So my conclusion is that:

1. Cloud Client "vra request list" can only show 5000 entries even when using --pagesize larger than 5000

 

CloudClient>vra request list --pagesize 5200 <-- only shows 5000 entries

 

2. I can see beyond 5000 if I use --page (even if I use default pagesize of 25 and then use like --page 206 or something)

 

CloudClient>vra request list --page X

 

3. The problem is that

CloudClient>vra deployment list --requestId <requestId here>

 

Can only see 5000 request entries, not more, the only respons is the "com.vmware.cloudclient.exception.CloudClientException..." if I enter entries that is above 5000.

 

If I choose a request entry that is above 5000 I get the error message, same as if the requestId does not exist.


If I choose a request entry that is 5000 or below I get a response as usual and its working as it should.

 


---

Can anyone confirm this?
And how can I fix this?


1. How can I remove/delete old requests for a Business Group? Can I clear it some how? There is a "delete" button in the GUI but that only works for "Unsubmitted" requests.
   Is the only option to rebuild the Business Group or hack the database?
2. Is there some setting in Cloud Client that can be modified so vra deployment list --requestId can see beyond 5000 requests?
3. Any other ideas? or SR next :/

How to answer mandatory values for each AWS EC2 VM when destroying a deployment via REST API

0
0

We have a Blueprint made up of 5 AWS EC2 VM's.  When destroying a deployment via UI you have to modify the "Delete Volume" option for each VM because it's set to NULL.  I can't find a way to change the default value within the Blueprint but it's not a terrible hassle when using the UI for one or two destroys.

When trying to destroy a deployment via API, though, the destroy action request template for the deployment doesn't have the "provider-DeleteVolumes" option listed so the destroy fails.  I have to destroy all 5 VM's individually, which adds a lot of load to the system as is it processes 5 times the workflows.

Deployment destroy action request template:

{
    "type": "com.vmware.vcac.catalog.domain.request.CatalogResourceRequest",
    "resourceId": "7b888b98-e4d8-4e23-a382-71c24692b9ea",
    "actionId": "91d8ab6e-46ff-4573-b730-e7948b7af616",
    "description": null,
    "data": {
        "ForceDestroy": false
    }
}

Machine destroy action request template:

{
    "type": "com.vmware.vcac.catalog.domain.request.CatalogResourceRequest",
    "resourceId": "5b802189-4498-469e-939d-530043b8514c",
    "actionId": "5f51c11d-395f-4e08-82b5-d7e09f33f246",
    "description": null,
    "data": {
        "provider-DeleteVolumes": null
    }
}

Anyone know how to either change default provider-DeleteVolumes option on the Blueprint OR somehow set this option when destroying the deployment?

plugin for VRA and Service now integration kingston release

0
0

Hi All,

 

We are trying to integrate VRA version 7.3 with Service now. Our service now is on kingston release rightnow. I checked the vmware official sites but didn't find any plugin for kingston release. Can anyone tell me when this plugin will be released and who will provide this plugin VMware or Servicenow?

Necessary permissions to use Cloud Client

0
0

What are the necessary permissions which a user must have in order to log in on a tenant with Cloud Client using the command vra login userpass. Can I use certain comands in Cloud Clients, if I only have limited permissions, say I am a business group admin of a tenant?

Viewing all 9859 articles
Browse latest View live




Latest Images