Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools

Is there a VMware API that can provide license usage information?

$
0
0

Hey Team,

I am looking for a way to call an API and extract license information, ideally, what is currently being used. I am doing some testing between my vRealize Automation appliance and Postman using the address: https://{{vra-fqdn}}/component-registry/api/licenses

However, when I put in the credentials and my bearer token, it comes back with the following output:

{

    "links": [],

    "content": []

}

I have been working on this 'challenge' for about a week now and I wanted to open this inquiry to the experts. Thank you in advance for your time and help on this.

 


vRa Code Stream 8.2 - POLL task criteria

$
0
0

Hi

 

I'm currently working on code stream on vmware cloud services and i got an issue.

 

Using a "POLL" task, i can not figured out an success criteria based on the output of one of the current poll rest call

for eg, this does not works:

${Stage0.task1.output.responseJson.status} == "COMPLETED"

 

The error message is "Invalid exit criteria"

 

Based on this documentation, it should works, but it doesn't.

How do I use a REST API to integrate vRealize Automation Code Stream with other applications

 

Even worse, the simpliest test doesn't work too.

true == true

"a" == "a"

 

Do you know the syntax , it looks like it's completly broken as it is.

 

Thanks,

 

Regards

 

Richard Devers

vRA 8 REST API Pagination

$
0
0

Is it possible to specify number of elements for REST call to vRealize Automation 8?

Seems like the default one is 100 which is not enough for our environment. For example GET request to "https://{{vra-fqdn}}/iaas/api/fabric-networks" returns the following:

"totalElements": 900,

"numberOfElements": 100

 

Can't find a way to specify page or limit to retrieve remaining networks.

Custom Resource Actions - Issue with OGNL parameters (v8.1 Patch 2)

$
0
0

I'm trying to utilise a vRO workflow as a resource action in v8.1 (patch 2). The workflow has 2 inputs, first is type VC:VirtualMachine, the second is a string that's populated via a drop-down that calls an action passing in the previously selected VM. This approach is working fine when the workflow is run directly in vRO. Workflow config here:

 

 

I now need to get this workflow to work as a custom resource action. I'm following the logic used here to create the resource action: https://blogs.vmware.com/management/2020/08/introducing-custom-resources-and-resource-actions-in-vrealize-automation.html

 

So I've created the action to get the VC:VirtualMachine my name, tested in isolation it works fine, then I've configured my resource action:

 

 

When selecting a deployment the resource action appears as expected. When I run it I get:

 

 

So basically the action that is called to populate the protection plan dropdown is not being supplied with the selected VM, which it requires to function.

 

I checked out "Edit Request Parameters" for the resource action, and can see the ognl command that is failing

 

 

So my question is how do I get the VM to be passed into the action? I've spent quite some time looking at this and can't see anything obvious, any help would be appreciated!

 

Thanks!

 

Tim.

vRA 7.5 - Windows Server Core Edition

vRA 8 - Object input type question

$
0
0

I see that you can create a blueprint input that is of type object.  I can't seem to find any documentation on it and how/why I would use it.  Wondering if anyone has links (or examples) of what this is for?

 

Thanks,

Carl L.

Is it possible to add a text in the vSphere VM Notes within vRA 8.1 blueprint?

$
0
0

Is it possible to add a text in the vSphere VM Notes within vRA 8.1 blueprint?

 

vRA8.1 change user inputs programatically

$
0
0

I am trying to change Ansible password via extensibility using the below code via event broker topic deployment.resource.request.pre.

I have Properties as input and variable `customInput` is setup as the output of the workflow of type Properties

var customInput = inputProperties.requestInputs || new Properties();
customInput.ansiblePassword = "VMware1!"

the password is not getting changed this way. any help is appreciated.

The reason being that I save the password in vRO as a securestring and then inject it in there so that I don't have it hardcoded in the blueprint.


vRA 8.1 "Sync Images" via Rest API

$
0
0

Does anyone know how to trigger Image synchronization for a vCenter cloud account via REST API?

vRA 8.2 Verify or check if a vCenter Template Repository is created by your System Administrator.

$
0
0

Hi,

 

I am creating a lab of vRA 8.2, and facing the issue while creating end-point. the following error appears while creating a vCenter endpoint.

 

Verify or check if a vCenter Template Repository is created by your System Administrator.

vRA 7.6 Patch 15 Install Error - Times Out

$
0
0

Good morning, 

I have just tried to apply the Patch 15 on our vRA 7.6 installation, following the instructions in the guide. The Patch 15 is rather big, like 4.5 GB..

After 45 minutes the installation failed, thou I see no real error. As well doesnt the selfpatch.log not contain any usefull information. It says it times out.. How long should I expect it to run - do I need to adjust timeout parameters?

Can any of you point to a direct where to look - or have seen similar ? Any debug mode during the installation?

Regards, Kjeld

