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

VRO 7.2 breaks WebClient 6.5 after some time (maybe after reboot )

$
0
0

Hi, we have been testing our plug-in using WebClient 6.5 together with vRO 7.20.  We have custom objects which have been working for a while. A part of the plugin sends a rest request to VRO to start a workflow.  This has been working for over a year now using earlier versions of vro. After calling the vRO Workflow "Register vCenter Orchestrator as a vCenter Server extension" we are able to see the vRO Server in the WebClient as expected. After some time, on more than one installation (for example after a reboot of the vCenterServer and the vRO Appliance) - suddenly the WebClient does not work - Every time one tries to retrive the list of a custom item (either one of ours or also the list of "Servers" within the vRO plugin itself) - we see an error, and have to reload the view (which does not change anything..) In the View we see the error: An ActionScript error has occurred: TypeError: Error #1009 Cannot access a property or a methof of a new object reference at com.vmware.ui.releatedItems::ReleatedItemsManager/processObjectRelationSetSpec() ..... Here is what we see in the virgo.log [2017-03-13T07:44:39.662Z] [ERROR] http-bio-9090-exec-15        70000343 100006 200003 com.vmware.vise.util.logging.LogServiceImpl                      [Flex|AppErrorHandler]Error #1009 TypeError: Error #1009 at com.vmware.ui.relateditems::RelatedItemsManager/processObjectRelationSetSpec() at com.vmware.ui.relateditems::RelatedItemsManager/set objectRelationSetSpecs() at PropertyInjectionJob/injectArrayTypeProperty() at PropertyInjectionJob/injectCollectionTypeProperty() at PropertyInjectionJob/injectObjectSet() at PropertyInjectionJob/onObjectsRetrieval() at com.vmware.aspectfw.extensibility::DeclarativeExtensibilityManager$/filterUsingSpecAndInvokeCallback() at com.vmware.aspectfw.extensibility::DeclarativeExtensibilityManager$/filterAndNotify() at com.vmware.aspectfw.extensibility::DeclarativeExtensibilityManager/onExtObjsCreated() at ExtensionObjCreationJob/onObjectCreation() at com.vmware.extensionfw::CallbackUtil$/callback() at com.vmware.extensionfw::ExtensionManager/onExtensionObjectsCreated() at com.vmware.extensionfw::CallbackUtil$/callback() at ObjectsCreator/onObjectCreated() at com.vmware.extensionfw::CallbackUtil$/callback() at com.vmware.extensionfw::ExtensionObjectFactory/onExtensionObjectParsed() at com.vmware.extensionfw::CallbackUtil$/callback() at com.vmware.extensionfw::ExtensionObjectParser/onObjectDeserialized() at com.vmware.flexutil::MxmlDeserializer/onThreadTerminated() at flash.events::EventDispatcher/dispatchEvent() at com.vmware.flexutil::PseudoThread/terminate() at com.vmware.flexutil::PseudoThread/onTimer() at com.vmware.flexutil::PseudoThread/start() at com.vmware.flexutil::MxmlDeserializer/xmlToObjectAsync() at com.vmware.extensionfw::ExtensionObjectParser/parse() at com.vmware.extensionfw::ExtensionObjectFactory/getExtensionObject() at ObjectsCreator/onResourceModulesLoaded() at com.vmware.extensionfw::MiscUtil$/loadResourceModules() at ObjectsCreator/loadResourceModules() at ObjectsCreator/createObjects() at com.vmware.extensionfw::ExtensionManager/onFilterExtensionsReturn() at com.vmware.extensionfw::Filterer/applyFilterResult() at com.vmware.extensionfw::Filterer/onFilterApplied() at com.vmware.vsphere.client.filters::UserSessionEnvPropertyFilter/apply() at com.vmware.extensionfw::Filterer/applyFilter() at com.vmware.extensionfw::Filterer/onFilterCreated() at com.vmware.extensionfw::CallbackUtil$/callback() at com.vmware.extensionfw::ExtensionManager/onObjectCreated() at com.vmware.extensionfw::CallbackUtil$/callback() at com.vmware.extensionfw::ExtensionObjectFactory/getObject() at com.vmware.extensionfw::ExtensionManager/createObjectInternal() at com.vmware.extensionfw::ExtensionManager/onResourceModulesLoaded() at com.vmware.extensionfw::MiscUtil$/loadResourceModules() at com.vmware.extensionfw::ExtensionManager/createObject() at com.vmware.extensionfw::Filterer/filter() at com.vmware.extensionfw::ExtensionManager/onFilterExtensionsReturn() at com.vmware.extensionfw::Filterer/applyFilterResult() at com.vmware.extensionfw::Filterer/onFilterApplied() at com.vmware.license.client.filters::VsanLicensingFilter/apply() at com.vmware.extensionfw::Filterer/applyFilter() at com.vmware.extensionfw::Filterer/onFilterCreated() at com.vmware.extensionfw::CallbackUtil$/callback() at com.vmware.extensionfw::ExtensionManager/onObjectCreated() at com.vmware.extensionfw::CallbackUtil$/callback() at com.vmware.extensionfw::ExtensionObjectFactory/onObjectParsed() at com.vmware.extensionfw::CallbackUtil$/callback() at com.vmware.extensionfw::ExtensionObjectParser/onObjectDeserialized() at com.vmware.flexutil::MxmlDeserializer/onThreadTerminated() at flash.events::EventDispatcher/dispatchEvent() at com.vmware.flexutil::PseudoThread/terminate() at com.vmware.flexutil::PseudoThread/onTimer() at flash.utils::Timer/tick() [2017-03-13T07:44:39.705Z] [INFO ] http-bio-9090-exec-14        70000344 100006 200003 org.springframework.flex.servlet.MessageBrokerHandlerAdapter      Channel endpoint ds-public-amf received request. Even if we uninstall our plug-in the error still happens.  If we deregister the vRO Plugin - the error disappears.  Can you help please? Cathy


