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

vRA 3 node cluster


vRA 7.4 Determine approver from request - add additional approver?

$
0
0

Hi,

 

currently we are using "Determine approver from request" for our approval policy. So logged in user has an AD attribute "manager", and that manager will receive email with approval request. All works fine. But is it possible add on the request form a textbox where a user can enter email for the second approver? And the request email goes to that second approver who can approve it?

 

Thanks

VRA-7.5 MachinePrefix delete API bug?

$
0
0

Hi,

 

I manually or via API create a MachinePrefix:

 

GET request to URL https://vra-server/iaas-proxy-provider/api/machine-prefixes/tenant?page=1&limit=20works as expected.

 

One of the elements is:

 

{

      "@type": "MachinePrefix",

      "id": "7a40b058-48d4-40c1-b69b-f572d5722263",

      "name": "testDelete",

      "nextMachineNo": 0,

      "machineNumberLength": 0,

      "tenantId": "d"

}

 

After that... DELETE request to: https://vra-server/iaas-proxy-provider/api/machine-prefixes/7a40b058-48d4-40c1-b69b-f572d5722263CRASHES with:

 

Response code: 500

Response Body:

{

  "errors": [

    {

      "code": 50505,

      "source": null,

      "message": "System exception.",

      "systemMessage": "HTTP/1.1 400 Bad Request : <?xml version=\"1.0\" encoding=\"utf-8\"?><m:error xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"><m:code /><m:message xml:lang=\"sl-SI\">Syntax error at position 28 in 'HostnamePrefixID eq 7a40b058-48d4-40c1-b69b-f572d5722263'.</m:message><m:innererror><m:message>Syntax error at position 28 in 'HostnamePrefixID eq 7a40b058-48d4-40c1-b69b-f572d5722263'.</m:message><m:type>Microsoft.Data.OData.ODataException</m:type><m:stacktrace>   at Microsoft.Data.OData.Query.ExpressionLexer.ValidateToken(ExpressionTokenKind t)&#xD;   at Microsoft.Data.OData.Query.UriQueryExpressionParser.ParseFilter(String filter)&#xD;   at Microsoft.Data.OData.Query.ODataUriParser.ParseFilterImplementation(String filter, IEdmType elementType, IEdmEntitySet entitySet)&#xD;   at System.Data.Services.Parsing.RequestExpressionParser.ParseFilter()</m:stacktrace></m:innererror></m:error>",

      "moreInfoUrl": null

    }

  ]

}

 

Version: 7.5.0 (Build: 10053500)

 

Tested in swagger here: https://vra-server/component-registry/services/docs#!/apis/10011?!/machine45prefix/deleteMachinePrefix

 

It really looks like a bug. I hope somebody from VMware can confirm this. GSS did not want to confirm / verify this.

 

Thanks!

Data is not coming on Log insight after vRops integrated

$
0
0
Hello,
I deployed Log insight in my environment and we integrated with vRops but i don't see any data on Log insight Dashboard it showing no results.
i applied vCenter license on Log insight which is support up to 25 OSI only.
Below is the Picture please help me.

 

Thanks in advance..  

 

Thank you,

Ravi

Not able to provision VM on Remote site,machine failed at CLONE MACHINE state.

$
0
0

This is a vRA 7.4 distributed deployment.At primary site ,i am able to provision VM without any issue but at remote site i am getting an error i.e. Error processing [CloneVM], error details:  Cannot locate the virtual machine or template with name.I have tried clone from template as well as linked clone.

 

load balancer ,vRA appliances and IAAS components are placed at primary site however two proxy agents placed at remote site wherein i am facing an issue.

 

Stack Trace

 

at DynamicOps.Vrm.Agent.vSphere.VSphereGetMachineByNameRequest.CheckTooFewVirtualMachinesFound(Int32 count)

at DynamicOps.Vrm.Agent.vSphere.VSphereGetMachineByNameRequest.GetMachineMoRef()

at DynamicOps.Vrm.Agent.vSphere.VSphereGetMachineByNameRequest.ExecuteImpl()

