Automating NetApp ONTAP With WFA
Automating NetApp ONTAP With WFA
Automating NetApp ONTAP With WFA
Overview of WFA:
OnCommand Workflow Automation (WFA) is a software solution that
helps to automate storage management tasks, such as provisioning,
migration, decommissioning, data protection configurations, and
cloning storage. You can use WFA to build workflows to complete
tasks that are specified by your processes. WFA supports both ONTAP
my
and Data ONTAP operating in 7-Mode.
a
A workflow is a repetitive and procedural task that consists of
us
sequential steps, including the following types of tasks:
•
th
Provisioning, migrating, or decommissioning storage for
Mu
databases or file systems
• Setting up a new virtualization environment, including
r
ma
WFA Features:
• Designer portal to build workflows
The designer portal includes several building blocks, such as
commands, templates, finders, filters, and functions, that are
used to create workflows. The designer enables you to
include advanced capabilities to workflows such as
automated resource selection, row repetition (looping), and
approval points.
The designer portal also includes building blocks, such as
my
dictionary entries, cache queries, and data source types, for
caching data from external systems.
a
us
• Execution portal to execute workflows, verify status of
workflow execution, and access logs
th
Administration/Settings option for tasks such as setting up
Mu
•
WFA, connecting to data sources, and configuring user
credentials
r
ma
my
a
us
th
Mu
r
ma
l ku
hi
nt
Se
Installation:
my
a
us
th
Mu
r
ma
l ku
hi
nt
Se
my
a
us
th
Mu
r
ma
l ku
hi
nt
Se
Configuring WFA:
amy
us
th
Mu
r
ma
data source types. You must be aware of the predefined data source
types before you set up the data sources for data acquisition.
Se
my
a
us
th
Mu
Select Unified Manager
Data Source
r
ma
l ku
hi
nt
Se
Follow the
instructions from
Unified Manager.
my
a
us
Login to Unified Manager and proceed the WFA setup options.
th
Mu
r
ma
ku
my
a
us
th
Mu
r
ma
l ku
hi
nt
Se
my
You create workflows in the Workflow Automation (WFA) designer
using the building blocks such as finders, filters, and commands.
a
us
Understanding the building blocks and the workflow creation process
is important before you start creating your workflows.
th
Mu
r
ma
l ku
hi
nt
Se
Creating a Workflow:
You must break down the goal of a workflow into the steps that should
be executed by the workflow. You can then arrange the steps to
complete your workflow.
my
workflow into a series of steps—for example, creating an NFS volume
includes the following steps:
a
us
1. Creating a volume object
th
2. Creating a new export policy and associating the policy
Mu
with the volume
r
ma
l ku
hi
nt
Se
my
details in workflows.
a
us
Select the create volume
th workflow step (Drag & Drop)
Mu
r
ma
l ku
hi
nt
Se
User inputs are shown as input fields, which can be filled out with
relevant data when previewing or executing workflows. You can
create a user input field when specifying the command details in a
workflow by prefixing a label or variable with the dollar sign ($).
a my
For example, $VolumeName creates a Volume Name user input field.
us
WFA automatically populates the User Inputs tab in the Workflow
th
<workflow name> window with the user input labels that you have
created. You can also define the type of the user input and customize
Mu
the input fields by modifying the user input attributes, such as type,
display name, default values, and validation values.
r
ma
as required.
l
hi
nt
Se
Pre-defined Filters
to select an
aggregate
a my
us
th
Mu
r
ma
a my
us
th
Mu
Using Constants:
r
ma
You can create and use constants to define a value, which can be used
across a single workflow. Constants are defined at a workflow level.
l ku
The constants used in the workflow and their value are displayed in
hi
a my
us
th Defined user inputs for
Mu
creating volume workflow.
r
ma
l ku
hi
nt
inputs.
Preview of workflow is
successful.
a my
us
You can list the execution plan.
th
Mu
r
ma
l ku
my
As per this example, svm01
a
has svm root volume only.
us
th
Mu
r
values to create a
volume.
Execute the
ku
workflow.
l
hi
nt
Se
Execution of workflow is
successful.
a my
us
th
Mu
Check the execution status.
r
ma
l ku
hi
a my
us
th
Mu
r
ma
a my
us
th
Mu
r
ma
l ku
hi
nt
Se
a my
us
th
Mu
User input variables changed
successfully.
r
ma
ku
my
WFA Building Blocks:
a
Workflow Automation (WFA) includes several building blocks, which
us
are used to construct workflows. You can create the WFA buildings
blocks that are required for your workflows. th
Mu
Example Workflow building blocks.
1. Search or define the cluster to perform these operations.
r
5. Create Qtrees
hi
Once you execute this workflow, It creates volume and qtrees with
nt
my
Example User Inputs:
a
us
1. Cluster Name: cluster1
2.
3.
SVM name: svm01
Export Policy Name: ep1
th
Mu
4. Client Match rule:
5. Rwrule and ROrule
r
6. Volume size
ma
7. Volume Name
ku
8. Qtree Names.
l
hi
workflow.
Se
a my
us
th
Mu
Export policy ep1 created
automatically.
r
ma
l ku
Approval Point:
Approval points are check points used in a workflow to pause the
workflow execution and resume it based on a user approval.
You can use approval points for incremental execution of a workflow,
where sections of the workflow should be executed only after a certain
condition is met. For example, when the next section has to be
approved or when successful execution of the first section is validated.
Approval points do not handle any process between pausing and
resuming of a workflow.
my
Email and SNMP notifications are sent, as specified in the WFA
a
us
configuration, and the storage operator can be asked to perform
certain actions upon receiving the workflow pause notification. For
th
example, the storage operator can send planning details to admin,
Mu
approver, or operator for approval and resume the workflow when the
approval is received.
r
For example, you can set the approval point for creating volume. Once
ma
the workflow executed, it will select the cluster, create an export policy
ku
approval.
nt
Se
a my
Once the workflow executed, It will create export policy and policy
us
client match rule then it will wait for the approval to create a volume.
th
Mu
r
ma
l ku
hi
my
Once the concern user approves it and resume the workflow.
a
us
th
Mu
approve it.
ma
l ku
hi
nt
Se
my
a
us
th
Mu
r
ma