[master] vra03:~ # sh /usr/lib/vcac/patches/repo/contents/vRA-patch/patchscript.sh
Executing self-patch, please wait till process completes.
2020-10-14 05:40:15,094 - __main__ - INFO : 193 - Patching current node vra03.local
2020-10-14 05:40:15,100 - __main__ - INFO : 77 - Executing command: /usr/sbin/vcac-config patch-command --command-name execute-shell --args argument=chmod 644 /usr/lib/vcac/tools/config/repo/vcac-config-cli-7.6.0-SNAPSHOT.jar
2020-10-14 05:40:16,616 - __main__ - INFO : 199 - Result:
2020-10-14 05:40:16,641 - __main__ - INFO : 170 - Running get_hotfix_service_rpm_name
2020-10-14 05:40:16,641 - __main__ - INFO : 185 - hotfix_service_rpm_name: vCAC-IaaSManagementAgent-Setup.msi
2020-10-14 05:40:16,645 - __main__ - INFO : 222 - Executing command: /usr/sbin/vcac-config patch-command --command-name execute-shell --args argument=sh /tmp/install_hotfix_service_rpm.sh
2020-10-14 05:40:18,302 - __main__ - INFO : 230 - Copied binaries to /opt/vmware/share/htdocs/service/iaas/download/
2020-10-14 05:40:18,302 - __main__ - INFO : 161 - Updating DB constraints.
2020-10-14 05:40:18,302 - __main__ - INFO : 60 - Executing command: ['/usr/sbin/vcac-config', 'database-upgrade-cluster']
2020-10-14 05:40:19,831 - __main__ - INFO : 167 - Result:
2020-10-14 05:40:19,831 - __main__ - INFO : 60 - Executing command: ['/usr/sbin/vcac-config', 'cluster-config', '-list']
2020-10-14 05:40:21,366 - __main__ - INFO : 250 - Patching IaaS node: vra01.local, NodeId: 24C36220-5473-4D07-A1EA-BF8008999D6D
2020-10-14 05:40:21,366 - __main__ - INFO : 138 - Starting :: Patch IaaS nodes
2020-10-14 05:40:21,366 - __main__ - INFO : 60 - Executing command: ['/usr/sbin/vcac-config', 'command-execute', '--command', 'upgrade-management-agent', '--node', u'24C36220-5473-4D07-A1EA-BF8008999D6D']
2020-10-14 06:25:15,852 - __main__ - INFO : 66 - Error executing command: ['/usr/sbin/vcac-config', 'command-execute', '--command', 'upgrade-management-agent', '--node', u'24C36220-5473-4D07-A1EA-BF8008999D6D']
2020-10-14 06:25:15,852 - __main__ - ERROR : 258 - Exception occurred while applying selfpatch.
2020-10-14 06:25:15,852 - __main__ - ERROR : 259 - ('Command execution of all commands did not finish within the defined timeout time.\nCommand execution result:\nCommand id: c5e6ac82-4c2e-469d-bc99-7634bde0871d\n   Type: upgrade-management-agent\n   Node id: 24C36220-5473-4D07-A1EA-BF8008999D6D\n   Node host: vra01.local\n   Result: \n   Result description: \n   Status: QUEUED\n\n', 'Error executing command')
Traceback (most recent call last):
  File "selfpatchscript.py", line 251, in main
    patch_iaas_nodes(nodeId)
  File "selfpatchscript.py", line 143, in patch_iaas_nodes
    result = execute_command(args)
  File "selfpatchscript.py", line 67, in execute_command
    raise Exception(stderrdata, 'Error executing command')
Exception: ('Command execution of all commands did not finish within the defined timeout time.\nCommand execution result:\nCommand id: c5e6ac82-4c2e-469d-bc99-7634bde0871d\n   Type: upgrade-management-agent\n   Node id: 24C36220-5473-4D07-A1EA-BF8008999D6D\n   Node host: vra01.local\n   Result: \n   Result description: \n   Status: QUEUED\n\n', 'Error executing command')
2020-10-14 06:25:15,853 - __main__ - INFO : 265 - Saving selfpatch results to /usr/lib/vcac/patches/repo/contents/vRA-patch/self-patch.json.
2020-10-14 06:25:15,853 - __main__ - INFO : 287 - Set self-patch applied to false
Traceback (most recent call last):
  File "selfpatchscript.py", line 309, in <module>
    main()
  File "selfpatchscript.py", line 263, in main
    raise e
Exception: ('Command execution of all commands did not finish within the defined timeout time.\nCommand execution result:\nCommand id: c5e6ac82-4c2e-469d-bc99-7634bde0871d\n   Type: upgrade-management-agent\n   Node id: 24C36220-5473-4D07-A1EA-BF8008999D6D\n   Node host: vra01.local\n   Result: \n   Result description: \n   Status: QUEUED\n\n', 'Error executing command')
Error while applying self-patch. Check ./var/log/vmware/vcac/selfpatch.log for more details.

