Hi, I'm posting on the hope that someone has had a similar problem and/or could give some help on steps to debug. I'm currently looking at using VmWare Content Libraries to store VM Templates that can be used to provision VMs through the invocation of UCSD workflows (using UCS-Director 6.6). However, I'm currently stuck at the first stage. I have a content library that I've created within VmWare and added templates to. Whilst this can be invoked through VmWare to provision VMs, the content library does not appear within UCS-Director under the VmWare Cloud instance that has been created (simply states "No Data" under Content Libraries). Other items from the VmWare cloud are populated correctly under their differing entries (e.g. Clusters, Host Nodes), so there appears to be a specific setting relating to content libraries that is not correctly configured. If so, I'm struggling to find this setting. The only clue I've found so far is within the Cisco UCS Director VMware vSphere Management Guide, which states that "To perform content library inventory discovery, the Cisco UCS Director and VMware vCenter systems must have the same NTP server configured.". However, investigating this statement, the UCSM and Vcenter Flexpod appear to be using the same time source. I haven't found any other mention of content libraries on the forums. Is there anything people would recommend to investigate? Thanks!
... View more
Hi, I'm struggling on what I assumed would be an easy workflow and was hoping someone could give some direction? I'm trying to make a workflow to create a Vmware VM DRS Group and then create a DRS rule for that new VM Group. I'm trying to use the existing Vmware Host tasks to achieve this. The Create DRS Group works fine, taking in the VM Group as one of the inputs as a gen_text_input type. I'm then trying to add a Create DRS Rule task to the workflow, expecting to use the same input or an output value from the previous task for the VM Group. However, the GUI won't allow me to do this as the VM Group within the Create DRS Rule is of a vmwareDRSVMgroupselector type rather than gen_text_input. I can't find a way though the options to cast between these types to pass the input through. How would this usually be achieved within UCSD? (If possible?). Would it require a custom task to cast the input type and output it in the new type? Are there any examples available for This? Many thanks.
... View more
... View more
Hi. I'm currently working on a project that will be using UCSD 6.6 to orchestrate the creation and configuration of virtual machines within VMware. The development of workflows using UCSD has identified settings within VMware that are not provided by the default UCSD VM Tasks, and so I've started to look at custom tasks to provide these additional settings through the use of Cloupia scripting. However, my initial investigation with custom tasks has not resulted in success and I'm struggling to find the required documentation to understand what APIs I should be using. The documentation I have been using is the UCS Director Custom Task Getting Started Guide: (https://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/custom-task-getting-started-guide/6-6/cisco-ucs-director-custom-task-getting-started-66/cisco-ucs-director-custom-task-getting-started-66_chapter_0101.html) and examples at: (https://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/cloupia-script-cookbook/6-0/b_Cisco_UCS_Director_CloupiaScript_Cookbook_60/b_Cisco_UCS_Director_CloupiaScript_Cookbook_54_chapter_010.html#reference_3C3357A829E141F1A0EA6F565545E8D8) I've tried implementing the Disk Resize example from the second link (repeated below). importPackage(java.lang);
function resizeVmDisk(vmidstr, diskName, sizeInGB)
var vmid = Integer.parseInt(vmidstr);
// create the context to
var vmcontext = util.createContext("vm", null, vmidstr);
// obtain VM details
var vminfo = ctxt.getAPI().getVMwareVMInfo(vmid);
var vmname = vminfo.getName();
var nameparam = new ActionParam("vmName", vmname);
var sizeparam = new ActionParam("vmSize", sizeInGB);
var diskparam = new ActionParam("vmDiskLabel", diskName);
var paramarr = [ nameparam, sizeparam, diskparam ];
logger.addInfo("About to resize VM "+vmidstr+" name="+vmname);
var status = ctxt.getAPI().performAction(vmcontext,"diskResize","Resizing VM to
test the script",ctxt.getUserId(),paramarr);
logger.addInfo("status = "+status);
var vmidstr1 = ctxt.getInput("VMID");
resizeVmDisk(vmidstr1, "Hard Disk 1", "10"); When executing a workflow with this example, the workflow is reported as completed within UCSD, by I see no new Task/Change within VMware. What tools are available to debug this and determine where the failure occurs? In regards to documentation for the different Cloupia packages and their usage, the Javadoc pages appear empty of documentation (assuming that I am looking at the right place) : (https://developer.cisco.com/docs/ucs-dev-center-ucs-director/#!ucs-director-open-automation-javadocs). Therefore I'm not sure if I am using the right classes and methods for these operations and what is available to me (e.g. in the disk resize example, "diskResize" is the action passed to the performAction method. How do I know what actions are available?). Are the com.cloupia packages the correct ones to use for VMware operations? Any input/advice/link to better documentation would be greatly appreciated.
... View more