Quantcast
Channel: VMware Communities : All Content - vRealize Orchestrator
Viewing all 10285 articles
Browse latest View live

Setting proxy for RESTHostManager.createTransientHostFrom() not working

$
0
0

Hello folks,

 

I tried to invoke a URL request via RESTHostManager.createTransientHostFrom(), where the the proxy is set programmatically.

But it seems it does not pick up the proxy setting. I used the script I found at

 

Executes a transient RESTOperation for a transient RESTHost · GitHub

 

I replaced the proxy setting with our settings:

host.proxyHost = "<nice proxy server>";

host.proxyPort = 81;

 

I always get a timeout.

 

If I do the same request via a permanent REST host from the inventory with proper proxy settings it works.

So, I am stuck. Has somebody a hint for me?

 

Thx

Cheers

Roland


Add tags to vRA provisioned VM

$
0
0

After a little bit of pain I am able to assign tags to vRA-provisioned virtual machines on vCenter through vRO.

have a look into workflow.

1) Configure VAPI endpoint in vRO.

2) Create property definitions (vRA.Deployment.Tags) in vRA.

3) Create a subscription Event Machine Provisioning as below.

4) Edit Blueprint and Add custom property Extensibility.Lifecycle.Properties.VMPSMasterWorkflow32.MachineProvisioned

Inputs : payload

Schema:

Trying to Add VM Tags Via vRO Workflow

$
0
0

UPDATE: Just realized that for the property (vRA.Deployment.Tags) I only have the tag name entered in the Value column for the dropdown. Do I need to add a way to reference the tag category? Not sure how to add that to the property.

UPDATE 2: Doesn't look like the workflow requires a tag category. I'm trying to force the workflow to give me more information in the logs, see at what step it's failing.

UPDATE 3: Found the issue, but not sure how to fix it. So the issue is that in the Variables section of the last run of the setVcTags workflow, I can see the following:

vmName: (here it gives the correct VM name)

errorCode: "Could not find VM (Dynamic Script Module name : findVcVmByName#7)"

Because the result of vmName isn't getting properly passed to the vm attribute (type: VC:VirtualMachine), or at least it can't find it based off that name, the workflow ends.

I may end up opening a ticket with VMware to see why it's not getting passed properly.

 

Hey everybody,

Novice vRO user here (yaaaay) - so I've been tasked with having vRA assign 1 of 2 tags to every single VM when it's being created (for these examples, "Backup Tag 1" and "Backup Tag 2"). We're doing this to enable auto backups in Avamar.

Here's the site that I've been using: Assigning vCenter tags using vRealize Orchestrator – The vGoodie-bag

So far I have:

 

  1. In vRO client, run "Import vAPI metamodel" successfully.
  2. Imported this package: vCenterTagging/com.vGoodie-Bag.library.vapi.package at master · KnutssonDevelopment/vCenterTagging · GitHub
  3. Went to the setVcTags workflow in vRO (vGoodie-Bag > setVcTags) > edit > endpoint > changed to "https://[my vCenter FQDN]/api"
  4. Created property "vRA.Deployment.Tags" as a dropdown (X = Backup Tag 1, Y = Backup Tag 2) and added it to the Blueprint.
  5. (I already have a LifeCycle Property Group with pretty much all the "VMPSMasterWorkflow32" entries, plus two "CloneWorkflow" ones, so just made sure that was in the Blueprint as well.)
  6. Created a new Subscription: setVcTags > Machine provisioning > Lifecycle state name = "VMPSMasterWorkflow32.MachineActivated" > State phase = "POST" > selected the "setVcTags" workflow from the imported package > Finish
    1. NOTE: This is one of the steps where I got confused, since they mention sorting workflows in vRO but don't give any information at all - I'm assuming the fact that I chose a state phase when creating the subscription means I'm good?

 

Now when I build a VM in vRA, it successfully builds, and after a while vRO says that the setVcTags workflow ran successfully (under Logs it has two messages - "Settings vCenter Tags" and then "Tags: Backup Tag 1") - however, no Tags appear in vCenter for that VM.

 

I'm assuming I'm just missing something with how I've set this up in vRO - obviously vRA is calling the workflow because I see it running, but nothing's making it back to the VM. Maybe I haven't tied in the right action at the end of the workflow or something? I'm really sorry if I've missed something obvious, this is my second time trying any serious workflow, and the first one I'm piecing together myself.

 

Let me know if any other info is helpful, and I would love any suggestions of what to check next. Thanks!

email settings default to SSL

$
0
0

I want to switch to sending emails via authentication and using TLS. I tried the send notification workflow and with setting the STARTTLS to true and putting in the other info it works.

 