Last login: Wed Oct 14 05:23:00 UTC 2020 from 10.5.100.122 on ssh
[master] vra03:~ # sh /usr/lib/vcac/patches/repo/contents/vRA-patch/patchscript.sh
Executing self-patch, please wait till process completes.
2020-10-14 05:40:15,094 - __main__ - INFO : 193 - Patching current node vra03.local
2020-10-14 05:40:15,100 - __main__ - INFO : 77 - Executing command: /usr/sbin/vcac-config patch-command --command-name execute-shell --args argument=chmod 644 /usr/lib/vcac/tools/config/repo/vcac-config-cli-7.6.0-SNAPSHOT.jar
2020-10-14 05:40:16,616 - __main__ - INFO : 199 - Result:
2020-10-14 05:40:16,641 - __main__ - INFO : 170 - Running get_hotfix_service_rpm_name
2020-10-14 05:40:16,641 - __main__ - INFO : 185 - hotfix_service_rpm_name: vCAC-IaaSManagementAgent-Setup.msi
2020-10-14 05:40:16,645 - __main__ - INFO : 222 - Executing command: /usr/sbin/vcac-config patch-command --command-name execute-shell --args argument=sh /tmp/install_hotfix_service_rpm.sh
2020-10-14 05:40:18,302 - __main__ - INFO : 230 - Copied binaries to /opt/vmware/share/htdocs/service/iaas/download/
2020-10-14 05:40:18,302 - __main__ - INFO : 161 - Updating DB constraints.
2020-10-14 05:40:18,302 - __main__ - INFO : 60 - Executing command: ['/usr/sbin/vcac-config', 'database-upgrade-cluster']
2020-10-14 05:40:19,831 - __main__ - INFO : 167 - Result:
2020-10-14 05:40:19,831 - __main__ - INFO : 60 - Executing command: ['/usr/sbin/vcac-config', 'cluster-config', '-list']
2020-10-14 05:40:21,366 - __main__ - INFO : 250 - Patching IaaS node: vra01.local, NodeId: 24C36220-5473-4D07-A1EA-BF8008999D6D
2020-10-14 05:40:21,366 - __main__ - INFO : 138 - Starting :: Patch IaaS nodes
2020-10-14 05:40:21,366 - __main__ - INFO : 60 - Executing command: ['/usr/sbin/vcac-config', 'command-execute', '--command', 'upgrade-management-agent', '--node', u'24C36220-5473-4D07-A1EA-BF8008999D6D']
2020-10-14 06:25:15,852 - __main__ - INFO : 66 - Error executing command: ['/usr/sbin/vcac-config', 'command-execute', '--command', 'upgrade-management-agent', '--node', u'24C36220-5473-4D07-A1EA-BF8008999D6D']
2020-10-14 06:25:15,852 - __main__ - ERROR : 258 - Exception occurred while applying selfpatch.
2020-10-14 06:25:15,852 - __main__ - ERROR : 259 - ('Command execution of all commands did not finish within the defined timeout time.\nCommand execution result:\nCommand id: c5e6ac82-4c2e-469d-bc99-7634bde0871d\n   Type: upgrade-management-agent\n   Node id: 24C36220-5473-4D07-A1EA-BF8008999D6D\n   Node host: vra01.local\n   Result: \n   Result description: \n   Status: QUEUED\n\n', 'Error executing command')
Traceback (most recent call last):
  File "selfpatchscript.py", line 251, in main
    patch_iaas_nodes(nodeId)
  File "selfpatchscript.py", line 143, in patch_iaas_nodes
    result = execute_command(args)
  File "selfpatchscript.py", line 67, in execute_command
    raise Exception(stderrdata, 'Error executing command')
Exception: ('Command execution of all commands did not finish within the defined timeout time.\nCommand execution result:\nCommand id: c5e6ac82-4c2e-469d-bc99-7634bde0871d\n   Type: upgrade-management-agent\n   Node id: 24C36220-5473-4D07-A1EA-BF8008999D6D\n   Node host: vra01.local\n   Result: \n   Result description: \n   Status: QUEUED\n\n', 'Error executing command')
2020-10-14 06:25:15,853 - __main__ - INFO : 265 - Saving selfpatch results to /usr/lib/vcac/patches/repo/contents/vRA-patch/self-patch.json.
2020-10-14 06:25:15,853 - __main__ - INFO : 287 - Set self-patch applied to false
Traceback (most recent call last):
  File "selfpatchscript.py", line 309, in <module>
    main()
  File "selfpatchscript.py", line 263, in main
    raise e
Exception: ('Command execution of all commands did not finish within the defined timeout time.\nCommand execution result:\nCommand id: c5e6ac82-4c2e-469d-bc99-7634bde0871d\n   Type: upgrade-management-agent\n   Node id: 24C36220-5473-4D07-A1EA-BF8008999D6D\n   Node host: vra01.local\n   Result: \n   Result description: \n   Status: QUEUED\n\n', 'Error executing command')
Error while applying self-patch. Check ./var/log/vmware/vcac/selfpatch.log for more details.

Customization script not working on RHEL8

$
0
0

Hi,
We are using guest customization on RHEL8 and configuring ipadress, hostname, etc works fine. However running a customization script did't funtion well. vRA verison 8.1 and vSphere version 7

We conduct the test by adding the following script, according to https://kb.vmware.com/s/article/74880:

#!/bin/sh echo "$(date) - $1" >>/tmp/customization.log 

After the vm been created the  /tmp/customization.log file did't created in the deployed VM.

the logs from toolsDeployPkg.log :

020-10-09T11:23:28 INFO: Reads value of the deployPkg enable-custom-scripts
2020-10-09T11:23:28 DEBUG: Command: 'vmware-toolbox-cmd config get "deployPkg" "enable-custom-scripts" 2>/tmp/guest.customization.stderr'
2020-10-09T11:23:28 DEBUG: Exit Code: 0
2020-10-09T11:23:28 DEBUG: Result: [deployPkg] enable-custom-scripts = true

2020-10-09T11:23:28 DEBUG: Stderr: 
2020-10-09T11:23:28 INFO: Marker file exists or is undefined, pre-customization is not needed

2020-10-09T11:23:29 INFO: Marker file exists or is undefined, password settings are not needed
2020-10-09T11:23:29 INFO: Marker file exists or is undefined, post-customization is not needed

my college post the question on githus as well

Customization script not working on RHEL8 · Issue #470 · vmware/open-vm-tools · GitHub

Any suggestion ?

Cannot update vRa to 8.2 via vRLCM because of checksum

$
0
0

Hello,

I updated my vLCM to the new version 8.2.0.23 to be able to update my vRa to 8.2.

 

My problem is : I downloaded the iso named "Prelude_VA-8.2.0.12959-17018654-updaterepo.iso" from "my vmware" (VMware vRealize Automation 8.2.0 Update Repository) then uploaded it via ssh to my vRLCM appliance in the folder /data/upgrades. From the vRLCM interface, i'm going in the settings then in "Binary Mapping" then "add binary". I precise the folder /data/upgrades then click "discover" and I find my iso.

I select it then click "add" but I receive this error :

 

com.vmware.vrealize.lcm.common.exception.EngineException: One or more selected files checksums does not match with any product versions supported by vRealize Lifecycle Manager.