How to pass a property value of type secureString to request a resource action?

$
0
0

Hi guys,

 

I am requesting a resource action by calling a workflow in vRO.

We call vRA library workflow: Library > vRealize Automation > Requests > Request a resource action

Input: operation (vCACCAFE:ConsumerResourceOperation), inputs (Poperties)

 

Our resource action takes several input fields, one of which is of type secureString (a password). We read all inputs from a JSON string and put them in a properties object to pass that in as input. After we call the above request worfklow, I can see in the logging that it breaks with a failure on casting from string to securestring.

 

Any help much appreciated.

 

Here is the logging:

 

[2017-03-16 08:32:12.825] [I] Accepted inputs:

[2017-03-16 08:32:12.828] [I]  - description

[2017-03-16 08:32:12.830] [I]  - provider-mosPassword

[2017-03-16 08:32:12.832] [I]  - provider-mosUsername

[2017-03-16 08:32:12.834] [I]  - provider-patchBundle

[2017-03-16 08:32:12.836] [I]  - provider-toAddress

[2017-03-16 08:32:12.838] [I]  - reasons

[2017-03-16 08:32:12.840] [I] Filling in resource action request...

[2017-03-16 08:32:12.843] [I] Sending resource action request...

[2017-03-16 08:32:13.793] [I] Resource action request '3216c5ac-0891-46fa-a7b8-6da780dd6c91' sent!

[2017-03-16 08:32:13.914] [I] Creating trigger for resource action request 'b9c706d0-13c2-4a6d-a0c9-5415343f255f/3216c5ac-0891-46fa-a7b8-6da780dd6c91'...

[2017-03-16 08:32:13.916] [I] Trigger created.

[2017-03-16 08:33:13.012] [I] Resource action request 'b9c706d0-13c2-4a6d-a0c9-5415343f255f/3216c5ac-0891-46fa-a7b8-6da780dd6c91' result 'PROVIDER_FAILED'.

[2017-03-16 08:33:13.047] [E] Request completion details: One or more payload literals match workflow input parameter(s) by name, but mismatch it/them by type. WorkflowRunState '4e56c753-6468-4b0f-adcc-fe64787af565', workflowId '17c0b9bf-4ba1-4f80-916c-888842022f8a'. Error 'com.vmware.vcac.platform.content.literals.StringLiteral cannot be cast to com.vmware.vcac.platform.content.literals.SecureStringLiteral'. Cause 'Cannot execute workflowId '17c0b9bf-4ba1-4f80-916c-888842022f8a' for Workflow run request '4e56c753-6468-4b0f-adcc-fe64787af565'. Error details: com.vmware.vcac.platform.content.literals.StringLiteral cannot be cast to com.vmware.vcac.platform.content.literals.SecureStringLiteral'.

