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

Show off your workflows

$
0
0

You have a complex workflow or one that has saved you a lot of time?

 

The two workflows that I have created and that I am happiest with are my VNic upgrade and my Hardware Version upgrade workflows.

 

The first one I published as a document here. It is pretty short and sweet and it has saved our server operations team a lot of time by them not having to change the mac when we upgrade the nics to vmxnet3.

Upgrade vNIC Hardware Workflow.PNG

 

The second one is more involved and actually includes the vnic workflow as a part of it.

I wrote this one when we were faced with upgrading the virtual hardware to version 7 across 100s of virtual machines. Due to the way our company is set up my group does not have access to the guest operating system, just the vmware layer so that limits what I can do.

 

The workflow starts with one of the vmware admins selecting a virtual machine and entering in the email address of the owner of the server.

The workflow sends email messages throughout the workflow, instructing the server owner of what their next step is.

For example, when it is waiting for the VM to be powered off it sends an email to the owner telling them to shut down the VM whenever it is convenient for them.

 

Basic steps:

  1. Check if the tools show "Up to date"
  2. Wait until the VM is powered off
  3. Take a snapshot
  4. Upgrade the virtual hardware to version 7
  5. Upgrade the nics to VMXnet 3
  6. Power the VM back on

 

Virtual Hardware Workflow.png

 

Now it is your turn. Got any cool workflows you want to show off?


VCo workflow to clone a centos vm. Network interface issue

$
0
0

Hi,

 

I am using vco workflows to clone a vm from vcenter. The vm is running centos 6.0 . When the cloning is complete. I see the network interfaces eth0 and eth1 set correctly with the static ip address and gateway information i provided. I deleted the 70-persistent-net.rules on the base vm form which i clone . So i get the correct interface names. But when the vm powers on and i run the ifconfig eth0 i dont see the IP address for that interface it has all the other details.  same for the other interface also.

 

But if i do a system network restart without modifying any of the networking and then do a ifconfig i see the ip address along with the previous information.   I am not sure why the network service restart is required for it to recognize the ip address.

 

Any ideas what i might be doing wrong. or to prevent that manual step of running the network service restart command on vm creation.

 

Thanks,

Kiran

How to create a new configuration element using workflow.

$
0
0

While I'm able to create the attributes and values of an exiting or manually created configuration element, I'm wondering how I can create the configuration element itself in the first place using script /workflow.  For example, I want to create the highlighted config element as in the picture using a workflow. 

VCO and VCD 5.5 Modify "Instantiate vAPP workflow" with custom virtual machine attributes

$
0
0

So I have been working on a custom workflow that creates new Instantiations of various vApp templates to dump into our vCloud Director 5.5 env. Overall this a basic clone of of the "Instantiate a vApp template" that comes baked into VCO/VCD plugin.

I am doing a few custom actions at the end (via scriptable task) like changing vApp Owner, change cpu size, memory size, vm name , and computer/guest os name ( all derived from user input). This is all performed after the vapp/vm has been created and I simply power off the vm before making any changes.

All seems to be working fine, except I seem to be running into a bug or an issue where the "computer/guestOS name" is updated within the VCD GUI itself but guest customization failed to update the hostname inside the guest operating system (both Linux and windows based)

A simple power off and “Power On and Force Re-Customization” seems to fix the issue. (I suspect guest customization happens before I power off the deployed vm, and even after my changes are made it is not enough to re-trigger customization when I power the vm back on.)

 

I started out this search on a more simple effort to see if I can find a method in VCO to just simply replicate a “Power On and Force Re-Customization” and just throw it the end of my post deploy scriptable task. However, I quickly found out that such functionality is extremely hard to find and or does not exist for an existing deployed virtual machine. (PLEASE CORRECT ME IF I AM WRONG!! )

 

After I gave up on trying to find the elusive re-customization code, I stumbled upon the VCHS/vCloud API guides which reference what I am trying to do, but doing it up front before the vapp is instantiated. These methods reference creating and or modifying sourcedVMInstantiationParams which in theory could modify everything I need and feed into the process before its fired up in the  “createInstantiateVAppTemplateParams” .

 

I am fiddling around with code to try and feed this process but haven’t had success:

//Source VM HW Params

var coresPerSocketArg =1;

var memorySizeArg = memInputGb;