at com.vmware.vrealize.lcm.plugin.core.sourcemapping.tasks.SourceMappingTask.execute(SourceMappingTask.java:111)

at com.vmware.vrealize.lcm.automata.core.TaskThread.run(TaskThread.java:45)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

 

More info :

Error Code: LCMSOURCEMAPPING10018

Selected files checksums does not match with any product versions supported by vRealize Lifecycle Manager.

One or more selected files checksums does not match with any product versions supported by vRealize Lifecycle Manager.

 

I have checked the cheksum of my file (directly from the appliance ssh console) and it matches the checksum given on my vmware page...

 

Is somebody has the same problem ? Am I doing it right ?

 

Thank you in advance !

Specifying Static IP in a blueprint for a NSX-T OnDemand Outbound attached VM

$
0
0

Hi,

As part of a blueprint I'm trying to specify a specific IP to a vSphere VM using

networks:

        - network: '${resource.NSX.id}'

          assignment: static

          address: 172.10.0.24

The network is a NSX-T On-Demand/Outbound.

But the IP is ignored, and another IP from the STATIC scope is assigned.

 

If the networktype resource is changed from Outbound to Existing (With a IP Scope), then its possible to specify an IP

 

Is it a BUG or feature by design?

 

The use case is to be able to ensure that the DC in a Blueprint always gets the .100 IP.

 

BR

Anders

Can't add a LDAP integration in vRealize Automation 8.1

$
0
0

I'm trying to integrate my AD located in Windows Server 2016 but when I validate the data I'm receiving the following error message

I'm wondering why this is happening. I have thought that it could because I haven't created the integration for embedded-ABX-onprem, but when I try to do it I can't find the option in vRA for adding a Cloud Proxy:

Does anyone now how should I proceed?

 

Thanks


VRA 8.2 - Custom Form: Required Constraint Grayed Out

$
0
0

I hope I'm missing something simple here.  In Cloud Assembly, I create an input on my cloud template (blueprint).  In the corresponding custom form in Service Broker, I drag that element to the form.  But when I do, the Required field for that element under Constraints is grayed out - I can't change it from Yes. 

 

Am I missing something obvious here?  Or is this by design? 

 

My current workaround is to set a default value for that input on the blueprint.  If there is a default set there, then the Required field on the form is available again.  But I don't want a default value for these fields, I just want them to be null if not filled out. 

 

Thanks in advanced for any help!

vRA 8.2 - Multi-Tenancy redirection issue

$
0
0

Hello folks,

 

I am facing and issue where the redirection to the correct URL when accessing one of the vRA tenants is not working properly regarding the domain selection.

 

When I choose the System Domain domain it redirects me properly to the "tenant.localdomain IDM URL" but when I switch the source to the AD domain it redirects me to the installation URL "idm.localdomain" which is not even the Master Tenant.

 

This issue is preventing me for configuring Virtual Private Zones as the option does not appear in the Infrastructure tab even having all the roles configured.

 

Any ideas?

vRA 8 import VM feature

VRA 8.2 - Value Picker with External Source

$
0
0

Has anyone had any luck with populating a Value Picker form item with an externa vRO action?  The docs say that the action has to return a Properties array, but my action that returns a Properties array does not show up as an option as an external source for a value picker (no actions seem to show up actually) 

 

We have some fairly large dropdowns and I think the value picker could be a better experience for our users, but I'm not having any luck so far.  I'm also not entirely sure if it is meant to be used with just a list of custom options or if we always have to choose sort of reference type?  The wording is a bit confusing in the docs, but the example seems to indicate the former.

vRA 8.2 - Custom role and cloud templates

$
0
0

Hello,

 

I discovered the new feature "custom role" and it's great ! That's exactly what I need but I have an issue and I would like to know if I use it correctly.

 

I created a custom role names "Deployer" which allows :

- View deployments

- Deploy Cloud Templates

I want this role to be able to deploy cloud templates (blueprints) and see the status of deployments.

 

When I login with a user with this role, I only see deployments and cloud templates, that's great.

My issue is : In the "design" table, where the cloud templates are located, I can also "create" a cloud template ! And I don't want to role to be able to do this. Only admin will be able to create new cloud templates.

Is it a "bug" or I'm not using it correctly ?

 

Thank you in advance.

 

Best regards.

vRA 7.6 Patch 15 / Custom Form / Conditional Field / No longer working

$
0
0

Hello, 

I just patched our vRA 7.6 to 7.6 Patch 15, not our custom forms are no longer working. It looks like the simple function - visible on condition (e.g. integer > x) is no longer working. 

Has anyone had similar issue?

Gonna roll back the snapshots now..

Regards Kjeld 

How to Generate a report of Disabled Alarms on VM Objects

$
0
0

I want to create a scheduled report to identify any VMs, hosts, datastores etc that have disabled alarms

 

Vcenter 7.0

Version: 8.1.0 (15972145)

 

Edition: Advanced


vRA 8.1 - iaas rest api returning "Invalid mime type" error

$
0
0

I've been trying to extract a response from the vRA 8.1 iaas API, with no luck so far. every API call to, for example https://$url/iaas/api/about returns, the error:

{"timestamp":1603193804909,"path":"/iaas/api/about","status":500,"error":"Internal Server Error","message":"Invalid mime type \"org.mozilla.javascript.Undefined@ac577ae\": does not contain '/'","requestId":"3bca07fd","@type":"org.springframework.http.InvalidMediaTypeException","cause":{"message":"Invalid mime type \"org.mozilla.javascript.Undefined@ac577ae\": does not contain '/'","@type":"org.springframework.util.InvalidMimeTypeException"}}

 

