aboutsummaryrefslogtreecommitdiffstats
path: root/docs/docs_CM_flexible_designer_orchestrator.rst
blob: 41ecb1bb71a0ae225a212f986baf0abcdb504cdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
.. _docs_CM_flexible_designer_orchestrator: 

.. contents::
   :depth: 3
..

Dublin Workflow Designer Release Notes
======================================

The Workflow Editor was developed in the Beijing release by Amdocs and
is available in SDC for users to create workflows.

NOTE: For the Dublin release only FlowCompleteActivity, Set/UnSet
InMaint Flags Building Blocks were tested. Testing for the other
Building Blocks for an InPlaceSWUpdate will be tested in the El Alto
release.

Building Blocks Available 
--------------------------

The following building blocks will be visible in the SDC Workflow
Designer Editor. Those that were tested are marked with an “\*”. Those
that are unmarked were not tested.

-  VNFSetInMaintFlagActivity  \*

-  VNFUnsetInMaintFlagActivity  \*                     

-  FlowCompleteActivity \*                 

-  VNFCheckInMaintFlagActivity  

-  PauseForManualTaskActivity            

-  VNFCheckClosedLoopDisabledFlagActivity      

-  VNFCheckPserversLockedFlagActivity    

-  VNFHealthCheckActivity                

-  VnfInPlaceSoftwareUpdate             

-  VNFLockActivity                      

-  VNFQuiesceTrafficActivity             

-  VNFResumeTrafficActivity              

-  VNFSetClosedLoopDisabledFlagActivity  

-  VNFSnapShotActivity                   

-  VNFStartActivity                      

-  VNFStopActivity                       

-  VNFUnlockActivity                     

-  VNFUnsetClosedLoopDisabledFlagActivity

-  VNFUpgradeBackupActivity              

-  VNFUpgradePostCheckActivity  

-  VNFUpgradePreCheckActivity 

-  VNFUpgradeSoftwareActivity

-  DistributeTrafficActivity Check Release Notes for this BB

-  DistributeTrafficCheckActivity   Check Release Notes for this BB

Pre-Workflow Execution
----------------------

1. Users must ensure that the required Ansible scripts are available and
   loaded the appropriate Ansible server prior to attempting to execute
   a workflow. Building blocks for InPlaceSWUpgrade that require Ansible
   Scripts include:

-  VNFUpgradePreCheck,

-  VNFUpgradeSoftware,

-  VNFUpgradePostCheck,

1. If a building block exists in SO and is not showing up in the SDC
   Workflow Designer (WFD), activities can be manually uploaded by
   following instructions in the Change Managmenet Extension Release
   Notes for CasaBlanca. This was tested and SO is expected to
   automatically push the activities/BuildingBlocks (BBs) to SDC.

2. User must create a workflow, attach it to the vNF model. It is
   recommended that they test it in a test environment prior to
   executing in a production environment.

3. NOTE: The workflow distribution mechanism was working until after
   Dublin code freeze in the test environment. Since we are not sure if
   something broke, we are including instructions in to manually upload
   the WF to SO. The Steps to upload a BPMN directly to SO are:

    | - populate\_wfd\_tbl.sh ,
    | - workflow\_template.xml
    | - workflowtbl.sql
    | It is recommended that the user cleanup the workflow tables. The
      Sqls to do so are in
    | -<cleanup\_rerun.txt.>.

    Here are the steps to populate the wfd tables

    A. Create an absolute path directory

    This will be the directory where the files and the scripts reside
    for populating the WFD tables.

    Eg: /home/uid/workflows

    B. Save the following files into the directory created in step 1
    (eg:/home/uid/workflows)

    populate\_wfd\_tbl.sh ,

    workflow\_template.xml ,

    WorkflowSample.bpmn,

    workflowtbl.sql

    C. Change the user, password, and db in populate\_wfd\_tbl.sh

    EG: mysql -u<user> -p<password> -D<schema>

    In the script right now we used user=root, password=password,
    schema=catalogdb

                                 

    D. Create your workflow bpmn (WorkflowSample.bpmn provided as a
    sample)

    Attributes from the workflow bpmn created for testing are used in
    the workflow\_template.xml file so that the related WFD tables are
    populated.

    E. Edit the Workflow\_template.xml based on your workflow bpm that
    you have created.

    Template is populated with sample values as examples.

    <?xml version="1.0" encoding="UTF-8"?>

    <workflow-template>

      <workflow ARTIFACT\_UUID="a90f8eaa-7c20-422f-8c81-aacbca6fb9e7"
    ARTIFACT\_NAME="workflowSample.bpmn" NAME="workflowSample.bpmn"
    OPERATION\_NAME="inPlaceSoftwareUpdate"

      VERSION="1.0" DESCRIPTION="Workflow Artifact Description" BODY=""
    RESOURCE\_TARGET="VNF" SOURCE="SDC" TIMEOUT\_MINUTES="120"

      ARTIFACT\_CHECKSUM="ZjUzNjg1NDMyMTc4MWJmZjFlNDcyOGQ0Zjc1YWQwYzQ\\u003d">

      </workflow>

    //VNF to be used

      <vnf NAME="abcd-abcd-abcd-abcd-abcd" VERSION="1.0"/>

    //list the activities you are designed in the workflow bpmn and the
    sequence order.

      <activity\_spec\_sequence NAME="VNFSetInMaintFlagActivity"
    VERSION="1.0" SEQUENCE="1"/>

      <activity\_spec\_sequence NAME="VNFUnsetInMaintFlagActivity"
    VERSION="1.0" SEQUENCE="2"/>

      <activity\_spec\_category NAME="VNF"/>

    </workflow-template>

     

    F.  => ./populate\_wfd\_tbl.sh <directory with absolute path that we
    have created in step 1>

    Eg:=> ./populate\_wfd\_tbl.sh '/home/uid/workflows'

