Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all 6251 articles
Browse latest View live

current business group

$
0
0

Hi,

Can you please help me to find query the business group that current (or specific user) is belong with VRO?

I was trying to do it on that way but getting null:

 

//vcacHost and userName are input parameter

var model = "ManagementModelEntities.svc";

var entitySetName = "Users";

var property = new Properties();

property.put("UserName",userName);

var entities = vCACEntityManager.readModelEntitiesByCustomFilter(vcacHost.id, model, entitySetName, property, null);

//System.log("User ent: " + entities);

var BG = entities[0].getLink(vcacHost, "ProvisioningGroup");

 

 

System.log("Bg New: " + BG);

Thanks,

Anat


Set storage policy

$
0
0

Hi, 

is it possible to set a storage policy on a VM / disks via vRO?

I havent been able to located any workflow, actions or documenation about this..

Can anyone give a hint?

Thanks K

vro 8.0 user preferences

$
0
0

in 7.x java client haa a user preferences field "Finder Maximum size" default to 20

how do we change this in 8.0 web client -- how do i make a list show more than 20 values for a Finder search ?

Request was denied due to exceeded resource size limit. The maximum number of resources allowed is 100.

$
0
0

We are using vRA/vRO 7.6 and we get to see the following error in logs from webserver (Source: Repository) whenever the vRA deployment happens

 

Exception has been thrown by the target of an invocation.
Inner exception: Request was denied due to exceeded resource size limit. The maximum number of resources allowed is 100.

 

Any suggestion/ideas to solve this issue.

Change Tomcat timezone - vRealize Orchestrator 8.

$
0
0

Hello!

I'm from Brazil and we need to configure Tomcat/Java from the appliance to use GMT -3. We already did it in the previous edition of vRealize Orchestrator editing the file /usr/lib/vco/app-server/bin/setenv.sh and putting the lineexport JAVA_OPTS="-Duser.timezone=GMT-3". I'd tried making the change in the running container but when the appliance is restarted the configuration is deleted and the Java time back to the previous configuration.

 

How, change this configuration to be persistent in the appliance version 8?

 

Thanks in advance.

 

Diego Bejar

vRO Powershell Host Plugin Error

$
0
0

Hello Community,

 

i had a working powerhsell host connection from my vRO 7.3.1 to the W2K12R2 server where i have configured WinRM. Now i wanted to do some tests and saw in the Inventory of the vRO that the Powershell Host SnapIns (Microsoft.Powershell.Core) has a problem: Error in plugin.

  • ch.dunes.util.DunesServerException: Unable to execute 'fetchRelation' for type : PowerShellSnapIn : com.vmware.o11n.plugin.powershell.model.PowerShellException: Unable to resolve Cmdlet definitions. connect timed out

 

The funny thing is that it was working before - so that i can say the WinRM Config should be ok?! Also there were no changes on the vRO. Any idea how i should start to troubleshoot?

 

My first steps:

1. curl from vro (vm appliance) to powershell host (w2k12r2) on port 5986 - result: accepted

2. Checking the Firewall on Powershell Host - result: WinRM HTTPS/HTTP ruel is created

3. Checking winrm configs and certificate - result: looks good

4. On vRO: Removed the Powershell Host and executed the workflow "add a powershell host" - result: succesfully added

5. In vRO: checked the Powershell host plugin in the inventory - result: still the same issue Error in plugin"

6. in vRO: Executed update a powershell host workflow - result: succesfully but still same issue error in plugin

7. Some minutes later tried again to execute the wf "update a powershell host": result: failed,

[2018-07-11 08:50:38.316] [E] Workflow execution stack:

***

item: 'Update a PowerShell host/item12', state: 'failed', business state: 'null', exception: 'connect timed out (Dynamic Script Module name : updatePowerShellHost#23)'

workflow: 'Update a PowerShell host' (EF8180808080808080808080808080804980808001270557368849c62c352aa82)

....

 

It looks really weired sometimes adding or updating the powershell host works and sometimes it´s failing with the error postet in point 7.

Firewall cannot be the problem, also the host firewall on the powershell host is not activated. and the winrm has been configured like described in the vmware or technet guides.

 

Any idea how to fix that?

vRO 8 - replace self-signed certificate

$
0
0

Hello guys,

 

Can someone explain how to replace vro 8 self-signed certificate?

 

thank you.

Number of users in a drop down

$
0
0

I have a day2 that allows users to change the ownership of a vm to someone else in their business group.  I display the list of users in the business group by calling an action in the presentation layer.  For the most part this works perfectly fine however I have 148 users in a particular business group..  I moved the action over to a workflow to debug and I can see that I am getting a list of all the users but I can't get them all to show up in the drop down.  Anyone have any experience with something like this?


Setting Virtualization Based Security to enabled

$
0
0

Hi,

 

I'd like to enable VBS (Virtualization Based Security) on a VM, but the latest API doesn't yet support this yet (I am using the vCenter Plugin 6.5.0-15013492).

 

In PowerCli it would be something like this:

$spec.Flags = New-Object VMware.Vim.VirtualMachineFlagInfo

