Quantcast
Channel: VMware Communities : Unanswered Discussions - vRealize Automation Tools
Viewing all 6792 articles
Browse latest View live

New Twist on "Unsuccessful - Test connection failed: The vSphere agent does not exist or may not be running." when registering an endpoint

$
0
0

Anyone every see this?

 

We setup a HA vRA 7.3 installation.  So that means two vRA appliances, two Proxy Agents, two DEM workers, two DEM orchestrators, two IMS, two model manager webs, etc...

 

When the Proxy agent was configured in the vRA Configuration Wizard, one of two vCenter had a misspelled Endpoint Name.

 

To lay it out:

 

Proxy Agent #1 on Windows Server #1

vCenter:               vcenter1.ad.local

Endpoint Name:   vcenter1.ad.local

 

Proxy Agent #2 on Windows Server #2

vCenter:               vcenter1.ad.local

Endpoint Name:   vcetner1.ad.local  <----- TYPO! should have been "vcenter1.ad.local"

 

When you go to the vRA 7.3 default tenant -> Infrastructure -> Endpoints and attempt to add the vcenter1.ad.local Endpoint, you get:

 

"Unsuccessful - Test connection failed: The vSphere agent does not exist or may not be running."

 

IF, on the other hand, you enter the typo for the Endpoint name ("vcetner1.ad.local"), the test connection actually works!

 

Even after we uninstalled the Proxy Agent from BOTH servers and manually reinstalled them with the correct EndPoint names!!!

 