[2017-03-16 08:33:13.090] [I] Error in Resource Action test

 

Thanks,

Ed

Convert VC:VM to vCloud:VM

$
0
0

Hi,

 

To get the vCloud object from the vCenter one my idea was to use the VC:virtualmachine.name output and then get the vCloud ID within the () and use this with queryservices to find the vCloud object.

Problem is that VC:virtualmachine.name strips away the () so only the plain VM name is returned.

 

Anyone know if it is possible to change the behavior of this, or another way to get the VC object full name?

 

Thanks!

vRealize Automatio-Reservation API Unathorized

$
0
0

Have been working on some vRA APIs for Reservation creation. I am trying to see all business groups and compute resources using these urls

 

https://$host/identity/api/tenants/qe/subtenants

https://$host/reservation-service/api/data-service/schema/Infrastructure.Reservation.Virtual.vSphere/default/computeResource/values

 

Keep running into issues with output

 

{

    "errors": [

        {

            "code": 10108,

            "message": "Invalid data access API use.",

            "systemMessage": "HTTP/1.1 401 Unauthorized : ",

            "moreInfoUrl": null

        }

    ]

}

 

I have all Tenant Admin, Infra Admin, and Fabric Admin access. Anyone using Reservation API ?

Dynamically-created form values

$
0
0

This may not be possible at all, but thought I'd ask.

 

I'm creating a workflow that will allow the user to change the memory and/or CPU count for a VM.  The VM can reside on one of two vCenters under predefined folders.  The first thing the user does is selects which vCenter the VM resides.  Based on this selection, the form calls an action that retrieves all of the VMs on the vCenter from the predefined folder on that vCenter.  It then populates a drop-down on the form with a list of the VMs.  Next thing the user will do is select the new memory and/or CPU count for the VM.  What I want to do is make the default values for the memory and CPU count dynamic based on the VM that is currently selected in the drop-down list.  However, this value comes from the action call earlier - IOW, the values are dynamically updated themselves.  Is there a way this can be achieved?

reload fstab on reboot

$
0
0

hello,

in my orchestrator 5.3 I have added 2 cifs mounts to write and read from external files from workflows

 

every thing works find except that after a reboot of the VCO appliance I need to manualy reload the fstab by mount -a

is it possible to add it on a startup script, I see lots of scripts on the init.d folder and do not know where to add this line

 

a second issue :  the reboot deactivate the ssh activation I have to connect on the https://vco/5480 configuration page to deactivate and reactivate it again to allow to connect from ssh

 

thanks for answers

Canceled and failed workflow report

$
0
0

Hi all,

 

Does anyone know a way to get a report from vRO about canceled and failed workflows? I have multiple workflows that run for multiple days (they sleep for given day in script) and recently I have a host issue with where the vRO sits on. All my running scripts were canceled because of that. So I would like to know which scripts were canceled or failed daily. Please let me know if you have any solution or suggestion.

 

Thanks,

Haluk

VMware vRO vs Cisco UCS Director

$
0
0

Is there any comparison done between vRO and other orchestrators or UCS director?

 

With UCS director, there are out of box easy integration with Cisco ACI/APIC, and very good plugins for the multiple hardware vendors.

 

Thanks

Fred


Trigger workflow on vm delete?

$
0
0

Hi, I'm new to Orchestrator, so I have no idea if I'm looking in the right place for what I want to do. I have certain tasks that I'd like to have happen automatically (mostly related to computer objects in AD) when VMs are created or deleted in vCenter. Is there a way to have those events trigger workflows in Orchestrator? Or should I be looking somewhere else. We're a pretty small site, and don't have any of the cloud products. Thanks in advance.

 

Running ESXi 5.5u3, vCenter 5.5.0, and vCO 5.5.3 co-installed with vCenter.

 

-Brent

VC:VirtualMachine Search

$
0
0

Hi,

 

i have a workflow that has input of VC:VirtualMchine. On the presentation tab I configure this input with the properties below.

 

Specify a root object to be shown in the chooser. Root Object is provided from a parameter or attribute - I create an attribute with VC:ResourcePool type and select the resourcepool I want. Than I link the attribute to this property.