Normally I do not use an Accept or Content-Type header to force a specific content type and am relying on application/json. This works fine with other API requests like:

https://$url/blueprint/api/about or

https://$url/deployment/api/deployments

 

Including the Accept and/or Content-Type header with the value "application/json" returns the same error as above.

 

Does the iaas API request a specific schema or is this a bug?

Migration Assessment of vRealize Automation 7.x to vRealize Automation 8.2 : include: 500 Internal Server Error

$
0
0

Hello Team ,

 

Have any of you tried to migrate their environment from vRA 7.5 to 8.2 ?

 

We have a 500 error :

 

 

 

Do you know where we can find logs ?

 

Thx for your help.

vRA 7.5 - Upgrade to 7.6 Model Manager Database is missing

$
0
0

Hello folks,


This time I am facing an issue while upgrade from vRA 7.5 to vRA 7.6. After the VA pre-checks, the pre-install IaaS checks fails because of "Model Manager Database missing" and I searched a lot on the internet for this but I could not find anything. Basically the SQL database where the Model Manager is trying to connect is working perfectly but I am suspecting that I have some files missing:

 

Screenshot_3.png

 

If this is normal, anyone faced this issue before upgrading?

 

Regards!

VRA 8 existing network blueprint and datastore selection

$
0
0

Hi,

 

I am unable to find the options that were available in vRA 7.x like configuring the fabric groups, selecting multple datastores and configuring blueprint with existing networks dv-ports if we dont have any other IPAM solution.

Kindly guide me on above.

 

Thanks,

[vRA 8.2] - vRealize Suite Lifecycle Manager : An unexpected error occurred.

$
0
0

Hello,

 

on vRLCM 8.2 when we try to access at "LifeCycle Operations"

 

 

 

we get this error :

 

 

Do you have an idea please ?

 

All others services work : locker, Contant management, etc.....

vRA 8.1 / LCM 8.1 - error when source mapping vRA 8.2 update binaries

$
0
0

I want to upgrade vRA 8.1 to 8.2 using LCM.

I've downloaded the ISO-Image containing the binaries, in version Prelude_VA-8.2.0.12959-17018654-updaterepo.iso.

The file was uploaded to a folder on the LCM appliance containing other patces and is discovered successfully.

However when trying to map the binaries, I get following error:

 

LCMSOURCEMAPPING10018

Error Code: LCMSOURCEMAPPING10018

Selected files checksums does not match with any product versions supported by vRealize Lifecycle Manager.

One or more selected files checksums does not match with any product versions supported by vRealize Lifecycle Manager.

 

LCM is already updated to the latest 8.2 build.

 

Any idea what the reason for this error is? Re-uploading the file did not help.

vRA 7.5 - Create Azure Security Rule

$
0
0

Dear all,

 

Is there any way to create Azure Security Rule through vRA, to an existing Network Security Group?

 

The NSG has been created through vRA, through a new catalog item, and now I am looking if I can add a Day-2 XaaS action to allow create a new security rule.

I tried to create a new custom resource, where I can see that there is an option Azure:SecurityRule, but I cannot link it with an XaaS BP or custom action.

 

 

Any ideas?

 

Thx

Tasos


[vRA 8.2] - Custom Branding 400 Bad Request

$
0
0

Hello,

 

when we try to customize branding we get this error :

 

 

Do you have an idea please ?

Creating Blueprint vRA 8.2

$
0
0

Hi,

 

I am unable to find the Blueprint option under cloud assembly. The ID I am using have full priviledges on vRA.

How to add an external IPAM range to a Network Profile in vRA8

$
0
0

This is clearly documented for vRA7 as per https://docs.vmware.com/en/vRealize-Automation/7.1/com.vmware.vra.programming.doc/GUID-B5EB1871-458A-4281-9BCA-D5DB54897CB2.html

But looking at the different API's available for vRA8 I cannot find anything there.
Looked in the IaaS API in the Network Profile section https://code.vmware.com/apis/655#/Network%20Profile/updateNetworkProfile

Also enable network tracing in Chrome to see how it's done via the UI but still cannot figure out what happens.
I can see a PUT against "https://vra01.*****.net/provisioning/uerp/resources/subnet-ranges/f3d1169e-42c3-4258-a620-7e5059ca72e5

But doesn't really help me. Any pointers?
 

ManagedObjectNotFoundFault vm-1990

$
0
0

Trying to deploy Ubuntu Server 20.04 with cloud-init support.

Create template using this manual https://vmwarelab.org/2020/02/14/vsphere-customization-with-cloud-init-while-using-vrealize-automation-8-or-cloud/

Cloud-init working fine, but when i try to use "name" in blueprint i got error:

vCenter responded with "ManagedObjectNotFoundFault vm-1990."

 

formatVersion: 1

inputs: {}

resources:

  Cloud_vSphere_Machine_1:

    type: Cloud.vSphere.Machine

    properties:

      image: 'ubuntusrv20.04'

      name: testesttet

      cpuCount: 1

      totalMemoryMB: 1024

 
formatVersion: 1
inputs: {}
resources:
  Cloud_vSphere_Machine_1:
    type: Cloud.vSphere.Machine
    properties:
      image: 'ubuntusrv20.04'
      name: testesttet
      cpuCount: 1
      totalMemoryMB: 1024

VRA 8.2 - Configure Bitbucket integration

$
0
0

Hello everyone,

I'm trying to configure my VRA to integrate our Bitbucket server. I'm following this documentation : Configure Bitbucket integration in vRealize Automation Cloud Assembly

The first step is done : Add the server with a user and a token. All went fine here.

 

Now I'm trying to add a project to the integration to sync Cloud Templates for example but I also receive this error : Invalid content source configuration

 

Here is an example of configuration I tried :

