policy/clamp.git
2 years agoAdd model to save ToscaServiceTemplate as Json in ACM 22/132422/1
FrancescoFioraEst [Wed, 23 Nov 2022 10:04:55 +0000 (10:04 +0000)]
Add model to save ToscaServiceTemplate as Json in ACM

Issue-ID: POLICY-4462
Change-Id: I81a5a8922b0e980143a8da4b6d0572767620fb36
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoLink the existing CommissioningController with the generated code 57/132257/5
FrancescoFioraEst [Tue, 15 Nov 2022 17:03:34 +0000 (17:03 +0000)]
Link the existing CommissioningController with the generated code

Link the existing CommissioningController
endpoint implementation code with the generated code in Acm.

Issue-ID: POLICY-4454
Change-Id: Ie10296b6af8c8bfdbfa7f54714b22ca4804a2eef
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoUpdate participans to swagger v3 93/132293/1
FrancescoFioraEst [Wed, 16 Nov 2022 15:28:44 +0000 (15:28 +0000)]
Update participans to swagger v3

Participant Kubernetes Rest Controller is enabled only for testing
and ACM Element is an application for testing,
so they not need yaml endpoints definition and Contract testing.

Issue-ID: POLICY-4459
Change-Id: Ibdab1b1fb6522e615eba182e8e3a332dec5b96fc
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Remove redundant endpoints in ACM"
Ramesh Murugan Iyer [Tue, 15 Nov 2022 12:37:49 +0000 (12:37 +0000)]
Merge "Remove redundant endpoints in ACM"

2 years agoMerge "Modify OpenAPI yaml to fix swagger editor errors"
Liam Fallon [Mon, 14 Nov 2022 20:12:42 +0000 (20:12 +0000)]
Merge "Modify OpenAPI yaml to fix swagger editor errors"

2 years agoMerge "Add AutomationCompositionDefinition model"
Ramesh Murugan Iyer [Mon, 14 Nov 2022 16:40:01 +0000 (16:40 +0000)]
Merge "Add AutomationCompositionDefinition model"

2 years agoRemove redundant endpoints in ACM 86/132186/1
FrancescoFioraEst [Mon, 14 Nov 2022 10:49:34 +0000 (10:49 +0000)]
Remove redundant endpoints in ACM

Remove redundant endpoints in ACM
not present in the new generated Api code.

Issue-ID: POLICY-4453
Change-Id: I4b843c2637e934f8a29f71d8031bdfe903ff20dc
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoModify OpenAPI yaml to fix swagger editor errors 48/132148/3
liamfallon [Fri, 11 Nov 2022 13:43:16 +0000 (13:43 +0000)]
Modify OpenAPI yaml to fix swagger editor errors

Using this approach for schemas fixes the errors in the online Swagger
Editor and the code generation still obeys the import mappings and uses
the Java classes.

Issue-ID: POLICY-4450
Change-Id: Ifc3064f8258c4281c9e6bfde16a812ffccd125c1
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoAdd AutomationCompositionDefinition model 43/132143/1
FrancescoFioraEst [Thu, 10 Nov 2022 12:58:30 +0000 (12:58 +0000)]
Add AutomationCompositionDefinition model

Add AutomationCompositionDefinition model
for Commissioned Automation Composition endpoints.

Issue-ID: POLICY-4452
Change-Id: I73fc5b06cb75ed578a40ea618f1f5a0eec616b08
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAlign Code Generation to Commissioned Automation Composition endpoints 30/132130/1
FrancescoFioraEst [Thu, 10 Nov 2022 11:52:31 +0000 (11:52 +0000)]
Align Code Generation to Commissioned Automation Composition endpoints

Issue-ID: POLICY-4450
Change-Id: Ic1bbc83611c2fb743f71d1d7ddb735756a37a6e6
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Remove clamp-backend url forwarding support"
Liam Fallon [Thu, 10 Nov 2022 13:02:56 +0000 (13:02 +0000)]
Merge "Remove clamp-backend url forwarding support"

2 years agoRemove clamp-backend url forwarding support 07/132107/1
liamfallon [Wed, 9 Nov 2022 18:10:03 +0000 (18:10 +0000)]
Remove clamp-backend url forwarding support

The functionality to forward the requests from the UI to the other
microservices has been moved to the gui-server microservice.

Issue-ID: POLICY-4138
Change-Id: I3120e54894ab51194b20098c4c4d63679c15b06f
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoFix typo in ACM swagger 94/132094/2
lapentafd [Wed, 9 Nov 2022 11:05:52 +0000 (11:05 +0000)]
Fix typo in ACM swagger