Select Value as - Tree (this works when I try to select an input for workflow it opens up a window with only the resource pool I defined in the first property.

 

If a change the Select value as property to List and search a VM, it searches in whole vCenter not just in the resource pool.

 

How can I restrict the VM search for just in that Resourcepool or just in specify cluster?

 

Thanks,

Haluk

Technical Preview of Orchestrator plug-in for vSphere Web Client

$
0
0

This technical preview is targeted to existing vRealize Orchestrator 7.2 customers experiencing compatibility issues with vSphere Web Client 6.5.

 

Version 7.3.0.5221408

  • Fixed compatibility issues with Web Client 6.5
  • Fixed an issue with Orchestrator context menus in Web Client UI if the corresponding context workflow contains '&' characters in its name

 

 

Update procedure:

 

In Orchestrator appliance:

  1. Stop Orchestrator server service, either via Orchestrator Control Center UI > Manage> Startup Options, or by executing service vco-server stop in a shell terminal
    1. Replace the file /usr/lib/vco/downloads/vco-plugin.zip with the attached technical preview build (make a backup copy of the old file to a safe location)
    2. Update file's ownership/permission attributes to match the original ones
    3. Start Orchestrator server service, either via Orchestrator Control Center UI > Manage> Startup Options, or by executing service vco-server start in a shell terminal

     

    In Web Client appliance:

    1. Stop Web Client service by executing service-control --stop vsphere-client in a shell terminal
    2. Check the content of folder /etc/vmware/vsphere-client/vc-packages/vsphere-client-serenity/ , and delete the sub-folder named com.vmware.vco-<someversion>
    3. Start Web Client service by executing service-control --start vsphere-client in a shell terminal
    4. Launch a browser and login to Web Client UI. It should automatically download and deploy the updated plug-in build.

    vRealize Orchestrator HTTP-REST Plugin and cookie management

    $
    0
    0

    I have an REST host which after a successful login sets a cookie to expire when "browser session closes".

    Based on my observation so far, this means when I restart the Orchestrator service. I need to get rid of that cookie earlier, on demand.

     

    Are there cookie management operations available for HTTP-REST plugin? Something like restHost.deleteAllCookies() or restHost.deleteCookie(id) - I haven't been able to find anything in the documentation.

     

    Are cookies stored as plaint text files somewhere - something I could simply delete?

     

    How else could I delete just this one specific cookie? Or send a request without cookie header?

    request = restHost.createRequest(...)

    request.setHeader('Cookie', null)

    does not work...

     

    Any other ideas?

     

    Versions:

    • vRO 7.0.1.3533702
    • HTTP-REST plugin 2.0.1

    Input from vSphere Web

    $
    0
    0

    Hi,

     

    I have a workflow that has input of VC:VirtualMachine type. When I present this workflow to virtual machines in websphere and try to run from VM, it doesn't select the VM name automatically to pass on the workflow. Is there anything I need to add to input?

     

    Running the workflow; right click on VM name > All vRealize Orchestrator Actions > select the workflow.

     

    I have vCenter v6 and vRO v7.1

     

    Thank you,

    Haluk

    xpath filtering VcPlugin.getAllDatacenters(); VcPlugin.getAllClusterComputeResources()

    $
    0
    0

    Hello all,

     

    I have a workflow that is creating Datacenters and Clusters in a vCenter.

     

    It takes inputs through csv file and I use the a loop through the functions VcPlugin.allSdkConnections; VcPlugin.getAllDatacenters(); VcPlugin.getAllClusterComputeResources() to see if the vCenter, Datacenter or Cluster exists and creates it if it doesn't. (except for vCenter obviously)

     

    This is all working fine - however now I have an additional requirement in the form of there will be multiple vCenters connected to vRO - and its possible that the Datacenter/Cluster exists but not in the right vCenter. I know I can use xpath to filter as per documentation below but am struggling to get it to work and don't fully get the examples the documentation includes.

     

    VMware vRealize Orchestrator 7.2 Documentation Center

     

    This is my basic code

     

    //Datacenter Section

    var value1 = "SomeDatacenter"

    var allDcs = VcPlugin.getAllDatacenters();

    System.log ("Datacenter Requested = " + value1);

    for (var i in allDcs) { 

    //Check to see if the Datacenter Exists

      if (allDcs[i].name.match(new RegExp(value1, "i"))) { 

    //Datacenter exists set the DatacenterExists attribute to true

    DatacenterExists = "True";

      }

    //Create Datacenter here

    }

     

     

    //Cluster Section

    var value2 = "SomeCluster"

    var allClus = VcPlugin.getAllClusterComputeResources();

    System.log ("Cluster Requested = " + value2);

    for (var i in allClus) { 

    //Check to see if the Cluster Exists

      if (allClus[i].name.match(new RegExp(value2, "i"))) { 

    //Cluster exists set the ClusterExists attribute to true

    ClusterExists = "True";

      }

    //Create Cluster here

    }

     

    For Step 1 The filter would ensure that the returned Datacenter from VcPlugin.getAllDatacenters(); would be from the right vCenter,

    For Step 2 The filter would ensure that the returned Clusters from VcPlugin.getAllClusterComputeResources(); would be from the right Datacenter and vCenter,

    Email of Logged in User

    $
    0
    0

    Hi,

    I'm trying to get the email address of logged in user in vRO. From the community search I found the discusstion below.

    Getting AD User attributes using plugin

    I try to run the script but I got an error message. I try to modify it to see were I get stuck. I just run the script below with output name  actionResult and type Array/AD:User. Script did not failed but value was empty, so it tells me that this could not find any user. What would be the reason for this?

     

    id = Server.getCurrentLdapUser().displayName;

    actionResult = ActiveDirectory.searchExactMatch("User", id);

     

    If I only run "id = Server.getCurrentLdapUser().displayName;" returns correct value. I also validate that I can get an attribute of an AD user if I select the AD user as an input.

     

    Thanks,

    Haluk


    after update to 7.2, findAllForType not working with filter

    $
    0
    0

    I just updated from 6.0.4 to 7.2 (targeting a venter 6.0 server). I also updated the vro plugin with the version found in the documents section here.

     

    Basically when I run the code below it returns no results whereas before it found items. If I remove the xpath stuff it find a bunch of stuff.

     

    var vDSList = Server.findAllForType("VC:DistributedVirtualPortgroup","xpath:name[starts-with(.,'"+networkToFindVds+"')]");

     

    My hack wrong around (short of reverting) is to just pull null for the second parameter and then use a for loop to try and find what I need.

     

    Is this a known issue?

    Creating vRO 7.0.1 workflow for template patch maintenance and replicate the template to other vCenter servers

    $
    0
    0

    Hi

     

    Could anyone please assist on below process

     

    Currently we are in the process of creating vRO workflow for patch template maintenance and below are the steps configured so far.

     

    Stage 1.

    1. Locate the cloning template & custom specification file for template from the vCenter server

    2. Place the VM on the vCenter server cluster group

    3. Clone the VM and configured predefined hostname/IP, if its windows server joined to domain

    4. Customized and power up the VM

    5. Wait for VMware tools to be installed.

    6. Apply patches if the server is windows.

     

    The below process are not performed yet, please advise on the below steps

    Stage 2.

    1. Rename the original template

    2. Convert VM to template

    3. Convert the new VM to template with original name

    4. Replicate the template to other vCenter servers and datacentres

     

    I am stucked on the  "Replicate the template to other vCenter servers and datacentres" part

     

    Kindly assist and advise on this.

     

    Can some one help

     

    Thanks in advance

     

    Regards,

    Vick

    vRO workflow to create Windows VM from template

    $
    0
    0

    Hey

     

    We are looking for some assistance with setting up a work flow to create Windows VM, has anyone have workflows/Packages or walk throughs to share? Ultimately we are looking to

     

    Stage 1.

    1. Build VM from a template in vCenter with a user specified name

    2. Place the VM on the vCenter server cluster group

    3. Configure predefined windows hostname and IP

     

     

    Stage 2

    4. Wait for VMware tools to be installed.

    5. Join server to the domain

    6. Apply windows patches if the server is windows.

     

    Any help most welcome as i am a vRO newby

     

    regards

    Mark

    Call Event Broker Action from vRO

    $
    0
    0

    Hello,

    Is there a way to call a event broker action from vRO (For example I want to call the disposal machine event from vRO (As an outside source calls the vRO to make that action call))

    GuestScript Manager throwing error

    $
    0
    0

    Hi All,

     

    GuestScript Manager is throwing "Unknown error. The error handler passed the following output: A general system error occurred: vix error codes = (3016, 0).". It is executing a powershell script. It works in one environment. Not sure why it has issues in this environment.

     

    Any help appreciated.

    Viewing all 10285 articles
    Browse latest View live