var numberOfCpusArg = cpuInput;

 

System.log("Right b4 VclInstantiateVmHardwareCustomizationParams");

//Port them over ??

var hwParams = new VclInstantiateVmHardwareCustomizationParams();

hwParams.coresPerSocket = coresPerSocketArg;

hwParams.memorySize = memorySizeArg;

hwParams.numberOfCpus = numberOfCpusArg;

 

var sourcedVMParams = new VclSourcedVmInstantiationParams() ;

sourcedVMParams.hardwareCustomization =hwParams;

 

“sourcedVMParams” is then fed into “createInstantiateVAppTemplateParams” as the variable mapped to the local parameter of  “sourcedVmInstantiationParamsArg”. I have tried many different iterations of this with no success.

 

This is what I suppose I am trying to recreate within VCO: http://pubs.vmware.com/vcd-55/index.jsp#com.vmware.vcloud.api.doc_55/GUID-DE3617A1-267E-4CD3-914B-834EB57FA8CD.html

But all the references are referring to user the REST API instead of using the vco javascripty language instead. I am very close to just go this route but figure I would post this to see if anyone has any ideas and experience to throw my way.

Any ways – much appreciation for any comments , responses etc.

Running a workflow fail due to SSO issue

$
0
0

I'm experiencing issues executing a workflow in Orchestrator due to Single Sign On issues. When I try to run the workflow from Orchestrator client I get "SSO server error". When I try to run it via the vSphere web client I get "401 A delegate token is required. Use VCOAuthorization header to pass delegate token for vCO".

 

I've found numerous posts about this issue, initially I had issues getting Orchestrator working from the web client until I removed the local OS from Default Domains.

 

When I look in imsTrace on the SSO server I can see the following errors:

 

2014-07-02 20:53:48,750, [castle-exec-56], (IMSUtilImpl.java:451), trace.com.rsa.riat.utils.IMSUtil, DEBUG, vcenter,,,,Group membership count for user: 11

2014-07-02 20:53:48,751, [castle-exec-56], (IMSUtilImpl.java:115), trace.com.rsa.riat.utils.IMSUtil, DEBUG, vcenter,,,,Fetching nameInfo

2014-07-02 20:53:48,751, [castle-exec-56], (BaseSTSImpl.java:207), trace.com.rsa.riat.ws.security.trust.impl.BaseSTSImpl, DEBUG, vcenter,,,,Authentication is complete

2014-07-02 20:53:48,752, [castle-exec-56], (BaseSTSImpl.java:208), trace.com.rsa.riat.ws.security.trust.impl.BaseSTSImpl, DEBUG, vcenter,,,,Calling post authentication prcoessing

2014-07-02 20:53:48,752, [castle-exec-56], (BaseSTSImpl.java:270), trace.com.rsa.riat.ws.security.trust.impl.BaseSTSImpl, DEBUG, vcenter,,,,Creating token context

2014-07-02 20:53:48,752, [castle-exec-56], (WSTrustContractFactory.java:52), trace.com.rsa.riat.ws.security.trust.impl.WSTrustContractFactory, DEBUG, vcenter,,,,Looking up token generator for tokentype:urn:oasis:names:tc:SAML:2.0:assertion

2014-07-02 20:53:48,752, [castle-exec-56], (WSTrustContractFactory.java:56), trace.com.rsa.riat.ws.security.trust.impl.WSTrustContractFactory, DEBUG, vcenter,,,,Token generator for tokentype urn:oasis:names:tc:SAML:2.0:assertion = com.rsa.riat.ws.security.saml2.SAML20TokenContractImpl

2014-07-02 20:53:48,753, [castle-exec-56], (BaseSTSImpl.java:279), trace.com.rsa.riat.ws.security.trust.impl.BaseSTSImpl, DEBUG, vcenter,,,,TokenGenerator: class com.rsa.riat.ws.security.saml2.SAML20TokenContractImpl

2014-07-02 20:53:48,753, [castle-exec-56], (BaseSTSImpl.java:282), trace.com.rsa.riat.ws.security.trust.impl.BaseSTSImpl, DEBUG, vcenter,,,,invoking token generator

2014-07-02 20:53:48,753, [castle-exec-56], (IMSUtilImpl.java:354), trace.com.rsa.riat.utils.IMSUtil, DEBUG, vcenter,,,,Looking up user: vCO-146e...

