cisco ucs director 5.2 lab
TRANSCRIPT
-
8/18/2019 Cisco UCS Director 5.2 lab
1/161
Cisco UCS Director 5.2 Lab Part 2
Cisco UCS Director 5.2 Part 2
Lab Guide
Version 1.3
Rudy Slavec- Jean Michaels
Solutions Readiness Engineers
Americas Partner Organization
-
8/18/2019 Cisco UCS Director 5.2 lab
2/161
3
Cisco UCS Director 5.2 Lab Part 2
Contents
Introduction .................................................................................................................................... 4
Lab Objectives ................................................................................................................................. 5
Disclaimer ........................................................................................................................................ 5
Build Information ............................................................................................................................ 6
Prerequisite Knowledge .................................................................................................................. 6
Logical Topology.............................................................................................................................. 7
Exercise 1: Access the Lab ............................................................................................................... 8
Section 1.1: Access the lab environment ................................................................................... 8
Exercise 2: Catalogs ....................................................................................................................... 12
Section 2.1 Configuring and Publishing a Catalog ................................................................... 12
Section 2.2 Creating a Service Request .................................................................................... 25
Exercise 3: Orchestration .............................................................................................................. 34
Section 3.1: Creating a Workflow to Power on a Virtual Machine .......................................... 34
Section 3.2: Creating a Workflow to Create a VLAN in a Nexus Switch ............................... 56
Section 3.3: Creating a Workflow to Provision a VMware Datastore ...................................... 70
Section 3.4: Rolling Back a Completed Workflow ................................................................ 114
Section 3.5 Creating an Approval Workflow to Resize VM Memory ................................... 118
Revisit Section 2.2 Creating a Service Request ...................................................................... 155
Appendix A. Cisco AnyConnect Secure Mobility Client Installation Instructions ....................... 158
-
8/18/2019 Cisco UCS Director 5.2 lab
3/161
4
Cisco UCS Director 5.2 Lab Part 2
Introduction
This lab is Part 2 of a 2-part series of labs on UCS Director. This lab starts off where the Part 1
lab ended.
The UCS Director 5.2 Part 1 lab covered installing UCS Director and setting up a basic
configuration. The specific components provisioned in the Part 1 lab that you will use in this lab
are:
The jouser non-admin user account
The pod1 Flexpod
The Vcenter-2 VMware Vcenter
The NetApp-1 Ontap filer
The Lab vDC Virtual Data Center
In addition to the Part 1 components, a Nexus switch account has been added to the UCS
Director configuration. The switch address is 10.1.7.7 and is in the default pod.
In this lab you will use above components to provision:
Catalogs - which are controlled capabilities available to users (such as a self-service
offering to an end user), and
Workflows - which provide multi-task orchestration capabilities?
The main activities in this lab are:
Configuring and Publishing a Catalog
Creating a Service Request
Creating a Workflow to Power on a Virtual Machine
Creating a Workflow to Create a VLAN in a Nexus Switch
Creating a Workflow to Provision a VMware Datastore
Rolling Back a Completed Workflow
Creating an Approval Workflow to Resize VM Memory
-
8/18/2019 Cisco UCS Director 5.2 lab
4/161
-
8/18/2019 Cisco UCS Director 5.2 lab
5/161
6
Cisco UCS Director 5.2 Lab Part 2
Build Information
As of the writing of this document, the current relevant documentation could be found on CCO
at the following links:
Cisco UCS Director Administration Guide, Release 5.2 –
http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-
director/administration-guide/5-2/b_Cisco_UCSD_Admin_Guide_52.html
Cisco UCS Director FlexPod Management Guide, Release 4.1 -
http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/flexpod-
mgmt-guide/4-1/b_Cisco_UCSD_FlexPod_MGT_GD.html
Cisco UCS Director Orchestration Guide, Release 5.2 –
Cisco UCS Director Orchestration Guide, Release 5.2
This lab was constructed using the following software and hardware:
Flexpod Architecture:
ESXi 5.5.0
VMware vCenter Server 5.5.0
Cisco UCS Director 5.2.0.0 (patched to 5.2.0.1)
Cisco UCS Manager Simulator 3.0(1c)
Netapp Simulator 8.2.3 (7-Mode)
Nexus NXOS version 6.2(2a)
Prerequisite Knowledge
A solid understanding of VMware vSphere, NetApp Storage, and Cisco UCS solutions is
assumed.
http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/administration-guide/5-2/b_Cisco_UCSD_Admin_Guide_52.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/administration-guide/5-2/b_Cisco_UCSD_Admin_Guide_52.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/administration-guide/5-2/b_Cisco_UCSD_Admin_Guide_52.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/flexpod-mgmt-guide/4-1/b_Cisco_UCSD_FlexPod_MGT_GD.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/flexpod-mgmt-guide/4-1/b_Cisco_UCSD_FlexPod_MGT_GD.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/flexpod-mgmt-guide/4-1/b_Cisco_UCSD_FlexPod_MGT_GD.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/orchestration-guide/5-2/b_UCS_Director_Orchestration_Guide_5_2.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/orchestration-guide/5-2/b_UCS_Director_Orchestration_Guide_5_2.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/orchestration-guide/5-2/b_UCS_Director_Orchestration_Guide_5_2.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/flexpod-mgmt-guide/4-1/b_Cisco_UCSD_FlexPod_MGT_GD.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/flexpod-mgmt-guide/4-1/b_Cisco_UCSD_FlexPod_MGT_GD.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/administration-guide/5-2/b_Cisco_UCSD_Admin_Guide_52.htmlhttp://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/administration-guide/5-2/b_Cisco_UCSD_Admin_Guide_52.html
-
8/18/2019 Cisco UCS Director 5.2 lab
6/161
7
Cisco UCS Director 5.2 Lab Part 2
Logical Topology
The following diagram depicts the logical topology of the lab.
-
8/18/2019 Cisco UCS Director 5.2 lab
7/161
8
Cisco UCS Director 5.2 Lab Part 2
Exercise 1: Access the Lab
Section 1.1: Access the lab environment
Step 1:
To access the lab, open Cisco AnyConnect from your computer and use the
following URL to connect to: 128.107.217.3/ucsd and click Connect.
Note: If you do not have Cisco Anyconnect installed on your computer, installation instructions can be found in
Appendix A. at the end of this lab guide.
Step 2: If you see a security warning, click Connect Anyway to continue.
-
8/18/2019 Cisco UCS Director 5.2 lab
8/161
9
Cisco UCS Director 5.2 Lab Part 2
Step 3: A Cisco AnyConnect login box will appear. Your password will be assigned by the
lab Proctor. The username is formatted as stu7xx where the xx is your assigned
pod number. For example, if your pod number is 45, the username would be
stu745.
Enter your username and password that was assigned, and click OK.
Username stu7xx
Password assigned by instructor
Step 4: Click Accept in the Cisco AnyConnect banner popup.
Step 5: Once you have successfully made a connection to the lab via AnyConnect VPN,
open Microsoft Remote Desktop (RDP) on your computer.
Generally, Microsoft Remote Desktop can be found by navigating to the Start ->
All Programs -> Accessories -> Remote Desktop Connection. If the Start menu on
your system includes the Run… box, you can also try navigating to Start -> Run…
and typing mstsc.exe into the run box and then clicking OK to run the program.
-
8/18/2019 Cisco UCS Director 5.2 lab
9/161
10
Cisco UCS Director 5.2 Lab Part 2
Step 6: Connect to your pod’s workstation. The IP address of your workstation depends
on your pod number. The IP address is 172.20.xx.11 where xx is your pod
number. For example, if you were assigned Pod 45, you would connect to
172.20.45.11.
Pod Workstation: 172.20.xx.11User name: administrator
Step 7: When prompted enter the username and leave the password field blank.
Username: administrator
Password: no password (leave blank)
-
8/18/2019 Cisco UCS Director 5.2 lab
10/161
11
Cisco UCS Director 5.2 Lab Part 2
Step 8: Click yes for the remote verification warning.
Step 9: When the connection is complete you will see the Pod Workstation desktop.
-
8/18/2019 Cisco UCS Director 5.2 lab
11/161
12
Cisco UCS Director 5.2 Lab Part 2
Exercise 2: Catalogs
In the UCS Director Part 1 lab we deployed UCS Director and configured it to manage both
Virtual and Physical Infrastructure. In this lab, we will create an Orderable Service Catalog that
a user can utilize to request virtual servers. This catalog combines a User Group, vDC and all
relevant policies such as Compute, Network, Storage and System.
Section 2.1 Configuring and Publishing a Catalog
You can self-provision VMs using predefined catalog items. A catalog item is created by the
system administrator, and defines parameters such as cloud name, and group name to which
the VM is bound. In this section we will configure and publish the catalog.
Step 10: Open Microsoft Internet Explorer from the taskbar.
The Internet Explorer homepage is set to https://10.1.7.220 and it will load the Cisco
UCS Director login page (the default background for the login page was changed during
the Part 1 lab).
https://10.1.7.220/https://10.1.7.220/https://10.1.7.220/https://10.1.7.220/
-
8/18/2019 Cisco UCS Director 5.2 lab
12/161
13
Cisco UCS Director 5.2 Lab Part 2
Step 11: You are prompted with a warning about the website’s certificate, click
Continue to this website (not recommended) to continue to the login page.
(Note: It may take a few moments for the warning page to load.)
Step 12: Enter admin for both the username and password, and then click Login.
Select Not for this site if prompted to store the password for 10.1.7.220.
-
8/18/2019 Cisco UCS Director 5.2 lab
13/161
14
Cisco UCS Director 5.2 Lab Part 2
Step 13: UCS Director periodically collects inventory information from its managed
objects. However, to make sure that that UCS Director has the latest
inventory info when you configure your catalog ( without waiting for a
scheduled collection), you will initiate an on-demand inventory collection for
the Vcenter-2 cloud.
Navigate to Virtual -> Compute.
Step 14: Select VCenter-2 in the left hand pane. You might have to expand the
All-Clouds folder.
-
8/18/2019 Cisco UCS Director 5.2 lab
14/161
15
Cisco UCS Director 5.2 Lab Part 2
Step 15: When the display refreshes, click on the Polling tab.
Step 16: Select Request Inventory Collection.
Step 17: Click Submit.
Step 18: Click Ok.
-
8/18/2019 Cisco UCS Director 5.2 lab
15/161
16
Cisco UCS Director 5.2 Lab Part 2
Step 19: The collection process should only take a few seconds. However the status
display is only updated when you click the Refresh button, so you might have
to click the Refresh button a few times until the Status shows Complete.
Now you can configure a catalog item that will use the VCenter-2 cloud to create a
Windows 7 virtual machine.
Step 20: Select Policies -> Catalogs.
-
8/18/2019 Cisco UCS Director 5.2 lab
16/161
17
Cisco UCS Director 5.2 Lab Part 2
Step 21: Click Add to add a Catalog.
Step 22: For the Catalog Type choose Standard in the dropdown and click Submit.
Note: There are different types of catalogs available in UCS Director.
Standard catalogs are used to provision VMs with pre-configured selections using a list of images (VM Templates)
available in the underlying vCenter or Cloud account.
Advanced catalogs are used to expose a workflow as a catalog item. The inputs of the workflow become fields ofthe catalog.
Service Container is used to publish application containers as catalog items.
VDI is used to publish Xen Desktop as catalog items.
-
8/18/2019 Cisco UCS Director 5.2 lab
17/161
18
Cisco UCS Director 5.2 Lab Part 2
Step 23: Enter the following information for the corresponding fields:
Catalog Name: Windows 7
Catalog Description: Windows 7
Catalog Icon: VM: Windows Image 1 (from dropdown)
Click the Selected Groups select button.
Step 24: Check the Lansters group (this group was created in UCSD part 1) then Click
Select.
-
8/18/2019 Cisco UCS Director 5.2 lab
18/161
19
Cisco UCS Director 5.2 Lab Part 2
Step 25: Scroll down the screen and verify the following settings for the fields:
Publish to end users: checked
Cloud Name: VCenter-2
Provision new vm using ISO Image: unchecked
Click the Image select button.
Step 26:
Check the Windows-7-Template in the VCenter-2 cloud then click Select.
-
8/18/2019 Cisco UCS Director 5.2 lab
19/161
20
Cisco UCS Director 5.2 Lab Part 2
Step 27: Below the Windows License Pool drop down, verify that Provision all disks in
single datastore is checked. Then click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
20/161
21
Cisco UCS Director 5.2 Lab Part 2
Step 28: On the Application Details page, for the Specify OS option select Windows 7
from the dropdown and leave all other options at their default values. Click
Next.
These options provide additional functionality to customize the catalog and offer flexibility to apply different policy
sets based on application category for a given vDC.
-
8/18/2019 Cisco UCS Director 5.2 lab
21/161
22
Cisco UCS Director 5.2 Lab Part 2
Step 29: Keep the Do not share option for Credential Options. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
22/161
23
Cisco UCS Director 5.2 Lab Part 2
Step 30: Leave all Customization options at their default values and click Next.
It is possible to run custom workflows after provisioning a virtual server by
enabling the Post Provisioning Custom Actions option. It is also possible to
create custom storage provisioning options using the Virtual Storage Catalog
option. Additionally, cost model items can be created that are based onspecific applications installed as part of the VM template.
-
8/18/2019 Cisco UCS Director 5.2 lab
23/161
24
Cisco UCS Director 5.2 Lab Part 2
Step 31: In the VM Access panel, click Enable for Remote Desktop Access
Configuration. The screen will expand revealing additional fields. Leave all
other fields at their default values and click Next.
Step 32: Review the summary of the catalog and click Submit.
-
8/18/2019 Cisco UCS Director 5.2 lab
24/161
25
Cisco UCS Director 5.2 Lab Part 2
Step 33: Click OK.
In this section we created a Catalog item that will allow an end user in the Lansters group to
create a Windows 7 virtual machine.
Section 2.2 Creating a Service Request
You will now initiate a service request to create a Windows 7 server using the catalog item you
created in the previous section. To do this, you will log into UCS Director as jouser, a member of
the Lansters group (this is the end user created in the UCS Director Part 1 lab).
Step 34: Log out from UCS Director.
-
8/18/2019 Cisco UCS Director 5.2 lab
25/161
26
Cisco UCS Director 5.2 Lab Part 2
Step 35:
Login using the following end user account:
username: jouser
password: cisco
Step 36: Notice the difference in the desktop presented to end users vs admins.
You should be directed to the Catalog tab. Double-click on the Standard
folder to open it.
-
8/18/2019 Cisco UCS Director 5.2 lab
26/161
27
Cisco UCS Director 5.2 Lab Part 2
Step 37: Click the Windows 7 VCenter-2 catalog item; this will make the context menu
appear. Click on Create Request.
Step 38:
The Create Service Request box appears. Start by verifying the following in the
Catalog Selection form:
VM Ownership Group: Group is selected
VM Ownership Select Group: Lansters
Catalog Type: Standard
Select Catalog: Windows 7
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
27/161
28
Cisco UCS Director 5.2 Lab Part 2
Step 39: Verify/enter the following in the Deployment Configuration form:
Select VDC: Lab vDC
Comment: Windows 7 Workstation
Provision: Now
Lease Time Unchecked
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
28/161
29
Cisco UCS Director 5.2 Lab Part 2
Step 40: In the Custom Specification form enter the following via the dropdowns:
CPU Cores: 2
Memory: 1.00 GB
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
29/161
30
Cisco UCS Director 5.2 Lab Part 2
Step 41: A Custom Workflow is not defined for this item. Click Next.
Step 42: Review the service request information in the Summary form. Click Submit.
-
8/18/2019 Cisco UCS Director 5.2 lab
30/161
31
Cisco UCS Director 5.2 Lab Part 2
Step 43: Click OK.
Step 44:
From the Self-Service portal, an end user can review the status of the request.
Click the Services button.
Step 45: Double-click the Service Request that was just created.
-
8/18/2019 Cisco UCS Director 5.2 lab
31/161
32
Cisco UCS Director 5.2 Lab Part 2
Step 46: You can now monitor the request status using the Service Request window.
Notice that the flow will be at VMWare VM Provision. In this task, UCS
Director has issued VM provisioning commands to VMware Vcenter. At that
point Vcenter is responsible for completing the provisioning task. UCS Director
is waiting for an indication from VCenter that the VM has been provisioned
before it will proceed to the next task.
The Lab vDC System Policy that was configured in the Part 1 lab was designed
to use any datastore visible to Vcenter as VM storage. So it is possible that the
selected target VM datastore will not be the same one that the Windows 7
template is on. In that case, the cross-datastore I/O traffic will slow down the
VM provisioning process, with provisioning times taking up to 120 minutes.
The Windows 7 VM created by this request will not be needed in any
remaining lab sections, so instead of waiting for the provisioning process to
complete, we can proceed to the next exercise, Exercise 3: Orchestration.
We will recheck the status of this request as the last activity in the lab guide,
which should allow enough time for the VM to be provisioned.
Close the Service Request Window.
-
8/18/2019 Cisco UCS Director 5.2 lab
32/161
33
Cisco UCS Director 5.2 Lab Part 2
Step 47: Log out of UCS Director.
-
8/18/2019 Cisco UCS Director 5.2 lab
33/161
34
Cisco UCS Director 5.2 Lab Part 2
Exercise 3: Orchestration
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. More complex task flows can also be defined, with features
like conditional task execution.
In this section of the lab you will create workflows using UCS Director Orchestrator. There are
over 1000 prebuilt tasks that can be used to create dynamic workflows. Each task may take
some inputs and produce some outputs, based on the functionality of the task.
In the following sections, you will use Power On a VM and Create a VLAN tasks to build a
couple of simple workflows to get yourself familiarized with UCS Director Orchestration. You
will then build a multi-task workflow to provision a VMware datastore. Finally you will build aself-service workflow that changes the memory size on a VM.
Section 3.1: Creating a Workflow to Power on a Virtual Machine
Step 48: Login to UCS Director (https://10.1.7.220) as admin/admin.
https://10.1.7.220/https://10.1.7.220/https://10.1.7.220/https://10.1.7.220/
-
8/18/2019 Cisco UCS Director 5.2 lab
34/161
35
Cisco UCS Director 5.2 Lab Part 2
Step 49: Navigate to Policies -> Orchestration.
Step 50: Click on the Add Workflow button.
-
8/18/2019 Cisco UCS Director 5.2 lab
35/161
36
Cisco UCS Director 5.2 Lab Part 2
Step 51: Specify the following in the Add Workflow Details form:
Workflow name: Power On a VM
Description: Workflow to Power on a VM
Under “Save Options”
Place in New Folder: Check the box
Folder Name: Training
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
36/161
37
Cisco UCS Director 5.2 Lab Part 2
Step 52: The next form is Add User Inputs. This panel allows us to specify custom input
parameters to the workflow. We will not be using this capability. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
37/161
38
Cisco UCS Director 5.2 Lab Part 2
Step 53: The next form is Add User Outputs. This panel allows us to specify custom
output parameters to the workflow. We will not be using this capability. Click
Submit.
Step 54: Click OK.
-
8/18/2019 Cisco UCS Director 5.2 lab
38/161
39
Cisco UCS Director 5.2 Lab Part 2
Step 55: You should still be at Policies -> Orchestration. If not, navigate there.
Step 56: Expand the Training folder in the left pane, then double-click on the workflow
to open the Workflow Designer.
Note: You might see the status of the workflow to be Failed or Not Validated . This is because there are no tasks
added to the workflow at this point, which makes it an invalid workflow.
-
8/18/2019 Cisco UCS Director 5.2 lab
39/161
40
Cisco UCS Director 5.2 Lab Part 2
The Workflow Designer is used to build the individual tasks comprising the workflow, and to
join the individual tasks into a specific sequence. Each task completes with a status of Success
or Failed , and subsequent tasks can be initiated for both outcomes. If a task is the last task in
the flow, it is connected to terminals which will terminate the workflow with either a success
for failed status.
The Workflow Designer has two sections:
Available Tasks: Shows a list of pre-defined or custom tasks
Design Area: Active work area used to create workflows
In the Available Tasks pane on the left hand side, there is a search function that allows
you to search for specific tasks. To search for a task, start typing the task name in theentry window at the top of the Available Tasks pane. As you type, all tasks that contain
the entered word sequence in any part of their name will be displayed. To use a task,
click on the task and drag it into the Design Area.
-
8/18/2019 Cisco UCS Director 5.2 lab
40/161
41
Cisco UCS Director 5.2 Lab Part 2
Step 57: Start typing “VM Power” in the search box. Note that all task names that
contain the phrase “VM Power” are displayed. Select the task VM Power
Action under the Cloupia Tasks -> Generic VM Tasks path and drag it into the
Design Area.
The Add Task dialog box appears as soon as the task is dragged into the Design Area. Each task
generally has at least four configuration screens associated with it:
Screen Function
Task Information Enter Task Name , Type, Category and other general task info
Task Input Mapping Specifies where task should get its input values (eg from the
output of previous tasks, or from the user that initiates the task)
Task Inputs Manually specifies task input values that will not be obtained from Task Input
Mapping Screen
User Output Mapping Maps output values from the task into objects that can be used as
input to subsequent tasks
-
8/18/2019 Cisco UCS Director 5.2 lab
41/161
42
Cisco UCS Director 5.2 Lab Part 2
Step 58:
Change the Task Name to VM Power Action. It’s a good practice to change the
task name instead of leaving it at the default value.
Click Next to see the User Input Mapping page.
-
8/18/2019 Cisco UCS Director 5.2 lab
42/161
43
Cisco UCS Director 5.2 Lab Part 2
Step 59: If you had added input fields to this workflow, you could map them to the
expected inputs of the task.
As you did not create any input fields for this workflow this page will not be
modified, click Next on this screen.
-
8/18/2019 Cisco UCS Director 5.2 lab
43/161
44
Cisco UCS Director 5.2 Lab Part 2
Step 60: Click on the Select VM select button to display a list of available VMs.
Step 61: Click the box for Cloud= VCenter-2, Instance Name= CUCSD-P2-Windows-7
(you will have to horizontally expand the Instance Name column to see the
entire name) and then click Select.
-
8/18/2019 Cisco UCS Director 5.2 lab
44/161
45
Cisco UCS Director 5.2 Lab Part 2
Step 62: Verify that CUCSD-P2-Windows-7 is the selected VM and that the VM Action is
Power ON and click Next.
Step 63: You did not create any output parameters for the workflow so just click
Submit.
-
8/18/2019 Cisco UCS Director 5.2 lab
45/161
46
Cisco UCS Director 5.2 Lab Part 2
Step 64: Click OK.
Step 65: Notice that since this is the first (or only) task defined in this workflow, the
Success and Failed terminals are automatically connected to the task.
Click Close to close the workflow designer window.
-
8/18/2019 Cisco UCS Director 5.2 lab
46/161
47
Cisco UCS Director 5.2 Lab Part 2
Step 66: You will now test the workflow, but before you execute the workflow, you will
need to ensure that the VM Power State is OFF. To do this, navigate to
Virtual -> Compute.
Step 67: In the left pane select VCenter-2 (expand All Clouds if necessary). When the
page refreshes, click on the VMs tab, and locate the CUCSD-P2-Windows-7
VM. If necessary right scroll to see the current Power State.
-
8/18/2019 Cisco UCS Director 5.2 lab
47/161
48
Cisco UCS Director 5.2 Lab Part 2
Step 68: If the Power State is ON, right-click on the selected VM and select Power OFF.
You will get a VM Task confirmation screen. Click Proceed.
When the action completes, click OK.
-
8/18/2019 Cisco UCS Director 5.2 lab
48/161
49
Cisco UCS Director 5.2 Lab Part 2
Step 69: Verify that the VM power state is OFF.
Step 70: Navigate to Policies -> Orchestration.
-
8/18/2019 Cisco UCS Director 5.2 lab
49/161
50
Cisco UCS Director 5.2 Lab Part 2
Step 71: In the Workflows tab, expand the Training folder.
Step 72: Select the Power On a VM workflow that you created earlier.
-
8/18/2019 Cisco UCS Director 5.2 lab
50/161
51
Cisco UCS Director 5.2 Lab Part 2
Step 73: Right-click on the workflow and select the Execute now option.
Step 74: Leave the Workflow Version as default. Click Submit.
-
8/18/2019 Cisco UCS Director 5.2 lab
51/161
52
Cisco UCS Director 5.2 Lab Part 2
Step 75: Note that the Service Request is assigned an ID. This SR ID is used to identify a
workflow instance. This is useful to identify a specific workflow if you have
multiple workflow instances executing that have the same name.
Click on Show Detail Status.
Step 76: The status window displays the workflow progress. Note the Refresh button.
Periodically click Refresh until the workflow completes.
-
8/18/2019 Cisco UCS Director 5.2 lab
52/161
53
Cisco UCS Director 5.2 Lab Part 2
Step 77: The Log tab displays workflow details and is useful for troubleshooting. Be sure
to click Refresh prior to examining the log to get the latest info.
Step 78: Close the log window.
-
8/18/2019 Cisco UCS Director 5.2 lab
53/161
54
Cisco UCS Director 5.2 Lab Part 2
Step 79: Go to Virtual -> Compute.
Step 80: Select All Clouds -> vCenter-2. Click the VMs window and validate that the VM
Power State is ON.
It is always good practice to click Refresh to make sure the screen is updated.
If the VM still indicates OFF, see the next step. Otherwise you have completed
this section, proceed to Section 3.2: Creating a Workflow to Create a VLAN in
a Nexus Switch.
-
8/18/2019 Cisco UCS Director 5.2 lab
54/161
55
Cisco UCS Director 5.2 Lab Part 2
Step 81: If the VM Power State is still OFF, it is possible that the state of the VM has
not yet been synched with UCS Director. In that case you should initiate an
inventory collection, as it may take 15 minutes before the periodic inventory
collection process updates the UCS Director database.
To request an inventory collection, navigate to Virtual->Compute. Then selectVCenter-2, and in the tab dropdown. Select the Polling tab, and then select
Request Inventory Collection from the context menu.
Click Submit to start the collection process.
Click OK.
-
8/18/2019 Cisco UCS Director 5.2 lab
55/161
56
Cisco UCS Director 5.2 Lab Part 2
Wait a couple of minutes and recheck the Power State of the virtual machine
using the procedure you did previously. It should now be ON.
Section 3.2: Creating a Workflow to Create a VLAN in a Nexus Switch
Next you will use the Create a VLAN pre-built task to execute a task using terminal
emulation. For this exercise you will use the Nexus switch that is connected into your lab
pod.
Step 82: Minimize your UCSD browser window. Double-click the Putty icon on your
student PC desktop to activate an SSH client.
-
8/18/2019 Cisco UCS Director 5.2 lab
56/161
57
Cisco UCS Director 5.2 Lab Part 2
Step 83: Enter Host IP Address of 10.1.7.7. Click Open.
If you see the Putty Security Alert select YES.
Step 84: Login to the Nexus switch with Login/Password as admin/Cisc0123!
-
8/18/2019 Cisco UCS Director 5.2 lab
57/161
58
Cisco UCS Director 5.2 Lab Part 2
Step 85: Type show vlan to see the current VLANs. The only VLAN displayed should be
VLAN 1. Do not close the Putty session.
Step 86: Go back to UCS Director and navigate to Policies -> Orchestration.
-
8/18/2019 Cisco UCS Director 5.2 lab
58/161
59
Cisco UCS Director 5.2 Lab Part 2
Step 87: Click on the Add Workflow button.
-
8/18/2019 Cisco UCS Director 5.2 lab
59/161
60
Cisco UCS Director 5.2 Lab Part 2
Step 88: Enter Workflow Name as Create a VLAN.
In Save Options section, select Training in the Select Folder dropdown. Then
click Next.
Step 89: You will not be adding any User Inputs. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
60/161
61
Cisco UCS Director 5.2 Lab Part 2
Step 90: You will not be adding any User Outputs. Click Submit.
Step 91: Click OK.
Step 92: You should be returned to Policies -> Orchestration. If not, navigate there. In
the Workflows tab, expand the Training folder.
-
8/18/2019 Cisco UCS Director 5.2 lab
61/161
62
Cisco UCS Director 5.2 Lab Part 2
Step 93: Double-click the Create a VLAN workflow. This will open the Workflow
Designer so you can build tasks for the workflow.
Step 94: In the Workflow Designer Available Tasks search box, search for Create VLAN.
You will see multiple tasks that match the search criteria. The task we are
interested in is the Create VLAN task in the Cisco Network Tasks folder.
-
8/18/2019 Cisco UCS Director 5.2 lab
62/161
63
Cisco UCS Director 5.2 Lab Part 2
Step 95: Select the Create VLAN task and drag- it into the Design Area.
Step 96: In the Add Task (Create VLAN) configuration window that appears, change the
Task Name to Create a VLAN. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
63/161
64
Cisco UCS Director 5.2 Lab Part 2
Step 97: Click Next on the User Input Mapping screen. This screen allows dynamic
mapping of user input values. This functionality is not needed here.
Step 98: In the Task Inputs screen, you will select the Nexus switch to create the VLAN
on. Click the Select Device select button.
-
8/18/2019 Cisco UCS Director 5.2 lab
64/161
65
Cisco UCS Director 5.2 Lab Part 2
Step 99: Check the Default Pod box to select the Nexus switch at address 10.1.7.7. Click
Select.
Step 100: Enter a VLAN ID of 345, and VLAN Name of Lansters. Make sure the Copy
Running configuration to Startup configuration box is unchecked; and then
click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
65/161
66
Cisco UCS Director 5.2 Lab Part 2
Step 101: You will not add any User Output Mapping. Click Submit.
Step 102: Click OK.
-
8/18/2019 Cisco UCS Director 5.2 lab
66/161
67
Cisco UCS Director 5.2 Lab Part 2
Step 103: Click the Execute Now button to initiate the workflow.
Step 104: Keep the Workflow Version default. Click Submit.
-
8/18/2019 Cisco UCS Director 5.2 lab
67/161
68
Cisco UCS Director 5.2 Lab Part 2
Step 105: Notice the Service Request ID generated for your workflow. Click Show Detail
Status.
Step 106: The workflow should be successful. Click Close.
-
8/18/2019 Cisco UCS Director 5.2 lab
68/161
69
Cisco UCS Director 5.2 Lab Part 2
Step 107: Close the Workflow Designer.
Step 108: Go back to your Putty session and verify the VLAN creation by doing a show
vlan command. Verify that you see VLAN 345 with the Name Lansters.
Exit the Putty session.
-
8/18/2019 Cisco UCS Director 5.2 lab
69/161
70
Cisco UCS Director 5.2 Lab Part 2
Step 109: Click OK.
Section 3.3: Creating a Workflow to Provision a VMware Datastore
Next you will create a task that will provision new storage for your vCenter host. The steps
included in this workflow will include creating a new NetApp Volume; creating a NetApp
LUN(Logical Unit Number); creating an Initiator group; adding an initiator inside the initiator
group; mapping the LUN to the initiator group; and selecting the LUN as a datastore inside the
vCenter account. If any task is unsuccessful, the workflow will terminate.
Recall that there are three ways for a task to get inputs:
from previous task output fields,
from static configuration in the task itself, and
from the user when the workflow is requested.
In this section you will use the first two methods. In order to practice both methods, you will
configure some task inputs to use the output of a previous task (this is done with the Task Input
Mapping form when you configure the task), and other inputs will be statically specified usingthe Task Inputs form.
Certainly in this lab some of the inputs that you will specify statically could have been obtained
dynamically from previous task output, and also some inputs you are obtaining dynamically
from previous task outputs could have been statically coded. In a production environment
when you design a workflow, you would determine which method to use for each input field
based on operational considerations and requirements.
-
8/18/2019 Cisco UCS Director 5.2 lab
70/161
71
Cisco UCS Director 5.2 Lab Part 2
Step 110: You should be at Policies -> Orchestration. If not navigate there.
Step 111: Click on Add Workflow to start creating a new workflow item.
-
8/18/2019 Cisco UCS Director 5.2 lab
71/161
72
Cisco UCS Director 5.2 Lab Part 2
Step 112: In the Add Workflow Details form enter the following:
Workflow Name: Map LUN to DS
Workflow Context: Any
Save Options: Select Folder: Training
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
72/161
73
Cisco UCS Director 5.2 Lab Part 2
Step 113: You will not be adding User Inputs on the Workflow User Inputs page. Click
Next.
Step 114: You will not be adding User Outputs, so in Add User Outputs click Submit.
-
8/18/2019 Cisco UCS Director 5.2 lab
73/161
74
Cisco UCS Director 5.2 Lab Part 2
Step 115: Click OK.
Step 116: Double-click the Map LUN to DS workflow. This will open the Workflow
Designer.
Step 117: The first task is creating a new flexible volume in your NetApp account. For this
task you will need to provide an aggregate name, the name and size of the
volume and the space guarantee setting.
In the search bar enter Create Flexible Volume. This will filter the taskhierarchy and display the task in the Available Tasks pane.
-
8/18/2019 Cisco UCS Director 5.2 lab
74/161
75
Cisco UCS Director 5.2 Lab Part 2
Step 118: Drag the task into the workflow Design Area. This will open the Add Task
dialog.
Step 119: In the Task Name enter Create a New Volume. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
75/161
76
Cisco UCS Director 5.2 Lab Part 2
Step 120: You will enter inputs on the next screen, so do not select anything in the User
Input Mapping panel. Click Next.
Step 121: In the Task Inputs form, click the Aggregate Name select button.
-
8/18/2019 Cisco UCS Director 5.2 lab
76/161
77
Cisco UCS Director 5.2 Lab Part 2
Step 122: Check the box in the row that contains aggr1. Click Select.
Step 123: Enter the following:
Volume Name: my_vol
Volume Size: 2
Volume Units: GB
Space Guarantee: none
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
77/161
78
Cisco UCS Director 5.2 Lab Part 2
Step 124: You will not be setting up custom User Output Mapping. Click Submit.
Step 125: Click OK.
-
8/18/2019 Cisco UCS Director 5.2 lab
78/161
79
Cisco UCS Director 5.2 Lab Part 2
Step 126: Search for the task Create LUN. Drag the Netapp ONTAP Tasks version of
Create LUN into the design area.
Step 127: When the Task Information panel appears, change the Task Name to Create a
New LUN. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
79/161
80
Cisco UCS Director 5.2 Lab Part 2
Step 128: In the User Input Mapping window, under Volume Name (Mandatory), check
Map to User Input.
This will take the volume identity, which is the output from the previous task,
and use it as an input in this task. Similarly you can use any output that is
produced by prior tasks in the workflow and use them as inputs for any othersubsequent task in the workflow.
The User Input should already be set to the default of:
Create a New Volume.OUTPUT_VOLUME_IDENTITY
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
80/161
81
Cisco UCS Director 5.2 Lab Part 2
Step 129: In the Task Inputs form, enter the following values:
LUN Name: my_lun
OS Type: vmware
LUN Size: 2
LUN Size Unit: GB Reserve Space: unchecked
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
81/161
82
Cisco UCS Director 5.2 Lab Part 2
Step 130: We are not configuring anything on the User Output Mapping panel, click
Submit.
Step 131: Click OK.
-
8/18/2019 Cisco UCS Director 5.2 lab
82/161
83
Cisco UCS Director 5.2 Lab Part 2
Step 132: Drag the Create a New LUN task below the Create a New Volume task.
Step 133: Connect the task into the workflow. If you move the cursor into the lower left
corner of the Create a New Volume task (you might have to also click), an On
success green box will appear.
-
8/18/2019 Cisco UCS Director 5.2 lab
83/161
84
Cisco UCS Director 5.2 Lab Part 2
Step 134: Drag an arrow from that box to the Create a New LUN task by clicking on the
black triangle and dragging it down toward the Create a New LUN. This
specifies that successful completion of the volume creation task will activate
the LUN creation task.
-
8/18/2019 Cisco UCS Director 5.2 lab
84/161
85
Cisco UCS Director 5.2 Lab Part 2
Step 135: If you move the cursor into the lower right corner of the Create a New LUN
task (you might have to also click), an On failure red box will appear. Drag an
arrow from that box to the Completed (Failed) box. This specifies that if the
LUN creation fails the workflow will terminate.
-
8/18/2019 Cisco UCS Director 5.2 lab
85/161
86
Cisco UCS Director 5.2 Lab Part 2
Step 136: Review to make sure the diagram appears below.
Step 137: Next, you will create a new initiator group and add initiators in it; and then
map the LUN you have just created into that initiator group.
Search for the task Create Initiator Group under the Netapp ONTAP Tasks
folder. Drag the task to the Design Area.
-
8/18/2019 Cisco UCS Director 5.2 lab
86/161
87
Cisco UCS Director 5.2 Lab Part 2
Step 138: Change the Task Name to Create Initiator Group. Click Next.
Step 139: In the User Input Mapping panel, check the Map to User Input box under
Filer Identity Name (Mandatory). This will use the OUTPUT_FILER_IDENTITY
field from the Create a New Volume task. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
87/161
88
Cisco UCS Director 5.2 Lab Part 2
Step 140: In the Task Inputs panel, enter the following values:
Initiator Group Name: my_igroup
Group Type: ISCSI
OS Type: vmware
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
88/161
89
Cisco UCS Director 5.2 Lab Part 2
Step 141: In the User Output Mapping panel click Submit.
Step 142: Click OK.
-
8/18/2019 Cisco UCS Director 5.2 lab
89/161
90
Cisco UCS Director 5.2 Lab Part 2
Step 143: Drag the Create Initiator Group task under the Create a New LUN task and
connect it as shown in the next step.
-
8/18/2019 Cisco UCS Director 5.2 lab
90/161
91
Cisco UCS Director 5.2 Lab Part 2
Step 144: Hover in the lower left corner of the Create a New LUN box until the On
Success box appears. Click the black triangle and drag a connection to the
Create Initiator Group box.
Also connect the On Failure output of Create Initiator Group to the
Completed (Failed) terminal (not shown on diagram).
-
8/18/2019 Cisco UCS Director 5.2 lab
91/161
92
Cisco UCS Director 5.2 Lab Part 2
Step 145: When you release the mouse, the boxes will arrange automatically and
should have this representation when complete.
-
8/18/2019 Cisco UCS Director 5.2 lab
92/161
93
Cisco UCS Director 5.2 Lab Part 2
Step 146: Search for the task Add Existing Initiator to IGroup under NetApp ONTAP
Tasks. Drag it to the Design Area.
Step 147: In the Task Information panel, enter Add Initiator to Initiator Group in the
Task Name field. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
93/161
94
Cisco UCS Director 5.2 Lab Part 2
Step 148: In the User Input Mapping panel check Map to User Input under Initiator
Group Name (Mandatory). The User Input will be the default of Create
Initiator Group.INITIATOR_GROUP_NAME. Click Next.
Step 149: In the Task Inputs form, click the Filer Identity Name select button.
-
8/18/2019 Cisco UCS Director 5.2 lab
94/161
95
Cisco UCS Director 5.2 Lab Part 2
Step 150: Check the box for vacs-filer1. Click Select.
Step 151:
Ensure the following settings:
Hostnode: Vcenter-2 10.1.7.101 (Select from dropdown)
Initiator Group Type: iSCSI
The Initiator Name is automatically resolved for the specified Hostnode.
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
95/161
96
Cisco UCS Director 5.2 Lab Part 2
Step 152: In the User Output Mapping panel select Submit.
Step 153: Click OK.
-
8/18/2019 Cisco UCS Director 5.2 lab
96/161
97
Cisco UCS Director 5.2 Lab Part 2
Step 154: Using the same steps that were done for the previous two tasks, drag the Add
Initiator to Initiator Group task under the Create Initiator Group task.
Connect the task as shown below.
-
8/18/2019 Cisco UCS Director 5.2 lab
97/161
98
Cisco UCS Director 5.2 Lab Part 2
Step 155: Search for the task Map LUN to Initiator Group in the Netapp ONTAP Tasks
folder. Drag the activity to the Design Area.
Step 156: In the Task Information window, enter the task name as Map LUN to igroup.
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
98/161
99
Cisco UCS Director 5.2 Lab Part 2
Step 157: In the User Input Mapping panel, check the Map to User Input checkbox for
the following three fields (leave the User Input selections at their defaults):
Filer Identity Name (Mandatory), Initiator Group Name (Mandatory), LUN
Path (Mandatory)
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
99/161
100
Cisco UCS Director 5.2 Lab Part 2
Step 158: In the Task Inputs panel check Specify LUN ID. This will open up a LUN ID
field. Set the LUN ID to 5. Click Next.
Step 159: There are no changes to the User Output Mapping panel, check Submit.
-
8/18/2019 Cisco UCS Director 5.2 lab
100/161
101
Cisco UCS Director 5.2 Lab Part 2
Step 160: Click OK.
Step 161: Move the Map LUN to igroup task under the Add Initiator to Initiator Group
task. Just as done in previous steps, connect the Add Initiator to Initiator
Group task to the Map LUN to igroup task as shown below.
-
8/18/2019 Cisco UCS Director 5.2 lab
101/161
102
Cisco UCS Director 5.2 Lab Part 2
Step 162: The last step will be associating the LUN with an ESXi host in your vCenter.
Search for the task Associate LUN as Datastore in the NetApp Tasks folder.
Drag the task into the Design Area.
Step 163: Rename the task to Associate LUN as DS. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
102/161
103
Cisco UCS Director 5.2 Lab Part 2
Step 164: Under Filer Identity Name (Mandatory) option check the box for Map to user
Input.
From the dropdown menu that appears choose:
Create a new Volume.OUTPUT_FILER_IDENTITY
-
8/18/2019 Cisco UCS Director 5.2 lab
103/161
104
Cisco UCS Director 5.2 Lab Part 2
Step 165: Scroll down and check Map to user input under LUN path (Mandatory) and
from the drop down menu, scroll to choose:
Create a new LUN.LUN_PATH
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
104/161
105
Cisco UCS Director 5.2 Lab Part 2
Step 166: In the Tasks Input panel, set the following values:
VMFS Mount Options: Format the Disk
Datastore Name: my_datastore
Click the Hostnode select button.
Step 167:
Check VCenter-2 10.1.7.101. Click Select.
-
8/18/2019 Cisco UCS Director 5.2 lab
105/161
106
Cisco UCS Director 5.2 Lab Part 2
Step 168: Verify/set the following values in the Task Inputs panel:
Group Type: ISCSI
vDC Name: Lab vDC
Success Criteria: Mount successful on all the Hosts
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
106/161
107
Cisco UCS Director 5.2 Lab Part 2
Step 169: No changes are necessary on the User Output Mapping, select Submit.
Step 170: Click OK.
-
8/18/2019 Cisco UCS Director 5.2 lab
107/161
108
Cisco UCS Director 5.2 Lab Part 2
Step 171: Drag the Associate LUN as DS task under the Map LUN to igroup task.
Connect the Map LUN to igroup task to the Associate LUN as DS task as
shown below.
-
8/18/2019 Cisco UCS Director 5.2 lab
108/161
109
Cisco UCS Director 5.2 Lab Part 2
Step 172: The final workflow should look as follows:
-
8/18/2019 Cisco UCS Director 5.2 lab
109/161
110
Cisco UCS Director 5.2 Lab Part 2
Step 173: Click Execute Now.
Step 174: Click Submit
Step 175: Click Show Detail Status.
-
8/18/2019 Cisco UCS Director 5.2 lab
110/161
111
Cisco UCS Director 5.2 Lab Part 2
Step 176: Continue to use the Refresh button and observe the workflow task steps until
completion. This workflow should typically complete within a few minutes.
Click Close when the workflow has completed.
Step 177: Minimize all the windows to display the desktop, access Vcenter by double-
clicking on the Vsphere Client icon on the student PC desktop.
-
8/18/2019 Cisco UCS Director 5.2 lab
111/161
112
Cisco UCS Director 5.2 Lab Part 2
Step 178: In Hosts and Clusters view, click on the 10.1.7.101 ESXI host. Click on the
Configuration tab and select Storage. The new my_datastore datastore
should be listed in the Datastores panel. Minimize the vSphere Client.
In this section you configured a multi-step workflow that installed all of the components
necessary to implement a VMware ISCSI Datastore. As explained earlier in this exercise, each
task generally has four configuration screens associated with it:
Screen Function
Task Information Enter Task Name, Type, Category and other general task info
Task Input Mapping Specifies where task should get its input values (eg from the
output of previous tasks, or from the user that initiates the task)
Task Inputs Supplies task input values that will not be obtained from Task Input Mapping
User Output Mapping Maps output values from this task into objects that can be used as
input to subsequent tasks
-
8/18/2019 Cisco UCS Director 5.2 lab
112/161
113
Cisco UCS Director 5.2 Lab Part 2
Here is a summary of the tasks that you configured in the Map LUN to DS workflow:
Task Action Input Input Source
Create a New Volume Creates a Logical Volume Netapp to use Task Inputs
Volume Name Task InputsVolume Size Task Inputs
Aggregate Task Inputs
Create a New LUN Creates Logical Disk Volume Name From Create a NewVolume
LUN Name Task Inputs
LUN Size Task Inputs
OS Type Task Inputs
Create Initiator Group Creates Group of Initiators (hosts) Netapp to use From Create a New LUN Group
Initiator Name Task Inputs
OS Type Task Inputs
Add Initiator to Initiator Group Group Name From Create Initiator Group Places the VMware ESXI host Netapp to use Task Inputs
in the Initator Group and ESXI Host Task Inputs
specifies the Netapp for the Initiator Name Task Inputs
Group
Map LUN to igroup Associates the LUN to the Netapp the
Initiator Group LUN is on From Create a New LUN
Initiator Group From Create Initiator Group
LUN Path From Create a New LUN
LUN ID Task Inputs
Associate LUN as DS Creates a new Datastore Netapp the
on ESXI host using the LUN LUN is on From Create a New Volume
created in the workflow LUN Path From Create a New LUN
Mount Options Task Inputs
Datastore Name Task Inputs
ESXi Host Task Inputs
UCSD
Datacenter Task Inputs
-
8/18/2019 Cisco UCS Director 5.2 lab
113/161
114
Cisco UCS Director 5.2 Lab Part 2
Section 3.4: Rolling Back a Completed Workflow
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.
You will now roll back (undo) the MAP LUN to DS workflow you created in the previous section.
Note: 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.
Step 179: Return to the UCSD browser. Close the Workflow Designer if it is still open.
Navigate to Organizations -> Service Requests.
Step 180: From the Service Requests tab, highlight the completed Map LUN to DS
workflow.
-
8/18/2019 Cisco UCS Director 5.2 lab
114/161
115
Cisco UCS Director 5.2 Lab Part 2
Step 181: Right click on the workflow to open a dropdown menu. Select Rollback
Request from dropdown.
Step 182: Review the tasks that will be undone during the rollback and click Submit.
-
8/18/2019 Cisco UCS Director 5.2 lab
115/161
116
Cisco UCS Director 5.2 Lab Part 2
Step 183: Click OK.
Step 184: The rollback activity will start another service request. In
Organizations -> Service Requests, click on that activity to
select it and click View Details.
-
8/18/2019 Cisco UCS Director 5.2 lab
116/161
117
Cisco UCS Director 5.2 Lab Part 2
Step 185: The task progress will be displayed. Continue to Refresh the screen if
necessary. This workflow should typically take a few minutes. Click Close
when completed.
-
8/18/2019 Cisco UCS Director 5.2 lab
117/161
118
Cisco UCS Director 5.2 Lab Part 2
Step 186: Return to the Vsphere Client and verify that the my_datastore has been
removed.
Section 3.5 Creating an Approval Workflow to Resize VM Memory
In this section, you will create a workflow which resizes memory on a Windows 7 virtual
machine. This workflow will be invoked by the end user jouser, and will require admin approval
to proceed. Before we configure the workflow, we will note the present memory size of the
target Windows 7 VM, and make sure it is powered off. (Powering off is necessary to change
the memory size).
-
8/18/2019 Cisco UCS Director 5.2 lab
118/161
119
Cisco UCS Director 5.2 Lab Part 2
Step 187: Return to the vSphere Client. In Hosts and Clusters view, click on the CUCSD-
P2-Windows-7 VM. Click on the Summary tab.
Step 188: Note the memory size. It should be 1 GB.
-
8/18/2019 Cisco UCS Director 5.2 lab
119/161
120
Cisco UCS Director 5.2 Lab Part 2
Step 189: Return to the UCSD window. You will need to ensure that the VM Power
State is OFF. To do this, navigate to Virtual -> Compute.
Step 190: In the left pane select VCenter-2. When the page refreshes, click on the VMs
tab, and locate the CUCSD-P2-Windows-7 VM. If necessary right scroll to see
the current Power State.
Step 191: If the Power State is ON, right-click on the selected VM and select Power
OFF.
-
8/18/2019 Cisco UCS Director 5.2 lab
120/161
121
Cisco UCS Director 5.2 Lab Part 2
You will get a VM Task confirmation screen. Click Proceed.
When the action completes, click OK.
Step 192: Verify that the VM Power State is OFF.
-
8/18/2019 Cisco UCS Director 5.2 lab
121/161
122
Cisco UCS Director 5.2 Lab Part 2
Step 193: In UCS Director, Navigate to Policies -> Orchestration.
Step 194:
Click Add Workflow.
-
8/18/2019 Cisco UCS Director 5.2 lab
122/161
123
Cisco UCS Director 5.2 Lab Part 2
Step 195: Enter the Workflow Name as Resize VM Memory. In Select Folder choose
Training. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
123/161
124
Cisco UCS Director 5.2 Lab Part 2
Step 196: In the Add User Inputs screen, click on the plus sign to add a user input.
This box is checked to create prompts that the end user must answer when
the workflow is initiated.
In the workflows you configured previously this feature was not used.However in this workflow, the end user will be prompted to enter the
memory size they want at request time.
-
8/18/2019 Cisco UCS Director 5.2 lab
124/161
125
Cisco UCS Director 5.2 Lab Part 2
Step 197: In the Input Label, enter Select New Memory Size. Click the Input Type select
button.
Step 198: Type Memory in the search box to narrow down the entries. Check Memory
Size Selector. Click Select.
-
8/18/2019 Cisco UCS Director 5.2 lab
125/161
126
Cisco UCS Director 5.2 Lab Part 2
Step 199: Click Submit.
Step 200: Click OK.
-
8/18/2019 Cisco UCS Director 5.2 lab
126/161
127
Cisco UCS Director 5.2 Lab Part 2
Step 201: Click Next.
Step 202: We will not be adding any User Outputs. Click Submit.
-
8/18/2019 Cisco UCS Director 5.2 lab
127/161
128
Cisco UCS Director 5.2 Lab Part 2
Step 203: Click OK.
Step 204: From the Workflows tab, expand the Training folder and double-click on the
Resize VM Memory workflow to launch the Workflow Designer.
Step 205:
In the Search box under Available Tasks, type Approval. You will find a task
named User Approval being displayed under Cloupia Tasks -> General Tasks.
Drag that task into the Design Area.
-
8/18/2019 Cisco UCS Director 5.2 lab
128/161
129
Cisco UCS Director 5.2 Lab Part 2
Step 206: In the Task Information screen, enter Wait for Approval in the Task Name.
Click Next.
Step 207: No changes are necessary here, so click Next in the User Input Mapping.
-
8/18/2019 Cisco UCS Director 5.2 lab
129/161
130
Cisco UCS Director 5.2 Lab Part 2
Step 208: On the Task Inputs screen click the User ID select button.
Step 209: In the dialog box, choose admin then click Select. This specifies that only the
admin account can approve the request.
-
8/18/2019 Cisco UCS Director 5.2 lab
130/161
131
Cisco UCS Director 5.2 Lab Part 2
Step 210: You will keep the default values in this screen. Click Next.
Step 211: Click Submit.
-
8/18/2019 Cisco UCS Director 5.2 lab
131/161
132
Cisco UCS Director 5.2 Lab Part 2
Step 212: Click OK.
Step 213:
In the Search box under Available Tasks, type VM memory. You will
find a task named Resize VM Memory and CPU being displayed under
Virtualization Tasks -> VMware Tasks -> VMware VM Tasks. Drag the task
into the Design Area.
-
8/18/2019 Cisco UCS Director 5.2 lab
132/161
133
Cisco UCS Director 5.2 Lab Part 2
Step 214: For the Task Name enter Resize Memory. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
133/161
134
Cisco UCS Director 5.2 Lab Part 2
Step 215: In the User Input Mapping screen, check Map to User Input under Memory.
The User Input dropdown will display Select New Memory Size (this is the user
input field you defined in the Add User Inputs screen).
Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
134/161
135
Cisco UCS Director 5.2 Lab Part 2
Step 216: In the Task Inputs screen, check the Select VM select box.
Step 217: Check the Cloud=Vcenter-2, Instance Name=CUCSD-P2-Windows-7 entry.
This specifies the target VM.
Click Select.
-
8/18/2019 Cisco UCS Director 5.2 lab
135/161
136
Cisco UCS Director 5.2 Lab Part 2
Step 218: Keep Number of vCPUs unchanged. Click Next.
Step 219: Click Submit in the User Output Mapping screen.
-
8/18/2019 Cisco UCS Director 5.2 lab
136/161
137
Cisco UCS Director 5.2 Lab Part 2
Step 220: Click OK.
Step 221: Drag the Resize Memory task below the Wait for Approval Task. Connect
Wait for Approval with the Resize Memory task, as shown below:
-
8/18/2019 Cisco UCS Director 5.2 lab
137/161
138
Cisco UCS Director 5.2 Lab Part 2
Step 222: Click Close.
Workflows that have been designed by the admins can be exposed to end users in
multiple ways. One way is to create an advanced catalog item and have it exposed to
the self-service portal of the end user or the end user’s group. We will cover the
advanced catalog method in this Lab.
Step 223: Navigate to Policies -> Catalogs.
-
8/18/2019 Cisco UCS Director 5.2 lab
138/161
139
Cisco UCS Director 5.2 Lab Part 2
Step 224: Click Add.
Step 225: From the Catalog Type drop down menu, select Catalog Type as Advanced
and click Submit.
-
8/18/2019 Cisco UCS Director 5.2 lab
139/161
140
Cisco UCS Director 5.2 Lab Part 2
Step 226: Enter the Catalog Name as Resize Memory. From the Catalog Icon dropdown
choose Workflow Icon. Check the box for Applied to all groups.
Make sure Publish to end users is checked. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
140/161
141
Cisco UCS Director 5.2 Lab Part 2
Step 227: Click the Workflow Select button.
-
8/18/2019 Cisco UCS Director 5.2 lab
141/161
142
Cisco UCS Director 5.2 Lab Part 2
Step 228: A screen will pop up displaying all the workflows currently available. The
workflow names are in alphabetical order.
Scroll down the screen and check the checkbox besides the workflow name
Resize VM Memory.
Click Select.
-
8/18/2019 Cisco UCS Director 5.2 lab
142/161
143
Cisco UCS Director 5.2 Lab Part 2
Step 229: Verify that “Resize VM Memory” appears next to the Workflow select button
and click Next.
Step 230: Click Submit after reviewing the summary.
-
8/18/2019 Cisco UCS Director 5.2 lab
143/161
144
Cisco UCS Director 5.2 Lab Part 2
Step 231: Click OK.
Step 232: Logout from UCS Director and login as jouser/cisco.
-
8/18/2019 Cisco UCS Director 5.2 lab
144/161
145
Cisco UCS Director 5.2 Lab Part 2
Step 233: Once logged in double-click on the Advanced folder, you will see the catalog
item Resize VM Memory.
Step 234: Select the Resize VM Memory catalog item and click Create Request action
button.
-
8/18/2019 Cisco UCS Director 5.2 lab
145/161
146
Cisco UCS Director 5.2 Lab Part 2
Step 235: In the Catalog Selection screen, click Next.
Step 236: In the Custom Workflow screen, click the Select New Memory Size
dropdown and choose 3.0 GB. Click Next.
-
8/18/2019 Cisco UCS Director 5.2 lab
146/161
147
Cisco UCS Director 5.2 Lab Part 2
Step 237: Click Submit after reviewing the summary. This will submit the Service
Request and generate a SR ID.
Step 238: Click OK.
-
8/18/2019 Cisco UCS Director 5.2 lab
147/161
148
Cisco UCS Director 5.2 Lab Part 2
Step 239: To check the status of the Service Request, click the Services button.
Step 240: Select the Service Request for the Advanced Request Type. In the context
menu click the View Details button.
-
8/18/2019 Cisco UCS Director 5.2 lab
148/161
149
Cisco UCS Director 5.2 Lab Part 2
Step 241: A screen displaying the status of the Service Request will be launched. Click
on Refresh. The status will be pending Approval by Admin. It will stay in this
state until the admin account approves the request. Click Close.
Now let’s return to the administrator interface and verify there is an approval waiting.
-
8/18/2019 Cisco UCS Director 5.2 lab
149/161
150
Cisco UCS Director 5.2 Lab Part 2
Step 242: Logout from UCS Director. Login as admin (credentials: admin/admin).
Step 243: Navigate to Organizations -> My Approvals.
-
8/18/2019 Cisco UCS Director 5.2 lab
150/161
151
Cisco UCS Director 5.2 Lab Part 2
Step 244: Note that the Service Request created by jouser will be listed as pending
approval.
Step 245: Select the Service Request and click View Details action button.
Step 246:
In the Service Request status box that appears, click on the Input/Output tab.
-
8/18/2019 Cisco UCS Director 5.2 lab
151/161
152
Cisco UCS Director 5.2 Lab Part 2
Step 247: Expand Resize Memory and CPU folder to review the Memory Size requested
by the end user. Click Close.
Step 248: Select the Service Request and click the Approve button.
-
8/18/2019 Cisco UCS Director 5.2 lab
152/161
153
Cisco UCS Director 5.2 Lab Part 2
Step 249: Click Approve in the Service Request overview screen.
Step 250: Click OK.
Step 251: Navigate to Organizations -> Service Requests.
-
8/18/2019 Cisco UCS Director 5.2 lab
153/161
154
Cisco UCS Director 5.2 Lab Part 2
Step 252: Select the Resize VM Memory workflow initiated by jouser and click View
Details button.
Step 253:
View the status of Service Request. Remember to use the Refresh button tokeep the display current. It should complete successfully.
-
8/18/2019 Cisco UCS Director 5.2 lab
154/161
155
Cisco UCS Director 5.2 Lab Part 2
Step 254: Click the Log tab and click Refresh. Verify that the log displays the change in
Memory Size. Click Close.
Revisit Section 2.2 Creating a Service Request
In Section 3.1 you submitted a service request to create a new Windows 7 virtual machine.
Because this workflow takes a significant amount of time, we waited until the end of the lab to
check on the request status. Depending on the amount of time since you started this request,the VM installation may or may not be completed.
Step 255: The Organizations -> Service Requests tab should still be open. If not
navigate there. Select the task Create VM initiated by jouser. Click View
Details.
-
8/18/2019 Cisco UCS Director 5.2 lab
155/161
156
Cisco UCS Director 5.2 Lab Part 2
Step 256: Click Refresh. If the installation has finished, the Service Request screen
should show a successful completion. If the installation is still progressing, you
should be able to see the current state it is in. Click Close.
-
8/18/2019 Cisco UCS Director 5.2 lab
156/161
157
Cisco UCS Director 5.2 Lab Part 2
Step 257: Minimize your UCS Director page, and return to your Vsphere Client.
In Hosts and Clusters view, note that a VM called Lansters-SR2 has been
created from the request. The VM name was created from a VM template
that was defined in the UCSD Part 1 lab.
Congratulations! You have completed the lab.
-
8/18/2019 Cisco UCS Director 5.2 lab
157/161
158
Cisco UCS Director 5.2 Lab Part 2
Appendix A. Cisco AnyConnect Secure Mobility Client Installation
Instructions
Open a browser window from your computer and access the following URL :
https://128.107.217.3/ucsd
When the page loads, click on the Advanced link
The page will expand to display a link. Click on the Proceed to 128.107.217.3(unsafe) link
https://128.107.217.3/ucsdhttps://128.107.217.3/ucsd
-
8/18/2019 Cisco UCS Director 5.2 lab
158/161
159
Cisco UCS Director 5.2 Lab Part 2
The SSL VPN Service login page will appear
Use the login credentials provided by the lab proctor and click Login
(Note: Username is stuXXX where the “XXX” is your pod number)
The lab welcome screen appears, click Continue
-
8/18/2019 Cisco UCS Director 5.2 lab
159/161
160
Cisco UCS Director 5.2 Lab Part 2
The AnyConnect Secure Mobility Client WebLaunch wizard will appear. It should install
AnyConnect automatically. After installation is complete return to the beginning of the
document to log into the lab.
If for some reason it fails. Use the manual installation process. Click the Windows Desktop link
to start the download.
A download will begin at the bottom of the browser window
-
8/18/2019 Cisco UCS Director 5.2 lab
160/161
161
Cisco UCS Director 5.2 Lab Part 2
When the download is complete, click the triangle to show the menu and select show in folder.
Locate the file in the downloads folder and double click the file to start the installation
Click Run on the security warning
-
8/18/2019 Cisco UCS Director 5.2 lab
161/161
162
The Anyconnect Secure Mobility Client Setup Wizard will walk you through the steps. After
installation is complete return to the beginning of the document to log into the lab.