blob: 6058420e839c2b4dae6dc32f3ad1f98ab62665a1 [file] [log] [blame]
martial99333152017-10-11 13:49:07 +02001
2
3
4
ChrisCfb622922017-09-05 07:36:32 -07005.. This work is licensed under a Creative Commons Attribution 4.0 International License.
6.. http://creativecommons.org/licenses/by/4.0
7.. Copyright © 2017 AT&T Intellectual Property. All rights reserved.
8
ChrisCfac52642017-09-13 08:23:34 -07009CLAMP - Closed Loop Automation Management Platform
10==================================================
ChrisCfb622922017-09-05 07:36:32 -070011.. High level architecture, design, and packaging information for release planning and delivery.
12
ChrisCfac52642017-09-13 08:23:34 -070013CLAMP is a platform for designing and managing control loops. It is used to design a closed loop, configure it with specific parameters for a particular network service, then deploying and undeploying it. Once deployed, the user can also update the loop with new parameters during runtime, as well as suspending and restarting it.
ChrisCfb622922017-09-05 07:36:32 -070014
ChrisCfac52642017-09-13 08:23:34 -070015It interacts with other systems to deploy and execute the closed loop. For example, it pushes the control loop design to the SDC catalog, associating it with the VF resource. It requests from DCAE the instantiation of microservices to manage the closed loop flow. Further, it creates and updates multiple policies in the Policy Engine that define the closed loop flow.
ChrisCfb622922017-09-05 07:36:32 -070016
ChrisCfac52642017-09-13 08:23:34 -070017The ONAP CLAMP platform abstracts the details of these systems under the concept of a control loop model. The design of a control loop and its management is represented by a workflow in which all relevant system interactions take place. This is essential for a self-service model of creating and managing control loops, where no low-level user interaction with other components is required.
18
19At a higher level, CLAMP is about supporting and managing the broad operational life cycle of VNFs/VMs and ultimately ONAP components itself. It will offer the ability to design, test, deploy and update control loop automation - both closed and open. Automating these functions would represent a significant saving on operational costs compared to traditional methods.
20
ChrisCfb622922017-09-05 07:36:32 -070021
22
23.. toctree::
martial99333152017-10-11 13:49:07 +020024:maxdepth: 1
25
26Offered APIs
27------------
28CLAMP offers the following API's:
29-) HealthCheck
30 URL: http://<host>:8080/restservices/clds/v1/clds/healthcheck
31 if in good health it will return OK: "HTTP/1.1 200", and the following json string content:{"healthCheckComponent":"CLDS-APP","healthCheckStatus":"UP","description":"OK"}
32
33
34Consumed APIs
35-------------
36CLAMP uses the API's exposed by the following ONAP components:
37-) SDC : Rest based interface exposed by the SDC, Distribution of service to DCAE
38-) DCAE: Rest based interface exposed by DCAE, Common Controller Framework, DCAE microservices onboarded (TCA, Stringmatch, Holmes (optional))
39-) Policy: Rest based interface (the Policy team provide a "jar" to handle the communication), both XACML and Drools PDP, APIs to App-C/VF-C/SDN-C
ChrisCfb622922017-09-05 07:36:32 -070040
41
42Delivery
43--------
ChrisCfac52642017-09-13 08:23:34 -070044CLAMP component is composed of a UI layer and a BackEND layer and packaged into a single container.
45CLAMP also requires a database instance with 2 DB, it uses MariaDB.
ChrisCfb622922017-09-05 07:36:32 -070046
47.. blockdiag::
48
49
50 blockdiag layers {
51 orientation = portrait
ChrisCfac52642017-09-13 08:23:34 -070052 CLAMP_UI -> CLAMP_BACKEND;
53 CLAMP_BACKEND -> CAMUNDADB;
54 CLAMP_BACKEND -> CLDSDB;
ChrisCfb622922017-09-05 07:36:32 -070055 group l1 {
ChrisCfac52642017-09-13 08:23:34 -070056 color = blue;
57 label = "CLAMP container";
58 CLAMP_UI; CLAMP_BACKEND;
59 }
ChrisCfb622922017-09-05 07:36:32 -070060 group l3 {
ChrisCfac52642017-09-13 08:23:34 -070061 color = orange;
62 label = "MariaDB container";
63 CAMUNDADB; CLDSDB;
64 }
ChrisCfb622922017-09-05 07:36:32 -070065 }
66
67
68Logging & Diagnostic Information
69--------------------------------
ChrisCfac52642017-09-13 08:23:34 -070070Clamp uses logback framework to generate logs. The logback.xml file cand be found under the [src/main/resources/ folder](src/main/resources).
71
72With the default log settings, all logs will be generated into console and into root.log file under the Clamp root folder. The root.log file is not allowed to be appended, thus restarting the clamp will result in cleaning of the old log files.
73
ChrisCfb622922017-09-05 07:36:32 -070074
75
76Installation
77------------
ChrisCfac52642017-09-13 08:23:34 -070078A [docker-compose example file](extra/docker/clamp/docker-compose.yml) can be found under the [extra/docker/clamp/ folder](extra/docker/).
ChrisCfb622922017-09-05 07:36:32 -070079
ChrisCfac52642017-09-13 08:23:34 -070080Once the image has been built and is available locally, you can use the `docker-compose up` command to deploy a prepopullated database and a clamp instance available on [http://localhost:8080/designer/index.html](http://localhost:8080/designer/index.html).
ChrisCfb622922017-09-05 07:36:32 -070081
82Configuration
83-------------
ChrisCfac52642017-09-13 08:23:34 -070084.. Where are they provided?
85.. What are parameters and values?
ChrisCfb622922017-09-05 07:36:32 -070086
87
ChrisCfac52642017-09-13 08:23:34 -070088Currently, the clamp docker image can be deployed with small configuration needs. Though, you might need to make small adjustments to the configuration. As clamp is spring based, you can use the SPRING_APPLICATION_JSON environment variable to update its parameters.
89
90.. TODO detail config parameters and the usage
91
92
93There are two needed datasource for Clamp. By default, both will try to connect to the localhost server using the credentials available in the example SQL files. If you need to change the default database host and/or credentials, you can do it by using the following json as SPRING_APPLICATION_JSON environment variable :
94
95.. code-block:: json
96
97 {
98 "spring.datasource.camunda.url": "jdbc:mariadb://anotherDB.onap.org:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true",
99 "spring.datasource.camunda.username": "admin",
100 "spring.datasource.camunda.password": "password",
101 "spring.datasource.cldsdb.url": "jdbc:mariadb://anotherDB.onap.org:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true",
102 "spring.datasource.cldsdb.username": "admin",
103 "spring.datasource.cldsdb.password": "password"
104 }
105
106OR
107
108.. code-block:: json
109
110 {
111 "spring":
112 {
113 "datasource":
114 {
115 "camunda":
116 {
117 "url": "jdbc:mariadb://anotherDB.onap.org:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true",
118 "username": "admin",
119 "password": "password"
120 },
121
122 "cldsdb":
123 {
124 "url": "jdbc:mariadb://anotherDB.onap.org:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true",
125 "username": "admin",
126 "password": "password"
127 }
128 }
129 }
130 }
131
ChrisCfb622922017-09-05 07:36:32 -0700132Administration
133--------------
134
ChrisCfac52642017-09-13 08:23:34 -0700135A user can access CLAMP UI at the following URL : http://localhost:8080/designer/index.html.
martial99333152017-10-11 13:49:07 +0200136(in this URL 'localhost' must be replaced by the actual host where CLAMP has been installed if it is not your current localhost)
ChrisCfac52642017-09-13 08:23:34 -0700137Default username : admin
138Default password : password
ChrisCfb622922017-09-05 07:36:32 -0700139
140
141Human Interfaces
142----------------
ChrisCfac52642017-09-13 08:23:34 -0700143.. Basic info on the interface type, ports/protocols provided over, etc.
144
145User Interface (CLAMP Designer) - serve to configure control loop
martial99333152017-10-11 13:49:07 +0200146The following actions are done using the UI:
ChrisCfac52642017-09-13 08:23:34 -0700147
martial99333152017-10-11 13:49:07 +0200148 Design a control loop flow by selecting a predefined template from a list
149 (a template is an orchestration chain of Micro-services, so the template defines how the micro-services of the control loop are chained together)
150 Give value to the configuration the parameters of each micro-service of the control loop
151 Select the service and VNF(of that service) to which the control loop will be attached
152 Configure the operational policy(the actual operation resulting from the control loop)
153 Generate the TOSCA blueprint that will be used by DCAE to start the control loop
154 (The blueprint will be sent first to SDC and SDC will publish it to DCAE)
155 Trigger the deployment of the Control loop in DCAE
156 Control (start/stop) the operation of the control loop in DCAE
157
158
159
160HealthCheck API - serve to verify CLAMP status (see offered API's section)