2014-07-02 20:53:48,757, [castle-exec-56], (DirContextImpl.java:1551), trace.com.rsa.ims.connectionpool.jca.common.DirContextImpl, DEBUG, vcenter,,,,search( {OU=OU,DC=ad,DC=gsoa,DC=ddau}, {(&(&(objectClass=User)(objectcategory=person))(objectClass=user)(samaccountname=vCO-146efc...))}, {SearchControls( SUBTREE_SCOPE, 0, 120000, [ObjectGUID, comment, description, givenname, initials, mail, msds-user-account-control-computed, samaccountname, sn, unicodepwd, userAccountControl], false, false )} )

2014-07-02 20:53:48,760, [castle-exec-56], (PrincipalAccessSQL.java:1683), trace.com.rsa.ims.admin.dal.sql.PrincipalAccessSQL, DEBUG, vcenter,,,,SELECT IMS_PRINCIPAL.ID,IMS_PRINCIPAL.CERT_DN,IMS_PRINCIPAL.EMAIL,IMS_PRINCIPAL.FIRST_NAME,IMS_PRINCIPAL.MIDDLE_NAME,IMS_PRINCIPAL.LAST_NAME,IMS_PRINCIPAL.LOGINUID,IMS_PRINCIPAL.PASSWORD,IMS_PRINCIPAL.PRINCIPAL_IS_DESCRIPTION, IMS_PRINCIPAL_DATA.ID,IMS_PRINCIPAL_DATA.ROW_VERSION,IMS_PRINCIPAL_DATA.LAST_UPDATED_BY,IMS_PRINCIPAL_DATA.LAST_UPDATED_ON,IMS_PRINCIPAL_DATA.IDENTITY_SRC_ID,IMS_PRINCIPAL_DATA.IDENTITY_SRC_KEY,IMS_PRINCIPAL_DATA.OWNER_ID,IMS_PRINCIPAL_DATA.START_DATE,IMS_PRINCIPAL_DATA.EXPIRATION_DATE,IMS_PRINCIPAL_DATA.REGISTRATION_FLAG,IMS_PRINCIPAL_DATA.LOGINUID,IMS_PRINCIPAL_DATA.LOGIN_DATE,IMS_PRINCIPAL_DATA.ENABLE_FLAG,IMS_PRINCIPAL_DATA.IMPERSONATABLE_FLAG,IMS_PRINCIPAL_DATA.IMPERSONATOR_FLAG,IMS_PRINCIPAL_DATA.FAIL_PASSWORD_COUNT,IMS_PRINCIPAL_DATA.FAIL_PASSWORD_DATE,IMS_PRINCIPAL_DATA.FAIL_EMERGENCY_COUNT,IMS_PRINCIPAL_DATA.FAIL_EMERGENCY_DATE,IMS_PRINCIPAL_DATA.CHANGE_PASSWORD_FLAG,IMS_PRINCIPAL_DATA.CHANGE_PASSWORD_DATE,IMS_PRINCIPAL_DATA.LOCKOUT_FLAG,IMS_PRINCIPAL_DATA.EXPIRE_LOCKOUT_DATE,IMS_PRINCIPAL_DATA.EMERGENCY_LOCKOUT_FLAG,IMS_PRINCIPAL_DATA.EXPIRE_EMERGENCY_LOCKOUT_DATE,IMS_PRINCIPAL_DATA.NOTES,IMS_PRINCIPAL_DATA.AUTHENTICATOR_BIT_FLAGS,IMS_PRINCIPAL_DATA.ADMINISTRATOR_FLAG,IMS_PRINCIPAL_DATA.EXUID,IMS_PRINCIPAL_DATA.SECURITY_QUES_ANSWERS,IMS_PRINCIPAL_DATA.SECURITY_QUES_REQUIRED_AUTHN,IMS_PRINCIPAL_DATA.SECURITY_QUES_REQUIRED_REG,IMS_PRINCIPAL_DATA.SECURITY_QUES_LANGUAGE,IMS_PRINCIPAL_DATA.SECURITY_QUES_COUNTRY,IMS_PRINCIPAL_DATA.SECURITY_QUES_VARIANT,IMS_PRINCIPAL_DATA.SECURITY_QUES_RESET,IMS_PRINCIPAL_DATA.FIRST_RBA_AUTH_DATE,IMS_PRINCIPAL_DATA.LAST_USED_SECONDARY_AUTH FROM IMS_PRINCIPAL, (SELECT IMS_PRINCIPAL_DATA.ID,IMS_PRINCIPAL_DATA.ROW_VERSION,IMS_PRINCIPAL_DATA.LAST_UPDATED_BY,IMS_PRINCIPAL_DATA.LAST_UPDATED_ON,IMS_PRINCIPAL_DATA.IDENTITY_SRC_ID,IMS_PRINCIPAL_DATA.IDENTITY_SRC_KEY,IMS_PRINCIPAL_DATA.OWNER_ID,IMS_PRINCIPAL_DATA.START_DATE,IMS_PRINCIPAL_DATA.EXPIRATION_DATE,IMS_PRINCIPAL_DATA.REGISTRATION_FLAG,IMS_PRINCIPAL_DATA.LOGINUID,IMS_PRINCIPAL_LOGIN_DATE.LOGIN_DATE,IMS_PRINCIPAL_DATA.ENABLE_FLAG,IMS_PRINCIPAL_DATA.IMPERSONATABLE_FLAG,IMS_PRINCIPAL_DATA.IMPERSONATOR_FLAG,IMS_PRINCIPAL_DATA.FAIL_PASSWORD_COUNT,IMS_PRINCIPAL_DATA.FAIL_PASSWORD_DATE,IMS_PRINCIPAL_DATA.FAIL_EMERGENCY_COUNT,IMS_PRINCIPAL_DATA.FAIL_EMERGENCY_DATE,IMS_PRINCIPAL_DATA.CHANGE_PASSWORD_FLAG,IMS_PRINCIPAL_DATA.CHANGE_PASSWORD_DATE,IMS_PRINCIPAL_DATA.LOCKOUT_FLAG,IMS_PRINCIPAL_DATA.EXPIRE_LOCKOUT_DATE,IMS_PRINCIPAL_DATA.EMERGENCY_LOCKOUT_FLAG,IMS_PRINCIPAL_DATA.EXPIRE_EMERGENCY_LOCKOUT_DATE,IMS_PRINCIPAL_DATA.NOTES,IMS_PRINCIPAL_DATA.AUTHENTICATOR_BIT_FLAGS,IMS_PRINCIPAL_DATA.ADMINISTRATOR_FLAG,IMS_PRINCIPAL_DATA.EXUID,IMS_PRINCIPAL_DATA.SECURITY_QUES_ANSWERS,IMS_PRINCIPAL_DATA.SECURITY_QUES_REQUIRED_AUTHN,IMS_PRINCIPAL_DATA.SECURITY_QUES_REQUIRED_REG,IMS_PRINCIPAL_DATA.SECURITY_QUES_LANGUAGE,IMS_PRINCIPAL_DATA.SECURITY_QUES_COUNTRY,IMS_PRINCIPAL_DATA.SECURITY_QUES_VARIANT,IMS_PRINCIPAL_DATA.SECURITY_QUES_RESET,IMS_PRINCIPAL_DATA.FIRST_RBA_AUTH_DATE,IMS_PRINCIPAL_DATA.LAST_USED_SECONDARY_AUTH FROM IMS_PRINCIPAL_DATA WITH (NOLOCK) inner join IMS_PRINCIPAL_LOGIN_DATE on (IMS_PRINCIPAL_DATA.ID = IMS_PRINCIPAL_LOGIN_DATE.PRINCIPAL_ID) ) IMS_PRINCIPAL_DATA  WHERE UPPER(IMS_PRINCIPAL.LOGINUID) = UPPER(IMS_PRINCIPAL_DATA.LOGINUID) AND IMS_PRINCIPAL_DATA.IDENTITY_SRC_ID = '000000000000000000001000d0011000' AND  UPPER(IMS_PRINCIPAL.LOGINUID) = UPPER(?)   ORDER BY UPPER(IMS_PRINCIPAL.LOGINUID)