Type : Cloud Template

Repository : DCT/vra-blueprints

Branch : master

Folder :

 

The main problem comes from the repository parameter I guess. dct = the project in Bitbucket and "vra-blueprints" = the repository name. I tried many different thing like :

- scm/dct/vra-blueprints.git

- dct/vra-blueprints.git

- same without .git

- projects/DCT/repos/vra-blueprints

- DCT/repos/vra-blueprints

but nothing.

 

Do you know how to solve this ? Maybe it comes from another parameter or configuration on bitbucket server ?

 

Thank you in advance.

 

Best regards, Simon

ABX python script - Certain fields not available in payload

$
0
0

Hi,
Ive been tasked with creating an vRA integration with Red Hat Satelite / Foreman to create a host record when a host is provisioned in vRA - and I have limited knowledge of vRA.

I want to pass certain variables from an existing workflow, like FQDN and ipadress, to a vRA 8 ABX python script but I cant find those fields in the payload, any suggestions what I need to do? Those variables are created in a Infoblox integration.

This is what I got in the payload:

{
  "tags": {},
  "zoneId": "c15bb122-1f25-4978-a414-98777b0a7e76",
  "projectId": "2bd617ba-8978-48a0-b623-8b9ce081283f",
  "requestId": "bc426644-0d35-41ef-835c-a030ce1777ea",
  "__metadata": {
    "orgId": "40e8da04-1a54-4a24-9dbb-f6d4686864d2",
    "headers": {
      "tokenId": "02I05VBEGwjOjv9CbShUlYjWR+8EbQxeWY//U5WUybI=",
      "blocking": "false",
      "runnableId": "8a7480dc72e2edc50175694507002176",
      "runnableType": "extensibility.abx",
      "uber-trace-id": "1f7f8dab3f0043b1b9cf0a75caf57510:a13825abcb764bd3ac83f11dafea14fd:dfcdc591-40d7-4f3d-a34d-23cabef4983c:1",
      "uberctx-org-id": "40e8da04-1a54-4a24-9dbb-f6d4686864d2",
      "uberctx-user-id": "provisioning-A1KuSnvAGYtUK4fH",
      "eventTraceEntryId": "b911ede5-8b74-4a97-987e-6edd11a585d0",
      "sampling-decision": "true",
      "uberctx-parent-id": "dfcdc591-40d7-4f3d-a34d-23cabef4983c",
      "provisioning-callback-uri": "/provisioning/config/extensibility-callbacks/1a90c3ff-5a03-4c09-94ae-897ec79ed41a"
    },
    "targetId": "fd3c0769-b97c-4f38-bae5-7642b03e5eb5",
    "userName": "myusername",
    "eventType": "EVENT",
    "timeStamp": 1603795581253,
    "sourceType": "provisioning",
    "targetType": "ComputeAllocationTaskState",
    "eventTopicId": "network.configure",
    "correlationId": "c80f78a6-467d-40cb-8e8d-3173d9a8237b--bc426644-0d35-41ef-835c-a030ce1777ea",
    "sourceIdentity": "97669e34-8cb5-44a6-b5f4-c6374fcb9bb0",
    "correlationType": "contextId"
  },
  "endpointId": "d90614ea-1033-4a5e-8ff2-62f0c6d519ee",
  "blueprintId": "19c1cb97-8c87-4586-be2c-e3ce7964ef3d",
  "componentId": "Cloud_vSphere_Machine_1",
  "externalIds": [
    "some-hostname"
  ],
  "resourceIds": [
    "bfdedb47-b905-44b9-a208-1adec84f9239"
  ],
  "deploymentId": "c80f78a6-467d-40cb-8e8d-3173d9a8237b",
  "componentTypeId": "Cloud.vSphere.Machine",
  "customProperties": {
    "image": "redhat7-image-prod",
    "flavor": "test-small",
    "customizationSpec": "rhel",
    "resourceGroupName": "linux/vRA",
    "Infoblox.IPAM.Network.dnsView": "Internal"
  },
  "networkProfileIds": [
    "15ee38ff-990b-4a1f-80c2-b133ac348017"
  ],
  "networkSelectionIds": [
    [
      [
        "1d2e8ed3-0ad3-4573-b28d-b18dc017ce09"
      ]
    ]
  ]
}