$spec.Flags.VbsEnabled = $true

 

Will there be a new vCenter Plugin that supports setting VBS? And if so, any idea when this will be available? :-)

 

Thanks

Search for workflows changed in the last few days or weeks

$
0
0

Dear Community,

 

Version of Orchestrator I have is 7.6, I need to build a list of workflows that have been changed in the last few days or weeks.

 

Is there a view for that or do I have to write a workflow?  If I have to write a workflow can you please help me to start?

 

Thanks in advance,

 

Frederic

Upgrading from 7.1 to 7.4 Broke some things.

$
0
0

I recently upgraded 7.1 to 7.4 and my main job for provisioning stopped working. I was hoping someone can point me in the right direction. 

 

Here is the error

TypeError: Cannot read property "name" from null (Workflow:Deploy VM / Clone Param Setup (item9)#31)

 

Here is Item 9 it's just putting out syslog on line 31

So here is that block

// Get the port group to attach to based on the ID in the IP Pool
var dvPortGroupId = MatchingIPPools[0].networkAssociation[0].network.id;
ATTR_NewVM_PortGroup = System.getModule("org.domain.www").getDvPortgroupById(dvPortGroupId,ATTR_NewVM_vCenter);
 

 

 
System.log("Found matching port group '" + ATTR_NewVM_PortGroup.name + "' in vCenter '" + ATTR_NewVM_vCenter + "'");

 

 

I had to reindex the logs to get log output.  Here are the errors from the logs. 

```

[2019-11-22 18:28:37.144] [E] Could not find a portgroup in 'DynamicWrapper (Instance) : [VcSdkConnection]-[class com.vmware.o11n.plugin.vsphere_gen.SdkConnection_Wrapper] -- VALUE : vcenter.domain.org' for id 'dvportgroup-288163'

[2019-11-22 18:28:37.146] [E] Error in (Workflow:Deploy CUIT VM / Clone Param Setup (item9)#31) TypeError: Cannot read property "name" from null

 

I've attached item 9 in its entierty below

 

I really appreciate any help 

 

Thank you

//
// ### Determine IP pool, network parameters
//
System.log("Finding a vCenter IP pool to match to the IP address '" + ATTR_NewVM_IPAddress + "'...");
var MatchingIPPools = System.getModule("edu.columbia.cuit").getIpPoolByIp(ATTR_NewVM_IPAddress);
 
// There should be exactly one IP Pool returned
// It should have exactly one port group associated with it
if(MatchingIPPools.length === 0) {
throw "No IP pools corresponding to " + ATTR_NewVM_IPAddress + " were found; cannot deploy.";
} else if(MatchingIPPools.length > 1) {
throw "More than one IP pool was found that corresponds to " + ATTR_NewVM_IPAddress + "; cannot deploy.";
} else if(MatchingIPPools[0].networkAssociation.length === 0) {
throw "The identified IP pool '" + MatchingIPPools[0].name + "' does not have any port groups associated with it; cannot deploy.";
} else if(MatchingIPPools[0].networkAssociation.length > 1) {
throw "The identified IP pool '" + MatchingIPPools[0].name + "' has more than one port group associated with it; cannot deploy.";
}
 
// Set up the IP parameters based on this pool
ATTR_NewVM_Net_Gateway = [ MatchingIPPools[0].ipv4Config.gateway ];
System.log("Gateway array set to '" + JSON.stringify(ATTR_NewVM_Net_Gateway) + "'");
ATTR_NewVM_Net_SubnetMask = MatchingIPPools[0].ipv4Config.netmask;
System.log("Subnet mask set to '" + ATTR_NewVM_Net_SubnetMask + "'");
 
// Which vCenter is this going into?
ATTR_NewVM_vCenter = MatchingIPPools[0].networkAssociation[0].network.sdkConnection;
 
// Get the port group to attach to based on the ID in the IP Pool
var dvPortGroupId = MatchingIPPools[0].networkAssociation[0].network.id;
ATTR_NewVM_PortGroup = System.getModule("edu.columbia.cuit").getDvPortgroupById(dvPortGroupId,ATTR_NewVM_vCenter);
 
System.log("Found matching port group '" + ATTR_NewVM_PortGroup.name + "' in vCenter '" + ATTR_NewVM_vCenter + "'");
 
 
//
// ### Determine template
//
ATTR_NewVM_SourceTemplate = System.getModule("edu.columbia.cuit").getMostCurrentTemplateByOs(INPUT_GuestOS,ATTR_NewVM_vCenter);
 
// The template shouldn't be null
if(ATTR_NewVM_SourceTemplate === null) {
throw "A valid template to deploy from could not be found for '" + INPUT_GuestOS + "' in '" + ATTR_NewVM_vCenter + "'";
}
 
 
//
// ### Determine the Cluster, VM folder, and Resource Pool to deploy into
//
 
 
var ipPool = MatchingIPPools[0];
var clusterNameSearch = 'DevTest';
System.log("Searching for a cluster to deploy into with '" + clusterNameSearch + "' in its name...");
var cr = ATTR_NewVM_vCenter.getAllClusterComputeResources(['name'],'xpath:contains(name, "' + clusterNameSearch + '")');
if(cr.length > 1) {
throw "More than one '" + clusterNameSearch + "' cluster found in '" + ATTR_NewVM_vCenter + "'";
} else if(cr.length === 0) {
throw "No '" + clusterNameSearch + "' cluster found in '" + ATTR_NewVM_vCenter + "'";
} else {
ATTR_NewVM_ResourcePool = cr[0].resourcePool;
}
System.log("A target cluster was found: " + cr[0].name);
 
var vmFolderId = 'group-v3';
System.log("Searching for the root VM folder...");
var vmf = ATTR_NewVM_vCenter.getAllVmFolders(['name'],'xpath:id="' + vmFolderId + '"');
if(vmf.length > 1) {
throw "More than one '" + vmFolderId + "' VM folder found";
} else if(vmf.length === 0) {
throw "No '" + vmFolderId + "' folder found";
} else {
var ATTR_NewVM_Folder = vmf[0];
}
System.log("A target VM folder was found: " + ATTR_NewVM_Folder.name);
 
var datastoreNameSearch = '_vmdk_staging_1';
System.log("Searching for a datastore to deploy into with '" + datastoreNameSearch + "' in its name...");
var ds = ATTR_NewVM_vCenter.getAllDatastores(['name'],'xpath:contains(name,"' + datastoreNameSearch + '")');
if(ds.length > 1) {
throw "More than one '" + datastoreNameSearch + "' datastore found";
} else if(ds.length === 0) {
throw "No '" + datastoreNameSearch + "' datastore found";
} else {
ATTR_NewVM_Datastore = ds[0];
}
System.log("A target datastore was found: " + ATTR_NewVM_Datastore.name);

Run command in Esxi Host

$
0
0

Hello

 

how can i run command for example "ls -l" on Esxi Hosts via VRO

 

what is the best way to query the Firmware and Drivers of HBA and Network cards.

 

thank you

 

Amir

How to create folder in datastore using datastoreNamespaceManager

$
0
0

I want to create a folder at the root of my datastore and to ensure I properly handle a vsan datastore (I don't have one to test against at the moment), this page https://www.virtuallyghetto.com/2014/03/exploring-vsan-apis-part-7-vsan-datastore-folder-management.html  says I should be using datastoreNamespaceManager but I can't figure out how to use it in vRO.

 

I'm doing this find my datastore

 

var mo;
for each (ds in host.datastore){     if (ds.name == "mydatastore")           mo = ds.moref;
}

 

and then I think I need to do something like

 

sc = something.retrieveServiceContent();
sc.datastoreNamespaceManager.createDirectory(mo, "myfolder" ,null);

 

but I can't figure out what "something" should be to access the function.

 

Anyone have any ideas?

Storage path validation

$
0
0

Within Orchestrator is there a way to develop a method to check the storage paths for the hosts.  Basically we are trying to create a workflow to go out and verify the storage paths before and after SAN maintenance and report back per host.

Adding vCenter Server Instance: error java.lang.NullPointerException

$
0
0

Hi all,

 

I am encountering exception error: java.lang.NullPointerException while adding vCenter Server Instance (via workflow).

 

Anyone have any tips of how to solve this problem ?

 


Configuration:

vRealize Orchestrator 6.0.3 (appliance)

vCenter 5.5.0

 

Thanks in advance,

e


What's the Preferred way of provisioning VMs in vRA?

$
0
0

Hi All,

 

What's the preferred way of provisioning VMs in vRA?

 

1. Provision VM from vRA and continue with the customization in vRO?

 

2. Provision VM from vRO and use vRA as the portal?

 

What are the pros and cons if we use option 1? how about option 2?

 

Regards

E

configuration attribute replacing contents of configuration attribute

$
0
0

Hi,

 

I've got an attribute which is an array/composite type (2 strings)

 

I want to remove each value from the composite array and replace with new values. When i remove the values with x.setAttributeWithKey("QMapping",null); the value gets unset like above and i can not push into it again with .setAttributeWithKey("QMapping",attributeValues); as it gives me an error. Is there a way to set the value to null in code like you do when you click on the not set and then click accept, it then initialises the array it seems and lets me add values to it.

 

Thanks

How to use Instant Clone in VRO ?

$
0
0

Hello,

 

Do anyone know how to use "Instant Clone" mechanism to rapidly deploy vm in VRO ?

I only find "Linked Clone" workflow in VRO.

 

Thank you.

vRO 8.0 Error

$
0
0

Hi All,

 

When i run vRO 8.0 web client i see below error, i have done "Configure Authentication" successfully.

 

[21][proxyAuthPassword.required][com.vmware.o11n.forms/evalOGNL] 403 OK

 

THanks in advance

 

Pawan

 

 

How delete a Composite Type in vRO 7.6, new client

$
0
0

Hi,

 

I need delete a composite type in the HMTL5 client in vRO 7.6.  The solution for the legacy client (java) don't fix in the new client : I remove all reference in workflow, reboot vRA-vRO appliance, and the composite type are still available.

 

Thanks

Viewing all 6251 articles
Browse latest View live