PDF - Complete Book (2.53 MB)

Cisco UCS Director Orchestration Guide, Release 5.0
First Published: July 31, 2014
Americas Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 527-0883
Text Part Number: OL-31123-04
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS,
INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH
THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY,
CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain version
of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS" WITH ALL FAULTS.
CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT
LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS
HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network
topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional
and coincidental.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: http://
www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership
relationship between Cisco and any other company. (1110R)
© 2013-2014
Cisco Systems, Inc. All rights reserved.
CONTENTS
Preface
Preface vii
Audience vii
Conventions vii
Related Documentation ix
Documentation Feedback ix
Obtaining Documentation and Submitting a Service Request ix
CHAPTER 1
New and Changed Information 1
New and Changed Information 1
CHAPTER 2
Overview 11
About Orchestrator 11
CHAPTER 3
Understanding Workflows 13
About Workflows 13
Workflow Designer 13
Workflow Life Cycle Editing Actions 13
Predefined Tasks 15
Accessing Task Documentation 15
CHAPTER 4
Creating Workflows 17
Creating a Compound Task 30
Custom Approval Tasks 31
Creating a Custom Approval Task 32
Adding a Custom Approval Task to a Workflow 32
Custom Input Value 33
Example: Creating a Custom Input Type by using a List of Values (LOV) 34
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
iii
Contents
Adding a Custom Input into a Workflow 36
Example: Establishing a List of Values Based on Filter Criteria 38
Example: Creating a Custom Input Type by a Unique Selection 42
Moving Inputs 43
Accessing the Input/Output Tab 43
Accessing Outputs from a Previous Task 44
Cross Launching Workflow Inputs 44
Registering Custom Workflow Inputs 45
Exporting a Workflow as an Image 47
Renaming Workflows 48
CHAPTER 5
Executing Workflows 49
Executing Workflows 49
Accessing Service Requests 49
Resubmitting a Failed/Cancelled Service Request 50
Using the Execute Now Action 50
Using a VM Action Policy 50
Using a Trigger 52
Adding Conditional Processing to Workflows 53
Adding an If-Else Logical Branch 54
Adding Loops 56
Adding Switch Operations 58
Context Workflow Mapping 59
Stage 1: Create a Context Mapper Task 60
Stage 2: Adding to the Workflow to the Content Mapper 60
Scheduling Workflows 61
Rolling Back Workflows 62
Viewing Workflow Assets (Created or Modified) 63
Validating Workflows 63
Resolving Workflow Validation Issues 63
Workflow Versioning 64
Creating Workflow Versions 64
Managing Workflow Versions 64
APPENDIX A
Using Macros 67
Cisco UCS Director Orchestration Guide, Release 5.0
iv
OL-31123-04
Contents
About VM Name Template Customization 67
Using the VM Name Template 67
About VM Template and Hostname Variables 71
About Application Codes 71
About Macro Orchestration 72
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
v
Contents
Cisco UCS Director Orchestration Guide, Release 5.0
vi
OL-31123-04
Preface
This preface contains the following sections:
• Audience, page vii
• Conventions, page vii
• Related Documentation, page ix
• Documentation Feedback, page ix
• Obtaining Documentation and Submitting a Service Request, page ix
Audience
This guide is intended primarily for data center administrators who use Cisco UCS Director and who have
responsibilities and expertise in one or more of the following:
• Server administration
• Storage administration
• Network administration
• Network security
• Virtualization and virtual machines
Conventions
Text Type
Indication
GUI elements
GUI elements such as tab titles, area names, and field labels appear in this font.
Main titles such as window, dialog box, and wizard titles appear in this font.
Document titles
Document titles appear in this font.
TUI elements
In a Text-based User Interface, text the system displays appears in this font.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
vii
Preface
Conventions
Text Type
Indication
System output
Terminal sessions and information that the system displays appear in this
font.
CLI commands
CLI command keywords appear in this font.
Variables in a CLI command appear in this font.
Note
Tip
[]
Elements in square brackets are optional.
{x | y | z}
Required alternative keywords are grouped in braces and separated by vertical
bars.
[x | y | z]
Optional alternative keywords are grouped in brackets and separated by vertical
bars.
string
A nonquoted set of characters. Do not use quotation marks around the string or
the string will include the quotation marks.
<>
Nonprinting characters such as passwords are in angle brackets.
[]
Default responses to system prompts are in square brackets.
!, #
An exclamation point (!) or a pound sign (#) at the beginning of a line of code
indicates a comment line.
Means reader take note. Notes contain helpful suggestions or references to material not covered in the
document.
Means the following information will help you solve a problem. The tips information might not be
troubleshooting or even an action, but could be useful information, similar to a Timesaver.
Caution
Means reader be careful. In this situation, you might perform an action that could result in equipment
damage or loss of data.
Timesaver
Means the described action saves time. You can save time by performing the action described in the
paragraph.
Cisco UCS Director Orchestration Guide, Release 5.0
viii
OL-31123-04
Preface
Related Documentation
Warning
IMPORTANT SAFETY INSTRUCTIONS
This warning symbol means danger. You are in a situation that could cause bodily injury. Before you
work on any equipment, be aware of the hazards involved with electrical circuitry and be familiar with
standard practices for preventing accidents. Use the statement number provided at the end of each warning
to locate its translation in the translated safety warnings that accompanied this device.
SAVE THESE INSTRUCTIONS
Related Documentation
Cisco UCS Director Documentation Roadmap
For a complete list of Cisco UCS Director documentation, see the Cisco UCS Director Documentation
Roadmap available at the following URL: http://www.cisco.com/en/US/docs/unified_computing/ucs/
ucs-director/doc-roadmap/b_UCSDirectorDocRoadmap.html.
Cisco UCS Documentation Roadmaps
For a complete list of all B-Series documentation, see the Cisco UCS B-Series Servers Documentation Roadmap
available at the following URL: http://www.cisco.com/go/unifiedcomputing/b-series-doc.
For a complete list of all C-Series documentation, see the Cisco UCS C-Series Servers Documentation Roadmap
available at the following URL: http://www.cisco.com/go/unifiedcomputing/c-series-doc.
Note
The Cisco UCS B-Series Servers Documentation Roadmap includes links to documentation for Cisco
UCS Manager and Cisco UCS Central. The Cisco UCS C-Series Servers Documentation Roadmap includes
links to documentation for Cisco Integrated Management Controller.
Documentation Feedback
To provide technical feedback on this document, or to report an error or omission, please send your comments
to [email protected]. We appreciate your feedback.
Obtaining Documentation and Submitting a Service Request
For information on obtaining documentation, submitting a service request, and gathering additional information,
see the monthly What's New in Cisco Product Documentation, which also lists all new and revised Cisco
technical documentation.
Subscribe to the What's New in Cisco Product Documentation as a Really Simple Syndication (RSS) feed
and set content to be delivered directly to your desktop using a reader application. The RSS feeds are a free
service and Cisco currently supports RSS version 2.0.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
ix
Preface
Obtaining Documentation and Submitting a Service Request
Cisco UCS Director Orchestration Guide, Release 5.0
x
OL-31123-04
CHAPTER
1
New and Changed Information
This chapter contains the following sections:
• New and Changed Information, page 1
New and Changed Information
The following table provides an overview of the significant changes to this guide for this current release. The
table does not provide an exhaustive list of all changes made to this guide or of all new features in this release.
Table 1: New and Changed Information for release 5.0
Feature
Description
Where Documented
Ability to resolve issues
detected during Workflow
validation.
Provides the ability to detect Validating Workflows, on page 63
issues during workflow
validation and resolves using
wizard based resolver.
Ability to use workflow
version history
Provides workflow versioning Workflow Versioning, on page 64
to either revert a workflow
state to an older one or create
a new version.
Ability to add conditional
processing to workflows
Provides a set of predefined
tasks for constructing
conditional processing
constructs such as If-Else,
nested If, Loop and Switch
Adding Conditional Processing to
Workflows, on page 53
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
1
New and Changed Information
New and Changed Information
Table 2: New and Changed Information for release 4.1.0.3
Feature
Description
Where Documented
Ability to view a list of all
Provides the ability to view a Accessing Task Documentation, on page 15
new tasks and those by open list of all new tasks and those
automation.
by open automation in the
orchestration task library.
Filtering for tabular data types Provides additional filter
Filtering for Tabular Type Data Types, on
criteria to refine the selection page 21
of data during workflow
development.
Table 3: New and Changed Information for release 4.1
Feature
Description
Where Documented
Display all workflow inputs/outputs in a
service request.
Provides the ability to display all workflow Accessing the Input/Output Tab, on page
inputs/outputs in a service request.
43
Display/Edit workflow input/outputs at the Provides the ability to display/edit
Accessing the Input/Output Tab, on page
time of service request approval.
workflow input/outputs at the time of
43
service request approval for administrator.
Ability to set workflow user inputs as
mandatory/optional.
Provides the ability to set workflow user
inputs as mandatory/optional.
Ability to resubmit a failed service request Provides the ability to resubmit a failed
with inputs changed.
service request with inputs changed.
User Input Optionality, on page 20
Resubmitting a Failed/Cancelled Service
Request, on page 50
Create/cross launch workflow inputs.
Provides the ability to create/cross launch Cross Launching Workflow Inputs, on
workflow inputs while adding/modifying page 44
tasks.
Using Macros Chapter
Cisco UCS Director Macro feature allows Using Macros, on page 67
you to customize a VM name and VM
hostname using variables provided by the
application.
Table 4: Workflow Task Input/Output Changes
Scenario
Workflow Task
Input/Output Changes
UCS
Cisco UCS Task: Add vNIC to
UCS Service Profile
Binding error issue reported for this task after
upgrade. (CSCum08951)
Workaround: Delete the task and re-add it to the
workflow.
Cisco UCS Director Orchestration Guide, Release 5.0
2
OL-31123-04
New and Changed Information
New and Changed Information
Scenario
Workflow Task
Input/Output Changes
UCS
Cisco UCS Task: Add VLAN to Input/output mapping changes.
Service Profile
New Entity vNIC can cause workflow to fail.
Workaround: Add the required input value-based
selection for the vNIC.
UCS
Cisco UCS Task: Rename UCS Additional inputs have been added to this task.
Service Profile
Workaround: Add the required input value-based
selection.
UCS
Cisco UCS Task: Add vNIC to
Service Profile
Additional output, as follows:
Cisco UCS Task: Modify UCS
VLAN/VLAN Group Org
Permissions
Input/output mapping changes.
UCS
"OUTPUT_MAC_POOL_IDENTITY MACPOOL
IDENTITY"
The mapped user input for the organization of
ucsOrganizationIdentity has been changed to
ucsMultiOrganizationIdentity to support the
multiselect functionality.
This change enables you to select multiple
organizations at one time.
UCS
Cisco UCS Task: Create UCS
Boot Policy
Mouseover help text and the task library text has been
updated for the following inputs:
• Add CD ROM in boot order
• Add Floppy Disk in boot order
• Add Local Disk in boot order
• Add Primary LAN Boot in boot order
• Add Primary SAN Boot in boot order
UCS
CIMC Tasks: Unconfigure Rack Input/Output changes
Server
The "cimc_server" input/output type has changed to
"cimcServerIdentity".
Workaround: Update workflows with the new
"cimcServerIdentity" input/output type.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
3
New and Changed Information
New and Changed Information
Scenario
Workflow Task
Input/Output Changes
UCS
CIMC Task: Select CIMC Boot Task output has been updated with the following for
Device
each Slot 1 and 2:
OUTPUT_CIMC_SERVER_SLOT_<>_MAC_ADDRESS
OUTPUT_RACK_SP_SLOT_<>_VHBA_1_VLAN
OUTPUT_RACK_SP_SLOT_<>_VHBA_1_WWPN
OUTPUT_RACK_SP_SLOT_<>_VHBA_2_VLAN
OUTPUT_RACK_SP_SLOT_<>_VHBA_2_WWPN
UCS
CIMC Tasks: Power On/Off
CIMC Server
The "cimc_server" input/output type has changed to
"cimcServerIdentity".
Workaround: Update workflows with the new
"cimcServerIdentity" input/output type.
Task output updated with following for each Slot 1
and 2.
OUTPUT_CIMC_SERVER_SLOT_<>_MAC_ADDRESS
OUTPUT_RACK_SP_SLOT_<>_VHBA_1_VLAN
OUTPUT_RACK_SP_SLOT_<>_VHBA_1_WWPN
OUTPUT_RACK_SP_SLOT_<>_VHBA_2_VLAN
OUTPUT_RACK_SP_SLOT_<>_VHBA_2_WWPN
UCS
CIMC Tasks: Configure Rack
Server
The "cimc_server" input/output type has changed to
"cimcServerIdentity".
Workaround: Update workflows with the new
"cimcServerIdentity" input/output type.
Task output updated with following for each Slot 1
and 2.
OUTPUT_CIMC_SERVER_SLOT_<>_MAC_ADDRESS
OUTPUT_RACK_SP_SLOT_<>_VHBA_1_VLAN
OUTPUT_RACK_SP_SLOT_<>_VHBA_1_WWPN
OUTPUT_RACK_SP_SLOT_<>_VHBA_2_VLAN
OUTPUT_RACK_SP_SLOT_<>_VHBA_2_WWPN
Networking
Create VFC Interface
After upgrade, only the device selection was changed.
Workaround: after reconfigure, the workflow can be
successfully executed.
Cisco UCS Director Orchestration Guide, Release 5.0
4
OL-31123-04
New and Changed Information
New and Changed Information
Scenario
Workflow Task
Input/Output Changes
NetApp
Create Datastore using VSC - As Upgrade: C-Mode binding errors
Select
Create Datastore using VSC - As Select vserver name
and vfiler name inputs are new for this release.
Workaround: Add the required input value-based
selection.
NetApp
Create ClusterFlexibleVolume
Upgrade: C-Mode binding errors
Create ClusterFlexibleVolume- As flexcache origin
volume name for type DC is a new input. This input
is mandatory for volume type DC.
Workaround: Change the volume type from DC to
RW and resubmit the task.
However, if LUNS and QTREE are mapped in the
same workflow, the vServer mappings are not saved.
NetApp
Delete Export Policy
Upgrade: C-Mode binding errors
Delete Export Policy - As vserver input has been
removed.
Workaround: Provide the policy name and resubmit
the task.
NetApp
Delete Export Rule
Upgrade: C-Mode binding errors
Delete Export Rule - As vserver input has been
removed.
Workaround: Provide the rule name and resubmit the
task.
NetApp
Associate LUN as datastore.
Upgrade: C-Mode binding errors
a. Binding error while executing existing task on
upgrade; even after revalidating all inputs
b. Binding error in imported task; even after
revalidating all inputs
c. No binding error when a new task is created.
NetApp
NetApp clustered Data ONTAP Upgrade: C-Mode binding errors
Tasks: Create Cluster Initiator The mapped type for the input "Initiator Group Name"
Group.
has been changed from "netAppInitiatorGroupName"
to "gen_text_input".
Workaround: For admin input user, add an input with
type "gen_text_input" and map it to input "Initiator
Group Name" in the existing workflows.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
5
New and Changed Information
New and Changed Information
Scenario
Workflow Task
Input/Output Changes
NetApp
NetApp clustered Data ONTAP Workaround: User need to remove those tasks from
Task removed:
workflows and replace them with the following tasks:
Add cluster volume NFS export' Create cluster NFS service
Remove cluster volume NFS
Destroy cluster NFS service
export'
NetApp
NetApp ONTAP Tasks:
Upgrade 7mode:
Add vFiler NFS Volume Export Task with Input/Output Mapping Changes:
This task now also provides the following output:
"OUTPUT_VFILER_IDENTITY"
Workaround: Use this as mapped input for subsequent
tasks.
The "All Hosts" attribute has been removed.
Workaround: If the `All Hosts' attribute is selected
after upgrade, provide values for "Read-Write Hosts
and Root Hosts" and re-submit the task for execution.
NetApp
NetApp ONTAP Tasks:
Upgrade 7mode:
Create Initiator Group.
The mapped type for the input "Initiator Group Name"
has been changed from "netAppInitiatorGroupName"
to "gen_text_input".
Workaround: For admin input user, add an input with
type "gen_text_input" and map it to input "Initiator
Group Name" in the existing workflows.
General Tasks
Modify User
Task Fixed for mapping/binding errors:
This task gives a Null Pointer exception when
executed.
Workaround: Revalidate the task and execute it.
General Tasks
Collect Inventory
The network device input type for this task has been
changed from Generic Text to `Network device' type.
Workaround: Change the input type to "Network
Device" and map the input as an admin input.
VMAX
Create Cascaded Storage Group For parent and child storage groups, the select type
has changed from
EMCVMAXStorageGroupNameList to a type of
EMCVMAXStorageGroupIdentity.
Workaround: Change the mappable type to the new
type
Cisco UCS Director Orchestration Guide, Release 5.0
6
OL-31123-04
New and Changed Information
New and Changed Information
Scenario
Workflow Task
Input/Output Changes
VMAX
Create Cascaded Initiator Group For parent and child initiator groups, the select type
has been changed from
EMCVMAXInitiatorGroupNameList to a type of
EMCVMAXInitiatorGroupIdentity.
Workaround: Change the mappable type to the new
type.
VMAX
Create Masking View
To select a storage group, initiator group, and port
group, you must use Identity type for these variables
instead of NameList type.
VMAX
Create VMAX Port Group
The mappable type for selecting a multiport list has
been changed from EmcVmaxDirectorMultiPortList
to Gen_text_input.
Workaround: Recreate the VMAX port group
workflow.
VMAX
Associate Fast Policy to VMAX A new option for priority has been added.
Storage Group
Workaround: Provide a priority input and change the
Mappable type to EMCVMAXFastPolicyIdentity.
VMAX
Create VMAX Port Group
The mappable type to select ports has been changed
from gen_text_input to emcvmaxalldirportlist.
Workaround: Change the mappable type to the new
type.
VMAX
Add Ports to VMAX Port Group The mappable type to add ports to a port group has
been changed from gen_text_input to
EMCVMAXPortGroupUnboundedDirPortList.
Workaround: Change the mappable type to the new
type.
VMAX
Remove Port from VMAX Port The mappable type to remove ports from a port group
Group
has been changed from gen_text_input to
EMCVMAXPortGroupBoundedDirPortList.
Workaround: Change the mappable type to the new
type.
VMAX
Create VMAX Initiator Group
The mappable type to select the initiator type has been
changed from gen_text_input to
EMCVMAXInitiatorType.
Workaround: Change the mappable type to the new
type.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
7
New and Changed Information
New and Changed Information
Scenario
Workflow Task
Input/Output Changes
VMAX
Add Initiator to VMAX Initiator The mappable type to select the initiator type has been
Group
changed from gen_text_input to
EMCVMAXInitiatorType.
Workaround: Change the mappable type to the new
type.
VMAX
Remove Initiator from VMAX
Initiator Group
The mappable types to select the initiator type and
the initiator to remove have been changed from
gen_text_input to EMCVMAXInitiatorType and
EMCVMAXInitiatorsList respectively.
Workaround: Change the mappable types to the new
types.
VMAX
Replace Initiator from VMAX
Initiator Group
The mappable types to select the initiator type and
initiator to replace have been changed from
gen_text_input to EMCVMAXInitiatorType and
EMCVMAXInitiatorsList respectively.
Workaround: Change the mappable types to the new
types.
VMAX
Add Tdevs to VMAX Storage
Group
The mappable type to select Tdevs has been changed
from gen_text_input to
EMCVMAXAllStorageThinDevices.
Workaround: Change the mappable type to the new
type.
VMAX
Remove Tdev from Storage
Group
The mappable type to select the Tdev to remove has
been changed from gen_text_input to
EMCVMAXBoundedStorageGroupDevices.
Workaround: Change the mappable type to the new
type.
VMAX
Expand VMAX Thin Pool
The mappable type to select the Tdev to expand the
thin pool has been changed from gen_text_input to
EMCVMAXUnBoundedDataDevDevicesList.
Workaround: Change the mappable type to the new
type.
VMAX
Bind Thin Device to VMAX
Thin Pool
The mappable type to select the Tdev to bind to the
thin pool has been changed from gen_text_input to
EMCVMAXUnBoundedThinDevDevicesList.
Workaround: Change the mappable type to the new
type.
Cisco UCS Director Orchestration Guide, Release 5.0
8
OL-31123-04
New and Changed Information
New and Changed Information
Scenario
Workflow Task
Input/Output Changes
VMAX
Create VMAX Thin Device
The mappable types to emulate a thin pool and to
select a thing pool have been changed from
gen_text_input to
EMCVMAXDataDeviceEmulationTypeList and
EMCVMAXThinPoolIdentity respectively.
Workaround: Change the mappable types to the new
types.
VMAX
Create VMAX Data Device
The mappable types to emulate a thin configuration
and to select the configuration have been changed
from gen_text_input to
EMCVMAXDataDeviceEmulationTypeList and
EMCVMAXDataDeviceConfigurationTypeList
respectively.
Workaround: Change the mappable types to the new
types.
VMAX
Create VMAX Meta Device
The mappable type to select a member device has
been changed from gen_text_input to
EMCVMAXNonMetaUnBoundThinDevicesList.
Workaround: Change the mappable type to the new
type.
Hyperv
Add Virtual Port To Logical
Switch
When included in the Network workflow, this task
generates the following error even after you provide
bindings:
"Handler failed with error - Invalid logical switch ID
: , selectedContext=<None>"
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
9
New and Changed Information
New and Changed Information
Cisco UCS Director Orchestration Guide, Release 5.0
10
OL-31123-04
CHAPTER
2
Overview
This chapter contains the following sections:
• About Orchestrator, page 11
About Orchestrator
The Cisco UCS Director Orchestrator allows IT administrators to enable cloud automation and standardize
IT services. As an administrator, you can use Orchestrator to execute a set of tasks such as VM creation or
VM power action, but in a workflow format. You can add or move tasks to a workflow and then execute your
final workflow. All of the tasks are executed in serial fashion, one right after another. The Cisco UCS Director
Orchestration Guide contains procedures for the following topics:
• Workflows
• Workflow lifecycle management
• Task definitions (including simple and compound tasks)
• Triggers
• Action policies
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
11
Overview
About Orchestrator
Cisco UCS Director Orchestration Guide, Release 5.0
12
OL-31123-04
CHAPTER
3
Understanding Workflows
This chapter contains the following sections:
• About Workflows, page 13
• Workflow Designer, page 13
• Predefined Tasks, page 15
About Workflows
Cisco UCS Director Orchestrator allows you to organize workflows so that you can automate simple or
complex actions on your infrastructure (either physical or virtual). By using Orchestrator you can organize
tasks into distinct workflows to accomplish specific IT services, such as adding VMs. You can then add
multiple tasks to a workflow is accomplished using the workflow UI designer. Triggers help initiate actions
inside a workflow. You can execute the workflow directory or have a trigger begin the process. A typical
workflow consists of the following elements:
• Workflow Designer (GUI interface)
• Predefined Tasks
The simplest workflow consists of two connected tasks. A task represents a particular action or operation.
The workflow determines the order in which your tasks are executed by Orchestrator. When constructing
workflows, by dragging-and-dropping tasks, it is possible to route the output of one workflow into the input
of another workflow. This connecting of multiple tasks is how you create more complex workflows.
Workflow Designer
You use the workflow designer to implement actions or to select tasks from a list and then drag and drop them
onto your Workflow Designer pane.
Workflow Life Cycle Editing Actions
Common workflow editing actions are as follows:
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
13
Understanding Workflows
Workflow Life Cycle Editing Actions
Name
Description
Add Workflow
Adds a new workflow.
Import Workflow
Imports a workflow to other sources.
Export Workflow
Exports a workflow from Cisco UCS Director.
Clone Workflow
Clones selected workflows.
Edit Workflow
Edits a selected workflow.
Delete Workflow
Deletes a selected workflow.
Workflow Designer
Opens the workflow designer for a selected workflow.
Export as Template
Exports the selected workflow as a template.
Execute Now
Executes the selected workflow.
Schedule
Schedules a workflow.
Lock/Unlock Workflow
Locks a workflow to prevent any modifications. Once
locked, the workflow cannot be deleted or unlocked.
Workflow Designer Window (Full View)
Provides a full view button at the top, which displays
the entire workflow in one window. To magnify a
portion of the workflow move your cursor over a
workflow segment.
The Workflow Designer viewing options are as follows:
Name
Description
Edit Workflow Properties
Modifies existing workflow properties from within
the Workflow Designer pane.
Compact View Mode
Displays the workflow task list in compact view in
order to display a large number of tasks without
having to scroll through your display.
Auto Layout
Formats the task icons within the Workflow Designer
to a linear design.
Validate Workflow
Checks if the tasks, their input mappings and their
connections are valid or not.
Execute Now
Executes (runs) the existing workflow.
Cisco UCS Director Orchestration Guide, Release 5.0
14
OL-31123-04
Understanding Workflows
Predefined Tasks
Predefined Tasks
A predefined task is a specific action or operation that has inputs and outputs. Orchestrator uses several
predefined tasks for compute, storage and network functions in both virtual and physical infrastructures. The
predefined tasks can be grouped together and used as inputs to other pre-defined tasks.
Name
Description
SSH Command task
Executes a command in a secure shell (SSH) session.
Collect Inventory task
Collects inventory collection task for available
devices.
Execute Cloupia Script task
Execute a script within a workflow.
Notify URL task
Notifies the specified URL.
Accessing Task Documentation
Step 1
Step 2
Step 3
Step 4
On the menu bar, choose Policies > Orchestration.
Click the Task Library icon.
Check the Regenerate document checkbox to view a list of all new tasks and those by open automation.
Click Submit.
The orchestration task library appears. Click on an entry to reveal more information regarding specific inputs and outputs
that are available.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
15
Understanding Workflows
Accessing Task Documentation
Cisco UCS Director Orchestration Guide, Release 5.0
16
OL-31123-04
CHAPTER
4
Creating Workflows
This chapter contains the following sections:
• Creating Workflows, page 17
• Creating a Compound Task, page 30
• Custom Approval Tasks, page 31
• Exporting a Workflow as an Image, page 47
• Renaming Workflows, page 48
Creating Workflows
Cisco UCS Director Orchestrator allows you to create workflows of both common and custom IT administration
tasks. Many of the common tasks are accessed using the following tabs.
The Workflows tab provides the following actions:
Name
Description
Refresh
Refreshes the display.
Favorite
Favorite the current page.
Add Workflow
Adds a new workflow.
Import
Imports a workflow from other sources.
Export
Exports a workflow.
Task Library
Accesses documentation on tasks.
Edit Workflow
Edits an existing workflow.
Clone Workflow
Clones an existing workflow.
Delete Workflow
Deletes an existing workflow (if it is not locked).
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
17
Creating Workflows
Creating a Workflow
Name
Description
Execute now
Executes a valid workflow.
Display Workflow
Displays the currently selected workflow.
Workflow Designer
Accesses the Workflow Designer pane.
Export As Template
Exports the selected workflow as a template.
Schedule
Schedules a workflow (execution).
Lock/Unlock Workflow
Locks or unlocks the currently selected workflow.
Validate Workflow
Validates the currently selected workflow.
Manage Versions
Manages the versions for the selected workflow.
Create New Version
Creates a new version for the currently selected
workflow.
Creating a Workflow
Before you can begin creating one or more tasks, you must create a basic workflow.
Step 1
Step 2
Step 3
Step 4
On the menu bar, choose Policies > Orchestration.
Choose the Workflow tab.
Click Add Workflow.
In the Add Workflow screen, complete the following fields:
Name
Description
Workflow Name field
The workflow name.
Note
Workflow names cannot contain the following
characters: \"%&'*+,./:;<=>?^|
Description field
The description of the workflow.
Workflow Context drop-down list
The workflow context. Orchestrator supports the following
options:
• Any --- Enables you to use the workflow in any
context.
• Selected VM --- Enables you to use the execute the
workflow only when you choose a VM.
Cisco UCS Director Orchestration Guide, Release 5.0
18
OL-31123-04
Creating Workflows
Creating a Workflow
Name
Description
Save as Compound Task check box
Check the check box to define the workflow as a compound
task.
Place in New Folder check box
Check the check box to assign the workflow to a new
folder.
Select Folder drop-down list
Choose the proper folder.
Notify status of execution to initiating user checkbox
Check the checkbox to notify the user via email of the status
of execution of the workflow. If checked, enter the
additional email addresses in the Additional User(s) to
send Email Notification field. The status of execution for
the workflow can be one of the following:
• Completed status
• Failed execution status
• Cancelled execution status
Step 5
Step 6
Click Next.
In the Add User Inputs screen, Click the + icon to add additional user inputs.
Step 7
Step 8
In the Add Entry to screen, complete the following fields:
Name
Description
Input Label field
The label assigned to the input.
Input Description field
The description of the input.
Input Type field
The type of input category. During the editing and saving
of a workflow task, the Input Type field is no longer
editable.
Admin Input List field
The current administrator's list of inputs. The existing list
cannot be changed. However, the order of the new inputs
can be changed ( for example, the grid that displays all of
the input fields).
Admin Input Filter field
The administrator's input filter values is used to define
custom inputs based on a filter (static or dynamic). For
example, you can filter on aggregate, volumes and pods.
Optional checkbox
If checked, marks the input as optional at the time of
workflow execution.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
19
Creating Workflows
User Input Optionality
Name
Description
Input Type field
The type of input.
Step 9
Step 10
Click Next.
In the Add User Outputs screen, verify the user outputs displayed. Click the + icon to add more user outputs.
Step 11
Click Submit.
User Input Optionality
By default, user inputs are mandatory when creating or editing a new or existing workflow. However, you
can elect to make a task optional at the time of workflow execution.
Note
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
Step 9
Step 10
Step 11
You cannot map an optional workflow input to a mandatory task input (attribute). A mismatch error will
be displayed during the User Input Mapping stage.
On the menu bar, choose Policies > Orchestration.
Open the Workflows folder.
Click on a task.
Click Edit Workflow. The Edit Workflow screen appears.
Click Next in order to access the Modify User Inputs screen.
Click on an input that you want to edit in the inputs table. The Edit Entry dialog box appears.
Check the Optional checkbox in order to make this input optional (at the time of execution).
Note
The initial workflow input is now re-mapped as a task
input.
Click Submit .
Click Ok.
Click Submit.
Click Ok.
Filter Criteria Syntax for Admin Input Filter
At various points in creating your workflow you can use filters to help you refine the selection of data. When
working with the Admin Input Filter parameter you can enter values in the Input Filter Criteria field to
further enhance your workflow development. The filter syntax is best used when you have a large number of
inputs. For example, if you have a workflow task that works on certain VMs and there are over 1000 VMs in
your Cisco UCS Director installation, using this filter lets you highlight only the VMs that are applicable to
Cisco UCS Director Orchestration Guide, Release 5.0
20
OL-31123-04
Creating Workflows
Filter Criteria Syntax for Admin Input Filter
your workflow development. With the Admin Input Filter option you can apply filters on a VM, which exists
on a particular cloud account, then you can filter the data on that cloud account (and listed in a table) and
receive only the VMs that belong to that specific cloud account.
In another example, in constructing workflows you enter information into the Admin Input Filter field. Using
this filter you can, as described above, filter for required VMs from a particular cloud account. In actuality,
this filtered list of VMs only appears when you execute the workflow. So while you define the filter criteria
early in the workflow design stage, the actual lists of VMs are displayed for selection only when the workflow
is executed.
Filtering for Tabular Type Data Types
The filtering for all tabular type data types (general) command syntax and example are shown below:
<column label>EQUALS|NOT_EQUALS|CONTAINS|NOT_CONTAINS|IS_SUBSET|NOT_SUBSET<value1> OR <simple
match
regex> OR <value n> AND <column
label>EQUALS|NOT_EQUALS|CONTAINS|NOT_CONTAINS|IS_SUBSET|NOT_SUBSET<value1>OR<value2>OR<value
n>
For example, if you want to match a VM's name, testvm, the only valid regular expression possible are either
test* or *vm. No other combinations are possible. In this case, the match is considered a greedy match
(appearing at the beginning or ending of a regular expressions).
Note
The command syntax used in your workflows do not support standard UNIX regular expressions.
Example Syntax
cloud CONTAINS vcenter OR vcenter98 AND power status EQUALS OFF OR "not determined"
The "AND" join condition applies filtering on the already filtered rows. AND acts like a cascading filter. The
first part of the expression searches for all the rows in the VM selector table for the column named cloud. It
also checks for the presence of the string named vcenter or vcenter98.
The second part of the expression searches the resultant rows from the previous expression. It also searches
for the presence of the string named off or "not determined".
The corresponding row of data is displayed for user of the workflow only when conditions 1 and 2 match due
to the presence of the and condition (placed between conditions 1 and 2). If the keyword to be searched is
entered within quotes, its searched against the exact case.
Note
You cannot use the OR condition between condition 1 and condition 2. You must use AND when combining
the conditions between columns and use the OR condition for filtering data in a column. Also, if you want
to search a column label (containing two or more words), the words must be enclosed in double quotes.
The filtering conditions must use the exact case or else the filtering values are ignored.
Filtering for List of Values (LOV) Data Types
LOV types use only single values, in order to filter on those values you just need to mention the condition.
The filtering syntax for all List of View (LOV) data types command syntax is shown below:
EQUALS|NOT_EQUALS|CONTAINS|NOT_CONTAINS <value1>
OR <simple match regex> OR <value n>
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
21
Creating Workflows
Filter Criteria Syntax for Admin Input Filter
Example Syntax
EQUALS off OR "not determined"
The above command syntax executes the workflow and displays a filtered list of the LOVs. If the keyword
to be searched is entered within quotes, its searched against the exact case.
Filtering for Numeric Data
Certain numeric data such as disk size, LUN size, volume size are specified by units -- megabytes(MB),
gigabytes(GB) and terabytes(TB). When you use the filter criteria described in Filtering for Tabular Type
Data Types, on page 21 and Filtering for Tabular Type Data Types, on page 21, you must specify the
numeric value and its units in the command syntax. For example, if you have a workflow task that requires
80 GB for disk size, in the command syntax, you must specify the unit GB in addition to the numeric value
of 80. You will see incorrect results upon workflow execution if you do not specify the units.
Example Syntax
"EQUALS'80 GB'"
Adding Tasks to a Workflow
Orchestrator contains a set of predefined tasks that you can readily use to create workflows. Tasks are
categorized based on their functionality and can be accessed from the Workflow Designer interface.
Step 1
From the Orchestrator window, choose a workflow.
Step 2
Click Workflow Designer. The Workflow Designer window appears.
Step 3
On the left-side of the Workflow Designer, select a category and click the Available Tasksfolder.
Step 4
Click on a required task and drag-and-drop the selected task onto the Workflow Designer window.
Adding a Create VM Snapshot Action to the Workflow
Note
In this task you provide the VM Name at the time of workflow execution.
Step 1
Step 2
Step 3
On the menu bar, choose Policies > Orchestration.
Click the Workflows tab.
From the Workflow Designer window, drag-and-drop the Create a VM Snapshot task to the Workflow Designer window.
Step 4
In the Workflow Task Basic Information screen complete the following fields:
Name
Description
Task Name field
The name of the task.
Task Category field
The name of the category task (preselected information).
Cisco UCS Director Orchestration Guide, Release 5.0
22
OL-31123-04
Creating Workflows
Filter Criteria Syntax for Admin Input Filter
Step 5
Step 6
Name
Description
Task Type field
The name of the type of task (preselected information).
Comments field
The area to enter additional task information.
Retry Execution check box
The Retry Execution check box to retry a task (at a later
time) if the task fails. This is useful when the state of a
resource is not available and a retrial of the task depends
on the state.
Retry Count drop-down list
Choose the number of attempts to perform a retry.
Retry Frequency drop-down list
Choose the amount of time between the attempts at a retry.
The workflow pauses until the task is retried n times on
failure or until it succeeds before it can continue with the
next task or completion of the workflow.
Click Next.
In the User Input Mapping to Task Input Attributes screen, complete the following fields:
Name
Description
Select VM: Map to User Inputcheck box
Check the check box to ensure inputs are prompted during
workflow execution (unless specified by the administrator
in the workflow definition).
Name of the User Input drop-down list
Choose the name of the user input.
Snapshot Name: Map to User Inputcheck box
Check the checkbox to ensure inputs are prompted during
workflow execution (unless specified by the administrator
in the workflow definition).
Note
Step 7
Step 8
If you do not have any inputs mapped, you must provide those inputs need to be provided in the next screen.
Click Next.
Complete the following fields:
Name
Description
Revalidate icon
Click the Revalidate icon to revalidate the current values.
Snapshot Name field
The name of the snapshot
Snapshot Memory checkbox
Check the check box to enable snapshot memory to capture
the memory of the VM.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
23
Creating Workflows
Filter Criteria Syntax for Admin Input Filter
Step 9
Name
Description
Quiesce Filesystem check box
Check the check box to pause running processes on the
guest operating system so that file system contents are in
a known consistent state when a snapshot is taken.
Click Submit.
Adding a Resize VM Disk Action to the Workflow
Step 1
Step 2
Step 3
On the menu bar, choose Policies > Orchestration.
Click the Workflows tab.
From the Available Tasks pane, drag-and-drop the Resize VM Disk task to the Workflow Designer window.
Step 4
In the Workflow Task Basic Information screen, complete the following information:
Step 5
Step 6
Name
Description
Task Name field
The name of the task.
Task Category field
The name of the category task (preselected information).
Task Type field
The name of the type of task (preselected information).
Comments field
The area to enter additional task information.
Retry Execution check box
The Retry Execution checkbox lets you retry a task (at a
later time) if the task fails. This is useful when the state of
a resource is not available and a retrial of the task depends
on the state.
Retry Count drop-down list
The number of attempts to perform a retry.
Retry Frequency drop-down list
The duration between the attempts at a retry. The workflow
pauses until the task is retried n times on failure or until it
succeeds before it can continue with the next task or
completion of the workflow.
Click Next.
In the User Input Mapping to Task Input Attributes screen, complete the following fields:
Cisco UCS Director Orchestration Guide, Release 5.0
24
OL-31123-04
Creating Workflows
Linking Tasks
Name
Description
Select VM: Map to User Input check box
Check the check box to ensure inputs are prompted during
workflow execution (unless specified by the administrator
in the workflow definition).
Name of the User Input drop-down list
Choose the name of the user input.
New Disk Size (GB) check box
Check the checkbox to map user input to the new disk size.
If you do not have any inputs mapped, then those inputs need to be provided in the next screen. In the above
task you must select the VM that needs to be resized and provide a new value (GB) for the resizing.
Click Next.
Note
Step 7
Step 8
Step 9
In the User Input Mapping screen, complete the following fields:
Name
Description
Revalidate icon
Click the icon to revalidate the current values.
New Disk Size (GB) field
The size of the disk (GB).
Click Submit.
Linking Tasks
Linking tasks is required in order to assemble a complete workflow. Some elements of workflow construction
are automatically. For example, every workflow has the following three task icons added by default:
• Start task icon (blue)
• Completed (Success) task icon (green)
• Completed (Failure) task icon (red)
Tasks need to be linked to each other in the required flow. Every task has both the success (green) and failure
(red) options embedded with them. The entire process begins by creating a new workflow.
Step 1
Step 2
Step 3
Step 4
On the menu bar, choose Policies > Orchestration.
Choose the Workflows tab.
Click Add New Workflow.
In the Add Workflow screen, complete the following fields.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
25
Creating Workflows
Exporting Workflows as Templates
Name
Description
Workflow Name field
The workflow name.
Description field
The description of the workflow.
Workflow Context from the drop-down list
The workflow context. Orchestrator supports the following
options:
• Any. Any lets the workflow be used in any context.
• Selected VM. Lets the workflow be executed only
when a VM is selected.
Step 5
Step 6
Step 7
Step 8
Step 9
Step 10
Step 11
Step 12
Step 13
Step 14
Step 15
Save as Compound Task checkbox
Defines the workflow as a compound task.
Place in New Folder checkbox
Assigns the workflow to a new folder.
Select Folder drop-down list
Choose the proper folder from the drop-down list.
Click Next.
In the Edit Workflow: Add User Inputs screen, complete the following fields:
Click Add User Inputs for any additional user inputs.
Click Submit. An empty workflow is created.
From inside the Workflow Designer pane, place your cursor on the Start task icon. A portion of the task icon is
highlighted green or red.
From the Available Task pane drag-and-drop a task (for example, CreateClusterServer task icon) onto the Workflow
Designer page.
From the Available Task pane drag-and-drop the CreateClusterLogicalInterface_2167 task icon onto the Workflow
Designer page.
Click on the green portion of the Start task icon and drag your cursor to the first task (for example, CreateClusterServer
task icon). A link is established. When this task is successful, the workflow grows in functionality. Do this step for all
tasks of a workflow (both success and failure).
Click on the red portion of the Start task icon and drag your cursor to the Completed (Failed) task icon.
On the CreateClusterLogicalInterface task icon move your cursor over the red area (right-side) and drag to the
Completed (Failed) task icon.
Click Validate Workflow.
Exporting Workflows as Templates
Workflows utilized often can be exported as templates for use in different administrative scenarios. When
you export a template, all of the tasks within the workflow are retained. A template can be imported into
another Cisco UCS Director environment and used as a workflow as well. When you create a new workflow
Cisco UCS Director Orchestration Guide, Release 5.0
26
OL-31123-04
Creating Workflows
Exporting Workflows as Templates
using a template, the inputs within the tasks that were mapped cannot be modified. However, you can modify
the inputs which were not mapped can be modified.
Creating a Template from a Workflow
Step 1
Step 2
Step 3
Step 4
On the menu bar, choose Policies > Orchestration. The Orchestration window appears.
Choose the Workflows tab.
Choose a workflow and click Export As Template.
In the Export as Template screen, complete the following fields:
Step 5
Name
Description
Template Name field
The name for the template.
Description field
The description for the template.
Click Submit.
Creating a Workflow from a Template
Step 1
Step 2
Step 3
On the menu bar, choose Policies > Orchestration.
Choose the Templates tab.
Choose a template and click Create Workflow.
Orchestrator supports importing and using predefined templates. The templates are available under the Workflow
Templates tab and can be used to create new workflows. You can complete the following templates:
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
27
Creating Workflows
Exporting Workflows as Templates
Name
Purpose
Customer Onboarding template Workflow for customer onboarding (secure
multitenancy)
Description
Workflow performs the
following:
• Creates a CUIC group
admin vDC
• Generates a VLAN from
the selected VLAN policy
• Creates a VLAN on the
selected Cisco Nexus 5000
Series switches
• Creates a port profile on
selected Nexus 1000v
Series switches
• Creates a VLAN interface,
creates flexible volume,
creates and establishes
vFiler on the controller,
and mounts the storage as
a datastore on a selected
host node
Deploy ESXi Host template
Workflow deploys a new blade as an ESXi Host
on VMware (vCenter) account
Workflow performs the
following:
• Creates a service profile
• Associates service profile
to a selected server
• Configures SAN zone(s)
on a Cisco Nexus 5000
Series switch
• Establishes a PXE boot
• Monitors PXE booting and
registers the host with a
selected VMware (vCenter)
account
Cisco UCS Director Orchestration Guide, Release 5.0
28
OL-31123-04
Creating Workflows
Exporting Workflows as Templates
Name
Purpose
Description
Deploy ESXi Host with
ONTAP template
Workflow deploys a new blade as an ESXi Host
on VMware (vCenter) account.
Workflow performs the
following:
• Creates a service profile
• Associates a service profile
to a selected server
• Configures SAN zone(s)
on Cisco Nexus 5000
Series switch
• Establishes a PXE boot
• Monitors PXE booting and
registers the host with a
selected VMware (vCenter)
account
Deploy ESXi Host of Local
Workflow deploys a new blade as an ESXi host
Storage (without a Cisco Nexus of local Storage (without using a Cisco Nexus
1000v Series switch) template 1000v Series switch) on VMware (vCenter)
account
Workflow performs the
following:
• Creates a service profile
• Associates service profile
to a selected server
• Configures SAN Zone(s)
on Cisco Nexus 5000
Series switch
• Establishes a PXE boot
• Monitors PXE booting and
registers the host with a
selected VMware (vCenter)
account
Attache VLAN to Storage
Controller template
Workflow attaches NetApp storage controller's
Ethernet ports to a new VLAN
Workflow performs the
following:
• Generates a VLAN from
the selected VLAN policy
• Creates a VLAN on the
selected devices
• Creates a VLAN interface
• Creates vFiler on the
controller
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
29
Creating Workflows
Creating a Compound Task
Creating a Compound Task
A compound task is a collection of multiple tasks. Compound tasks allow you to perform complex workflows.
Compound tasks comprise of single workflows that contain multiple workflows (embedded workflows). You
can define a simple workflow and save it as a compound task (Compound Task A = workflow A) and later
you can define another workflow and use Compound Task A (which is another workflow) as part of the new
workflow. You can also use this pattern to define simple-to-complex workflows.
Step 1
Step 2
Step 3
Step 4
On the menu bar, choose Policies > Orchestration.
Choose the Workflow tab.
Click Add New Work Flow.
In the Workflow Details screen, complete the following fields:
Name
Description
Workflow Name field
The workflow name.
Description field
The description of the workflow.
Workflow Context drop-down list
Choose the workflow context. Orchestrator supports the
following options:
• Any-Allows the workflow be used in any context.
• Selected VM -Allows the workflow be executed only
when a VM is selected.
Step 5
Step 6
Save as Compound Task check box
Check the check box to save the workflow as a compound
task.
Place in New Folder check box
Check the check box to assign the workflow to a new
folder.
Folder Name field
The name of folder.
Click Next.
In the Add User Inputs screen, complete the following fields:
Name
Description
Input Label field
The label assigned to the input.
Input Description field
The description of the input.
Cisco UCS Director Orchestration Guide, Release 5.0
30
OL-31123-04
Creating Workflows
Custom Approval Tasks
Step 7
Step 8
Name
Description
Input Type field
The type of category.
Admin Input field
The area that allows the administrator to provide the input.
The administrator provides input based on the input type.
The inputs are not required to be provided by the end user
who executes the workflow. The administrator can prevent
an end user from providing certain types.
Admin Input List field
The current administrator's list of inputs. The existing list
cannot be changed. However, the order of the new inputs
can be changed (for example, the grid that displays all of
the input fields).The hard limit for the Admin Input List
field is 256 values.
Admin Input Filter field
The administrator's input filter value used to define custom
inputs based on a filter (static or d dynamic). For example,
you can filter on aggregate, volumes, and POD.
Click Add User Inputs for any additional user inputs.
Click Submit. An empty workflow is created.
Custom Approval Tasks
You can provision workflows to accept approvals using the Custom Approval Tasks feature, which allows
the infrastructure administrators (compute, storage and network) or any type of system user to provide inputs
for the execution of workflows.
Custom approval tasks let specific users approve a workflow before it can be executed. The approver's name
is requested when adding this task to a workflow. The same individuals can also provide inputs that were
previously defined in the custom approval task. After those approval tasks are defined, they can be added to
the workflow. Next, you are prompted to enter the name of the approver of the task. When the workflow is
executed, it pauses at the approval task. An approver can see this approval designation under the Approvals
tab. The approver provides any needed inputs (which can be mapped to subsequent tasks) that were previously
configured. After a workflow is approved, the workflow resumes execution.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
31
Creating Workflows
Creating a Custom Approval Task
Creating a Custom Approval Task
Step 1
Step 2
Step 3
Step 4
Step 5
On the menu bar, choose Policies > Orchestration.
Choose the Custom Approval Tasks tab.
Click Add.
In the Add Inputs screen, complete the following fields:
Name
Description
Add Input field
The inputs to the custom approval task. Every input added
to this task needs to be provided by the user who approves
the workflow containing this approval task.
Approval Task Name field
The name of the approval task as it appears in the Workflow
Designer.
Approval Task Description field
The description of the approval task.
Input Label field
The label for the input (supplied by the approver of the
task).
Input Description field
The description of the input.
Input Type field
The category of the input (supplied by the approver of the
task).
(Optional) Input check box
If checked, requires the administrator to provide input.
Once checked the administrator needs to provide the input
based on the input type. The approver of the task is not
required to provide input.
Click Submit.
Adding a Custom Approval Task to a Workflow
Adding a custom approval task to a workflow is similar to adding any other task to a workflow. In the User
Input Mapping stage of the task creation, you can determine if an approver is required to approve this workflow
Cisco UCS Director Orchestration Guide, Release 5.0
32
OL-31123-04
Creating Workflows
Custom Input Value
at the time of execution. If approval is not required at the time of execution, Orchestrator prompts you for the
name of the approver at the Task Inputs stage of the process.
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
Step 9
On the menu bar, choose Policies > Orchestration.
Choose the Workflows tab.
Choose a workflow to add the custom approval task from the Available Tasks pane. The Workflow Designer page
appears.
Drag the custom approval task from within the Custom Approval Tasks folder onto the Workflow Designer pane.
From the Custom Approval Tasks folder, drag a task onto the Workflow Designer pane.
In the Add Task screen, check the Map to User Input check box if the approver name needs to be provided during
execution of the workflow. Otherwise, you can provide the approver's name when you execute the workflow.
Click Next.
Enter the User ID.
Click Submit.
Custom Input Value
When you create custom input types, you can use them as workflow inputs. Custom input types can be defined
by providing a new list of values (for example, as a key or value tuple), specifying a filter criteria to filter out
values shown, or choosing a unique selection (set) of values.
Step 1
Step 2
Step 3
Step 4
On the menu bar, choosePolicies > Orchestration.
Click the Custom Workflow Inputs tab.
Click Add.
In the Add Custom Workflow Input screen, complete the following fields:
Name
Description
Custom Input Type Name field
The input name. For example, a corporate email address
could be used as a key value pair.
Input Type tabular pop-up
Choose a type of input. Based on what you choose for the
type of input you can use additional filters to further refine
your selection. These filters are check boxes that can be
one or more of the following:
• Input Filter
• Input List
• Input LOV
• Input Range
• Validated Input
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
33
Creating Workflows
Example: Creating a Custom Input Type by using a List of Values (LOV)
Step 5
Step 6
Step 7
Step 8
Click the (+) Add icon.
In the Add Custom Workflow Input: Custom Input Details screen, complete the following fields:
Name
Description
Custom Input Type Name field
The input name. For example, a corporate email address
could be used as a key value pair.
Input Type drop-down list
Choose a type of input.
LOV Entries table
The current list of values. Not all input types require a
LOV. For some input types you can only do a selection or
specify a filter criteria.
Click (+) Add icon.
In the Add Entry to LOV Entries dialog box, complete the following fields:
Name
Description
Label field
The label that is exposed to the user.
Value field
The value that is hidden to the user.
The Label field and Value field descriptions should
match.
Click Submit to add it to the custom workflow types.
Click OK.
Click Submit.
Click OK to finalize the process. The new custom workflow input appears in the Custom Workflow Inputs list.
Note
Step 9
Step 10
Step 11
Step 12
Example: Creating a Custom Input Type by using a List of Values (LOV)
The example below describes how to establish a list of values based on a password.
Step 1
Step 2
Step 3
Step 4
On the menu bar, choose Policies > Orchestration.
Click the Custom Workflow Inputs tab.
Click the (+) Add icon.
In the Add Custom Workflow Input screen, complete the following fields:
Cisco UCS Director Orchestration Guide, Release 5.0
34
OL-31123-04
Creating Workflows
Example: Creating a Custom Input Type by using a List of Values (LOV)
Name
Description
Custom Input Type Name field
The input name. For example, a corporate email address
could be used as a key value pair. Or the name could relate
to a device's login credentials (for example, device login
creds).
Input Type tabular pop-up
Choose a type of input. Based on what you choose for the
type of input you can use additional filters to further refine
your selection. These filters are check boxes that can be
one or more of the following:
• Input Filter
• Input List
• Input LOV
• Input Range
• Validated Input
Step 5
Click Select.... The Select screen displays.
Step 6
Step 7
Step 8
Step 9
Enter Password into the search field. A list of possible check boxes appears that make use of the word password.
Check the Password check box.
Click Select. The Custom Input Details screen appears.
Click the (+) Add icon. The Add Entry to LOV Entries screen appears, complete the following fields.
Step 10
Step 11
Step 12
Step 13
Name
Description
Label field
The label that is exposed to the user.
Value field
The value that is hidden to the user. Password entries are
not displayed.
Enter admin in the Label field.
Enter the password text in the Value field (not displayed).
Click Submit.
Click OK. The Custom Input Details screen appears, complete the following for the following fields.
Name
Description
Label field
The label that is exposed to the user.
Value field
The value that is hidden to the user. Password entries are
not displayed.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
35
Creating Workflows
Example: Creating a Custom Input Type by using a List of Values (LOV)
Step 14
Step 15
Step 16
Step 17
Step 18
Step 19
Step 20
Step 21
Step 22
Step 23
Step 24
Enter root in the Label field.
Enter the password text in the Value field (not displayed).
Click Submit.
Click OK. The entries appear in the LOV Entries table.
Click the Add (+) icon. The Add Entry to LOV Entries screen appears, complete the following fields.
Name
Description
Label field
The label that is exposed to the user.
Value field
The value that is hidden to the user. Password entries are
not displayed.
Enter tech in the Label field.
Enter text in the Value field (not displayed).
Click Submit.
Click OK. The entries appear in the LOV Entries table.
Click Submit.
Click OK.
Note
The next stage is to add the custom input into the workflow. Refer to the Adding a Custom Input into a
Workflow topic.
Adding a Custom Input into a Workflow
Step 1
Step 2
On the menu bar, choose Policies > Orchestration.
Click the Workflows tab.
Step 3
Step 4
Click the Add Workflow icon.
In the Add Workflow: Workflow Details screen, complete the following fields:
Name
Description
Workflow Name field
The workflow name.
Description field
The description of the workflow.
Cisco UCS Director Orchestration Guide, Release 5.0
36
OL-31123-04
Creating Workflows
Example: Creating a Custom Input Type by using a List of Values (LOV)
Name
Description
Workflow Context drop-down list
The workflow context. Orchestrator supports the following
options:
• Any-Allows the workflow to be used in any context.
• Selected VM- Allows the workflow to be executed
only when a VM is selected.
Step 5
Step 6
Step 7
Step 8
Step 9
Step 10
Save as Compound Task check box
Check the check box to defines the workflow as a
compound task.
Place in New Folder check box
Check the check box to assign the workflow to a new
folder.
Select Folder drop-down list
Choose the proper folder.
Enter Device Creation in the Workflow name field.
Check the Place in New Folder check box.
Enter a name in the Folder Name field.
Click Next. The Workflow User Inputs screen appears.
Click the Add (+) icon.
In the Add Entry to dialog box appears, complete the following fields:
Name
Description
Input Label field
The input name. For example, a corporate email address could be used
as a key value pair. Or the name could relate to login credentials (for
example, root privileges).
Input Description field
The description of the input.
Input Type field
The type of input category.
Admin Input checkbox
If checked, requires the administrator to provide input. Once checked
the administrator needs to provide the input based on the input type.
The approver of the task is not required to provide input.
Admin Input Filter check box
If checked, requires the administrator to provide input based on certain
filter criteria.
Admin Input List check box
If checked, provides the administrator access to previously created lists.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
37
Creating Workflows
Example: Establishing a List of Values Based on Filter Criteria
Step 11
Step 12
Step 13
Step 14
Step 15
Step 16
Step 17
Step 18
Step 19
Click Select....The Select dialog box appears.
Check the device login creds check box.
Click Select. The Add Entry dialog box appears.
In the Value Restrictions area, check the Admin Input check box.
From the Admin Input Value drop-down list choose root.
Click Submit.
Click OK.
In the Workflow User Inputs screen, click the Add Input (+) button. The Add Entry to dialog box appears.
In the Input Label field, enter tech privileges.
Step 20
Step 21
Step 22
Step 23
Step 24
Step 25
Step 26
Step 27
Step 28
Click Select.
In the Select dialog box, check the device login creds check box.
Click Select. The Add Entry dialog box appears.
In theValue Restrictions area, check the Admin Input check box.
From the Admin Input Value drop-down list, choose tech.
Click Submit.
Click OK.
Click Submit.
Click OK.
Example: Establishing a List of Values Based on Filter Criteria
The example below describes how to establish a list of values based on filter criteria.
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
On the menu bar, choosePolicies > Orchestration.
Click the Custom Workflow Inputs tab.
Click (+) Add icon.
In the Add Custom Workflow Input dialog box, complete the following fields:
Name
Description
Custom Input Type Name field
The input name. For example, a corporate email address
could be used as a key value pair. Or the name could relate
to a device's login credentials (for example, device login
creds).
Input Type tabular pop-up
Choose a type of input.
Click Select.....
In the Select dialog box, complete the following fields:
Cisco UCS Director Orchestration Guide, Release 5.0
38
OL-31123-04
Creating Workflows
Example: Establishing a List of Values Based on Filter Criteria
Step 7
Step 8
Step 9
Step 10
Step 11
Step 12
Name
Description
Input Label field
The input label name. While defining custom inputs, you
can define inputs based on certain filter conditions. The
manner in which these conditions are to be defined is the
same manner you used when defining the filter conditions
for workflow inputs (using the Admin Input Filter option).
When you create a filtered list of custom inputs, the filtering
occurs while you are defining the custom inputs. When
you use custom inputs, while defining the workflow inputs,
you are choosing from a filtered list. For example, a
corporate email address could be used as a key value pair.
Or the name could relate to login credentials (for example,
root privileges).
Input Description field
The description of the input.
Input Type field
The type of input category.
Admin input check box
If checked, requires the administrator to provide input.
Once checked the administrator needs to provide the input
based on the input type. The approver of the task is not
required to provide input.
Admin Input Filter check box
If checked, requires the administrator to provide input based
on certain filter criteria.
Admin Input List check box
If checked, provides the administrator access to previously
created lists.
Enter root privileges in the Input Label field.
Click Select.... The Select table appears.
Enter log in the Search field to identify login specific entries.
Check the device login creds check box.
Click Select.
The Add Entry to dialog box appears, complete the following fields:
Name
Description
Input Label field
The input name. For example, a corporate email address
could be used as a key value pair. Or the name could relate
to a device's login credentials (for example, device login
creds).
Input Description field
The input description.
Input Type field
The input type.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
39
Creating Workflows
Example: Establishing a List of Values Based on Filter Criteria
Name
Description
Admin input check box
If checked, requires the administrator to provide input.
Once checked the administrator needs to provide the input
based on the input type. The approver of the task is not
required to provide input.
Admin Input Filter check box
If checked, requires the administrator to provide input based
on certain filter criteria.
Admin Input List check box
If checked, provides the administrator access to previously
created lists.
Notice how the Input Label field is
prepopulated.
Check the Admin Input check box.
Click the Admin Input Value drop-down list to verify that the previous selections are visible (admin, root, and tech).
From the Admin Input Value drop-down list choose root.
Click Submit. The entry is added successfully. The Workflow User Inputs screen appears.
Click the (+) Add icon.
The Add Entry to dialog box appears, complete the following:
Note
Step 13
Step 14
Step 15
Step 16
Step 17
Step 18
Name
Description
Input Label field
The input name. For example, a corporate email address
could be used as a key value pair. Or the name could relate
to a device's login credentials (for example, device login
creds).
Input Description field
The input description.
Input Type field
The input type.
Admin Input check box
If checked, requires the administrator to provide input.
Once checked the administrator needs to provide the input
based on the input type. The approver of the task is not
required to provide input.
Admin Input Filter check box
If checked, requires the administrator to provide input based
on certain filter criteria.
Admin Input List check box
If checked, provides the administrator access to previously
created lists.
Cisco UCS Director Orchestration Guide, Release 5.0
40
OL-31123-04
Creating Workflows
Example: Establishing a List of Values Based on Filter Criteria
Step 19
Step 20
Step 21
Step 22
Step 23
Step 24
Step 25
Step 26
Step 27
Step 28
Step 29
Step 30
Enter tech privileges in the Input Label field.
Click Select... to choose an input type. The Select dialog box appears.
Enter cre in the Search field to identify the credentials related input types.
Check the device login creds check box.
Click Select.
The Add Entry dialog box appears, complete the following:
Name
Description
Input Label filed
The input name. For example, a corporate email address
could be used as a key value pair. Or the name could relate
to a device's login credentials (for example, device login
creds).
Input Description filed
The input description.
Input Type field
The input type.
Admin Input check box
If checked, requires the administrator to provide input.
Once checked the administrator needs to provide the input
based on the input type. The approver of the task is not
required to provide input.
Admin Input Filter check box
If checked, requires the administrator to provide input based
on certain filter criteria.
Admin Input List check box
If checked, provides the administrator access to previously
created lists.
Check the Admin Input check box.
From the Admin Input Value drop-down list choose tech.
Click Submit.
Click OK.
From the Workflow User Inputs screen click Submit.
Click OK.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
41
Creating Workflows
Example: Creating a Custom Input Type by a Unique Selection
Example: Creating a Custom Input Type by a Unique Selection
The example below describes how to establish a list of values based on a unique selection (for example,
multiple VMs).
Step 1
Step 2
Step 3
On the menu bar, choose Policies > Orchestration.
Click the Custom Workflow Inputs tab.
Choose the VM deployment list input.
Note
Notice that the Custom Values Filter field is prepopulated with search values.
Step 4
Step 5
In the Custom Input Type screen, uncheck the Input Filter check box.
Check the Input List check box.
Note
Notice that the Input Type field is prepopulated with the value
vm.
From the Tabular Values drop-down list, check one or more cloud entry check boxes.
Click Select.
From the Custom Input Details screen click Close.
Choose the Workflows tab.
Click the (+) Add Workflow icon. The Workflow Details screen appears.
In the Workflows Details screen, complete the following fields:
Step 6
Step 7
Step 8
Step 9
Step 10
Step 11
Name
Description
Workflow Name field
The workflow name.
Description field
The description of the workflow.
Workflow Context drop-down list
The workflow context. Orchestrator supports the following
options:
• Any-Allows the workflow to be used in any context.
• Selected VM- Allows the workflow to be executed
only when a VM is selected.
Step 12
Step 13
Save as Compound Task check box
Check the check box to defines the workflow as a
compound task.
Place in New Folder check box
Check the check box to assign the workflow to a new
folder.
Select Folder drop-down list
Choose the proper folder.
Click Next.
In the Add Entry screen, complete the following:
Cisco UCS Director Orchestration Guide, Release 5.0
42
OL-31123-04
Creating Workflows
Accessing the Input/Output Tab
Name
Description
Input Label field
The input name. For example, a corporate email address
could be used as a key value pair. Or the name could relate
to a device's login credentials (for example, vm input).
Input Description field
The input description.
Input Type field
The input type.
Admin Input check box
If checked, requires the administrator to provide input.
Once checked the administrator needs to provide the input
based on the input type. The approver of the task is not
required to provide input.
Admin Input Filter check box
If checked, requires the administrator to provide input based
on certain filter criteria.
Admin Input List check box
If checked, provides the administrator access to previously
created lists.
Notice that the Admin Input check box is automatically
checked.
Click Submit.
Note
Step 14
Moving Inputs
After creating a workflow, you can change the order in which workflow user inputs are processed when the
workflow is executed.
Step 1
Step 2
Step 3
Step 4
In the Edit Workflow: Workflow User Inputs screen choose an input from the input table.
Click the (green) Up Arrow icon or Down Arrow icon to change the inputs original order.
Click Submit.
Click OK.
Accessing the Input/Output Tab
The input/output tab displays a listing of the values for a particular task (residing in a workflow) at the time
of approval. There are four variations of an input or output that may be visible:
• Administrator input
• Task input
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
43
Creating Workflows
Accessing Outputs from a Previous Task
• Output (of a particular task)
• Mapping (for example, SendEmail_94.EMAIL_ADDRESSES)
In the above mapping example, SendEmail_94.EMAIL_ADDRESSES is getting mapped to an input of another
task.
Step 1
Step 2
Step 3
On the menu bar, choose Organizations > Service Requests.
Click on a service request. The input/output table appears.
Click the Input/Output tab. The values of a particular task inside a workflow are accessible from this tab. The four
input/output variations, mentioned previously, appear in the Input/Output column.
Note
From the Input/Output tab you can also see the workflow, and in particular the output of a task (for example,
SendEmail_94.EMAIL_ADDRESSES). From this tab you can also view how an output may be mapped as an
input to another task in a workflow. The task status information in the Input/Output tab also mirrors the status
of the Workflow Status tab.
Accessing Outputs from a Previous Task
It is possible to access the output of previous task in your workflow (for example, in a SSH task). For referencing
the output value of a previous task, you should refer the full task output variable name as shown in the example
below:
{Associate AP.OUTPUT_UCS_BLADE_MAC_ADDRESS}
Instead of:
{OUTPUT_UCS_BLADE_MAC_ADDRESS}
Cross Launching Workflow Inputs
You can create and cross launch workflow inputs while modifying or adding tasks.
Step 1
From the Workflow Designer pane, open an existing workflow (for example, AddServiceConsolePortGroup_322).
Step 2
Step 3
Step 4
Click on the task icon.
From the Edit Task dialog box (displaying mandatory and optional inputs) you can re-select inputs.
Click the Manage Workflow User Inputs button. The Workflow User Inputs dialog box appears.
Name
Description
Input Label field
The label assigned to the input.
Input Description field
The description of the input.
Optional checkbox
If checked, marks the input as optional at the time of
workflow execution.
Cisco UCS Director Orchestration Guide, Release 5.0
44
OL-31123-04
Creating Workflows
Registering Custom Workflow Inputs
Step 5
Step 6
Name
Description
Input Type field
The type of input category. During the editing and saving
of a workflow task, the Input Type field is no longer
editable.
Admin Input Value field
The current administrator's list of inputs. The existing list
cannot be changed. However, the order of the new inputs
can be changed (for example, the grid that displays all of
the input fields).
From the Workflow User Inputs dialog box click the (+) Add Workflow User Input icon to add a new input.
Click Submit.
Registering Custom Workflow Inputs
Note
As a prerequisite you should develop the required TaskConfigIf and the AbstractTask components for
your custom workflow.
You can develop your own input types in Cisco UCS Director. However, they must be prefixed with your
module ID. An example is shown below:
public static final String NEXUX_DEVICE_LIST = "foo_nexus_device_l:
@UserInputField(type = ModuleConstants.NEXUS_DEVICE_LIST)
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
45
Creating Workflows
Registering Custom Workflow Inputs
In this example, ModuleContrants.NEXUS_DEVICE_LIST resolves to foo_nexus_device_list.
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
Step 9
Step 10
Step 11
Step 12
Step 13
Step 14
Step 15
Step 16
Step 17
Step 18
Step 19
In UCS Director, choose Policies > Orchestration, then select Workflows. The Workflows tab displays a table that
lists the available workflows.
Choose Add Workflow to open the Add Workflow dialog box.
From the Workflow Context drop-down list, choose the workflow context. This workflow is used in the selected content.
From the Workflow Context drop-down list, choose the workflow context. This workflow is used in the selected content.
Check the Save as Compound Task checkbox, to use this workflow as a task in another workflow.
Check the Place in New Folder checkbox, to create a new folder for placing this workflow.
From the Select Folder drop-down list, choose a folder under which the workflow needs to be added.
Click Next. The Workflow User Inputs screen appears.
Click the Add icon.
In the Add Entry to window, enter the unique name and description for the workflow user input.
Click Select, to choose a type of input. Based on the selected input type, other fields appear.
Click Submit. The defined input is added to the workflow.
Click Submit. The workflow is created under the selected folder.
In the upper left corner, choose Add User Inputs.
Navigate to the folder where you have created the workflow.
Click the workflow. The Workflow Designer window opens, displaying an Available Tasks list and the Workflow
Design graphical view.
Click on a required task from the Available Tasks list and drag-and-drop the selected task onto the Workflow Designer
window.
Click Next. The User Input Mapping screen appears.
Select attributes that you would like to use values from workflow input field.
• If Map to User Input is checked for the selected task, inputs are prompted during workflow execution. From the
User Input drop-down list, choose the input.
Cisco UCS Director Orchestration Guide, Release 5.0
46
OL-31123-04
Creating Workflows
Exporting a Workflow as an Image
• If the selected task has no attributes that can be mapped to user input, click Next.
Step 20
Step 21
Step 22
Step 23
Step 24
Step 25
Step 26
Step 27
Step 28
Step 29
Step 30
Step 31
Click Next.
Enter the values for the task inputs that are not mapped to workflow inputs.
Click Submit. The workflow task is saved.
Place your cursor at the lower left corner of the task, an on success task icon appears in green.
Move your cursor over the green area and drag to the next task or Completed (Success) task icon.
Place your cursor at the lower right corner of the task, an on failure task icon appears in red.
Move your cursor over th e red area and drag to the Completed (Failure) task icon. The tasks are linked to form a
complete workflow.
Click Close.
Select the workflow and click Execute Now. The system provides the service requests ID for the submitted workflow.
Choose Organization > Sevice Requests. The Service Requests for all user group appears.
Click the Service Requests tab.
Select the submitted workflow. You can use the service request ID to search for the workflow. The Workflow Status
tab displays the current status of the service request.
Exporting a Workflow as an Image
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
On the menu bar, choose Policies > Organization.
Choose the Workflows tab.
Choose a workflow from the left-hand column.
From within the Workflow Designer window click the Full View icon.
Click Save.
Choose a directory to save the image file (workflow_*.png).
Click Save.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
47
Creating Workflows
Renaming Workflows
Renaming Workflows
In order to rename a workflow, you can clone the workflow and delete the original workflow.
Step 1
Step 2
On the menu bar, choose Policies > Orchestration.
Click the Workflows tab.
Step 3
In the Workflows pane, choose the workflow that you want to rename.
Step 4
Step 5
Step 6
Step 7
Click Clone Workflow.
In theClone Worklow screen, enter the new name for the workflow in the Workflow Name field.
Click Next.
In the Add User Inputs screen, click Next.
Step 8
In the Add User Outputs screen, click Submit.
Cisco UCS Director Orchestration Guide, Release 5.0
48
OL-31123-04
CHAPTER
5
Executing Workflows
This chapter contains the following sections:
• Executing Workflows, page 49
• Adding Conditional Processing to Workflows, page 53
• Context Workflow Mapping, page 59
• Scheduling Workflows, page 61
• Rolling Back Workflows, page 62
• Validating Workflows, page 63
• Workflow Versioning, page 64
Executing Workflows
You can choose several different ways to execute a workflow in Orchestrator.
• Creating a service request
• Using the Execute Now action
• Using a VM Action policy
• Using a trigger
Accessing Service Requests
You can view and generate workflow executions using service requests.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
49
Executing Workflows
Using the Execute Now Action
Note
Step 1
Step 2
Step 3
Step 4
Step 5
An archive option is also available for each service request.
On the menu bar, choose Organization > Service Requests.
Choose the Service Requests tab.
Choose a service request.
Click View Details. The Service Request Status pane appears.
Click Close.
Resubmitting a Failed/Cancelled Service Request
You can resubmit a failed or cancelled service requests as well as change the inputs before resubmitting. An
administrator can access the Input/Output tab, click on a service request and enter new values into a form
before resubmittal.
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
On the menu bar, choose Organizations > Service Requests.
Click on a service request. The input/output table appears.
Click the Input/Output tab. The values of a particular task inside a workflow are accessible from this tab.
Choose an entry from the Input/Output table.
Click Edit Value.
Change the value for the service request.
Click Submit.
Note
You can also observe the same actions under the Organizations > My Approvals
tab.
Using the Execute Now Action
You can execute a workflow using the Execute Now action. The drop-down list is accessible on the right of
the interface. If you choose to provide any input(s) during the execution stage, you must add those input(s)
at execution. However, if those inputs are provided when you add tasks to the workflow, then those inputs
are also accepted.
Using a VM Action Policy
You can create custom actions by using a User VM Action policy. Custom action policies can contain one or
more actions. You can also create an action label and associate a workflow to it. You can select a User Action
policy when you create a virtual data center (vDC). The virtual machines (VMs) created under this policy still
have all of the custom actions enabled that are included in the original User Action policy.
Cisco UCS Director Orchestration Guide, Release 5.0
50
OL-31123-04
Executing Workflows
Using a VM Action Policy
Note
End user VM Action policies can be used in a VM context.
The following procedure describes how to create a workflow that consists of a VM snapshot and a VM resize
task. This workflow can be used as a custom action in the VMs context.
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
On the menu bar, choose Policies > Orchestration.
Choose User VM Action Policy tab.
Click Add.
In the Add Policy screen, complete the following fields:
Name
Description
Policy Name field
The policy name.
Policy Description field
The description of the policy.
Select No of Actions drop-down list
Choose the number of actions associated with the policy.
Click Next.
In the Add Policy screen, complete the following fields:
Name
Description
Action Label field
The label for the VM action.
Workflow drop-down list
Choose the workflow associated with this action.
Authorized User Types drop-down list
Choose the user type authorized to perform this action.
Click Submit.
After you create a User VM Action policy, as an administrator, you can choose this policy while creating a vDC. All
VMs that belong to this vDC have the ability to use these custom actions.
Note
Only one User VM Action policy can be associated with a
vDC.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
51
Executing Workflows
Using a Trigger
Using a Trigger
Triggers are used to execute workflows based on specified conditions that must be met. Once those conditions
are met, a workflow is (automatically) executed. This procedure describes how to trigger a resize if the VM
memory limit is reached.
Step 1
Step 2
Step 3
Step 4
On the menu bar, choose Policies > Orchestration.
Choose the Triggers tab.
Click Add.
In the Add Trigger: Trigger Information screen, complete the following fields:
Name
Description
Trigger Name field
The name of trigger.
Is Enabled check box
Enables the trigger.
Description field
The description of trigger.
Frequency drop-down list
Choose the frequency at which the trigger rule is to be
verified.
Trigger Type drop-down list
Choose the trigger type:
• Stateful-This type's current state is recorded and
actions are executed only when there is a change in
a trigger state.
• Stateless- This type's trigger condition is verified at
a frequency provided in the frequency field. For
example, if a VM power status is monitored, a trigger
would be executed when a change in the power status
occurs.
Step 5
Step 6
Click Next.
In the Add Trigger: Specify Conditions screen, complete the following fields:
Name
Description
Number of Conditions field
The number of conditions to check.
What to Monitor drop-down list
Choose the component that is to be monitored.
VM drop-down list
Choose the component entry to monitor. If a VM is being
monitored, choose VM to monitor.
Parameter drop-down list
Choose the parameter of the component to monitor.
Cisco UCS Director Orchestration Guide, Release 5.0
52
OL-31123-04
Executing Workflows
Adding Conditional Processing to Workflows
Name
Description
Trigger Type drop-down list
Choose trigger type:
• Stateful-This type's current state is recorded and
actions are executed only when there is a change in
a trigger state.
• Stateless-This type's trigger condition is verified at
a frequency provided in the frequency field. For
example, if a VM power status is monitored, a trigger
would be executed when a change in the power status
occurs.
Step 7
Step 8
Click Next.
In the Add Trigger: Specify Workflow screen, complete the following fields:
Name
Description
Maximum Invocations field
The number of times that the trigger is invoked.
(When Trigger State Becomes Active) Select Workflow Choose the workflow to be executed when the trigger is
drop-down list
activated.
(When Trigger State Become Clear) Select Workflow
drop-down list
Step 9
Choose the workflow to be executed when the trigger is
cleared.
Click Submit.
Adding Conditional Processing to Workflows
Orchestrator's task library includes a set of predefined tasks that you can add to a workflow for conditional
processing. You can specify conditions for the predefined tasks that are forks in the workflow. The outcome
of evaluating the condition determines which branch the workflow takes. For example, a workflow condition
might be to check the power status of a VM. If the VM status is powered on, the workflow takes a certain
path, and if the VM is powered off, it takes a different path.
The following predefined tasks are accessible in Workflow Designer for conditional processing:
• Start Loop --- This task can be used to begin a loop in the workflow based on the input condition.
• End Loop --- This task can be used to mark the end of the loop in the workflow.
• If Else --- This task evaluates the input condition provided. A task or set of tasks are executed if the
input condition is true. If the input condition is false, another task or set of tasks are executed.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
53
Executing Workflows
Adding an If-Else Logical Branch
• Conditional Task --- This task can be used to create multiple execution paths in the workflow based
on the condition you specify for each task in the workflow.
You can use the predefined tasks to create conditional processing constructs such as If, If-Else, nested If,
Loop and Switch in your workflows.
Adding an If-Else Logical Branch
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
On the menu bar, choose Policies > Orchestration.
Click the Workflows tab.
Choose the workflow that you want add the If-Else logical branch.
Double-click the workflow to open it in Workflow Designer.
In the Available Tasks pane, click the Procedural Tasks folder.
Click the If Else task and drag and drop it into Workflow Designer.
In the Add Task (If Else) screen, complete the following fields:
Name
Description
Task Name field
The name of the task.
Comment field
Comments for the task.
Retry Execution checkbox
Check the checkbox to retry ( at a later time), if the task
fails.
Retry count drop-down list
Choose the number of attempts to perform a retry.
Retry Frequency drop-down list
Choose the duration between the attempts at a retry. The
workflow pauses until the task is retried n times until it
succeeds before it can continue with the next task or
completion of the workflow.
Step 8
Step 9
Click Next.
In the User Input Mapping screen, click Next.
Step 10
In the Task Inputs screen, complete the following fields:
Cisco UCS Director Orchestration Guide, Release 5.0
54
OL-31123-04
Executing Workflows
Adding an If-Else Logical Branch
Name
Description
Specify the condition field
Enter the condition that will be evaluated to determine the
course of the workflow. As a result of evaluating the
condition the following can result:
• If the condition evaluates to true, the course for the
workflow towards successful completion is executed.
• If the condition evaluates to false, the workflow will
not be executed successfully.
The conditions that you define must only contain the
following operators:
==, !=, <, <=, >, >=, ||, &&, contains, startsWith,
endsWith
Below are some examples that you can use while specifying
conditions:
• TaskName.OUTPUT ATTRIBUTE NAME=="2"
• WORKFLOW USERINPUT LABEL NAME
contains "xyz"
• TaskName.OUTPUT ATTRIBUTE NAME ==
WORKFLOW USERINPUT LABEL NAME ||
WORKFLOW USERINPUT LABEL NAME !=
"123"
Step 11
In the User Output Mapping screen, click Submit.
Step 12
Step 13
In the If-Else task icon that you created, click and drag the True connector and the False connector to more task icons.
In the If-Else task icon that you created, click and drag the On Failure connector to the Completed (Failed) task icon.
This link defines the logical branch of the workflow for failure. If required, you can add more task icons to this branch
in the workflow.
What to Do Next
After you create your If-Else logical branch, you can execute the workflow. You can view and generate the
workflow executions using service requests.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
55
Executing Workflows
Adding Loops
Adding Loops
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
On the menu bar, choose Policies > Orchestration.
Choose the Workflows tab.
Choose the workflow that you want to add a loop.
Double-click the workflow to open it in Workflow Designer.
In the Available Tasks pane, click the Procedural Tasks folder.
Click the Start Loop task and drag and drop it intoWorkflow Designer.
In the Add Task (Start Loop), complete the following fields:
Name
Description
Task Name field
The name of the task.
Comment field
Comments for the task.
Retry Execution checkbox
Check the checkbox to retry ( at a later time), if the task
fails.
Retry count drop-down list
Choose the number of attempts to perform a retry.
Retry Frequency drop-down list
Choose the duration between the attempts at a retry. The
workflow pauses until the task is retried n times until it
succeeds before it can continue with the next task or
completion of the workflow.
Step 8
Step 9
Click Next.
In the User Input Mapping screen, click Next.
Step 10
In the Task Inputs screen, complete the following fields:
Name
Description
List based iteration checkbox
Check the checkbox for list based iteration.
Input for list based iteration
The input values for list based iteration.
Cisco UCS Director Orchestration Guide, Release 5.0
56
OL-31123-04
Executing Workflows
Adding Loops
Name
Description
User Input to assign iterated values drop-down list
The user input for the list based iteration.
Note
Cisco UCS Director contains a task output variable
called START_LOOP_OUTPUT of generic text
type which holds the value for each loop iteration.
You cannot map this output to the next task input
whose type is not generic text. Hence, you must
create workflow inputs of the type you need(such
as email address) and map it to the Start Loop task
input that you added using the User Input to
assign iterated values drop-down list.
Count based iteration checkbox
Check the checkbox for loop counter based iteration.
Number of times to loop field
The loop counter that controls the iterations of the loop.
Step 11
In the User Output Mapping screen, select the attributes you want to use as values from the workflow outputs.
Step 12
Step 13
Click Submit.
In the Available Tasks pane, click and drag the tasks that you want as part of the loop.
Step 14
Step 15
Step 16
Create links between the task icons in the loop using the On Success connector.
Create a link between the Start task icon and the Start Loop task icon
In the Available Tasks pane, click the Procedural Tasks folder.
Step 17
Step 18
Click the End Loop task and drag and drop it intoWorkflow Designer.
Complete the remaining screens in the Add Task (End Loop) wizard, and click Submit.
Step 19
Connect the End Loop task icon to the Completed (Success) and Completed (Failed) task icons.
What to Do Next
After you add loops, you can execute the workflow. You can view and generate the workflow executions
using service requests.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
57
Executing Workflows
Adding Switch Operations
Adding Switch Operations
Note
The switch construct you create can contain several execution paths for the workflow, based on the
condition you specify for each task in the workflow.
Step 1
Step 2
Step 3
Step 4
On the menu bar, choose Policies > Orchestration.
Choose the Workflows tab.
Choose the workflow that you want to add a loop.
Double-click the workflow to open it in Workflow Designer.
Step 5
Step 6
Step 7
In the Available Tasks pane, click the Procedural Tasks folder.
Click the Conditional task and drag and drop it intoWorkflow Designer.
In the Add Task (Conditional task) screen, complete the following fields:
Name
Description
Task Name field
The name of the task.
Comment field
Comments for the task.
Retry Execution checkbox
Check the checkbox to retry ( at a later time), if the task
fails.
Retry count drop-down list
Choose the number of attempts to perform a retry.
Retry Frequency drop-down list
Choose the duration between the attempts at a retry. The
workflow pauses until the task is retried n times until it
succeeds before it can continue with the next task or
completion of the workflow.
Step 8
Step 9
Click Next.
In the User Input Mapping screen, click Next.
Step 10
In the Task Inputs screen, click the + icon to add a condition for each execution path of the workflow. For example, if
your workflow had n possible execution paths, you would add n entries into the conditions table, one entry for each
condition. You can click on the default entry in the table to specify the condition when the workflow takes the default
execution path.
In the Add Entry to screen, complete the following fields:
Step 11
Name
Description
Label field
The label for the condition
Cisco UCS Director Orchestration Guide, Release 5.0
58
OL-31123-04
Executing Workflows
Context Workflow Mapping
Name
Description
Condition field
Enter the condition that will be evaluated to determine the
course of the workflow. The conditions that you define
must contain the following operators:
==, !=, <, <=, >, >=, ||, &&, contains, startsWith,
endsWith
Below are some examples that you can use while specifying
conditions:
• TaskName.OUTPUT ATTRIBUTE NAME=="2"
• WORKFLOW USERINPUT LABEL NAME
contains "xyz"
• TaskName.OUTPUT ATTRIBUTE NAME ==
WORKFLOW USERINPUT LABEL NAME ||
WORKFLOW USERINPUT LABEL NAME !=
"123"
Click Submit.
Step 12
In the User Output Mapping screen, select the attributes you want to use as values from the workflow outputs.
Step 13
Step 14
Click Submit.
In the Available Tasks pane, click and drag the tasks that you want to add to the various execution paths of the workflow.
Step 15
Use the connectors in the Conditional task icon to link with the tasks in the execution paths. For example, use the
default connector in the Conditional task icon to create links to the tasks in the default execution path.
Create a links between the Start task icon and the Conditional task icon.
Create links between the various execution paths in the workflow and the Completed (Success) and Completed (Failed)
task icons.
Step 16
Step 17
What to Do Next
After you add the switch construct, you can execute the workflow. You can view and generate the workflow
executions using service requests.
using service requests.
Context Workflow Mapping
You can map a workflow in the form of an action and execute it in the component's context. You can execute
a workflow that contains a set of tasks from within a context of a component. You do not have to browse for
a required workflow in the workflow list in order to execute it. However, you can execute the workflow at
the component level. For example, when you execute a workflow, that you created for a server, you can map
the workflow as an action (for the server) and execute it at the server level instead of browsing for the workflow
in the workflow list.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
59
Executing Workflows
Stage 1: Create a Context Mapper Task
Context workflow mapping consists of these two stages:
• Stage 1- Create a context mapper task and adds it to the workflow that needs to be mapped as an action.
• Stage 2- Adds the workflow to the content mapper list by giving it an action label.
Stage 1: Create a Context Mapper Task
Step 1
Step 2
Step 3
Step 4
On the menu bar, choose Policies > Orchestration.
Choose the Workflow tab.
Open a workflow in Workflow Designer.
Choose a Context Mapper task and drag it onto the Workflow Designer pane.
Stage 2: Adding to the Workflow to the Content Mapper
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
On the menu bar, choose Policies > Orchestration.
Choose Context Workflow Mapping.
Choose a component to add to your workflow.
Click Edit.
In the Edit Workflow Mappings dialog box, complete the following fields:
Name
Description
Add Workflow icon
Add additional workflows.
Selection Required check box
Check the check so that an end user can select an entry of
the component for the action label to show. Also, the
workflows are filtered based on the component if it is
checked. For example, for LUN Context workflow
mapping, only the workflows which contain the LUN
context mapper task is displayed.
Action Label field
The name of the action label.
Workflow drop-down list
Choose a workflow to execute.
Authorized User Types drop-down list
Choose an authorized user type.
Click Submit. The workflow is added as an action to the component.
Cisco UCS Director Orchestration Guide, Release 5.0
60
OL-31123-04
Executing Workflows
Scheduling Workflows
Note
When you browse through the logical unit number (LUN) components and choosing an entry under LUNs, the
action becomes visible (Associate LUN to Datastore). Clicking on this action executes the workflow that you
had previously mapped to this component.
Scheduling Workflows
You can schedule workflows for execution at a specific time. You can also modify several schedule parameters
when a workflow is scheduled.
Step 1
Step 2
Step 3
On the menu bar, choose Policies > Orchestration.
Click the Workflows tab.
In the Workflows pane, choose the workflow that you want to schedule.
Step 4
Step 5
Click Schedule.
In the Schedule Workflow screen, complete the following fields:
Name
Description
Recurrence Type drop-down list
The type of reexecution of the workflow. There are several
types:
• No End -The workflow is executed continuously
from the start time based on frequency type and
frequency interval, without any end time.
• Only once-The workflow is executed only once at
the start time.
• Fixed Number of Times-The workflow is executed
n number of times as provided in the Repeat Count
field continuously from the start time based on
frequency type and frequency interval.
• End by Date-The workflow is executed continuously
from the start time based on the frequency type and
frequency interval until the provided end time.
Start Time field
The time of the scheduled workflow execution.
Frequency Type drop-down list
The frequency of the workflow executions. The workflow
can be executed hourly, daily, weekly or monthly.
Frequency Interval drop-down list
Choose the interval at which the workflow needs to be
executed for the frequency that you chose. If the frequency
interval is four and the frequency type is daily, the
workflow is executed every four days.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
61
Executing Workflows
Rolling Back Workflows
Name
Description
User ID field
The user associated to the workflow. This is not a
mandatory field.
If you defined inputs while you created the workflow, you must provide those inputs need to be provided under
the Workflow Inputs.
Click Edit to edit another schedule.
Note
The Modify Workflow Schedule screen is identical to the Schedule Workflow dialog
box.
Note
Step 6
Rolling Back Workflows
You can undo executed workflows by using the Workflow Rollback feature. All tasks that are part of the
workflow are undone when the workflow is rolled back.
Note
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
If a workflow is rolled back it might not return to the same state as before the workflow was executed.
Some tasks cannot be rolled back in their entirety. For example, storage values increased for a VM cannot
be undone.
On the menu bar, choose Organizations > Service Requests.
Choose the Service Requests tab.
Choose the service request that corresponds to the workflow that needs to be rolled back.
Click Rollback Request.
Check the check box next to the task(s) that you want to roll back.
Click Submit.
Note
Right-click a service request and choose View Details to examine its undo workflow status.
Cisco UCS Director Orchestration Guide, Release 5.0
62
OL-31123-04
Executing Workflows
Viewing Workflow Assets (Created or Modified)
Viewing Workflow Assets (Created or Modified)
Before you roll back your workflow you can view the details of all of the assets and resources that were used
during the execution of the workflow. The assets are tracked and available through the service request's View
Details option.
Step 1
Step 2
Step 3
Step 4
Step 5
On the menu bar, choose Organizations > Service Requests.
Choose the Service Requests tab.
Choose a service request to examine.
Choose the View Details option.
Choose the Objects Created and Modified tab.
The Objects Created and Modified tab displays all of the resources that were created or modified as part of the
construction of the workflow. All resources that pertaining to all of the tasks of the workflow are tracked. When you roll
back a workflow, all associated resources are deleted and previously modified resource changes are undone.
Step 6
Click Close.
Validating Workflows
Orchestrator provides a mechanism for validating workflows. Validating a workflow helps identify issues
with the workflow caused by incorrect flow of data from one element to the next. Workflow validation checks
the data bindings and connections between elements. Common issues detected during validation are mapping
mismatch, missing mandatory values for tasks, Task Handler not found and missing admin/task inputs after
import or upgrade.
Orchestrator enables issue detection and resolution by using a wizard-based issue resolver. When you validate
a workflow, a list of issues is created along with suggestions for fixing those issues. Clicking an issue in the
list prompts the user to run the issue wizard resolver. Some issues might require additional information or
input from you. Other issues might be quick fixes that are resolved for you.
Resolving Workflow Validation Issues
Step 1
On the menu bar, choose Policies > Orchestration.
Step 2
Step 3
Step 4
Step 5
Step 6
Click the Workflows tab.
Choose the workflow that failed validation.
Click Validate Workflow.
In the Workflow Validation dialog box, double click the description under Resolution.
In the Validation Errors dialog box, view the summary for the issue detected. You can complete the remaining prompts
in the wizard to resolve the validation error.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
63
Executing Workflows
Workflow Versioning
Workflow Versioning
All Orchestrator workflows have an associated version history. You can use version history to either revert
a workflow state to an earlier one or increment the version. In some scenarios you might use versioning for
comparing the differences between the current state of a workflow with an earlier saved version. Versioning
can be particularly useful when you need to know if a workflow is ready for production, deployment, or for
any other operation.
A new version item is created when a workflow version is incremented and saved. Consequent changes to
the workflow do not change the current version. For example, if you create and save a workflow version X.0.0,
the state of the version is saved in the Cisco UCS Director database. If any changes are made to the workflow,
the changes cannot be applied to workflow version X.0.0. To save the changes, a subsequent workflow version
needs to be created. The version history along with the workflow is saved in the database.
Workflows can be deleted without losing their version history.
Creating Workflow Versions
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
On the menu bar, choose Policies > Orchestration.
Choose the Workflows tab.
Right click the workflow and choose Create New Version.
In the Create New Version screen, complete the following fields:
Name
Description
Version Label field
The label for the version.
Description field
The description for the version.
Click Submit.
In Workflow Designer, complete your changes for the workflow.
Click Close.
The workflows report displays the incremented version of the workflow under the Version column.
Managing Workflow Versions
Step 1
Step 2
Step 3
Step 4
On the menu bar, choose Policies > Orchestration.
Choose the Workflows tab.
Right click the workflow and choose Manage Versions.
In the Manage Versions screen, complete the following fields:
Cisco UCS Director Orchestration Guide, Release 5.0
64
OL-31123-04
Executing Workflows
Managing Workflow Versions
Name
Description
Show latest version checkbox
Check the checkbox to display the latest version of the
workflow in the workflows report .
For example, if the latest workflow version is X.0, it is
displayed as Version X (latest) in the Versioncolumn, in
the workflows report.
Set default version checkbox
Check the checkbox to display the chosen workflow version
as the default version in the workflow report. Choose the
workflow version from the workflows table below.
For example, if you chose the workflow version as X.0 to
be set as the default version for display, it is displayed as
Version X.0 (user selected) in the Versioncolumn, in the
workflows report.
Step 5
Click Submit.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
65
Executing Workflows
Managing Workflow Versions
Cisco UCS Director Orchestration Guide, Release 5.0
66
OL-31123-04
APPENDIX
A
Using Macros
This chapter contains the following sections:
• About VM Name Template Customization, page 67
• About VM Template and Hostname Variables, page 71
• About Application Codes, page 71
• About Macro Orchestration, page 72
About VM Name Template Customization
The Cisco UCS Director Macro feature allows you to customize a VM name and VM hostname using variables
provided by the application. VM name and VM hostname creation is automated by using the variables in the
system policy.
Cisco UCS Director also allows automatic creation of VM names and VM hostnames during VM provisioning.
The VM name templates and VM hostname templates are available under the VMware system policy.
Using the VM Name Template
Step 1
Step 2
Step 3
Step 4
Click Policies > Services Delivery.
Choose the VMware System Policy tab.
Click Add (+).
In the Add Policy dialog box, complete the following fields:
Name
Description
Policy Name field
The name of the policy. This name is used during catalog
definition.
Policy Description field
The description of the policy.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
67
Using Macros
Using the VM Name Template
Step 5
Choose the VM Name Template variable names. Complete the following fields:
Name
Description
VM Name Template field
The VM name. VM Names can be automatically created
using a set of variable names. Each variable must be
enclosed in ${VARIABLE}.
The VM name template variables are as follows:
• CLOUD_NAME - The cloud name that is being
deployed.
• GROUP_NAME -The name of the VM group.
• CATALOG_NAME - The name of the catalog item
or entry.
• USER - Your user ID.
• SR_ID - The service request ID.
• COMMENTS - Your comments.
• PROFILE_NAME - The name of the policy.
• LOCATION - The name of the location as specified
during cloud creation.
• UNIQUE_ID - A random ID to make the name
unique.
• APPCODE - The application code that is the value
specified during catalog creation.
• COST_CENTER - The cost center group or
customer organization. It is specified during the group
or customer organization creation.
Step 6
Step 7
Choose the optional VM Name Template features.
Complete the following fields:
Name
Description
# field
The index character. The index character can be added at
the end of the VM name template to create a unique index
number for the VM name. It can be given in multiples. For
example, if a VM name template is
vm-${GROUP_NAME}##, VM name is vm-ABCD01 for
the first VM provisioned with this policy. The group name
is ABCD and 01 represents ##.
Note
This is an optional field. You can add # character
to the variable mentioned in the VM Name
template field to generate numbers.
Cisco UCS Director Orchestration Guide, Release 5.0
68
OL-31123-04
Using Macros
Using the VM Name Template
Step 8
Step 9
Step 10
Step 11
Name
Description
End User VM Name or VM Prefix check box
Check the check box to enable the option to add a VM
suffix name during the creation of a service request
(deployment configuration).
Power On after deploy check box
Check the check box to automatically power on all VMs
deployed using this policy.
Choose the Host Name Template variable names.
Complete the following fields:
Choose the optional Host Name Template features.
Complete the following fields:
Name
Description
# field
The index character. The index character can be added at
the end of the VM name template to create a unique index
number for the VM name. It can be given in multiples. For
example, if a VM name template is
vm-${GROUP_NAME}##, then VM name is vm-ABCD01
for the first VM provisioned with this policy. The group
name is ABCD and 01 represents ##.
DNS Domain field
This is an optional field. You can add # character
to the variable mentioned in the Host Name
template field to generate numbers.
The IP domain to use for the VM.
Time Zone drop-down list
Choose from the list of available time zones.
DNS Suffix List field
The DNS suffixes to configure for the DNS lookup. If more
than one suffix is specified, they are separated by a comma.
DNS Server List field
The DNS server IP addresses. Use a comma to separate
more than one server.
VM Image Type drop-down list
Choose the OS of the image that is installed on the VM.
Choose Windows and Linux or Linux Only. For Windows
images, further details must be provided.
Product ID field
The Windows product ID or license key. This option is
available for Windows VMs only.
Note
The product ID or license key can be provided here or at
the OS license pool. The key at the OS license pool
overrides the key provided here. For more information
about the OS license, see the next section.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
69
Using Macros
Using the VM Name Template
Name
Description
License Owner Name field
The organization name to configure in the VM. This option
is available for Windows VMs only.
Organization field
Choose the per-seat or per-server. This option is available
for Windows VMs only.
License Mode drop-down list
The number of license users or connections. This option
is available for Windows VMs only.
Number of License Users field
The WINS server IP addresses. Multiple values are
separated with a comma. This option is available for
Windows VMs only.
WINS Server list
The WINS server IP addresses. Multiple values are
separated with a comma. This option is available for
Windows VMs only.
Auto Logon check box
Check the check box to enable automatic log on. This
option is available for Windows VMs only.
Auto Logon Count field
The number of times to perform automatic log on. This
option is available for Windows VMs only.
Administrator Password field
The password for the administrators account. This option
is available for Windows VMs only.
Domain/Workgroup drop-down list
Choose one of the following:
• Domain
• Workgroup
These options are available for Windows VMs only.
Workgroup field
The name for the workgroup. This option is visible if
Workgroup is chosen.
Domain field
The name of the Windows domain. This option is available
for Windows VMs only.
Domain Username field
The Windows domain administrator's username. This
option is available for Windows VMs only.
Domain Password field
The Windows domain administrator's password. This option
is available for Windows VMs only.
Cisco UCS Director Orchestration Guide, Release 5.0
70
OL-31123-04
Using Macros
About VM Template and Hostname Variables
About VM Template and Hostname Variables
The VM template and hostnames can be automatically generated using a set of variable names. Each variable
must be enclosed in ${VARIABLE}. The allowed variable names are as follows:
Name
Description
${CLOUD_NAME}
The name of the cloud used for VM provisioning.
${GROUP_NAME}
The name of the group to which the VM belongs.
${CATALOG_NAME}
The name of the catalog item used for VM
provisioning.
${USER}
The requesting user ID.
${SR_ID}
The service request ID.
${COMMENTS}
The comments specified by the requesting user.
${COST_CENTER}
The cost center that is associated with a group or
customer organization. This is specified during group
or customer organization creation.
${APPCODE}
The application code that is specified during catalog
creation.
About Application Codes
The application code specified during catalog creation can be used in the VM name. By specifying an application
code for a catalog, the value can be called in the VMware system policy by adding ${APPCODE} as a variable.
Typically, APPCODE can be used to a type of application such as DB, WS, SQL, and so on. The application
type in the VM name or hostname allows you to easily identify the type of the application within the VM.
For example, vm-${GROUP_NAME}-${APPCODE}-##. For the first VM provisioined using this system
policy the VM name is vm-Demo-DB-01 (Demo is group name, DB is Application code specified in Catalog
and 01 is ##) The next VM name will be vm-Demo-DB-02 .
For example, vm-${GROUP_NAME}##, the VM name is vm-HR01 for the first VM provisioned with this
policy (in here the group name is HR and 01 represents ##). If a new VM is provisioned for the same group
and catalog, that VM is named vm-HR02.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
71
Using Macros
About Macro Orchestration
About Macro Orchestration
During the creation of a Cisco UCS Director workflow, you can use macros for Workflow Task inputs.
During the runtime execution of the workflow, the Orchestrator replaces the values for each macro before
executing the associated action.
Each Cisco UCS Director workflow typically has the following components:
• Workflow inputs that are defined by the administrator.
• Tasks that are drag-and-dropped by the administrator from a predefined set of the task library. Each task
has an ID, set of inputs, and outputs.
Macros may be used for each task input. Any workflow level input or a previous task output can be used as
a macro in a subsequent task. For example, a workflow has two inputs labeled Enter Disk Size , and Max
Snapshots , and it has two tasks with IDs task1 and task2. Any input values to task1 or task2 that takes
free-form input can use those two values as macros:
• ${Enter Disk Size}
• ${Max Snapshots}
Each variable name is exactly the same as the label associated with the input. task2 can also use the output
of task1. If task1 has two output variables, OUTPUT_VOLUME_NAME and OUTPUT_VOLUME_SIZE,
then task2 may refer to them both using the syntax ${task1.OUTPUT_VOLUME_NAME} and
${task1.OUTPUT_VOLUME_SIZE}. Each input field may refer to more than one macro.
• SR_ID: ID: the ID of the current service request
• PARENT_SR_ID: the Parent SR ID of the current service request (if applicable).
For workflows that are executed in the context of a VM, these additional variables can be used in a macro:
Name
Description
${VM_NAME}
The name of the VM.
${VM_IPADDRESS}
The IP address of the VM.
${VM_STATE}
The state of the VM (ON or OFF).
${VM_STATE_DETAILS}
The state of the VM, power-on or power-off.
${VM_PARENT}
The ESX server or host node that is hosting the VM.
${VM_CLOUD}
The name of the cloud used for VM provisioning.
${VM_HOSTNAME}
The hostname of the VM
${VM_GROUP_NAME}
The name of the group to which the VM belongs.
${VM_GROUP_NAME}
The group ID to which the VM belongs.
Cisco UCS Director Orchestration Guide, Release 5.0
72
OL-31123-04
Using Macros
About Macro Orchestration
Name
Description
${VM_CATALOG_ID}
The catalog ID used for VM.
${VM_ID}
The VM ID of the chosen VM.
${VM_SR_ID}
The VM service request ID.
${VM_COMMENTS}
The comments specified by the requesting user.
${VM_VDC_NAME
The name of the vDC.
${VM_VDC_ID}
The vDC ID.
${VM_TYPE}
The type of the VM.
${VM_SCHED_TERM
The scheduled termination time for the VM.
Cisco UCS Director Orchestration Guide, Release 5.0
OL-31123-04
73
Using Macros
About Macro Orchestration
Cisco UCS Director Orchestration Guide, Release 5.0
74
OL-31123-04