Added code error 406 for POST, and fix typo

Issue-ID: POLICY-4430
Change-Id: I8328830d87cdc98a8b6caa222c062a90583d2912
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoAdd Maven Build for Code Generation 39/132039/1
lapentafd [Wed, 26 Oct 2022 15:43:00 +0000 (16:43 +0100)]
Add Maven Build for Code Generation

Issue-ID: POLICY-4159
Change-Id: I51b1dd182c878a44e1b3f8c205221ae434459f5a
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoMerge "Add ACM OpenApi Specifications"
Liam Fallon [Tue, 8 Nov 2022 09:15:47 +0000 (09:15 +0000)]
Merge "Add ACM OpenApi Specifications"

2 years agoAdd ACM OpenApi Specifications 51/131951/7
lapentafd [Wed, 2 Nov 2022 10:08:16 +0000 (10:08 +0000)]
Add ACM OpenApi Specifications

Commissioning and Instantiation endpoints

Issue-ID: POLICY-4430
Change-Id: I69d8525615c165dc450da7d5bfcc4953e2d7b3bc
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
2 years agoAdd Prometheus metric messages for ACM participants 95/131995/1
FrancescoFioraEst [Mon, 29 Aug 2022 09:15:45 +0000 (10:15 +0100)]
Add Prometheus metric messages for ACM participants

Issue-ID: POLICY-4433
Change-Id: I625c9ee26bb2451e0dcfbb4bbf7288dcc0effb50
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoRemove old implementation of statistics in ACM models 31/131931/1
FrancescoFioraEst [Fri, 28 Oct 2022 09:10:33 +0000 (10:10 +0100)]
Remove old implementation of statistics in ACM models

The old implementation of statistics in ACM
can be removed due the Prometheus metrics support.

Issue-ID: POLICY-4422
Change-Id: Ia2681b9a3ca59d532cd5c0d1ce4edd3e8f9f98e3
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Remove old implementation of statistics in ACM participants"
Liam Fallon [Sun, 30 Oct 2022 20:31:34 +0000 (20:31 +0000)]
Merge "Remove old implementation of statistics in ACM participants"

2 years agoRemove old implementation of statistics in ACM participants 96/131896/1
FrancescoFioraEst [Wed, 26 Oct 2022 15:29:50 +0000 (16:29 +0100)]
Remove old implementation of statistics in ACM participants

The old implementation of statistics in ACM-participants
can be removed due the Prometheus metrics support.

Issue-ID: POLICY-4420
Change-Id: I0785b269614aba51f94e71a3fe931541c1918b0c
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoRemove old implementation of statistics in ACM-runtime 74/131874/2
FrancescoFioraEst [Wed, 26 Oct 2022 13:34:46 +0000 (14:34 +0100)]
Remove old implementation of statistics in ACM-runtime

The old implementation of statistics in ACM-runtime
can be removed due the Prometheus metrics support.

Issue-ID: POLICY-4419
Change-Id: Idecad04b4a5dd32ce2ebc1149eb99e4fdc6f0db1
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoSet snapshot and/or references of policy/clamp for new release 99/131699/1
liamfallon [Fri, 21 Oct 2022 16:45:53 +0000 (17:45 +0100)]
Set snapshot and/or references of policy/clamp for new release

policy/clamp updated to its latest own and reference snapshots

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic5dba007602ae27989cc20ef59f512b1e06fa892

2 years agoUpdate snapshot and/or references of policy/clamp to latest snapshots 52/131652/1
liamfallon [Fri, 21 Oct 2022 09:50:41 +0000 (10:50 +0100)]
Update snapshot and/or references of policy/clamp to latest snapshots

policy/clamp updated to its latest own and reference snapshots

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I230f8695c7a87f4bbffdcc3102c1922e6354f804

2 years agoRelease docker images for policy/clamp: 6.3.1 45/131645/1
liamfallon [Fri, 21 Oct 2022 09:19:11 +0000 (10:19 +0100)]
Release docker images for policy/clamp: 6.3.1

This commit releases docker images for repo policy/clamp.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I5d882daf43e9983690b7f10f5f056abdf778a75e

2 years agoRelease policy/clamp: 6.3.1 38/131638/1
liamfallon [Fri, 21 Oct 2022 08:38:17 +0000 (09:38 +0100)]
Release policy/clamp: 6.3.1