1. There is a correction in the code to connect the WF to the vNF in the
   SO table, however, due to environment issues, it was not tested prior
   to code freeze. We do expect it to work, however, in the event that
   it does not, the user needs manually update the SO database to link
   the WF to the vNF by following these instructions.

   a. Login to dev-mariadb-galera-mariadb-galera-0 pod

   b. mysql -ucataloguser -pcatalog123

   c. use catalogdb;

   d. select id from workflow where name = '<your workflow name>;

   e. insert into vnf\_resource\_to\_workflow
      (‘VNF\_RESOURCE\_MODEL\_UUID’, ‘WORKFLOW\_ID’)VALUES (‘<model uuid
      of your VNF Resource>’,<workflow id obtained in the query in step
      4>);

Workflow Initiation
-------------------

After creating a workflow, attaching it to the vNF model and
distributing the model, the workflow can now be initiated at the VID
interface by: (Note – a vNF of the same model version must also be
instantiated)

1. Go to VID and Select “vNF Changes” from the left menu.

2. Select the “+ New” icon at the top of the window.

   a. Enter the fields displayed by VID. As selections are made, other
      fields will appear. Any field where the entry “box” turns red when
      selected, is mandatory.

   b. Target Model is displayed but not needed for InPlaceSWUpdate or
      Configupdate WFs

   c. A configuration file must be uploaded to execute the ConfigUpdate
      WF. This input is not used for InPlaceSWUpdate.

   d. Operations Timeout is a mandatory field.

   e. Existing and New SW Version fields are mandatory for
      InPlaceSWUpdate.

3. Available vNF dropdown

   a. To select more than one vNF instance, just select the desired
      instances from the dropdown list. You may select one or many.

   b. To delete a selected vNF instance, click the “X” to the left of
      that instance.

   c. To exit the vNF instance selection mode, click in the blank space
      on the Pop-Up. DO NOT click outside the Pop-Up as this is
      equivalent to clicking <Cancel>.

4. If the workflow desired is not displayed when clicking on the
   Workflow “Box”, it means that the workflow is either not attached to
   the vNF Model Version of the selected instance or the vNF Modell has
   not been distributed and deployed in SO. Go back to steps 3-5 of the
   previous section to correct.

5. Once all fields are populated, select <Confirm> at the bottom of the
   pop-up window to execute the workflow.

6. To cancel your selections, click <Cancel> at the bottom of the pop-up
   window.

Workflow Status
---------------

Once the workflow is initiated, the user can view status of the workflow
by Selecting the Active and Completed TABS.

1. Click the Refresh icon above and to the right of the status table
   being viewed to refresh the data.

2. Click the icon in the status column to view specific status about the
   workflow in that row.

   a. Red icon indicates a failure or issue.

   b. Green icon indicates in Progress or successful completion.

Pause for Manual Task Building Block Handling
---------------------------------------------

Descoped from Dublin. To be tested in El Alto.

Native (Hard Coded) SO Workflows
--------------------------------

The user will also see Native (Hard Coded) workflows along with
workflows they create for the selected vNF type in the dropdown menu on
the VID screen when initiating a workflow. These require ansible scripts
and are available to test with your particular vNF. Only Scale out was
part of the Dublin release. The others were not part of the release but
are available to test with your vNF. Please refer to the Scale out
release notes for further information.

https://onap.readthedocs.io/en/latest/submodules/integration.git/docs/docs_scaleout.html#docs-scaleout