at DynamicOps.Vrm.Agent.vSphere.VSphereHypervisorServiceProvider.GetMachineByName(ManagementEndpoint managementEndpoint, String name)

at DynamicOps.Vrm.Agent.vSphere.VSphereAgentService.CreateLinkedClone(WorkItem workItem, PropertyBagHelper propertyBagHelper)

at DynamicOps.Vrm.Agent.BaseHypervisorAgent`3.ProcessWorkitem(WorkItem workItem, String task, PropertyBagHelper propertyBag)

at DynamicOps.Vrm.Agent.vSphere.VSphereAgentService.ProcessWorkitem(WorkItem workItem, String task, PropertyBagHelper propertyBag)

at DynamicOps.Vrm.Agent.BaseAgent.ProcessWorkitem(WorkItem workItem)

Import Unmanaged VM via REST API

$
0
0

Hi,

 

Lately we had the need to import unmanaged vm's to vRA BG's.

We were able to do so with CloudClient but we want to automate this process.

 

vRA supporting REST API calls so we found a method for registering unmanaged VM's to vRA :

https://vRA-FQDN/iaas-proxy-provider/api/machines/register

 

This is the body of the POST:

{

  "owner": "string",

  "virtualMachineId": "string",

  "requestingUser": "string",

  "componentId": "string",

  "machineProperties": [

    {

      "virtualMachineId": "string",

      "isEncrypted": false,

      "name": "string",

      "id": "string",

      "value": "string",

      "isRuntime": false,

      "isHidden": false

    }

  ],

  "compositeBlueprintId": "string",

  "deploymentName": "string",

  "hostReservationId": "string",

  "templateId": "string",

  "hostStorageReservationId": "string"

}

 

We filled those properties as needed but the error we are getting back is:

"Data serialization error.

Could not read message [acceptableTypes: [application/*+json, application/json]]"

 

Can someone help with this error ?

 

Thanks.

vROPs (Epops) Monitor VCAC-SERVER / VCO-SERVER

$
0
0

Hi,

 

I have installed epops agent on my vRA appliance and I want to monitor both vcac-server and vco-server, But I am unable to do so.

The UI ask for State.Name. when provided vcac or vcac-server or vco or vco-server, it's not able to monitor.

I found one link on the web to check the state name based on PID using Sigar-1.6.6.13.jar. But the result for both the services were same. The State.Namewere java.

With this, the monitor was able to recognize the service but it was in general to all java related service.

 

I did one test and stopped the vco-server but the health monitor didn't showed any issue. According to it, the service was up and running.

 

Anybody found any resolution for this ?  (Management pack is not an option at this time.

 

vRA version - 7.3.0

vROps version - 7.0

vRA deployment via VCF 3.5

$
0
0

Hello,

 

I have a VCF3.5 installed and I am trying to deploy vRA thorught the SDDC manager interface.

 

When trying to deploy the vRA Iaas Website I have the following error in life Cycle Manager:

LCMVRACONFIG50026: vRA IaaS Website Installation Failed.

 

com.vmware.vrealize.lcm.common.exception.EngineException: Failure: ---BEGIN---

{"code":400,"message":"Parameters with wrong format: WebCertificate(The value must be a valid thumbprint.); VraWebCertificateThumbprint(The value must be a valid thumbprint.); \n"}

---END---

 

 

Use -e option to get more details.

at com.vmware.vrealize.lcm.plugin.core.vra70.task.iaas.InstallIaasWebTask.execute(InstallIaasWebTask.java:169)

at com.vmware.vrealize.lcm.platform.automata.service.Task.retry(Task.java:80)

at com.vmware.vrealize.lcm.platform.automata.core.ExecutionTask.run(ExecutionTask.java:39)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

 

 

I have created SAN certificates, and in the life Cycle Manager logs I have got:

2019-02-05 09:11:38.940 INFO  [pool-2-thread-6] c.v.v.l.u.CertificateUtil -  -- Issuer DN : CN=sddc-manager, DC=parntx, DC=net

2019-02-05 09:11:38.940 INFO  [pool-2-thread-6] c.v.v.l.d.v.h.VraInstallHelper -  -- installObject : IaasWebsite [vraAddress=vraappliance01.parntx.net, defaultTenant=vsphere.local, vidmAdminUser=administrator@vsphere.local, webCertificate=null, useEncryption=false, iaaSWebAddress=vraiaasws01.parntx.net, sqlServer=sddc-vrasqlserv.parntx.net,1433, sqlUser=parntx\administrator, useExistingDatabase=true, vraWebCertificateThumbprint=null, databaseName=SDDCvRA, httpsPort=443, websiteName=Default Web Site, validationMode=true, serviceUser=parntx\administrator, useWindowsAuthentication=true, installationPath=]

2019-02-05 09:11:41.065 INFO  [pool-2-thread-6] c.v.v.l.d.v.h.CafeEndpoint -  -- PUT config/execute/command/install-web/node/BFC1B0F3-39FF-4E0C-B91B-2A7392D4D41C: 500 Internal Server Error

2019-02-05 09:11:41.066 INFO  [pool-2-thread-6] c.v.v.l.d.v.h.VraInstallHelper -  -- installActionOutput : Failure: ---BEGIN---

{"code":400,"message":"Parameters with wrong format: WebCertificate(The value must be a valid thumbprint.); VraWebCertificateThumbprint(The value must be a valid thumbprint.); \n"}

 

 

Where can I find more logs ?


Error during vRA 7.0 install. Note the bolded sections.

$
0
0

Downloading installer...
Execution time:00:03.581
Download succeeded.
Installing vCAC Server Custom Setup files on the disk

Executing:"C:\Users\vraserviceAccount\AppData\Local\Temp\VMware\vCAC\\vCAC-Server-Setup.exe" /s /w /V"/qn ADDLOCAL=Database INSTALLDIR=\"C:\Program Files (x86)\VMware\vCAC\\Server\" /Lvoicewarmup! \"C:\Program Files (x86)\VMware\vCAC\InstallLogs\Server-Setup.log""
vCAC Server Custom Setup Installation Succeeded, ExitCode:0

Execution time:00:20.155
Configuring vCAC IaaS core components:

- Database

Executing:"C:\Program Files (x86)\VMware\vCAC\Server\ConfigTool\\vCAC-Config.exe" /S "/P:C:\Users\user1\AppData\Local\Temp\VMware\vCAC\\ConfigToolProperties.vCAC-Server-Database-ConfigTool.xml" "/L:C:\Program Files (x86)\VMware\vCAC\InstallLogs\vCAC-Config.log"
vCAC-Server-Custom-Database-ConfigTool Installation Failed, ExitCode:5500

Error configuring vRealize Automation Server. For more information, refer to vCAC-Config.log after collecting the IaaS logs.
Execution time:00:03.029


Initialized configuration property for feature Database. Node read DATA_PROTECTED.
Initialized configuration property for feature Database. Node read DATABASE_DATA_PATH.
Initialized configuration property for feature Database. Node read DATABASE_LOG_PATH.
Initialized configuration property for feature Database. Node read WINDOWS_AUTHEN_DATABASE_INSTALL_FLAG.
Initialized configuration property for feature Database. Node read DATABASE_INSTALL_SQL_USER.
Initialized configuration property for feature Database. Node read DATABASE_INSTALL_SQL_USER_PASSWORD.
Initialized configuration property for feature Database. Node read PRECREATED_DATABASE_FLAG.
Initialized configuration property for feature Database. Node read CREATE_MSSQL_AZMAN_STORE_FLAG.
Initialized configuration property for feature Database. Node read DATABASE_USE_ENCRYPTION.

Info : 2016-01-14 03 21 51 133 PM :Executing C:\Windows\Microsoft.NET\Framework\v4.0.30319\MsBuild.exe "C:\Program Files (x86)\VMware\vCAC\Server\Database\DeployVMPS.xml" /t:BuildDB /p:UsePreCreatedDatabase="False" /p:DBServer="SQL1.example.com";DBName="vra" /p:DBUser=""  /p:DBPassword=****** Info : 2016-01-14 03 21 51 180 PM :Microsoft (R) Build Engine version 4.0.30319.33440 Info : 2016-01-14 03 21 51 196 PM :[Microsoft .NET Framework, version 4.0.30319.34014] Info : 2016-01-14 03 21 51 196 PM :Copyright (C) Microsoft Corporation. All rights reserved.
Info : 2016-01-14 03 21 51 196 PM :Build started 1/14/2016 3:21:51 PM.
Info : 2016-01-14 03 21 51 227 PM :Project "C:\Program Files (x86)\VMware\vCAC\Server\Database\DeployVMPS.xml" on node 1 (BuildDB target(s)).
Info : 2016-01-14 03 21 51 227 PM :BuildDB:
Info : 2016-01-14 03 21 51 243 PM :  ##BuildDB Creating and populating database Info : 2016-01-14 03 21 51 243 PM :  sqlcmd -S db1.example.com  -i CreateDatabase.sql -v DBName="vra" DBDir="\." LogDir="\." -b Info : 2016-01-14 03 21 53 302 PM :  Creating Database 'vra'.
Info : 2016-01-14 03 21 53 302 PM :  Using default SQL database data and log directory Info : 2016-01-14 03 21 53 311 PM :  Setting database compatibility level to SQL 2008.
Info : 2016-01-14 03 21 53 311 PM :  Disabling full text search.
Info : 2016-01-14 03 21 53 311 PM :  Setting database settings.
Info : 2016-01-14 03 21 53 483 PM :  Executed CreateDatabase.sql.
Info : 2016-01-14 03 21 53 498 PM :  sqlcmd -S SQL1.example.com  -d "vra" -i VMPSOpsUser.sql -v ServiceUser="Domain\User" UseWindowsAuthentication="True"
Info : 2016-01-14 03 21 53 687 PM :  Executed VMPSOpsUser.sql.
Info : 2016-01-14 03 21 53 703 PM :Project "C:\Program Files (x86)\VMware\vCAC\Server\Database\DeployVMPS.xml" (1) is building "C:\Program Files (x86)\VMware\vCAC\Server\Database\Liquibase.xml" (2) on node 1 (RunLiquibase target(s)).
Info : 2016-01-14 03 21 53 719 PM :RunLiquibase:
Info : 2016-01-14 03 21 53 719 PM :  "\bin\java.exe"  -Djsse.enableCBCProtection=false -Djava.library.path="C:\Program Files (x86)\VMware\vCAC\Server\Database" -cp "liquibase.jar;jtds-1.3.1.jar" liquibase.integration.commandline.Main --driver=net.sourceforge.jtds.jdbc.Driver --url=jdbc:jtds:sqlserver://SQL1.example.com/"vra";ssl=request releaseLocks Info : 2016-01-14 03 21 53 719 PM : The system cannot find the path specified.
Info : 2016-01-14 03 21 53 734 PM :C:\Program Files (x86)\VMware\vCAC\Server\Database\Liquibase.xml(28,5): error MSB3073: The command ""\bin\java.exe"  -Djsse.enableCBCProtection=false -Djava.library.path="C:\Program Files (x86)\VMware\vCAC\Server\Database" -cp "liquibase.jar;jtds-1.3.1.jar" liquibase.integration.commandline.Main --driver=net.sourceforge.jtds.jdbc.Driver --url=jdbc:jtds:sqlserver://SQL1.example.com/"vra";ssl=request releaseLocks" exited with code 3.
Info : 2016-01-14 03 21 53 734 PM :Done Building Project "C:\Program Files (x86)\VMware\vCAC\Server\Database\Liquibase.xml" (RunLiquibase target(s)) -- FAILED.
Info : 2016-01-14 03 21 53 734 PM :Done Building Project "C:\Program Files (x86)\VMware\vCAC\Server\Database\DeployVMPS.xml" (BuildDB target(s)) -- FAILED.
Info : 2016-01-14 03 21 53 750 PM :Build FAILED.
Info : 2016-01-14 03 21 53 750 PM :"C:\Program Files (x86)\VMware\vCAC\Server\Database\DeployVMPS.xml" (BuildDB target) (1) -> Info : 2016-01-14 03 21 53 750 PM :"C:\Program Files (x86)\VMware\vCAC\Server\Database\Liquibase.xml" (RunLiquibase target) (2) -> Info : 2016-01-14 03 21 53 750 PM :(RunLiquibase target) -> Info : 2016-01-14 03 21 53 766 PM :  C:\Program Files (x86)\VMware\vCAC\Server\Database\Liquibase.xml(28,5): error MSB3073: The command ""\bin\java.exe"  -Djsse.enableCBCProtection=false -Djava.library.path="C:\Program Files (x86)\VMware\vCAC\Server\Database" -cp "liquibase.jar;jtds-1.3.1.jar" liquibase.integration.commandline.Main --driver=net.sourceforge.jtds.jdbc.Driver --url=jdbc:jtds:sqlserver://SQL1.example.com/"vra";ssl=request releaseLocks" exited with code 3.
Info : 2016-01-14 03 21 53 766 PM :    0 Warning(s)
Info : 2016-01-14 03 21 53 766 PM :    1 Error(s)
Info : 2016-01-14 03 21 53 781 PM :Time Elapsed 00:00:02.53

Approval Policy - Determine Approvers from Request

$
0
0

Currently using vRA 7.4 and when you select the policy type to Determine Approvers from Request it looks like your options are limited.  Basically manager, business group managers, etc.  Is there no way to use a field on the form to control that?  We're using XAAS and populate a field on the form with an AD group based on the requestor via a custom action.  We were hoping to use that group for our approvals.  Anyone done something similar?

VRO 7.3 - AWS REST API - Does VRO have the necessary crypto APIs to create the AWS REST APO signature using HMAC SHA-256?

$
0
0

Hi all,

 

We have an interesting problem. We are planning to use VRA and VRO for automated provisioning of S3 buckets. To do this, we're planning to use AWS REST APIs .

When calling these APIS, we need to pass over the secret key and acces key by creating (what AWS calls) a signature. The algorithm of the signature is as below.

 

Refer to link - http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html

 



    AWS SIgnature.png

 

Per AWS, depending on the SDK/programming language/framework being used to call AWS REST APIs, the class names and functions used to doing these four steps would be different.

We have found these steps in Python ofr example,

 

But the interesting thing is that we are not able to find these cryptography functions in native VRA/VRO API. Can anyone help us here?

 

Much appreciated.
 
 
 
 
 
 
 
 
 
 
 





Got Error message when access to vRA Service Catalog

$
0
0

Got Error message when access to vRA service catalog. Not every time but sometimes it occurs. (we are using vRA Plugin ITSM 5.0)

 

Following is the error message from the log.

REST call error found while verifying vRB with vRA: Method failed: (/component-registry/services) with code: 401 - Invalid username/password combo. Please contact System Administrator.

(Check the log at  System Logs > Application Logs)

 

Not sure if there is a relationship but we found below error messages in the log too.

Exception caught inside vra_sn ps catalogForm Widget.setChoice: TypeError: Cannot set property "ReservationPolicyID" of undefined to ""

Error in makeApiCallMethod failed: (/reservation-service/api/reservations/policies) with code: 401 - Invalid username/password combo

 

Please advice the cause of error message and how we can fix it.

"HTTP Status 502 – Bad Gateway” in the UI when accessing Containers tab in vRA 7.4

$
0
0

"HTTP Status 502 – Bad Gateway” in the UI when accessing Containers tab in vRA 7.4

This is vRA 7.4 distributed deployment,where in i have an issue with container tab and the same is giving an error.I have already locked a case with vmware and they suggested to upload the hotfix HF9 in vRA appliances.But still the issue remain same.

 

Kindly assist to proceed further.

Configuring the external syslog server in vRealize Operations Manager

$
0
0
Hello everyone,

I'm trying to configure Syslog server on vRealize operations manager and can we Collect the logs from the host using syslog server ?

 

Can you help me please.

 

Thanks!

Ravi

Edit existing network range?

$
0
0

Hey all,

 

VRA 7.3

I have an end user that I have provisioned a  /23 network. This range is set for 10.44.222.2 - 10.44.223.254. The problem is they are now requesting to reserve a number of IP's for SQL listeners and other things. I cannot seem to edit this range to do anything with it. Is there some way for me to be able to carve out some addresses from this range?


On-Demand Networks

$
0
0

  Hi,

 

There is any option of creating "Private" network with vRA without using NSX / NSX-T ?

(like closed environment)

 

Thanks in advance.

Turn off a machine after deployment on vRA 7.3

$
0
0

Hi all,

By default vRA PowerOn VMs after deployement. 

I want to power off a VM after deployement.

 

In Administration --> Subscriptions --> Conditions

I configure this :

Screenshot - 2019-02-07 , 11_36_28.png

My workflow is executed to PowerOff the VM, after, vRA PowerOn the VM

Screenshot - 2019-02-07 , 11_40_53.png

I don't now witch parameter I have to choose in Data>Lifecycle state > Lifecyce state name

Any idea to PowerOff the VM in the end of the cycle.

 

Thanks

Small python vra library

$
0
0

Hi VMWare communities,

 

It's my first post and i'd just like to share a small python library for vRa i did. It is called vra_sdk

 

Since it quite documented, i'm not going to expand myself about it. His mains features are the following:

  • Automatic payload creation for vRa6 and vRa7
  • Automatic catalog/entitlement management
  • List resources
  • Get data on a specific resource
  • For list/get, allow to get the raw vRa response or a more user friendly response
  • Request a catalog item
  • Request a resource action
  • Easyly handle any vRa resource type (even dynamic type)

 

It can be quite useful for you scripting needs or if you need a small library for your app.

 

If you have any ideas/evolutions request/bug/documentation errors, don't hesitate to do a PR or just to communicate with me, i'll try to do it in best effort (there's already a todo list in the repo)

 

Here's the link to the project, the documentation is in the readme:

GitHub - richarddevers/vra_sdk: Python library to facilitate interaction with the VMWare vRa rest api.

How to delete orphan XaaS VMs in vRA 's inventory using vRO's plugin ?

$
0
0

Hi all,

 

I have an orphan VM in my XaaS inventory (vRA7.4).

The VM was build in XaaS with vRO (7.4), and a custom resource was created in my inventory, mapped to VC:VirtualMachine.

There was a problem in a Day 2 operation. The vsphere VM has been deleted, but the  inventory Item not.

My goal is to delete this element, without using database requests in vRA Appliance (vRealize Automation : Delete Orphaned Catalog Item vRA 6.x - vINCEPTION ).

 

I have tried to do that with vRO.

 

This is my strating code :

 

var vraItems =  vCACCAFEEntitiesFinder.getCatalogResources(vRaEndpoint);

for (var i = 0; i< vraItems.length; i++)
{
   if(vraItems[i].name.toLowerCase() == itemName.toLowerCase())
   {
       System.log("Found : " + vraItems[i].name);
        System.log("ID : " + vraItems[i].id);
        System.log("Status : " + vraItems[i].status.value());
     }
}

My element is found.

 

The status is VCACCAFEResourceStatus type.

I have seen the setStatus method on catalog resource object, but I need a VCACCAFEResourceStatus in parameter.

My goal is to replace ACTIVE by DELETED Status, like in sql solution.

 

I have tried to create a new VCACCAFEResourceStatus, but it failed.

     var xxx = new VCACCAFEResourceStatus();

     ReferenceError: "VCACCAFEResourceStatus" is not defined

 

I have tried to collecte actual status, and modify it, but I failed to give a new value.

 

 

Have someone a tip for me ?

- creating a VCACCAFEResourceStatus

- or parameter actual VCACCAFEResourceStatus

- or another solution

 

Thanks by advance

 

Stéphane

Resource Mappings - Change CMDB Class

$
0
0

Hello, we have v5 up and running and looks great. I can't figure out how to change the Resource Mappings to import CIs to our standard table though. The documentation says to edit the 'Class Name' but that field isn't showing up as it did in an older version of the plugin. Below is a screenshot where I was expecting to see a field for changing the class. Is there somewhere else we're supposed to map to our preferred CMDB class, 'cmdb_ci_server'.  Thanks!

 

Viewing all 9859 articles
Browse latest View live


Latest Images

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