This commit releases repo policy/clamp.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I29a2ed13ac8ce3178e9fb049dda42dea4fc51a5c

2 years agoupdate references in policy/clamp pom 30/131630/1
liamfallon [Fri, 21 Oct 2022 07:06:07 +0000 (08:06 +0100)]
update references in policy/clamp pom

updated references in the policy/clamp pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I1bc7f5544d7d479ed844a74c72a618cfe19e4a42

2 years agoClean up dependencies in CLAMP POMs 77/131477/1
liamfallon [Fri, 14 Oct 2022 12:07:36 +0000 (13:07 +0100)]
Clean up dependencies in CLAMP POMs

External dependencies should in general be in the root POMs of repos and
internal dependencies only in child POMs. There are exceptions whare a
child modle is dealing with a specific technology. This commit tidies up
the CLAMP POMs.

Issue-ID: POLICY-4289
Change-Id: I0493daf1d737222bd724333ab8baab9226da6121
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoUse spring-boot-starter-actuator managed version 33/131433/1
liamfallon [Tue, 11 Oct 2022 18:21:12 +0000 (19:21 +0100)]
Use spring-boot-starter-actuator managed version

Issue-ID: POLICY-4393
Change-Id: I31399942e603b2f29921c38c7dc1b9ab18be0d09
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoMake the ACM REST endpoint preamble configurable via spring 12/131412/1
rameshiyer27 [Mon, 10 Oct 2022 14:12:40 +0000 (15:12 +0100)]
Make the ACM REST endpoint preamble configurable via spring

ACM REST endpoint preamble "/onap/policy/clamp/acm/" needs to be
configurable by the user via spring boot properties file.

Issue-ID: POLICY-4381
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I1a82b22bb7b06f856d09089204d79dcfccb528a8

2 years agoIncrease code coverage in runtime-acm 73/131273/1
FrancescoFioraEst [Wed, 28 Sep 2022 12:24:50 +0000 (13:24 +0100)]
Increase code coverage in runtime-acm

Issue-ID: POLICY-4370
Change-Id: If017da7bfe555dcbc9c7be62628751dbf9707623
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Add Kafka dependency"
Liam Fallon [Tue, 27 Sep 2022 22:26:36 +0000 (22:26 +0000)]
Merge "Add Kafka dependency"

2 years agoMerge "Increase code coverage in Acm element"
Liam Fallon [Tue, 27 Sep 2022 17:34:49 +0000 (17:34 +0000)]
Merge "Increase code coverage in Acm element"

2 years agoMerge "Improve code coverage on policy-participant module in clamp"
Liam Fallon [Tue, 27 Sep 2022 17:34:41 +0000 (17:34 +0000)]
Merge "Improve code coverage on policy-participant module in clamp"

2 years agoIncrease code coverage in Acm element 27/131227/1
FrancescoFioraEst [Mon, 26 Sep 2022 15:47:07 +0000 (16:47 +0100)]
Increase code coverage in Acm element

Issue-ID: POLICY-4367
Change-Id: I63e1bede019c102b7f448935f63eb9991e54e128
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoImprove code coverage on policy-participant module in clamp 23/131223/1
rameshiyer27 [Tue, 27 Sep 2022 06:40:02 +0000 (07:40 +0100)]
Improve code coverage on policy-participant module in clamp

Added junits for handler and policy client classes which improves the
overall module covergae from 38.8% to 92%

Issue-ID: POLICY-4365
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I0a860cff870b77a29a66f04645c64fdd8cf66313

2 years agoAdd Kafka dependency 26/131226/1
Sirisha_Manchikanti [Mon, 26 Sep 2022 14:20:11 +0000 (15:20 +0100)]
Add Kafka dependency

Issue-ID: POLICY-4134
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: I7e08251a6331f3b47552f2db8bff9cb1ae74933e

2 years agoRefactor Mock Server in httpParticipant Unit Tests 85/131185/3
FrancescoFioraEst [Mon, 26 Sep 2022 08:42:40 +0000 (09:42 +0100)]
Refactor Mock Server in httpParticipant Unit Tests

Replace MockServerRest, that failing and causing all tests ignored.

Issue-ID: POLICY-4366
Change-Id: Icc86cf26f4cd329b0d24b3dd05b85143e6621517
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoUpdate snapshot and/or references of policy/clamp to latest snapshots 40/131140/1
liamfallon [Fri, 23 Sep 2022 09:59:06 +0000 (10:59 +0100)]
Update snapshot and/or references of policy/clamp to latest snapshots