Is there a way to set STARTTLS as a default or will I always need to pass that as a parameter when preparing my message as part of my workflow?

Unable to see the packages and workflow after installing the plugin for the first time

$
0
0

I have created the vRO plugin using model driven archetype.

After that I tried to create some workflow and then imported it in our package folder using below command.

 

mvn o11n-package:import-package -DserverUrl=user:pass@localhost:8281

 

I am able to import the workflows in package folder, after that I built the plugin and deployed it in vRO but after deploying was unable to see the Workflow in vRO.

 

Please find the below pom.xml file:

 

<plugin>

    <groupId>com.vmware.o11n.mojo.pkg</groupId>

    <artifactId>maven-o11n-package-plugin</artifactId>

    <version>${vco.version}</version>

    <extensions>true</extensions>

    <configuration>

        <packageName>com.sample.example</packageName>

        <!-- Set the local path to the *.vmokeystore file used to sign the content -->

        <keystoreLocation>${keystoreLocation}</keystoreLocation>

        <keystorePassword>${keystorePassword}</keystorePassword>

        <includes>

            <include>**/Library/vRO Plug-in for Sample/**/*.element_info.xml</include>

        </includes>

        <packageFileName>o11nplugin-sample-package-${project.version}</packageFileName>

        <allowedMask>vef</allowedMask>

        <exportVersionHistory>false</exportVersionHistory>

    </configuration>

</plugin>

 

 

Please find the dunes-meta-inf.xml file:

 

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">

<properties>

    <comment>127.0.0.1:8230</comment>

    <entry key="pkg-description">vRO Plug-in for Sample package</entry>

    <entry key="pkg-name">com.sample.example</entry>

    <entry key="used-plugins">Sample#0.0.1</entry>

    <entry key="pkg-owner">Sample Example</entry>

    <entry key="pkg-id">4452345677834623546671713779537818809</entry>

</properties>

 

 

Are we missing something in the pom or do we need to do some other configuration?

How to allocate/unallocate an IP address in a network profile IP addresses range by vRO ?

$
0
0

I have the following problem :

 

 

Some of my colleagues have deploy some VMs by vRA and change the IP address in the Guest OS after the deployment.

 

 

So the IP address displayed on the VM properties is not correct, and it's the same for the IP address reserved in the network profile range.

 

 

 

I know how to update the IP address displayed in the properties, it's quite simple, I have build a workflow to update the custom property "VirtualMachine.Network0.Address".

 

 

 

But this action doesn't update the IP address in the network profile ip addresses range, so I have to do it.

 

I tried to do this by REST API like this:

 

1) First, I get the network profile properties in an XML object :

 

GET /iaas-proxy-provider/api/network/profiles/"networkprofileID"

 

