blob: bfac885dc8d072129d2cf4082b304807a92cf7b6 [file] [log] [blame]
sebdet5dea2222019-01-11 13:11:03 +01001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3.. Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
4
osgn422w17f8fc62019-05-29 19:26:49 +02005Control loop in CLAMP
6---------------------
xuegaofe947232020-03-31 08:37:02 +02007There are 2 control loop levels in CLAMP:
Krysiak Adamd3a57d92019-05-28 15:35:09 +02008
osgn422w17f8fc62019-05-29 19:26:49 +02009- Control loop template: This is created from the DCAE blueprint (designed in the DCAE designer), and distributed by SDC to CLAMP.
10- Control loop instance: Based on the template, it represents a physical control loop in the platform related to a service and a VNF.
sebdet5dea2222019-01-11 13:11:03 +010011
xuegaofe947232020-03-31 08:37:02 +020012There is no way to design the microservice components of the control loop from scratch in CLAMP, you can only configure it and manage its life-cycle.
sebdet5dea2222019-01-11 13:11:03 +010013For more info on how to design the service in SDC, check this: https://wiki.onap.org/display/DW/CLAMP+videos#CLAMPvideos-DesignpartinSDC
14
sebdet5dea2222019-01-11 13:11:03 +010015
xuegaofe947232020-03-31 08:37:02 +020016There is a specific menu to view the available Control loop templates.
sebdet5dea2222019-01-11 13:11:03 +010017
xuegaofe947232020-03-31 08:37:02 +020018|clamp-template-menu|
sebdet5dea2222019-01-11 13:11:03 +010019
sebdet5dea2222019-01-11 13:11:03 +010020
xuegaofe947232020-03-31 08:37:02 +020021Each microservice policies and operational policies is related to a Policy Model.
22Clamp either communicates with Policy Engine periodically to download the available Policy Models automatically or user can upload the Policy Model manually.
23Policy Models related operations could be found under Policy Models menu.
sebdet5dea2222019-01-11 13:11:03 +010024
xuegaofe947232020-03-31 08:37:02 +020025|clamp-policy-model-menu|
sebdet5dea2222019-01-11 13:11:03 +010026
sebdet5dea2222019-01-11 13:11:03 +010027
xuegaofe947232020-03-31 08:37:02 +020028Under the menu *Loop Instance*, there's a list of actions to perform regarding to the loops.
29
30|clamp-loop-menu|
31
32
33Option *Create* creates the loop from the templates distributed by SDC.
34
35|clamp-create-loop|
36
37
38Option *Open* opens the saved loops. Once the distributed control loop has been chosen, the control loop is shown to the user.
39
40|clamp-open-loop|
41
42
43Option *Close* will close the current opened loop.
44
45
46Option *Modify* opens the window to add/remove different Operational Policies to the loop.
47Tab *Add Operational Policies* lists all the available operational policies.
48Click *Add* button to add the selected operational policies to the loop.
49
50|clamp-add-operational-policies|
51
52Tab *Remove Operational Policies* lists all the operational policies added to the loop.
53Click *Remove* button to remove the selected operational policies from the loop.
54
55|clamp-remove-operational-policies|
56
57
58Once opened, the user can start configure empty control loop using **Closed loop modeller**.
59
60|clamp-opened-loop|
61
62
63Loop modeler has 3 main parts:
Krysiak Adamd3a57d92019-05-28 15:35:09 +020064
65#. Loop configuration view
66 Visualizes event flow in Control Loop. This view is auto-generated by Clamp. To generate it Clamp parses DCAE_INVENTORY_BLUEPRINT from CSAR distributed by SDC.
67 It Always consists of **VES -> <nodes from blueprint> -> OperationalPolicy**. Not all nodes are visualized. Only those with type **dcae.nodes.\***
68 |blueprint-node|
69
70#. Loop status
71 Visualizes status of opened loop.
72#. Loop logs
73 Table with log data of opened loop
74
xuegaofe947232020-03-31 08:37:02 +020075
osgn422w17f8fc62019-05-29 19:26:49 +020076Control Loop properties
77-----------------------
78In Dublin release this view shows what are deployment parameters or control Loop.
xuegaofe947232020-03-31 08:37:02 +020079To open it from *Loop Instance* menu select *Properties*
sebdet5dea2222019-01-11 13:11:03 +010080
81|clamp-menu-prop|
82
Krysiak Adamd3a57d92019-05-28 15:35:09 +020083This opens a box with JSON object. It contains deployment parameters extracted from DCAE_INVENTORY_BLUEPRINT.
84It's not recommended to edit this JSON. Each of this parameters should be available in view shown to deploy analytic application.
85
sebdet5dea2222019-01-11 13:11:03 +010086|clamp-prop-box|
87
xuegaofe947232020-03-31 08:37:02 +020088
89Operational policy properties
osgn422w17f8fc62019-05-29 19:26:49 +020090---------------------------------------
xuegaofe947232020-03-31 08:37:02 +020091Operational policies are added by the user using *Modify* window. The configuration view is generated using Policy Type assigned to selected operational policy.
sebdet5dea2222019-01-11 13:11:03 +010092
xuegaofe947232020-03-31 08:37:02 +020093To configure operational policies, user has to click the corresponding operational policy boxes. Example popup dialog for operational policy looks like:
sebdet5dea2222019-01-11 13:11:03 +010094
xuegaofe947232020-03-31 08:37:02 +020095|clamp-op-policy-box-policy|
Krysiak Adamd3a57d92019-05-28 15:35:09 +020096
Krysiak Adamd3a57d92019-05-28 15:35:09 +020097
98
99Micro-service policy properties
sebdet5dea2222019-01-11 13:11:03 +0100100-------------------------------
xuegaofe947232020-03-31 08:37:02 +0200101Boxes between `VES` and `Operational Policies` are generated from blueprint. They can be one of ONAP predefined analytic microservices or custom analytics.
Krysiak Adamd3a57d92019-05-28 15:35:09 +0200102Each of the boxes is clickable. Microservice configuration view is generated using Policy Type assigned to selected microservice.
103Clamp by default assumes that microservices have policy type **onap.policies.monitoring.cdap.tca.hi.lo.app**.
104
105After clicking microservice box Clamp opens popup dialog. Example popup dialog for microservice with default type looks like:
106
xuegaofe947232020-03-31 08:37:02 +0200107|clamp-config-policy-tca|
Krysiak Adamd3a57d92019-05-28 15:35:09 +0200108
109
xuegaofe947232020-03-31 08:37:02 +0200110
111In the *Loop Operations* menu, lists the operations to be perform to the loop.
112
113|clamp-loop-operation-menu|
sebdet5dea2222019-01-11 13:11:03 +0100114
sebdet5dea2222019-01-11 13:11:03 +0100115
osgn422w17f8fc62019-05-29 19:26:49 +0200116Submitting the Control loop to policy
117-------------------------------------
xuegaofe947232020-03-31 08:37:02 +0200118The SUBMIT operation can be used to send the configuration to policy engine.
119If everything is successful, the status to the policy will become *SENT*. Clamp should also show proper logs in logs view.
Krysiak Adamd3a57d92019-05-28 15:35:09 +0200120
xuegaofe947232020-03-31 08:37:02 +0200121|clamp-policy-submitted|
sebdet5dea2222019-01-11 13:11:03 +0100122
Krysiak Adamd3a57d92019-05-28 15:35:09 +0200123After Policies are submitted they should be visible in Policy PAP component.
124Please check `Policy GUI <https://docs.onap.org/en/dublin/submodules/policy/engine.git/docs/platform/policygui.html>`_
125
sebdet5dea2222019-01-11 13:11:03 +0100126
xuegaofe947232020-03-31 08:37:02 +0200127Deploy/undeploy the Control Loop to DCAE
128-----------------------------------------
129Once sent to policy engine, Clamp can ask to DCAE to DEPLOY the micro service
sebdet5dea2222019-01-11 13:11:03 +0100130
131This opens a window where the parameters of the DCAE micro service can be configured/tuned.
132The policy_id is automatically generated by Clamp in the previous steps.
133
134|clamp-deploy-params|
135
xuegaofe947232020-03-31 08:37:02 +0200136Once deployed on DCAE the status of DCAE goes to *MICROSERVICE_INSTALLED_SUCCESSFULLY*, it can then be Undeployed/Stopped/Restart.
sebdet5dea2222019-01-11 13:11:03 +0100137
xuegaofe947232020-03-31 08:37:02 +0200138.. |clamp-template-menu| image:: images/user-guide/template-menu.png
139.. |clamp-policy-model-menu| image:: images/user-guide/policy-model-menu.png
140.. |clamp-loop-menu| image:: images/user-guide/loop-menu.png
141.. |clamp-create-loop| image:: images/user-guide/create-loop.png
142.. |clamp-open-loop| image:: images/user-guide/open-loop.png
143.. |clamp-add-operational-policies| image:: images/user-guide/add-operational-policies.png
144.. |clamp-remove-operational-policies| image:: images/user-guide/remove-operational-policies.png
145.. |clamp-opened-loop| image:: images/user-guide/opened-loop.png
sebdet5dea2222019-01-11 13:11:03 +0100146.. |clamp-menu-prop| image:: images/user-guide/open-menu-prop.png
xuegaofe947232020-03-31 08:37:02 +0200147.. |clamp-prop-box| image:: images/user-guide/loop-properties.png
148.. |clamp-op-policy-box-policy| image:: images/user-guide/op-policy-box-policy.png
149.. |clamp-config-policy-tca| image:: images/user-guide/config-policy-tca.png
150.. |clamp-loop-operation-menu| image:: images/user-guide/loop-operation-menu.png
151.. |clamp-policy-submitted| image:: images/user-guide/policy-submitted.png
sebdet5dea2222019-01-11 13:11:03 +0100152.. |clamp-deploy-params| image:: images/user-guide/deploy-params.png
xuegaofe947232020-03-31 08:37:02 +0200153.. |blueprint-node| image:: images/user-guide/blueprint_node_type.png