policy/clamp updated to its latest own and reference snapshots

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I37502e4d1d64661ae82b2a9a92330691ec69e634

2 years agoRelease docker images for policy/clamp: 6.3.0 30/131130/2
liamfallon [Fri, 23 Sep 2022 08:44:24 +0000 (09:44 +0100)]
Release docker images for policy/clamp: 6.3.0

This commit releases docker images for repo policy/clamp.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ia3f21de85c78e62650c9fe27cbb4c149c664e950
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRelease policy/clamp: 6.3.0 21/131121/1
liamfallon [Fri, 23 Sep 2022 06:50:20 +0000 (07:50 +0100)]
Release policy/clamp: 6.3.0

This commit releases repo policy/clamp.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ice70fa0125041b9a16350808571e1aee21980eb1

2 years agoupdate references in policy/clamp pom 13/131113/1
liamfallon [Thu, 22 Sep 2022 22:22:10 +0000 (23:22 +0100)]
update references in policy/clamp pom

updated references in the policy/clamp pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Icff82d13846c151c0908cba3a6e8892fb4d11b7a

2 years agoFix PodStatus Validator failing in K8sParticipant 58/130958/3
FrancescoFioraEst [Tue, 13 Sep 2022 14:54:10 +0000 (15:54 +0100)]
Fix PodStatus Validator failing in K8sParticipant

Fix PodStatus Validator failing in K8sParticipant using service template
for Test and Verification of ACM State Management.

Issue-ID: POLICY-4355
Change-Id: I63f8ed2c4991422dd43749151387ff54ba7d6071
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoFix log of Element container is not visible at Standard Output 26/130726/4
FrancescoFioraEst [Mon, 5 Sep 2022 12:17:59 +0000 (13:17 +0100)]
Fix log of Element container is not visible at Standard Output

Issue-ID: POLICY-4351
Change-Id: I5f06c7158654fc14c2549772f8416eb1fc5bb07b
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoRemove inactive committers from INFO.yaml 33/130833/1
liamfallon [Fri, 9 Sep 2022 09:23:41 +0000 (10:23 +0100)]
Remove inactive committers from INFO.yaml

Remove inactive committers from INFO.yaml

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4354
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I7dfe1f25d4fe0732785b262b60bcc8737afbb15e

2 years agoAdd helm chart for test ACM element microservice 29/130529/4
rameshiyer27 [Tue, 30 Aug 2022 21:29:55 +0000 (22:29 +0100)]
Add helm chart for test ACM element microservice

Adding helm chart for the ac element microservice under the examples
directory for testing ACM workflow. This helm chart can be uploaded
to a local helm repository and deployed using kubernetes participant
in ACM. The input configuration is provided in the Tosca service template
for ACM.

Issue-ID: POLICY-4306
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I6ac702f67cad6a8dbd04c626a5af91aa0bd00a58

2 years agoMerge "Refactor Element ACM for prometheus configuration"
Liam Fallon [Fri, 2 Sep 2022 17:32:13 +0000 (17:32 +0000)]
Merge "Refactor Element ACM for prometheus configuration"

2 years agoAllow setting external dockerfiles for clamp 74/130674/1
danielhanrahan [Fri, 2 Sep 2022 12:07:33 +0000 (13:07 +0100)]
Allow setting external dockerfiles for clamp

Added maven properties to allow overriding each dockerfile during build,
for example:
 mvn clean install -Pdocker \
   -Ddocker.clamp-runtime.dockerFile=/path/to/Dockerfile

Issue-ID: POLICY-4334
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I648b83b53cb65a9b6fc762af715ec1b959792992

2 years agoRefactor Element ACM for prometheus configuration 95/130595/3
FrancescoFioraEst [Wed, 31 Aug 2022 13:12:15 +0000 (14:12 +0100)]
Refactor Element ACM for prometheus configuration

Issue-ID: POLICY-4337
Change-Id: Ic8e43748bc8ffc9a9513f7f278afae9f3f393bc9
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoFix Clamp build fails in policy participant module 25/130625/1
FrancescoFioraEst [Thu, 1 Sep 2022 11:03:39 +0000 (12:03 +0100)]
Fix Clamp build fails in policy participant module

Fix Clamp build fails in policy participant module
while processing policies without topology template.