{
  "@type": "ExternalNetworkProfile",
  "id": "4860fc89-1518-4a0e-8047-7162a1bc61c8",
  "name": "TEST-NET1",
  "description": "Configured by vRO",
  "createdDate": "2018-01-17T14:37:03.000Z",
  "lastModifiedDate": "2018-01-17T14:37:03.000Z",
  "isHidden": false,
  "definedRanges": [
    {
      "id": "d5e88c81-3195-4afb-83db-6ad0cca88ac3",
      "name": "range",
      "description": "Configured by vRO",
      "beginIPv4Address": "1.252.128.34",
      "endIPv4Address": "1.252.128.62",
      "state": "UNALLOCATED",
      "createdDate": "2018-01-17T14:37:03.000Z",
      "lastModifiedDate": "2019-05-16T15:27:45.000Z",
      "definedAddresses": [

      {

          "id": "675e6ec3-a498-44da-a16f-52d92fb150f0",

          "staticIPv4RangeId": "d5e88c81-3195-4afb-83db-6ad0cca88ac3",

          "IPv4Address": "1.252.128.38",

          "IPSortValue": 33325094,

          "state": "UNALLOCATED",

          "stateValue": 1,

          "createdDate": "2018-01-17T14:37:03.000Z",

          "lastModifiedDate": "2018-01-17T14:37:03.000Z"

        },
        {
          "id": "f80cc5ed-6be6-4845-b1cb-3ea8b3036a0e",
          "staticIPv4RangeId": "d5e88c81-3195-4afb-83db-6ad0cca88ac3",
          "virtualMachineId": "6526b667-fcf9-4be9-aa47-98c0dc95a79a",
          "virtualMachineName": "test-000094",
          "IPv4Address": "1.252.128.45",
          "IPSortValue": 33325101,
          "state": "ALLOCATED",
          "stateValue": 0,
          "createdDate": "2018-01-17T14:37:03.000Z",
          "lastModifiedDate": "2018-01-17T14:37:03.000Z"
        },

 

 

2) Then I parse the "defineAddresses" section and  update the XML subnode object to free an IP address like :

defineAddress.state              = "UNALLOCATED"

defineAddress.stateValue         = 1

delete defineAddress.virtualMachineId

delete defineAddress.virtualMachineName

 

3) And a run a PUT REST API request to update the network profile, the return code is 204 meaning than the update is succeed,  BUT if I perform a new GET or check in the vRA web  console, the update was not performed.

 

Any idea on this behavior ?

 

 

is it possible to perform an ip address allocation or unallocation by another way or trick ?  (excepted by a SQL query in the database of course, because I find this method ugly and unsupported)

 

Thanks for your help

 

Regards

Getting output from a PowerShell Script on VRO task

$
0
0

Hi All.

 

First post, what a wonderful job everyone gets up to here. Learning from each other,

 

I have hit a problem with some VRO automation that i am doing.

 

I can get my task to execute a powershell script, I believe i am using the official plugin. My powershell script creates a file on a remote host, however I need to get the path that the script creates. At the moment, within my script I just do a stdout of the filename, so now I would like VRO to pick up the output filename.

 

The script task which builds the PS arguments is as follows.

powershellArguments = "-Servername " + hostname + " -config_dir " + confniguration_directory + " -instance_no " + instance_no + " -type " + environment_type + " -admin_login " + admin_login + " -collation " + db_collation + " -sql_account " + sql_account + " -install_dir " + install_directory + " -sql_components " + components+ " -sql_dir " + data_directory+ " -log_dir " + log_directory+ " -backup_dir " + y+ " -tempdb_dir " + x; 
System.log ("Using PowerShell Aruments '" + powershellArguments + "'.");

Now, if I want to receive the output of the file, how do I do this please?

Some entries in packages menu are disabled in vRealize Orchestrator client V7.6 (legacy)

$
0
0

Some entries (like "Rebuild package", "Delete...", "Edit", ...) are disabled in menu opened by

 

1. Selecting 'Administer' in the selection box on the top of the VMware vRealize Orchestrator client workspace.

2. Clicking the 'Packages' tab in the upper left corner of the left pane in the VMware vRealize Orchestrator client workspace.

3. Clicking right on the entry of a package (in our case 'com.vmware.library.fujitsuSVS.eLCM')

 

disabled.png

 

 

 

In Versions < V7.6 of vRealize Orchestrator client the entries are enabled, see e.g. vRealize Orchestrator client V7.4

 

enabled.png

 

Because of this 'Uninstalling a plug-in from vRealize Orchestrator' described in 'https://kb.vmware.com/s/article/2064575'

 

          :

     4. Right-click the package to delete and click 'Delete element with content'

          :

 

is not possible. Thank you for any help...


vRO Error

$
0
0

I am getting below error when running my workflow in vRO

 

"" TypeError: Cannot call method "indexOf" of null (Workflow:Alerts / (item2)#9)'   ""

 

unable to find out what error it is exactly ?

Automated Windows DNS clean up

$
0
0

Hi,

I have been working with the VMtocloud vRO DNS  (http://www.vmtocloud.com/how-to-integrate-windows-dns-with-vra-7-x-part-ii-delete-dns-record/) removal workflow using EBS and had this working for single machines being destroyed.  It is not working effectively when multiple machines are destroyed at the same time, say out of a batch of 3 only one DNS record will delete.

After looking into it I have found this error; Error in (Workflow:Create temporary directory in guest / Scriptable task (item1)#8) The operation is not allowed in the current state. I have noticed on the one where it actually works, the workflow pauses for sometime at the improved sleep step and then moves on, however in the others they error a couple of seconds after being triggered.  It seems as though the temp directory isn't being passed into the workflow.  I'm actually quite new to all of this and would really like to know how to make this better, has anyone here used this workflow before and had this issue?

I am sure I am missing some critical information in this post, I have attached the worflow run logs as well as the run script in guest logs.

Technical Preview of the Command Line Interface for VMware vCenter Orchestrator 7.0.0 and above

$
0
0

Below is a list of the bug fixes in the CLI:

     1.  Fixed script evaluation (available since build 3774330)

          The issue is easily recognizable when someone log in the CLI and try to execute a script snippet.

          The error in the GUI was: Cannot connect to server. Do you want to quit?

          The error in the server.log was:

Error creating bean with name 'server' defined in class path resource [com/vmware/o11n/plugin/vcocli/pluginConfig.xml]: Invocation of init method failed;           nested exception is java.lang.IllegalStateException: SSLContext is not initialized.

 

 

 

Bellow there is attached the vmoapp file which must be installed on the vCO Server + windows and linux clients containing the GUI CLI.

Correct way to sign a vRO package

$
0
0

Hi All,

 

I've noticed that by default packages are signed by an auto generated certificate, after some research I found that the default package signing certificate is set via the vRO control center, so I went in and generated a new certificate:

 

I re-started the vRO server, went into vro and exported my package, but on import it still displays the details of the old certificate?

 

I've tried creating a fresh package, but it just doesn't seem to be using the new certificate.

 

Does anyone have any ideas?

 

Thanks,

 

Tim.

Execute PS script + having the output into workflow parameter values

$
0
0

Hi,

I have PS script that returns all vms owned by some user.

I want to know if it possible to have the script executed when entering the workflow request (or at any other point) +having the output of the script somehow appear into vra parameter values (dynamically)...

Any suggestions ?

Thanks in advance.

Urgent help - I cannot get results out from an external script

$
0
0

Hi All.

 

I have a PS script which runs on an Script server and targets remote machines. Everything works fine, however the issue i am having is that I cannot get the output from my script back. I have tried several ways to do this, the closest thing I have so far is to use the getXML method, it dumps out a lot of XML but all I need is just the filename which my powershell script returns.

 

I would be grateful if anyone can explain to me how to do this correctly, I will need to do this a lot in the course of my work, sometimes my Ps file will be expected to return multiple values etc, but most of the time it will be a single value.

 

 

[2019-05-22 23:23:29.689] [I] Using PowerShell Aruments '-Servername xxxxxx -config_dir C:\TEMP -instance_no 02 -type TEST -admin_login xxxxxxxxxxxxxx -collation SQL_Latin1_General_CP1_CI_AS -sql_account "NT AUTHORITY\SYSTEM" -install_dir D: -sql_components "SQLENGINE,REPLICATION" -sql_dir H:\DATA01 -log_dir F:\LOG0 -backup_dir E:\BACKUPS -tempdb_dir X:\DIR'.

[2019-05-22 23:23:41.522] [I]

IsPublic IsSerial Name                                     BaseType                                                 

-------- -------- ----                                     --------                                                 

True     False    CmdletBindingAttribute                   System.Management.Automation.CmdletCommonMetadataAttribute

 

 

LastWriteTime  : 22/05/2019 23:23:39

Length         : 1196

Name           : ServerName_SQL_Configuration_File_2019_05_22_11_23.ini

PSComputerName : ServerName

 

 

C:\TEMP\ServerName_SQL_Configuration_File_2019_05_22_11_23.ini

 

The above is the output when I run the workflow.

 

The bit my Ps script returns is C:\TEMP\ServerName_SQL_Configuration_File_2019_05_22_11_23.ini and this is what I want to capture into a variable. and pass onto another workflow

 

Capture.PNG

Technical preview of Chef Plug-in for vRealize Orchestrator

$
0
0

Version: 1.0.0

 

What's New

  • Bug fixes to support multiple Chef hosts and vRealize Orchestrator clusters.
  • Resolves "random failure to register hosts" issue which might lead to Chef failing.

 

Install/Upgrade

 

All vRealize Orchestrator Plug-ins are installed from the Control Center. The file extensions that ca be used are .vmoapp and .dar.

A .vmoapp file can contain a collection of several .dar files and can be installed as an application, while a .ddar file contains all the resources associated with Plug-in.

 

More information about managing vRelize Orchestrator Plug-ins is available at vRealize Orchestrator official documentation.

 

References

 

Attached is the Chef Plug-in for vRealize Orchestrator User Guide.


VRO NSX Create Security Tag Problem

$
0
0

Hi,

 

I'm trying to get a workflow to generate a create a custom NSX Security group and tag.

 

There is an inbuilt create group workflow which works fine but nothing for the tag itself.

 

I have tried to adjust the create group one but having no luck. I was wondering if anyone could help.

 

Current attempt:

 

var dummy = new Array(1);

var securityTagObj = new NSXSecurityTagDto("1", dummy);

 

securityTagObj.name = "Test";

securityTagObj.description = "Test description";

securityTagObj.scope = "Global"

 

securityTag = NSXSecurityTagController.createV2(connection, securityTagObj);

 

The error I get returned is:

Error in workflow xxxx org/apache/commons/beanutil/ConversionException

 

I assume this is to do with the scope but not too sure where to go (I'm new at this so be kind!)

 

I could get around this by using an http post query but I'd really rather use the plugin API.

VCPlugin.getAllVirtualMachines with filters

$
0
0

Hi all,

 

I'm trying to find the correct way to use getAllVirtualMachines with filters. I want to get the list of all vms bloqued by question as is shown in the screenshot:

I guess that the same result is possible using VcPlugin.getAllVirtualMachines(string[] additionalPropertyFilterrs, String query) but I cannot find the correct grammar for that.

 

Get all VMs and then check for "vm.runtime.question" is very SLOW.

 

Any ideas?

Thanks a lot

D.

Customize Email Body with User Interaction

$
0
0

Hi All,

 

I am working on  a use case where i need to pass the inputs of the vRO workflows as a email body within the User interaction element.

I am able to trigger the email to the respective teams but that does not contain any body. as shown below :-

 

Can i change the body of the auto generated mail that gets triggered by the User interaction element in vRO ?

 

 

Regards,

Rohan Bajaj

Add new vCD host on vRO

$
0
0

Hi,

I`m trying to add new vCD connection on my vRO using the vCD plugin.

vCD version 9.5

User: admin, configured as system administrator

Already tried different API versions

Im using all the right parameters and still get:

 

Workflow execution stack:

***

item: 'Add a VCD connection/item0', state: 'failed', business state: 'null', exception: 'https://My-VCD-URL/:443, Login failed with username 'admin' (Dynamic Script Module name : addHost#17)'

workflow: 'Add a VCD connection' (b00bb301-6212-432a-8cfd-5b21b42d49a4)

|  'attribute': name=errorCode type=string value=https://My-VCD-URL/:443, Login failed with username 'admin' (Dynamic Script Module name : addHost#17)

|  'input': name=host type=string value=https://My-VCD-URL

|  'input': name=port type=number value=443.0

|  'input': name=sessionMode type=vCloud:HostSessionMode value=dunes://service.dunes.ch/CustomSDKObject?id='SHARED_SESSION'&dunesName='vCloud:HostSessionMode'

|  'input': name=organization type=string value=System

|  'input': name=useSamlAuthentication type=boolean value=false

|  'input': name=username type=string value=admin

|  'input': name=password type=SecureString value=__NULL__

|  'input': name=samlTokenCallback type=Action value=null

|  'input': name=enabled type=boolean value=true

|  'input': name=maxConnections type=number value=600.0

|  'input': name=connectionTimeout type=number value=20000.0

|  'input': name=cacheTimeout type=number value=null

|  'input': name=apiVersion type=string value=29.0

|  'input': name=federated type=boolean value=false

|  'output': name=hostOut type=vCloud:Host value=null

*** End of execution stack.

Issue gathering information from Reservation Policy object

$
0
0

Hi There,

I'm trying to create a flow that gets a reservation policy name and a network label as inputs,

and the output should be the free storage space and memory from the relevant reservation.

 

For some reason, after i use

 

var respolobj = Server.findAllForType("vCACCAFE:ReservationPolicy");

 

It does load the reservations policies to the variable but trying to print each one's properties or executing void methods fails:

 

System.log(respolobj[0].getVersion() + respolobj[1].getId());

var respolid = respolobj.id;

System.log("id is " + respolid);

 

 

The errors in the logs are

[2019-05-27 16:51:46.961] [I] 1

[2019-05-27 16:51:46.965] [I] id isundefined

[2019-05-27 16:51:46.968] [E] Unable to create object : _vCACCAFEEntitiesFinder : Class ch.dunes.vso.sdk.DynamicWrapper can not access a member of class com.vmware.o11n.plugin.vcac.model.inventory.EntitiesFinder with modifiers "private"

[2019-05-27 16:51:46.996] [E] Workflow execution stack:

***

item: 'XXXXXXXX/item1', state: 'failed', business state: 'null', exception: 'Unable to create object : _vCACCAFEEntitiesFinder : Class ch.dunes.vso.sdk.DynamicWrapper can not access a member of class com.vmware.o11n.plugin.vcac.model.inventory.EntitiesFinder with modifiers "private"'

workflow: 'XXXXXXX (01784750-39a1-4867-8499-5d5e5a433a7d)

|  'attribute': name=vCACHost type=vCAC:VCACHost value=dunes://service.dunes.ch/CustomSDKObject?id='d8e6fb43-3f0b-4f71-b0d5-e2193f09ad86'&dunesName='vCAC:VCACHost'

|  'input': name=respol type=string value=RESPOL

|  'input': name=network type=string value=

|  'no outputs'

*** End of execution stack.

 

Is anyone has an advice/ workaround /  good alternative for getting this information?

 

 

Thank you in advance!

Viewing all 10285 articles
Browse latest View live


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