2014-07-02 20:53:48,760, [castle-exec-56], (IMSUtilImpl.java:262), trace.com.rsa.riat.utils.IMSUtil, DEBUG, vcenter,,,,Could not find user vCO-146efc... in domain null

2014-07-02 20:53:48,761, [castle-exec-56], (DelegateRequestValidator.java:97), trace.com.rsa.riat.ws.security.trust.WSTrustContract, ERROR, vcenter,,,,Delegate is invalid

com.rsa.riat.ws.security.trust.authn.AuthnPluginException: Authentication Failed

VM Storage Polcies

$
0
0

Can anyone give me some idea on how to set VM Storage Policies for newly created VC:VirtualMachine objects? It's inheriting the policy of the template which can either be perfect, or not right at all. I found a VcVirtualMachineProfileSpec scripting object. Not sure if this is the same thing as Storage Policies in 5.5 and I'm not really sure how to use it.

Orchestrator with Nexus 1000v

$
0
0

Has anyone leveraged Orchestrator with Nexus 1000v. I was researching workflow integrations and it appears that nexus 1000v has REST capabilities now. I was wondering if it is possible to hook the APIs of the VSM with orchestrator and design workflows.

Use Vco workflow in Vcac

$
0
0

Hello,

I Have defined a Vco Workflow. I used the option " Hide parameter input " to hide some parameters based on the choices before.