Issue-ID: POLICY-4339
Change-Id: I94f2f0e0acede233f33668e2b083c58e15181290
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd Prometheus metric messages for ACM runtime 36/130536/1
FrancescoFioraEst [Wed, 31 Aug 2022 09:38:10 +0000 (10:38 +0100)]
Add Prometheus metric messages for ACM runtime

Issue-ID: POLICY-4336
Change-Id: I8f89f795625d8802ee6f3836c6fc4b66f0db75db
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Add new topic for publishing events in Acm Element Impl"
Liam Fallon [Mon, 29 Aug 2022 20:42:38 +0000 (20:42 +0000)]
Merge "Add new topic for publishing events in Acm Element Impl"

2 years agoAdd Prometheus counters for AC element 49/130449/2
FrancescoFioraEst [Wed, 24 Aug 2022 12:30:53 +0000 (13:30 +0100)]
Add Prometheus counters for AC element

Issue-ID: POLICY-4327
Change-Id: I8d17da711c8ba980e7f42ac611ee9bb858dccea9
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd new topic for publishing events in Acm Element Impl 56/130456/2
rameshiyer27 [Fri, 26 Aug 2022 09:56:31 +0000 (10:56 +0100)]
Add new topic for publishing events in Acm Element Impl

Listening and publishing on different topics for better readability of
logs and segregation of events between PDP and AC element.

Issue-ID: POLICY-4332
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I7c44ba1498c73a8bd395ad54eeb09950c584156e

2 years agoMerge "Create Unit Tests for Message Handler and Activator"
Ramesh Murugan Iyer [Thu, 25 Aug 2022 16:55:23 +0000 (16:55 +0000)]
Merge "Create Unit Tests for Message Handler and Activator"

2 years agoCreate Unit Tests for Message Handler and Activator 20/130320/3
FrancescoFioraEst [Wed, 17 Aug 2022 08:52:46 +0000 (09:52 +0100)]
Create Unit Tests for Message Handler and Activator

Issue-ID: POLICY-4325
Change-Id: I1f91dec71974bd1169e3310d59057a6b96061db9
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoAdd REST Endpoints for ACM test microservice 85/130385/2
rameshiyer27 [Fri, 19 Aug 2022 09:08:16 +0000 (10:08 +0100)]
Add REST Endpoints for ACM test microservice

REST APIs for activating, deactivating and fetching the element config.

Issue-ID: POLICY-4305
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: Ib3cf41fe5419c9fd05743bb3c66b19e95a797b98

2 years agoCreate Message Handler and Activator for the test microservice 89/130189/4
FrancescoFioraEst [Thu, 4 Aug 2022 09:35:08 +0000 (10:35 +0100)]
Create Message Handler and Activator for the test microservice

Issue-ID: POLICY-4319
Change-Id: If096467ad717fdeaf70e6a9079c531a201e6cec7
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Create Dockerfile for the test microservice"
Ramesh Murugan Iyer [Fri, 5 Aug 2022 08:40:27 +0000 (08:40 +0000)]
Merge "Create Dockerfile for the test microservice"

2 years agoMerge "Create concepts models for the test microservice"
Ramesh Murugan Iyer [Thu, 4 Aug 2022 14:02:45 +0000 (14:02 +0000)]
Merge "Create concepts models for the test microservice"

2 years agoCreate Dockerfile for the test microservice 45/130145/1
FrancescoFioraEst [Tue, 2 Aug 2022 10:53:48 +0000 (11:53 +0100)]
Create Dockerfile for the test microservice

Issue-ID: POLICY-4318
Change-Id: Ic7099e9a7fd5839630a6dc5cc4fa2ea2300c9c58
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoCreate concepts models for the test microservice 76/130076/2
FrancescoFioraEst [Fri, 29 Jul 2022 14:43:16 +0000 (15:43 +0100)]
Create concepts models for the test microservice

Issue-ID: POLICY-4315
Change-Id: I55b5b4e909aa58b7c39fa96e88eca16bad73761d
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Add module for AC Element implementation"
Ramesh Murugan Iyer [Fri, 29 Jul 2022 16:06:19 +0000 (16:06 +0000)]
Merge "Add module for AC Element implementation"

2 years agoMerge "Update docker base image to snapshot"
Liam Fallon [Fri, 29 Jul 2022 15:32:35 +0000 (15:32 +0000)]
Merge "Update docker base image to snapshot"

2 years agoUpdate docker base image to snapshot 72/130072/1
liamfallon [Fri, 29 Jul 2022 14:27:47 +0000 (15:27 +0100)]
Update docker base image to snapshot