{

  "tags": {},

  "zoneId": "c15bb122-1f25-4978-a414-98777b0a7e76",

  "projectId": "2bd617ba-8978-48a0-b623-8b9ce081283f",

  "requestId": "bc426644-0d35-41ef-835c-a030ce1777ea",

  "__metadata": {

    "orgId": "40e8da04-1a54-4a24-9dbb-f6d4686864d2",

    "headers": {

      "tokenId": "02I05VBEGwjOjv9CbShUlYjWR+8EbQxeWY//U5WUybI=",

      "blocking": "false",

      "runnableId": "8a7480dc72e2edc50175694507002176",

      "runnableType": "extensibility.abx",

      "uber-trace-id": "1f7f8dab3f0043b1b9cf0a75caf57510:a13825abcb764bd3ac83f11dafea14fd:dfcdc591-40d7-4f3d-a34d-23cabef4983c:1",

      "uberctx-org-id": "40e8da04-1a54-4a24-9dbb-f6d4686864d2",

      "uberctx-user-id": "provisioning-A1KuSnvAGYtUK4fH",

      "eventTraceEntryId": "b911ede5-8b74-4a97-987e-6edd11a585d0",

      "sampling-decision": "true",

      "uberctx-parent-id": "dfcdc591-40d7-4f3d-a34d-23cabef4983c",

      "provisioning-callback-uri": "/provisioning/config/extensibility-callbacks/1a90c3ff-5a03-4c09-94ae-897ec79ed41a"

    },

    "targetId": "fd3c0769-b97c-4f38-bae5-7642b03e5eb5",

    "userName": "myusername",

    "eventType": "EVENT",

    "timeStamp": 1603795581253,

    "sourceType": "provisioning",

    "targetType": "ComputeAllocationTaskState",

    "eventTopicId": "network.configure",

    "correlationId": "c80f78a6-467d-40cb-8e8d-3173d9a8237b--bc426644-0d35-41ef-835c-a030ce1777ea",

    "sourceIdentity": "97669e34-8cb5-44a6-b5f4-c6374fcb9bb0",

    "correlationType": "contextId"

  },

  "endpointId": "d90614ea-1033-4a5e-8ff2-62f0c6d519ee",

  "blueprintId": "19c1cb97-8c87-4586-be2c-e3ce7964ef3d",

  "componentId": "Cloud_vSphere_Machine_1",

  "externalIds": [

    "some-hostname"

  ],

  "resourceIds": [

    "bfdedb47-b905-44b9-a208-1adec84f9239"

  ],

  "deploymentId": "c80f78a6-467d-40cb-8e8d-3173d9a8237b",

  "componentTypeId": "Cloud.vSphere.Machine",

  "customProperties": {

    "image": "redhat7-image-prod",

    "flavor": "test-small",

    "customizationSpec": "rhel",

    "resourceGroupName": "linux/vRA",

    "Infoblox.IPAM.Network.dnsView": "Internal"

  },

  "networkProfileIds": [

    "15ee38ff-990b-4a1f-80c2-b133ac348017"

  ],

  "networkSelectionIds": [

    [

      [

        "1d2e8ed3-0ad3-4573-b28d-b18dc017ce09"

      ]

    ]

  ]

}

vRA 8.2 Resize VM issue

$
0
0

Hi Community,

 

we are facing the problem that we are not able to resize any VM from the service broker or cloud assembly from a tenant org. vRA 8.2 is deployed as multi-tenancy environment and the tenant has a VPZ assigned where he can deploy to. Deployment of VMs works fine but when we try to resize a freshly deployed VM from servicebroker/cloud assembly we get the crytptic error message

 

Resize cannot be performed on Cloud_vSphere_Machine_1 since the state of the deployment/resource has changed.

 

No entry or error details under Request or Events log. Same error when we explicitly add the vCenter cloud account under the tenant and deploy to a project that is assigned to this cloud zone.

 

The resizing from the provider org/default tenant works just fine although.

 

This is a major issue for us, hope anybody can advise on that!

 

Thanks a lot in advance!


vRA and red hat satellite

$
0
0

Hi

We are using vRA 8.1 advanced on our prod platform. We are looking for to register RHEL vms deployment on Satellite such as  vm fqdn, The tought is using ABX to run python script which wel talk with Red Hat satellite. This script will be triggers after the vm got static IP add.