When I add a Blueprint from vcac using this workflow, The parameters or tabs are not hidden.

How can you resolve it please?


Orchestrator and infoblox clone VM from template and add dhcp reservation for it,

$
0
0

Hi All, I am a bit stuck with how to create a workflow for our users to create a vm from template and push it to infoblox.

the first part is simple but I cant find a way to "give the infoblox workflow the information"

what I  am trying to do :

1. clone Linux VM from temple -> user will need to type the fqdn of the VM,

2, I need somehow to get the VM  mac address and fqdn of the new vm and pass it to infoblox

3. power on the VM,

 

didn't find the way yet.

Thanks

Roni

SSO and vCO issues

$
0
0

Hi,

 

     I'm trying to set up a new vCO appliance and am trying to use SSO Authentication. When I type in invalid credentials and try to register, I get error messages stating that the credentials are invalid. WHen I type with proper credentials, a weird error message pops up, exactly how it is shown in my attached image. That account can indeed log into vCenter and does have administrator rights. What could be the issue?

 

     Thanks in advance.

 

Edit: I"m not sure if this helps, but I'm pasting what is appended to the log when I try to register SSO. It appears to give the same error even in the event of a bad username/password, yet the error message on the Authentication page clearly shows that it can tell the difference...

 

2014-07-03 23:33:50.716+0000 [vcoSystemTaskScheduler-1] INFO  {} [PurgeSessionAdaptor] Started verification of 0 session(s) against the authentication provider.

2014-07-03 23:33:50.716+0000 [vcoSystemTaskScheduler-1] INFO  {} [PurgeSessionAdaptor] Verified 0 unique session(s) in 0ms.

2014-07-03 23:53:50.716+0000 [vcoSystemTaskScheduler-2] INFO  {} [PurgeSessionAdaptor] Started verification of 0 session(s) against the authentication provider.

2014-07-03 23:53:50.717+0000 [vcoSystemTaskScheduler-2] INFO  {} [PurgeSessionAdaptor] Verified 0 unique session(s) in 0ms.

2014-07-04 00:13:50.717+0000 [vcoSystemTaskScheduler-1] INFO  {} [PurgeSessionAdaptor] Started verification of 0 session(s) against the authentication provider.

2014-07-04 00:13:50.717+0000 [vcoSystemTaskScheduler-1] INFO  {} [PurgeSessionAdaptor] Verified 0 unique session(s) in 0ms.

Edit the Workflow create/Update blueprint properties from vCO worflow input

$
0
0

Hello,

I have already post the question, but I didn't get the answer, May be I didn't post it in the good place.

 

I have created a blueprint with those properties  : VirtualMachine.Storage.Name and Vrm.DataCenter.Location . On the dictionnary, I specified a drown list type to choose the name of the datacenter and the storage.

 

My question is: is it possible to don't show to the user the real names on the choices?

 

For example :

Storage name : Disk1, Disk2 which refers for Storage1, Storage2 ( real names).

 

As an eventual solution, I have developped a script and insert it on th "the Workflow create/Update blueprint properties from vCO worflow input" :

Untitled.png

 

When I send a request with the real name (Storage1), the machine is created