Update docker base image to snapshot

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4287
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Iad487c5b934a834ec7079f1656a1a2d3c4991b50

2 years agoRemove path from docker image names 64/130064/2
liamfallon [Fri, 29 Jul 2022 12:07:40 +0000 (13:07 +0100)]
Remove path from docker image names

Having the docker.io path in the image name can cause interference
problems when building the images locally.

Issue-ID: POLICY-4224
Change-Id: I6b606191fb91b64554ddfe471c9fe412a1c86508
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoAdd module for AC Element implementation 54/130054/2
rameshiyer27 [Thu, 28 Jul 2022 10:58:19 +0000 (11:58 +0100)]
Add module for AC Element implementation

Refactored unused participant simulator module to implement AC element
microservice for ACM testing purposes. Empty spring project added.
Business logics will be added as a separate review on top of this structure.

Issue-ID: POLICY-4312
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I8fc280083ce4b759ed9ab23b223cf1555176ef62

2 years agoMerge "Remove usage of jackson libraries from clamp runtime acm"
Liam Fallon [Mon, 18 Jul 2022 13:39:22 +0000 (13:39 +0000)]
Merge "Remove usage of jackson libraries from clamp runtime acm"

2 years agoRemove usage of jackson libraries from clamp runtime acm 46/129946/1
FrancescoFioraEst [Tue, 12 Jul 2022 13:50:18 +0000 (14:50 +0100)]
Remove usage of jackson libraries from clamp runtime acm

Issue-ID: POLICY-4105
Change-Id: I04488a8a246e4c161e9a9eca86634844aba27872
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoSuppress junk output in k8s participant dockerfile 11/129911/1
danielhanrahan [Wed, 13 Jul 2022 14:33:48 +0000 (15:33 +0100)]
Suppress junk output in k8s participant dockerfile

Add 'no-verbose' option to wget to suppress progress meter while
retaining status and error messages.

Issue-ID: POLICY-4286
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I901a4d7aa18b0423097da7d9bf6e759fbc738b8f

2 years agoReduce size of docker images for CLAMP 05/129905/1
danielhanrahan [Mon, 11 Jul 2022 17:14:13 +0000 (18:14 +0100)]
Reduce size of docker images for CLAMP

Avoid creating extra layers when extracting tarball
Remove redundant chown commands
Reduce sizes of Alpine images by 27%
Reduce sizes of OpenSuse images by 20%

Issue-ID: POLICY-4277
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: If772bb944864d404ceba5ff66be7d613128835a1

2 years agoUpgrade OpenSuse version to 15.4 for clamp 70/129870/1
danielhanrahan [Mon, 11 Jul 2022 14:15:40 +0000 (15:15 +0100)]
Upgrade OpenSuse version to 15.4 for clamp

Issue-ID: POLICY-4278
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I62c7823b6d14c6b3098f5bae6c6c141adbdba425

2 years agoFix logging directory mismatch between policy dockerfile and OOM 96/129796/1
rameshiyer27 [Tue, 5 Jul 2022 22:08:44 +0000 (23:08 +0100)]
Fix logging directory mismatch between policy dockerfile and OOM

Error occurs in the rolling of log files in OOM clamp components as the
log directories are mismatchig between the docker file and the oom logback
configuration. Aligning the directories as per the OOM logback config.

Issue-ID: POLICY-4268
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I60be1db0acf714390e287440ff5c081fe40a3706

2 years agoMerge "Fix CSIt failure in CLAMP test case"
Liam Fallon [Fri, 1 Jul 2022 09:11:53 +0000 (09:11 +0000)]
Merge "Fix CSIt failure in CLAMP test case"

2 years agoFix CSIt failure in CLAMP test case 23/129723/2
rameshiyer27 [Thu, 30 Jun 2022 07:54:30 +0000 (08:54 +0100)]
Fix CSIt failure in CLAMP test case

Policy participant always updates the state of AC element to PASSIVE, irrespective of
success/failure scenarios in policy creation and deployment. This causes
inconsistency in AC overall state and CSIT validation fails.

Verifying the response code from api and pap before updating the AC element state from policy participant.

Issue-ID: POLICY-4270
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I0ecf770d9803e520401ba49cd47c22ac6e4f9c17

2 years agoMerge "OCI image spec labels for clamp backend"
Liam Fallon [Thu, 30 Jun 2022 10:11:14 +0000 (10:11 +0000)]
Merge "OCI image spec labels for clamp backend"