A mi on the right trace ?`Have you see kind of integration via ABX och vRO with Satellite?

Many thanks

vRA 7.5 - WAPI XML errors pointing to wrong IP

$
0
0

Hello folks,

 

I am seeing bunch of errors under Elmah folder in the IaaS Web Node:

 

Screenshot_1.png

I presume this error appears because is pointing to a wrong IP where there is nothing. I would like to know if these errors are okay to ignore and if not from where can I get the configuration applied to this so I can update the IP that is trying to reach.

 

I did not find anything in the docs related to this.

 

Regards!

vRA 8 - XaaS Blueprints and Deployment Objects

$
0
0

In 7.x versions of vRA you could have an XaaS blueprint that just executed a simple orchestrator task and upon completion it didn't leave anything behind.  In my testing with 8.x it seems like XaaS blueprints leave behind a deployment object with workflow ID, run ID, etc.  Is there a way to turn this off and have it not leave behind a deployment object?  It seems like it's just leaving behind a mess as the deployment doesn't really have any options.  I get the logging in it could be beneficial to an admin, but to an end user I think it's just clutter.

vRA8: Easiest way to get the project ID for use on custom form?

$
0
0

I need to get the project ID to use as an input to an action on a custom form. I am wondering if there is an easier way than calling the vRA API to list all projects and then parse the ID from the response. While I can certainly go this route I'm trying to be as efficient as possible as to not cause long form load times.

 

Thanks in advance!

Catalog Import Error - Could not build schema for blueprint

$
0
0

Hi Team,

I am relatively new to vRA and keeping my hands dirty to create simpe blueprints in vRA 8.1.

I have created a BP which will get input from user during request. Inputs such as select CPU, Memory and OS config for deployment.(Attached screenshot).

Now when I am trying to import this BP as catalog (Service broker -> Content & Policies -> Content source -> After click on "save & import" it throws up an error stating " Error downloading a version '1.0' of catalog item 'Custom-W2K16-Cent-OS' (Error: Could not build schema for blueprint 28748135-c5b6-417c-ab41-1eed2ef42267". 

Fyi, i have two other BP which got successfully imported as catalog except this one. Other two does not have any "user inputs." dring request.

Please help to resolve the issue.

Regards,

LNC

Populating vRA 7.5 XaaS Blueprint Property Descriptions with other properties

$
0
0

in vRO I can get the final confirmation tab description to populate with previous answers:

Please confirm you are ready to update ${#dnsView}/${#hostName} with alias ${#SingleAliasRef}

 

But when I import into vRA as an XaaS Blueprint, the description comes across as:

Please confirm you are ready to update Not set/Not set with alias Not set

 

Does anyone know how to update an XaaS property entry description with current property variable answers similar to vRO?

vRA 8.2 - Returning helpful error message to vRA from vRO?

$
0
0

In 8.2 there was a bug fixed which now causes vRO to error if called with null or blank parameters are passed to an action. This is easy enough to handle by handling the null/blank value. Something like this:

 

if var == null or var == ""{ return ""}

 

Because of this I noticed the errors returned back from vRO are pretty useless. Even if you throw an exception.

 

My question is when you throw an exception, how can you return a helpful error message back to vRA?


go to "cloud assembly" get stuck

$
0
0

I installed VRA 8.2 in my test lab.

But when I clicked to Cloud Assembly, it stucked in progress ring.

 

other menu(code stream, orchestra..) are fine. but only cloud assembly..

 

Is there any method ?

 

 

Connection test to vcenter fails during the installation

$
0
0

Hi

I want to install vrealize via the vsphere interface. So, when I go to menu->vrealize operation->install->offline and give it the OVF file, I see the window to give it the credentials of vcenter. When I enter the IP/USER/PASSWORD and click on test connection, it says the connection fails.

That is weird because I am able to ssh to the vcenter via the terminal on my linux machine.

 

Any thought on that?

 

vrealize.jpg

vRA 8 Provision Catalog Items for other users

$
0
0

Hello,

 

Is it possible to provision or deploy catalog items for other users in vRA 8.x?

We want to provision deployments by forehand for a list of users.
In vRA 7.x this was possible because we could define the "requestedfor" attribute.

 

We can't find this option in GUI and I'm not sure if it's possible by API.

Can someone shine a light on this?

Thanks!

vRA 8 timeout settings

$
0
0

I am sure it is documented someplace, but I just can't seem to find out how to increase the session timeouts.  They are driving me crazy.  It looks like there are two of them (one for the main login and the other for the particular service).  Can anyone direct me to the correct documentation?

 

Thanks,

Carl L.

vRA 8.2 and custom forms - Cannot add Value|Label from external value

$
0
0

For a drop-down list, you can specify a list of constant values in a Value|Label|Description form.  I would like to do the same from an external source but I cannot see how.  The drop-down list simply shows all the text instead of just the Label.  Any thoughts on how I can do this?

 

Thanks,
Carl L.

vRA 8.2 - vm with cloud.vsphere.network deploying with NSX network every time

$
0
0

The environment I work with has vRA 8.2, vSphere 7U1 and NSX-T 3 deployed.

I have build 2 basic blueprints, based on a vsphere template. One should deploy a VM into an existing NSX-T network (overlay). The second should deploy the VM with the NIC connected to a dvs port group.

The NSX network and the network profile that is referencing it have the tag 'network_placement:nsx' assigned to it. Similarily, the vSphere port gorup and a separate network profile containing it have the tag 'network_placement:vsphere' assigned.

Both tags controllign the acces to the network resources are assigned to the project.

None of the networks is selected as "default".

The vSphere Endpoint is tagged with env:vsphere'.

 

Here's the blueprint for the vSphere VM:

formatVersion: 1
inputs: {}
resources:  Cloud_vSphere_Network_1:    type: Cloud.vSphere.Network    properties:      networkType: existing      constraints:        - tag: 'network_placement:vsphere'  Cloud_vSphere_Machine_1:    type: Cloud.vSphere.Machine    properties:      imageRef: centos8minimal-template      cpuCount: 2      totalMemoryMB: 2048      networks:        - network: '${resource.Cloud_vSphere_Network_1.id}'      constraints:        - tag: 'env:vsphere'

 

And here the VM with the NSX placement:

 

formatVersion: 1
inputs: {}
resources:  Cloud_NSX_Network_1:    type: Cloud.NSX.Network    properties:      networkType: existing      constraints:        - tag: 'network_placement:nsx'  Cloud_vSphere_Machine_1:    type: Cloud.vSphere.Machine    properties:      imageRef: centos8minimal-template      cpuCount: 2      totalMemoryMB: 2048      networks:        - network: '${resource.Cloud_NSX_Network_1.id}'      constraints:        - tag: 'env:vsphere'

 

I have removed all input properties, to keep it as simple as possible.

The NSX version is deployed without issues.

However when trying to deploy the VM that has to be connected to the dvs, a few problems arise:

  • according to the request details, the constraint in the Cloud_vSphere_Network_1 is 'network_placement:nsx' and not 'network_placement:vsphere'. I have no idea how this can happen, since 'network_placement:nsx' is not even selectable. This of course invalidates the deployment, but the allocation itself continues and the vm is eventually provisioned.
  • when selecting the provisioned Cloud_vSphere_Network_1 element from the deployment canvas view, the resource name shows the connected NSX overlay network name (and not the dvs port group, as it should have been), 'Accout' is the NSX-T Cloud account (why??), Network type is 'existing'. Under 'Custom properties' however, 'constraints' has the [{"tag":"network_placement:vsphere"}] value (as configured in the blueprint).

It seems like the constraint 'network_placement:nsx' is somehow the default and is assigned to every network resource, overwriting any other constraint. I also do not understand, how a Cloud.vSphere.Network resource can be associated with the NSX-T cloud account?

 

I've been using following documentation for provisioning the deployment:

Network, security, and load balancer examples in vRealize Automation cloud templates

 

Can anyone help me with understanding how a vSphere network gets associated with a NSX-T account?

 

edit: removed some typos

[vRA 8.X] vRO workflow for RedHat registration/de-registration during provisioning/deletion

$
0
0

Is there any good documentation on how to deal with RedHat registration for VM creation/deletion? What I really need is for the VM workflow to run a script or command line on creation (if RedHat) and similarly when the VM is deleted. I just can't find any decent source of documentation on how to manage that for v8.

 

Can anyone point me to a similar project walk through that would be helpful?






Latest Images