Remove remaining warnings during Documentation buildings
[doc.git] / docs / guides / onap-user / design / service-design / index.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0
2 .. International License. http://creativecommons.org/licenses/by/4.0
3 .. Copyright 2019 ONAP Contributors. All rights reserved.
4
5 .. _doc_guide_user_des_ser-des:
6
7 Service Design
8 ==============
9
10 **Goal:** Add models and other artifacts required to create, configure,
11 instantiate, and manage services. Validate and certify the services.
12 Besides the manual creation of a Service Model, an existing model can
13 be imported via a CSAR file
14
15 **Tool:** SDC
16
17 **SDC user roles:** Designer
18
19 |image1|
20
21 **Figure: Workflow for Service design**
22
23 **Steps**
24
25    #. `Create Service`_
26    #. `Create a Management Workflow [optional]`_
27    #. `Create a Network Callflow [optional]`_
28    #. `Manage Service Properties [optional]`_
29    #. `Update Service [optional]`_
30    #. `Certify Service`_
31    #. `Import Service CSAR [optional]`_
32
33 .. _doc_guide_user_des_ser-cre_serv:
34
35 Create Service
36 --------------
37
38 **Prerequisites:** Create VF/PNFs required for this service (see :ref:`doc_guide_user_des_vf-cre`).
39
40 #. From the SDC HOME page, hover over Add and select *ADD SERVICE*.
41
42    |image0|
43
44 #. In the General section, complete all fields.
45
46    |image5|
47
48 #. Click Create.
49
50    A message displays when Service creation is complete.
51
52 #. Click Composition.
53
54    |image6|
55
56    For a description of the Composition section (see SDC User Guide ).
57
58 #. Drag one or more elements from the Elements palette to the canvas.
59 #. To connect elements:
60
61    #. Hover over an element and then hover over \ |image2|.
62
63       Other elements that can connect to this element are highlighted.
64
65    #. Drag to a highlighted element on the canvas.
66    #. Select options for Requirements and Capabilities.
67    #. Click Connect.
68
69 #. To add artifacts at the service level:
70
71    #. Click an empty area in the canvas and click *Deployment Artifacts*
72       (right pane).
73    #. Click \ |image3|.
74    #. Select the type.
75    #. Click Browse, locate a file to upload, and click Open.
76    #. Complete all other fields.
77    #. Click Done.
78
79    Use this function to add YANG artifacts for distribution to SDNC.
80
81 #. [Optional]  At any time before checking in the Service, click
82    these options to update Service information:
83
84    .. note:: These tasks can be done only before certifying the Service.
85
86    - **General->Icon** change the icon associated with the Service
87    - **TOSCA Artifacts** view and edit artifacts, such as the .csar file
88      and TOSCA template
89    - **Composition** view or edit the graphical representation of the
90      service-level TOSCA model
91    - **Activity Log** view activity related to the Service
92      (displays the action, date, user, status, and any comments related to each
93      action)
94    - **Management Workflow** model service lifecycle workflows for execution
95      in SO (see `Create a Management Workflow [optional]`_)
96    - **Network Call Flow** model interactions among VFs (see
97      `Create a Network Callflow [optional]`_)
98    - **Deployment** view HEAT modules in VSPs
99    - **Properties Assignment** define or update properties,
100      policies and input parameters used during Service instantiation.
101    - **Monitoring** ...
102
103 #. Click *Check In* to save changes.
104
105    A box displays for confirming the changes.
106
107 #. Enter a comment and click OK.
108
109    A message displays when the Service is checked in and the
110    Home page is displayed.
111
112 #. After creating a service and configuring optional fields, certify it
113    (see `Certify Service`_).
114
115 Note: Create Service can also be invoked via External SDC API.
116 Refer SDC REST API reference for details of the API.
117 Currently, only a 'Partner Domain Service' category is supported
118 which cannot be created manually from SDC portal.
119
120 .. _doc_guide_user_des_ser-cre_wf:
121
122 Create a Management Workflow [optional]
123 ---------------------------------------
124
125 Create a workflow to model the SO recipes of the service life cycle such
126 as instantiation, upgrade, termination, or suspension of a service or
127 VNF. In the workflow each of the Activity, represent API calls to
128 various ONAP components (such as OOF, SDN-C, App-C, etc) that perform a
129 business function needed.
130
131 Note: The information collected in this section is represented in BPMN
132 format and included in distributed service model.
133
134 **Prerequisites:** All the required ActivitySpec as supported by SO
135  are registered in SDC.
136
137 #. From the SDC HOME page, click CATALOG and search for a service.
138 #. Click the service and click *Check Out*.
139 #. Select the panel *Management Workflow*.
140 #. Click *Add Workflow*.
141 #. The *Create New Workflow* box displays.
142 #. Complete all fields.
143 #. Click Create.
144
145    |image7|
146
147 #. Specify Inputs & Outputs of Workflow
148 #. Define the Composition of Workflow.
149
150    #. All the Tasks in the composition are expected to be ServiceTask
151       for using Activities defined in SO.
152    #. Select the Implementation in the Task "general" tab to Activity.
153    #. Select the required ActivitySpec.
154
155 #. Mark the workflow as executable by selecting the Executable flag in
156    the workflow "general" tab.
157 #. Click Save.
158 #. Certify the Workflow.
159
160 .. _doc_guide_user_des_ser-cre_nfw:
161
162 Create a Network Callflow [optional]
163 ------------------------------------
164
165 Create a network callflow to model the interactions among VFs within a
166 service, such how VFs interact to deliver a service while the service is
167 being consumed. In the model, lifelines represent VFs.
168
169 Note: The information collected in this section is not distributed with
170 the service model.
171
172 **Prerequisites:** `Create service`_
173
174 #. From the SDC HOME page, click CATALOG and search for the service.
175 #. Click the service and click *Check Out*.
176 #. Click Network Call Flow.
177 #. Click Add Workflow.
178    The Create New Workflow box displays.
179 #. Complete all fields.
180 #. Click Save.
181 #. In the new workflow pane, click the Lifelines icon.
182
183    The LIFELINES/STEPS view displays.
184
185 #. To add a lifeline (component), do the following:
186
187    #. Click LIFELINES to expand the pane.
188    #. Click Add Lifeline.
189    #. In the [Unnamed Lifeline field], enter a name for the lifeline.
190    #. To add other lifelines to the workflow, repeat the actions above.
191
192 #. After creating all required lifelines, do the following to add a step
193    (showing an action between two lifelines):
194
195    #. Under STEPS (left pane), click Add Message.
196       An unnamed step is added under STEPS.
197    #. In the [Unnamed Message] field, enter a name or message for the
198       step.
199    #. From the component and arrow dropdown lists, select the two
200       components that communicate in this step, and the arrow to show in
201       which direction the communication flows.
202    #. To add another step, repeat the actions above.
203
204 #. [Optional] Change the order of steps by clicking a step and dragging
205    it to the preferred position.
206 #. Click *Save*.
207 #. Click *Check In* to save changes.
208
209 .. _doc_guide_user_des_ser-para_in:
210
211 Manage Service Properties [optional]
212 ------------------------------------
213
214 Add new Service parameters and define as input fields
215 during Service instantiation.
216
217
218 **Prerequisites:** `Create service`_
219
220 #. From the SDC HOME page, click CATALOG and search for a service.
221 #. Click the service and click *Check Out*.
222 #. Click *Properties Assignment*.
223
224    |image8|
225
226 #. From the *Composition* pane, select the *SELF* object
227    representing the service.
228 #. In the *Properties* the existing Service properites are shown
229 #. With *+Add Property* you can add a new property
230 #. To set a property as *Input* parameter, select the parameter
231    by clicking the check box in each row as required.
232    Note: Do not select inputs that are already in the ENV file (this
233    overwrites values specified in the ENV).
234
235    |image9|
236
237 #. Click *Declare Input* to add the selected parameter to the
238    Service *Input* pane.
239 #. Click *Check In* to save changes.
240
241 .. _doc_guide_user_des_ser-upd_serv:
242
243 Update Service [optional]
244 -------------------------
245
246 Update service information and artifacts.
247
248 Update the version of a VF referenced in the service whenever the VF is
249 updated (see step 4).
250
251 **Prerequisites:**
252
253 -  Create a service.
254 -  If a VF included in the service was updated:
255    see :ref:`doc_guide_user_des_vf-cre_vf-upd`
256
257 #. From the SDC HOME page, click CATALOG and search for the service.
258 #. Click the service and click *Check Out*.
259 #. Click Composition.
260 #. To update the version of a VF referenced in the service:
261
262    #. Click Composition.
263    #. Click the VF in the canvas.
264    #. On the *General Info* tab (right pane), select the VF version.
265
266 #. To update artifacts at the service level:
267
268    #. Click an empty area in the canvas and click *Deployment Artifacts*
269       (right pane).
270    #. View, add, delete, or download artifacts as required.
271
272 #. [Optional] Add, edit, or remove VFs that comprise the service
273    reference architecture (see steps 4 to 6 in \ `Create Service`_).
274 #. [Optional] Click *Operations* to edit Service Operations.
275
276    #. Create/Edit Operations
277    #. Assign Workflow
278    #. Click Save
279
280 #. [Optional] Click *Management Workflow* to edit, upload, or delete
281    associated deployment artifacts
282    (see `Create a Management Workflow [optional]`_).
283 #. [Optional] Click *Network Callflow* to edit the interactions among VFs
284    that comprise the service (see `Create a Network Callflow [optional]`_).
285 #. [Optional] Click *Properties Assignement* to select parameters as
286    input fields during Service instantiation.
287 #. Click *Check In* to save changes.
288 #. After updating a service and configuring optional fields, certify it
289    (see `Certify Service`_).
290
291 .. _doc_guide_user_des_ser-cfy_serv:
292
293 Certify Service
294 ---------------
295
296 Note: A service cannot be submitted for testing if the reference
297 architecture contains uncertified resources.
298
299 **Prerequisites:** `Create Service`_
300
301 **Steps**
302
303 #. When a Service is ready for certification,
304    click *CATALOG* and search for the checked-in Service.
305 #. Click the Service and click *Certify*.
306
307 #. Enter a comment and click *OK*.
308
309 #. A Message appears, that the Service is certified.
310
311
312 Import Service CSAR [optional]
313 ------------------------------
314
315 Note: This step can be used, when a Service Model already exists
316
317 **Steps**
318
319 #. From the SDC HOME page, hover over IMPORT and select *IMPORT SERVICE CSAR*.
320
321    |image0|
322
323 #. In the File Upload Dialog, select the csar file and press *Open*.
324
325    |image10|
326
327 #. In the General section, complete all fields.
328
329    |image11|
330
331 #. Click Create.
332
333    A message displays when Service creation is complete.
334
335 #. Continue with Service Design steps mentioned above
336
337 .. |image0| image:: media/sdc-home.png
338 .. |image1| image:: media/sdc-service-workflow.png
339 .. |image2| image:: media/design_asdccanvas_connect_elements.png
340 .. |image3| image:: media/design_service_adddeploymentartifact.png
341 .. |image4| image:: media/design_service_inputs_move.png
342 .. |image5| image:: media/sdc-service-general.png
343 .. |image6| image:: media/sdc-service-composition.png
344 .. |image7| image:: media/sdc-service-workflow.png
345 .. |image8| image:: media/sdc-service-properties.png
346 .. |image9| image:: media/sdc-service-properties-input.png
347 .. |image10| image:: media/sdc-service-import.png
348 .. |image11| image:: media/sdc-service-general-import.png