2 years agoMerge "OCI image spec labels for ACM and participants"
Liam Fallon [Thu, 30 Jun 2022 10:10:24 +0000 (10:10 +0000)]
Merge "OCI image spec labels for ACM and participants"

2 years agouse url resource for docker-tag -- clamp 19/129719/1
danielhanrahan [Wed, 29 Jun 2022 10:21:27 +0000 (11:21 +0100)]
use url resource for docker-tag -- clamp

use groovy url resource from docker repo
to identify the tag for docker.

Issue-ID: POLICY-3378
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I4cf830b52fd6ad561271edc966f4f4735756337a

2 years agoOCI image spec labels for ACM and participants 13/129713/1
danielhanrahan [Tue, 28 Jun 2022 15:55:46 +0000 (16:55 +0100)]
OCI image spec labels for ACM and participants

Issue-ID: POLICY-4259
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I0624ddedb71083956d173d35827543ef4d65f58a

2 years agoOCI image spec labels for clamp backend 12/129712/1
danielhanrahan [Tue, 28 Jun 2022 15:04:58 +0000 (16:04 +0100)]
OCI image spec labels for clamp backend

Issue-ID: POLICY-4259
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ic99842c14f26af5c58ff7000c13a1a5d19077869

2 years agoFix participant update list event for multiple AC elements 81/129681/1
rameshiyer27 [Fri, 24 Jun 2022 13:47:25 +0000 (14:47 +0100)]
Fix participant update list event for multiple AC elements

If multiple AC elements are mapped to a single participant, the update
list event from runtime includes only a single element by overriding the
previous entries from the update list. Removed the immutable list that causes the issue.

Issue-ID: POLICY-4241
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I59dcd3706394ab937d4e517bc69285c50d9ac260

2 years agoMerge "Fix K8s participant fails to verify the status of the deployed pods"
Jorge Hernandez [Thu, 23 Jun 2022 12:58:40 +0000 (12:58 +0000)]
Merge "Fix K8s participant fails to verify the status of the deployed pods"

2 years agoUpdate service template for PMSH usecase with ACM 52/129652/2
rameshiyer27 [Mon, 20 Jun 2022 09:45:28 +0000 (10:45 +0100)]
Update service template for PMSH usecase with ACM

Issue-ID: POLICY-4240
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I169551637a48bcf5f4f7dc42dadbdc13a769f016

2 years agoFix K8s participant fails to verify the status of the deployed pods 51/129651/1
rameshiyer27 [Mon, 20 Jun 2022 07:52:20 +0000 (08:52 +0100)]
Fix K8s participant fails to verify the status of the deployed pods

The participant verifies the status of the deployed pods in the cluster with
the string name appending the release name and chart id. Verification would
fail if the name of the pod doesn't contain the helm release name, hence
removing the same.

Issue-ID: POLICY-4236
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I1f63452aa1135d59cc4c4daa3f9303a18fe0702d

2 years agoMerge "Enable Java logging on CLAMP ACM images"
Jorge Hernandez [Wed, 15 Jun 2022 15:44:52 +0000 (15:44 +0000)]
Merge "Enable Java logging on CLAMP ACM images"

2 years agoFix CSIT configuration for metrics 27/129627/1
adheli.tavares [Wed, 15 Jun 2022 13:27:49 +0000 (14:27 +0100)]
Fix CSIT configuration for metrics

Issue-ID: POLICY-4146
Change-Id: I4e416df1074fd5eaddf1076f8328a5c8fe2654a1
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoEnable Java logging on CLAMP ACM images 17/129617/2
liamfallon [Tue, 14 Jun 2022 10:37:47 +0000 (11:37 +0100)]
Enable Java logging on CLAMP ACM images

The ajva logging config file is not passed to the CLAMP ACM images,
meaning that logging cannot be configured on the images.

Issue-ID: POLICY-4238
Change-Id: If71900b57c09ef3a1d1bc6ddcc39425c9b3d4315
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoFix configuration for Prometheus metrics 83/129583/1
adheli.tavares [Thu, 9 Jun 2022 09:03:13 +0000 (10:03 +0100)]
Fix configuration for Prometheus metrics

JVM related metrics were not being exposed due to spring boot bug
when loading beans configuration.