(So that means that uninstalling and reinstalling the Proxy Agents doesn't fix the issue...)


vRops Licensing for Horizon Deployment

$
0
0

I recently purchased Horizon Enterprise 7 (CCU) for 200+ VMs which comes with "vRealize Adaptor For Horizon". In order to make use of the "vRealize Adaptor For Horizon" component. I downloaded and installed the vRops Operations Manager.

 

Now I have 1 x "vRealize Operations 6 Manager for Horizon" license for 22 VMs that i presume also came with the Horizon Enterprise purchase.

 

My Question: If I have 6 hosts , with 200+ Instant Clone VMs being managed by a single vCenter appliance. How would the vRops licensing work? 

 

If i apply my "vRealize Operations 6 Manager for Horizon" license to my vROPs Operations Manager Appliance, and then add the "vRealize Adaptor For Horizon" component to the Operations Manager Appliance. Will i be able to monitor and report on my single vcenter, the 6 hosts and the 200+ VMs?

 

 

If i need to add any more information please let me know.

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.

new deployment from standard user fails wit Error Msg: Request failed while fetching item metadata: 403

$
0
0

Hello,

 

I'm building a new vRA infrastructure 7.3.

 

I have blueprints that are working fine if they arte requested from admin users but if I request the same deployment from a standard user I immediately receive the error:

 

Error Msg: Request failed while fetching item metadata: 403

 

I don't know why. the BG on which the user belong has reservation, the entitlement are correct.

 

someone know a way to find what is the metadata item the system cannot fetch?

 

many thanks

 

Eric

vRA 7.3 with Amazon Endpoint

$
0
0

Hello Folks,

 

I am trying to configure Amazon EC2 endpoint on my vRA 7.3.

I have deployed a DEM Worker VM with internet access. (no proxy)

I have already created an IAM User with Administrative Permissions and I got its Access Keys and Secret access key.

 

I used the Access Keys and Secret Access Key which I have created to create the Amazon EC2 Endpoint on the vRA.

When I start the data collection I got a failed state and when I checked the logs I got those errors below.

 

Failed to run Amazon EC2 data collection. Error: AWS was not able to validate the provided access credentials.

 

Workflow 'AmazonEC2EndpointDataCollection' failed with the following exception:

AWS was not able to validate the provided access credentials

Inner Exception: The remote server returned an error: (401) Unauthorized.

 

 

I really don't know whatelse I can do to fix this.

I have already changed the access and secret keys but it didn't work.

 

Any help?!?

add custom property to blueprint when it gets created

$
0
0

Hi,

I'd like to have custom property added to each blueprint when it gets created.

 

I've created the event subscription and duplicated the "create / update property to blueprint" workflow.

The workflow triggers and runs.

I can't figure out what to do next... Where do I specify the property name and value? Tried different options in the "presentation" tab, but no property gets added to the blueprint?

 

Anyone able to point me into the right direction?

 

Thanks

Andre

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?

vRA 7.3 Small Deployement with HA

$
0
0

Dears,

 

Anyone have vRA 7.3 Small Deployment with HA architecture, in the vRA 7.3 Reference Architecture mentioned small deployment without HA and the Medium deployment will contain 8 Servers

 

Regards,

Mohab


vRO and DEM

$
0
0

What is the difference between "External" VRO and DEM Orchestrator ?

 

Is "Embed" vRO and DEM Orchestrator are same ?

A specified parameter was not correct: spec.pool

$
0
0

Hi

 

I am trying to migrate a vm from one host and it datastore to another host. There is no cluster vcenter server. Both hosts have individual datastore. I am automating migration and using Relocate or Migrate methods. but i am getting error when the request for migrating vm is submitted.

 

 

A specified parameter was not correct: spec.pool

 

Please suggest me what wrong i am doing here ?

 

resource_pool = vm.resourcePool
    print destination_host
    print vm
    print resource_pool

 

    migrate_priority = vim.VirtualMachine.MovePriority.defaultPriority

 

    msg = "Migrating %s to destination host %s" % (inputs['vm_name'], inputs['destination_host'])
    print msg
    print destination_host
    print migrate_priority
    print vm

 

    #Live Migration :: Change host only
    #import pdb;pdb.set_trace();
    #print help(vm.Migrate)
    print dir(vm.Migrate)
    task = vm.Migrate(host=destination_host, priority=migrate_priority)
    print task

 

    # Wait for Migrate to complete
    wait_for_task(task, si)

 

except vmodl.MethodFault, e:
    print "Caught vmodl fault: %s" % e.msg
    return 1
except Exception, e:
    print "Caught exception: %s" % str(e)
    return 1

guest customization failed during vm deployment_vRA

$
0
0

Hi All,

 

we are in process of deploying linux vm using  blueprint (vanila install).

stub workflow worked fine but vm failed during guest customization .

Please suggest some possible troubleshoting steps.

 

 

 

thanks in advance.

VRO Upgrade got failed with the error : com.vmware.o11n.ia.actions.ActionCallGenerateSSLKeyPair

$
0
0

I was upgrading the VRO from 5.5.3 to 6.0.5

but it got failed at the end with the following error.

 

Custom Action:            com.vmware.o11n.ia.actions.ActionCallGenerateSSLKeyPair

                          Status: ERROR

                          Additional Notes: ERROR -     class com.vmware.o11n.ia.actions.ActionCallGenerateSSLKeyPair.install() runtime exception:

 

also attached th complete logs.

 

Thanks

Event Subscriptions - software components

$
0
0

Does anyone know if there is an appropriate Event Topic for a Workflow subscription that matches the end of the processing for Software Components on a vSphere machine?

 

I am creating a blueprint with several VM machines, that have software components assigned to perform various installation roles. Once the software components have successfully completed on each VM, I wish to trigger a vRO workflow. I have tried using the 'Machine Provisioning' event topic, to use the Lifecycle state name VMPSMasterWorkflow32.MachineProvisioned POST and VMPSMasterWorkflow32.MachineActivated POST and both appear to be triggered before the Software Components are processed.

 

Any thoughts greatly appreciated.

How to bind to a property of a property group

$
0
0

Hi,

 

I have a VM with a software component inside it. That software component has properties that need to bind to a custom property of the VM it's in. This works fine if I bind to a regular custom property of the VM. However, I cannot bind to a custom property that is part of a property group that was added to that same VM. Am I missing something here?

 

Thanks!

[vRA 7.3] - Automate business groups creation


vRA 7.3 On-Demand NAT Network not receiving DNS info

$
0
0

First off the versions…

vRA 7.3.0.536 Build 5610496

NSX 6.4.0 Build 7564187

 

Issue:  When the blueprint is deployed, the VM receives all the configured IP info from DHCP, except DNS.

 

Setup:  I created a blueprint with a vSphere Windows 10 VM and added an On-Demand NAT Network.  The VM IP settings are configured to receive the information via DHCP.  The On-Demand NAT Network has a parent network profile, external network profile, NAT type (1 to many), subnet mask and gateway assigned in the General tab.  In the DNS/WINS tab I have primary and secondary DNS server along with a DNS suffix, no WINS.  The DHCP tab has the start and end of the range and the IP Ranges tab is empty.  The parent network profile has the same General, DHCP and DNS info.

 

Troubleshooting:  After I’ve deployed the blueprint and I look into the properties of the Edge VM that was created for NAT (vSphere Web Client, Networking and Security, NSX Edges, name of Edge, Manage) I can see that in the DHCP section the entry with IP range has “Auto configure DNS” turned on and of course the DNS info from the parent network profile (and On-Demand NAT Network) is blank.  If I manually make the change and publish then all works fine.  So it seems that during the deployment vRA does not pass on the DNS settings but instead turns auto configure on.

 

I’ve tested with other VMs (different OS) and the behavior is consistent.  The Edge VM deployed by vRA does not receive the DNS settings but auto configure is on.

If someone can point me in the right direction it would appreciated.

No sensors defined - Error

$
0
0

Anyone seeing this error inside the vRealize Module > Logs

 

REST call error found inside VRASNRequestUtil.preImportRequest: No sensors defined

REST call error found inside VRASNAuthGenerator.generateAuthCode: No sensors defined

REST call error found inside VRASNRequestUtil.preImportRequest: No sensors defined

REST call error found inside VRASNImportCMDB.reconcileCMDB for pagination: No sensors defined

REST call error found inside VRASNImportCMDB.preImportCMDB: No sensors defined

 

We're seeing it across multiple script includes.functions

 

ServiceNow ticket opened; This error can be fixed by adding a line of code "request.setEccParameter('skip_senor',true)", but that would man changing a lot of plugin code. We have raised a HI ticket also for this but they are also giving the same solution and directing to check with vRealize support for the fix.

VRASNImportCMDB - bug in code??? ; marking CI records RETIRED

$
0
0

**thanks to my ServiceNow developers...

 

var numberOfPages = parsed.metadata["totalPages"];

for(var i=1; i<numberOfPages; i++){

 

If total pages = 3

and our resource is listed on page 3,

This loop will check pages 1 and 2 (missing page 3 because the criteria should be i<=numberOfPages)

 

 

Full function below:

reconcileCMDB : function() {

try{

VRASNLogger.debug('Inside  VRASNImportCMDB.reconcileCMDB: used to Reconcile the CMDB CI records');

var midServer = gs.getProperty('vrasn.midserver.name');

var endPoint = gs.getProperty('vrasn.end.point');

var _endPoint = endPoint+"/catalog-service/api/consumer/resources?withExtendedData=false&page=1&limit=20";

var request = new sn_ws.RESTMessageV2();

request.setEndpoint(_endPoint);

request.setHttpMethod('get');

var auth = new VRASNPropertiesUtil();

var authGen = auth.getSNProperties('AuthToken');

request.setRequestHeader("Accept", "application/json");

request.setRequestHeader("Authorization", "Bearer "+authGen);

request.setRequestHeader("Content-Type", "application/json");

request.setMIDServer(midServer);

var ciList = "";

var gotException = false;

var resourceID="";

var response = request.execute();

if(response.haveError()) {

VRASNLogger.error('REST call error found inside VRASNImportCMDB.reconcileCMDB for pagination: '+ response.getErrorMessage());

this.errorHandler.notify("REST call error found inside VRASNImportCMDB.reconcileCMDB for pagination: "+ response.getErrorMessage());

gotException = true;

}

else {

var responsedata = response.getBody();

var parser = new JSONParser();

var parsed = parser.parse(responsedata);

var numberOfPages = parsed.metadata["totalPages"];

var cmdbItems = parsed.content.length;

for(var j=0;j<cmdbItems;j++){

    resourceID = parsed.content[j]["id"];

ciList = ciList+resourceID+";";

}

 

for(var i=1; i<numberOfPages; i++){

_endPoint = endPoint+"/catalog-service/api/consumer/resources?withExtendedData=false&page="+i+"&limit=20";

request.setEndpoint(_endPoint);

request.setHttpMethod('get');

request.setRequestHeader("Accept", "application/json");

request.setRequestHeader("Authorization", "Bearer "+authGen);

request.setRequestHeader("Content-Type", "application/json");

response = request.execute();

 

if(response.haveError()) {

VRASNLogger.error('REST call error found inside VRASNImportCMDB.reconcileCMDB: '+ response.getErrorMessage());

this.errorHandler.notify("REST call error found inside VRASNImportCMDB.reconcileCMDB: "+ response.getErrorMessage());

gotException = true;

}

else {

responsedata = response.getBody();

parsed = parser.parse(responsedata);

cmdbItems = parsed.content.length;

for(j=0;j<cmdbItems;j++){

   resourceID = parsed.content[j]["id"];

ciList = ciList+resourceID+";";

}

}

 

}

 

if(JSUtil.notNil(ciList)) {

var gr = new GlideRecord("cmdb_ci");

gr.addEncodedQuery("u_vra_uidISNOTEMPTY^install_status!=7^ORinstall_status=NULL");

gr.query();

while(gr.next()) {

var a = ciList.indexOf(gr.u_vra_uid+"");

if(a>-1) {

VRASNLogger.debug('The record exists in the list '+ gr.name);

}

else {

gr.install_status = 7;

gr.update();

}

}

}

}

}

catch(e){

VRASNLogger.error('Exception caught inside VRASNImportCMDB.reconcileCMDB: '+e);

this.errorHandler.notify("Exception caught inside VRASNImportCMDB.reconcileCMDB: "+e);

}

},

 

type: 'VRASNImportCMDB'

};

How to monitor a set of process (cron, ssh, ntp, etc) in a large number of linux VMs in vRops.

$
0
0

Hi All,

 

Requirement: We want to automate monitoring the OS process. As soon as a VM is provisioned (by VRA), vRops should start monitoring the process and alert if a process is not running.

We have around 10000 VMs and we can leverage vRO to execute REST API / Powercli if required.

 

In vRops UI we can monitor the linux process. The below link shows how to monitor.

https://thecloudxpert.net/2016/04/howto-monitor-a-process-in-linux-using-vrealize-operations-end-point-operation-managem…

 

But we want to automate these steps.

 

Thanks,

Naresh

Help to understand what goes as input to VRA Tool(VMWare vRealize Automation Tool)

$
0
0

Hello Team,

Can anyone please provide some sample input templates for vRA 7.3 and also provide schema of input to vRA tool. And can we use these templates to provision resources on target cloud.

 

Regards

Viewing all 6792 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>