1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
3 .. _clamp-policy-upgrade-label:
5 TOSCA Policy Testing Upgrade
6 ############################
15 **Step 1:** Clone Policy Clamp
19 git clone "https://gerrit.onap.org/r/policy/clamp"
21 **Step 2:** Change Master Branch to Istanbul
25 git checkout -b origin/istanbul
27 **Step 3:** Run Maven Clean Install
33 **Step 3:** Create the Database by going to /clamp/runtime/extra/bin-for-dev
39 **Step 4:** Start Clamp Runtime by going to /clamp/runtime/extra/bin-for-dev
45 **Step 5:** Start Control Loop Runtime by going to /clamp/runtime-controlloop
49 java -jar target/policy-clamp-runtime-controlloop-6.1.5-SNAPSHOT
51 **Step 6:** Open up Postman and import the following collections
53 `Download <collections/Control Loop Istanbul.postman_collection.json>`_
55 **Step 7:** Open up the folder Control Loop Istanbul/Commissioning
57 Select POST Commission Tosca Service Template and run it.
59 *- Should receive the following result*
66 "affectedInstanceProperties": [
68 "name": "PMSH_Instance1",
72 "name": "org.onap.domain.pmsh.PMSH_MonitoringPolicyControlLoopElement",
76 "name": "org.onap.domain.sample.GenericK8s_ControlLoopDefinition",
80 "name": "org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement_Instance1",
84 "name": "org.onap.domain.database.Local_K8SMicroserviceControlLoopElement_Instance1",
88 "name": "org.onap.policy.controlloop.PolicyControlLoopParticipant",
92 "name": "org.onap.controlloop.HttpControlLoopParticipant",
96 "name": "org.onap.domain.database.Http_PMSHMicroserviceControlLoopElement",
100 "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyControlLoopElement",
104 "name": "org.onap.domain.database.Local_K8SMicroserviceControlLoopElement",
108 "name": "org.onap.domain.pmsh.PMSH_MonitoringPolicyControlLoopElement_Instance1",
112 "name": "org.onap.domain.pmsh.DerivedPolicyControlLoopElement_Instance1",
116 "name": "org.onap.k8s.controlloop.K8SControlLoopParticipant",
120 "name": "org.onap.domain.pmsh.DerivedDerivedPolicyControlLoopElement",
124 "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyControlLoopElement_Instance1",
128 "name": "org.onap.domain.sample.GenericK8s_ControlLoopDefinition_Instance1",
132 "name": "org.onap.policy.controlloop.PolicyControlLoopParticipant_Instance1",
136 "name": "org.onap.k8s.controlloop.K8SControlLoopParticipant_Instance1",
140 "name": "org.onap.controlloop.HttpControlLoopParticipant_Instance1",
144 "name": "org.onap.domain.pmsh.DerivedDerivedPolicyControlLoopElement_Instance1",
148 "name": "org.onap.domain.database.Http_PMSHMicroserviceControlLoopElement_Instance1",
152 "name": "org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement",
156 "name": "org.onap.domain.pmsh.DerivedPolicyControlLoopElement",
162 **Step 8:** To try out other endpoints try out the other postman collections inside commission folder
164 **Step 9:** To decommission the Tosca Service Template Select DELETE Tosca Service Template
166 *- Should receive the following result*
172 "errorDetails": null,
173 "affectedControlLoopDefinitions": [
175 "name": "ToscaServiceTemplateSimple",
181 **Step 10:** For Instance Properties select the following folder in postman Control Loop Istanbul/Instantiation
183 Select POST Instance Properties
185 *- Should receive the following result*
191 "errorDetails": null,
192 "affectedInstanceProperties": [
194 "name": "PMSH_Instance1",
198 "name": "org.onap.domain.pmsh.PMSH_MonitoringPolicyControlLoopElement",
202 "name": "org.onap.domain.sample.GenericK8s_ControlLoopDefinition",
206 "name": "org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement_Instance1",
210 "name": "org.onap.domain.database.Local_K8SMicroserviceControlLoopElement_Instance1",
214 "name": "org.onap.policy.controlloop.PolicyControlLoopParticipant",
218 "name": "org.onap.controlloop.HttpControlLoopParticipant",
222 "name": "org.onap.domain.database.Http_PMSHMicroserviceControlLoopElement",
226 "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyControlLoopElement",
230 "name": "org.onap.domain.database.Local_K8SMicroserviceControlLoopElement",
234 "name": "org.onap.domain.pmsh.PMSH_MonitoringPolicyControlLoopElement_Instance1",
238 "name": "org.onap.domain.pmsh.DerivedPolicyControlLoopElement_Instance1",
242 "name": "org.onap.k8s.controlloop.K8SControlLoopParticipant",
246 "name": "org.onap.domain.pmsh.DerivedDerivedPolicyControlLoopElement",
250 "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyControlLoopElement_Instance1",
254 "name": "org.onap.domain.sample.GenericK8s_ControlLoopDefinition_Instance1",
258 "name": "org.onap.policy.controlloop.PolicyControlLoopParticipant_Instance1",
262 "name": "org.onap.k8s.controlloop.K8SControlLoopParticipant_Instance1",
266 "name": "org.onap.controlloop.HttpControlLoopParticipant_Instance1",
270 "name": "org.onap.domain.pmsh.DerivedDerivedPolicyControlLoopElement_Instance1",
274 "name": "org.onap.domain.database.Http_PMSHMicroserviceControlLoopElement_Instance1",
278 "name": "org.onap.domain.database.PMSH_K8SMicroserviceControlLoopElement",
282 "name": "org.onap.domain.pmsh.DerivedPolicyControlLoopElement",
288 **Step 11:** To try out other endpoints try out the other postman collections inside Instantiation folder
290 **Step 12:** To delete Instance properties select DELETE Instance Properties
292 *- Should receive the following result*
298 "errorDetails": null,
299 "affectedControlLoops": [
301 "name": "PMSH_Instance1",
307 **Step 13:** For monitoring endpoints go to Control Loop Istanbul/Monitoring folder
313 **Step 1:** Clone Policy Clamp
317 git clone "https://gerrit.onap.org/r/policy/clamp"
319 **Step 2:** Change Master Branch to Jakarta
323 git checkout -b origin/jakarta
325 **Step 3:** Run Maven Clean Install
331 **Step 3:** Create the Database by going to /clamp/runtime/extra/bin-for-dev
337 **Step 4:** Start Clamp Runtime by going to /clamp/runtime/extra/bin-for-dev
343 **Step 5:** Start Automation Composition Runtime by going to /clamp/runtime-acm
347 java -jar target/policy-clamp-runtime-acm-6.3.0-SNAPSHOT.jar
349 **Step 6:** Open up Postman and import the following collections
351 `Download <collections/Automation Composition Jakarta.postman_collection.json>`_
353 **Step 7:** Open up the folder Automation Composition Jakarta/Commissioning
355 Select POST Commission Tosca Service Template and run it.
357 *- Should receive the following result*
363 "errorDetails": null,
364 "affectedAutomationCompositionDefinitions": [
366 "name": "org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement",
370 "name": "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement",
374 "name": "org.onap.domain.pmsh.PMSH_MonitoringPolicyAutomationCompositionElement",
378 "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement",
382 "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition",
386 "name": "org.onap.policy.clamp.acm.HttpParticipant",
390 "name": "org.onap.policy.clamp.acm.KubernetesParticipant",
394 "name": "org.onap.policy.clamp.acm.PolicyParticipant",
400 **Step 8:** To try out other endpoints try out the other postman collections inside commission folder
402 **Step 9:** To decommission the Tosca Service Template Select DELETE Tosca Service Template
404 *- Should receive the following result*
410 "errorDetails": null,
411 "affectedAutomationCompositionDefinitions": [
413 "name": "ToscaServiceTemplateSimple",
419 **Step 10:** For Instance Properties select the following folder in postman Automation Composition Jakarta/Instantiation
421 Select POST Instance Properties
423 *- Should receive the following result*
429 "errorDetails": null,
430 "affectedInstanceProperties": [
436 "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition",
440 "name": "org.onap.policy.clamp.acm.PolicyParticipant",
444 "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement",
448 "name": "org.onap.domain.pmsh.PMSH_MonitoringPolicyAutomationCompositionElement",
452 "name": "org.onap.policy.clamp.acm.HttpParticipant",
456 "name": "org.onap.policy.clamp.acm.KubernetesParticipant-ATT",
460 "name": "org.onap.policy.clamp.acm.KubernetesParticipant",
464 "name": "org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement-ATT",
468 "name": "org.onap.domain.pmsh.PMSH_OperationalPolicyAutomationCompositionElement-ATT",
472 "name": "org.onap.domain.database.Http_PMSHMicroserviceAutomationCompositionElement",
476 "name": "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement-ATT",
480 "name": "org.onap.domain.pmsh.PMSH_MonitoringPolicyAutomationCompositionElement-ATT",
484 "name": "org.onap.policy.clamp.acm.PolicyParticipant-ATT",
488 "name": "org.onap.policy.clamp.acm.HttpParticipant-ATT",
492 "name": "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement",
496 "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition-ATT",
502 **Step 11:** To try out other endpoints try out the other postman collections inside Instantiation folder
504 **Step 12:** To delete Instance properties select DELETE Instance Properties
506 *- Should receive the following result*
512 "errorDetails": null,
513 "affectedAutomationCompositionDefinitions": [
515 "name": "ToscaServiceTemplateSimple",
521 **Step 13:** For monitoring endpoints go to Automation Composition Jakarta/Monitoring folder