When I send a request with the freind name (Disk1),  I get this error : Error requesting machine. Inner Exception: Exception has been thrown by the target of an invocation. Base Exception: Allocate reservation operation failed. Error: Unable to allocate storage request for data stores [Disk1] on reservation RES1

 

May be the script is not correct or is not on the good place ?
Should I create a new workflow ?

 

Need your help !!

thank you

Launch a bash script with sudo command

$
0
0

Hello,

 

I'm trying to launch a bash script with the guest script manager package. There is a sudo command inside the script and it's causing me trouble.

 

First error is : sudo: sorry, you must have a tty to run sudo

 

So, I tried to launch the sudo command with ssh -t -t localhost sudo <command> but I get a new error (and still the other) : tcgetattr: Inappropriate ioctl for device

 

I don't know how to make it work as the root user doesn't have permission to log in.

 

So, is launching a sudo command from vCO really possible ?

 

Thanks !

clone vm from template and set ipv6 for Linux templates

$
0
0

Hi,

 

is there a possibility to clone via workflow and set ipv6 adress directly.

I cant find this in vCO. One wokrarround would be to deploy an template with ipv4 and then run an script via ssh and then configure the ip6 afterwards. But I think it would be better to configure ipv6 directly....

CloneVm to SDRS Cluster / Storage Pod

$
0
0

Hi there,

 

we try to change our deployment scripts from old cloneVm to new recommendDatastores. We need this to provision VMs to SDRS Clusters. As documented within API reference, old CloneVm was now replaced by VcStorageResourceManager.recommendDatastores:

http://www.vmware.com/support/orchestrator/doc/vco_vsphere51_api/html/VcStorageResourceManager.html#recommendDatastores

 

Now we build the following scriptable task:

var myVcVirtualMachineConfigSpec            = new VcVirtualMachineConfigSpec();
var myVcResourceAllocationInfo                = new VcResourceAllocationInfo();
var myVcStoragePlacementSpec                = new VcStoragePlacementSpec();
var myVcStorageDrsPodSelectionSpec            = new VcStorageDrsPodSelectionSpec();
var myVcStorageResourceManager                = input_Datacenter.sdkConnection.storageResourceManager();
var myVcRessourcePool                        = input_RessourcePool;
var myVcVirtualMachineCustomSpec            = input_VirtualMachineCustomSpec;
myVcStorageDrsPodSelectionSpec.storagePod    = input_StoragePod;
myVcVirtualMachineRelocateSpec                = System.getModule("com.vmware.library.vc.vm.spec").getRelocateSpec(null,null,null,myVcRessourcePool,null) ;
myVcVirtualMachineCloneSpec                    = System.getModule("com.vmware.library.vc.vm.spec").getCloneSpec(null,myVcVirtualMachineCustomSpec,myVcRessourcePool,false,false) ;
myVcStoragePlacementSpec.cloneName            = input_VirtualMachineName;
myVcStoragePlacementSpec.cloneSpec            = myVcVirtualMachineCloneSpec;
myVcStoragePlacementSpec.folder                = input_Folder;
myVcStoragePlacementSpec.podSelectionSpec    = myVcStorageDrsPodSelectionSpec;
myVcStoragePlacementSpec.resourcePool        = myVcRessourcePool;
myVcStoragePlacementSpec.type                = VcStoragePlacementSpecPlacementType.clone;
myVcStoragePlacementSpec.vm                    = input_Template;
x = input_Datacenter.sdkConnection.storageResourceManager.recommendDatastores(myVcStoragePlacementSpec);
System.warn("Recommend Result: " + x);
System.warn("recommendations.key: " + x.recommendations.key);
System.warn("recommendations.reason: " + x.recommendations.reason);
System.warn("recommendations.reasontext: " + x.recommendations.reasonText);
System.warn("recommendations.action: " + x.recommendations.action);
System.warn("recommendations.target: " + x.recommendations.target);
System.warn("recommendations.type: " + x.recommendations.type);
System.warn("recommendations.dynamicProperty: " + x.dynamicProperty);

 

 

We get no error message and no task is starting. But on displaying all our warnings, they are all undefined without the x which is the correct object:

[2012-10-08 15:04:27.854] [W] Recommend Result: DynamicWrapper (Instance) : [VcStoragePlacementResult]-[class com.vmware.vim.vi4.StoragePlacementResult] -- VALUE : com.vmware.vim.vi4.StoragePlacementResult@6465a5b0
[2012-10-08 15:04:27.854] [W] recommendations.key: undefined
[2012-10-08 15:04:27.854] [W] recommendations.reason: undefined
[2012-10-08 15:04:27.870] [W] recommendations.reasontext: undefined
[2012-10-08 15:04:27.870] [W] recommendations.action: undefined
[2012-10-08 15:04:27.870] [W] recommendations.target: undefined
[2012-10-08 15:04:27.870] [W] recommendations.type: undefined
[2012-10-08 15:04:27.870] [W] recommendations.dynamicProperty: null

 

Someone ever tried this or has any idea about get this done?

 

Regards,

Chris

List all snapshots wth orchestator with

$
0
0

Hi,

 

i'm trying to make a script to list all the snapshots of a vcenter with javascript and orchestrator. It was easy with powershell but we changed from windows vcenter to vcsa 5.5 so i can't use it.

I would like to have the creation date of the snapshots, the size by snapshot and by vm. I would like to have the output in a file to send it, and/or in html format.

I have to say that i'm not good with orchestrator, it's a new product for me and i just know how to send an e-mail and how to make an "hello world" script!

Does anyone have a script like this?

Thank's


scheduled tasks fail for missing credentials

$
0
0

We run a few workflows that schedule other workflows to run in the future up to 30 days.  Sometimes those workflows will fail to run and if you click to edit them they say

"task startup user's credentials must be provided.  use the change startup user dialog to do this."

 

these tasks are all added the same way with the same workflow and im not sure what causes only some to fail. if you update the credentials they all work fine.

 

fom logs:

 

2014-07-07 12:30:00.113-0400 [Thread-64] WARN  {} [WorkflowResumeProcessor] User session fix disabled

2014-07-07 12:30:00.113-0400 [Thread-64] ERROR {} [WorkflowRuntimeServiceImpl] Can't execute workflow, no user token

2014-07-07 12:30:00.113-0400 [Thread-64] WARN  {} [TaskRunner] Unable to execute workflow from task

ch.dunes.util.DunesServerException: Can't execute workflow, no user token

VMWARE VCAC 6.0 information store question : add vsphere.local to ID store?

$
0
0
do you want to associate a ID store with AD at the vshpere.local level ?

 

do you add the tenant and then add an ID store to each tenant ?
thanks

 

VCAC 6.0 why and when use a external Orchestration server

$
0
0

When and why should I use an external orchistrator server, and not the one that is embedded in VCAC

Error adding IaaS host with vCAC 6.0.1 plugin for vCO

$
0
0

I installed the new vCAC 6.0.1 plugin on vCO 5.5 (that comes bundled with vcac). I am able to add the vcac host just fine, but when I try to add the iaas host, I get the attached error -

 

com.vmware.o11n.plugin.dynamicops.ServiceException: HTTP/1.1 401 Unauthorized : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="

 

vcac host = mycompany-vcac-dev01.domain.com

iaas host = mycompany-iaas-dev.domain.com

 

I know that the account has access to the iaas service and the box, because its a domain administrator. I am able to open up links like https://mycompany-iaas-dev.domain.com/Repository/Data/ManagementModelEntities.svc with that account just fine.

 

anyone seen this before or know how to move past it?

 

Thanks in advance.

DVS config backup

$
0
0

Hello Fellows,


I am banging my head against a wall here with trying to figure out how to export DVS config using vSphere API from VCO. Calling dVSManagerExportEntity_Task method results in nothing, I suspect my selectionSet may not be correct and this is why task is not being executed. Below is my JavaScript which I am working with at the moment, any ideas what I might be doing wrong with selectionSets or

dVSManagerExportEntity_Task in general?


var dvsManager = sdkConnection.dvSwitchManager;

var dvsConfigTarget = dvsManager.queryDvsConfigTarget(host, dvs);


var dVPortgroupSelection = new VcDVPortgroupSelection();

dVPortgroupSelection.dvsUuid = dvsConfigTarget.distributedVirtualSwitch[0].switchUuid;

dVPortgroupSelection.portgroupKey = new Array();


var selectionSet = new Array();

selectionSet.push(dVPortgroupSelection);


task = dvsManager.dVSManagerExportEntity_Task(selectionSet);

Viewing all 6251 articles
Browse latest View live


Latest Images

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