Issue-ID: POLICY-4146
Change-Id: I334c60b0c0d087c63b28bf44704aa3e909eca646
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoMerge "Remove old clamp frontend files"
Liam Fallon [Fri, 3 Jun 2022 13:17:11 +0000 (13:17 +0000)]
Merge "Remove old clamp frontend files"

2 years agoMerge "Fix type version in all tosca_service_template yaml files"
Liam Fallon [Fri, 3 Jun 2022 13:16:40 +0000 (13:16 +0000)]
Merge "Fix type version in all tosca_service_template yaml files"

2 years agoMerge "OpenSuse docker file for policy-clamp-backend"
Liam Fallon [Fri, 3 Jun 2022 13:14:27 +0000 (13:14 +0000)]
Merge "OpenSuse docker file for policy-clamp-backend"

2 years agoOpenSuse docker files for ACM and participants 95/129495/2
danielhanrahan [Wed, 1 Jun 2022 16:34:54 +0000 (17:34 +0100)]
OpenSuse docker files for ACM and participants

Issue-ID: POLICY-4191
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Iad508532fd1c9ed99cbc906e7ae40e77eabf15e8

2 years agoMerge "Add Ramesh Murugan Iyer as a committer"
Liam Fallon [Thu, 2 Jun 2022 08:07:57 +0000 (08:07 +0000)]
Merge "Add Ramesh Murugan Iyer as a committer"

2 years agoFix type version in all tosca_service_template yaml files 69/129469/1
FrancescoFioraEst [Wed, 1 Jun 2022 12:03:31 +0000 (13:03 +0100)]
Fix type version in all tosca_service_template yaml files

Issue-ID: POLICY-4225
Change-Id: Ib069dec0acfdd85e45659deffb45398f7eae5e54
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
2 years agoMerge "Fix HTTP handling in CLAMP ACM"
Jorge Hernandez [Wed, 1 Jun 2022 21:25:34 +0000 (21:25 +0000)]
Merge "Fix HTTP handling in CLAMP ACM"

2 years agoAdd Ramesh Murugan Iyer as a committer 50/129450/1
liamfallon [Wed, 1 Jun 2022 12:28:38 +0000 (13:28 +0100)]
Add Ramesh Murugan Iyer as a committer

Issue-ID: POLICY-4228
Change-Id: I1f173f6d3bb92b8040f2c7999233bb57708c82c2
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoOpenSuse docker file for policy-clamp-backend 52/129452/1
danielhanrahan [Wed, 1 Jun 2022 12:22:29 +0000 (13:22 +0100)]
OpenSuse docker file for policy-clamp-backend

Issue-ID: POLICY-4191
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ifba7377f64006c434c635c6439345a1cd4ce0729

2 years agoRemove old clamp frontend files 53/129453/1
danielhanrahan [Wed, 1 Jun 2022 11:13:21 +0000 (12:13 +0100)]
Remove old clamp frontend files

Delete unused dockerfile, config files, and certs for old clamp frontend
Update README to remove references to old clamp frontend

Issue-ID: POLICY-3358
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I33fa066c921526cdbb210fc576e2de04cb53dc75

2 years agoFix HTTP handling in CLAMP ACM 31/129431/2
liamfallon [Tue, 31 May 2022 10:22:10 +0000 (11:22 +0100)]
Fix HTTP handling in CLAMP ACM

HTTPS is turned on using a Java property in the startup scripts in all
the CLAMP ACM docker images. This means that HTTP cannot be enabled or
HTTPS disabled in configuration. THis commit fixes that bug.

The building of the CLAMP docker images calls each jar app.jar. If all
images are being built locally together, the names collide and the last
image's jar is used for all jars. This commit fixes that bug as well.

Issue-ID: POLICY-4224
Change-Id: If4ba8cdef36f7a8a3665fe60eee31e42159e909b
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoAdded Edit Instance Properties Functionality 19/129319/3
brunomilitzer [Thu, 5 May 2022 14:20:30 +0000 (15:20 +0100)]
Added Edit Instance Properties Functionality

Issue-ID: POLICY-4094
Change-Id: Id52dba3c0912486fa551697be170c05542a0ee22
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
3 years agoAdd user configurable parameter for permitted helm repo protocols 89/129289/1
rameshiyer27 [Tue, 17 May 2022 11:04:03 +0000 (12:04 +0100)]
Add user configurable parameter for permitted helm repo protocols

User can configure the permitted helm repository protocols http/https
based on the requirement.

Issue-ID: POLICY-4113
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: Ib7c91413babd15d0bd22ceffe10cdc1c3a6a0fd0