lapentafd [Tue, 24 Jan 2023 15:50:27 +0000 (15:50 +0000)]
Server Stubs PAP
Added "stub" profile with simple endpoint implementation
Issue-ID: POLICY-4143
Change-Id: I8ad911f314e1d1428d05aa419f1322616d8ef835
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
lapentafd [Mon, 9 Jan 2023 15:16:54 +0000 (15:16 +0000)]
Use generated PAP interface for Swagger
This commit removes the Swagger V2 annotations on the
Rest Controllers in policy-pap. The OpeApi annotations (Swagger
v3 annotations) are on a generated Java Interface. The code is changed
so that the controller implements that interface.
There are minimal code changes to the controller and the order of the
parameters is switched in some cases.
Issue-ID: POLICY-4404
Change-Id: I060709806a8e5bc04d9873c8d212a5c9fe13c4d4
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
liamfallon [Sun, 18 Dec 2022 02:26:48 +0000 (02:26 +0000)]
Upgrade the H2 database to the latest version
The latest verison of H2 does not allow colums called "user" or indexes
using an underscore in their name.
Issue-ID: POLICY-4488
Change-Id: I9ce7435b5dfa81daaf04e7f7a50f9db6582cdc0b
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Thu, 15 Dec 2022 16:19:31 +0000 (16:19 +0000)]
Update snapshot and/or references of policy/pap to latest snapshots
policy/pap updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I14d931b8d2f7a8f63a0a5ffbb2fd2cfafaddc33a
liamfallon [Thu, 15 Dec 2022 15:38:45 +0000 (15:38 +0000)]
Release docker images for policy/pap: 2.8.0
This commit releases docker images for repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ie7244ab6c230df8c3545f780d331ba0c9f9651f3
liamfallon [Thu, 15 Dec 2022 14:13:03 +0000 (14:13 +0000)]
Release policy/pap: 2.8.0
This commit releases repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I2a4d8f8843243dd88cfc6952494d23aa62a6ee23
liamfallon [Thu, 15 Dec 2022 12:39:53 +0000 (12:39 +0000)]
update references in policy/pap pom
updated references in the policy/pap pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4484
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I2ee988f48734963c693712dc60024c4dfb930d8d
adheli.tavares [Wed, 7 Dec 2022 14:59:37 +0000 (14:59 +0000)]
SLAs for async methods
- undeploy policy timing
- deploy policy timing
- unit tests for actuator endpoints
Issue-ID: POLICY-4469
Change-Id: I3298888e59824347b8d2a57fb531c10f2f4ca125
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
liamfallon [Thu, 8 Dec 2022 18:44:09 +0000 (18:44 +0000)]
Replace SpringFox with SpringDoc in policy-pap
This commit:
- Remove SpringFox
- Adds SpringDoc
- Enables the .../v3/api-docs endpoint
Note that the Swagger annotations from the OpenAPI specification
generated code need to be enabled so that the API specification is
available over the ..../v3/api-docs endpoint. THis will be done in
subsequent commits.
Issue-ID: POLICY-4404
Change-Id: I42c1575a3ce76d9b3e753ad51f85df027d12b980
Signed-off-by: liamfallon <liam.fallon@est.tech>
danielhanrahan [Fri, 25 Nov 2022 16:14:55 +0000 (16:14 +0000)]
Move git-commit-id-maven-plugin to parent pom
The POM config for git-commit-id-maven-plugin is duplicated in each
repo, so the config is moved to policy/parent
Issue-ID: POLICY-4466
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I2e46e014cbc277785a236b60603d395490e58220
Liam Fallon [Tue, 22 Nov 2022 16:31:35 +0000 (16:31 +0000)]
Merge "Add OpenAPI Swagger 3 spec and API generation"
liamfallon [Thu, 17 Nov 2022 21:58:24 +0000 (13:58 -0800)]
Add OpenAPI Swagger 3 spec and API generation
This commit adds the Policy/API OpenAPI (Swagger) document as a source
document under source control.
This OpenAPI document was generated from the existing SpringFox
annotations in the source code, was uploaded to the online Swagger
editor and was converted into OpenAPI 3.0 format. It was then manually
edited to correct the return types and to match the input and putput
types to our Java classes.
The pom.xml is also amended to generate the API interface source doe in
the target/generated-sources directory.
The generated code does NOT replace the existing API code as yet.
Issue-ID: POLICY-4431
Change-Id: Iee1cc6a122deffcd05728e8f34172f8d423ebcef
Signed-off-by: liamfallon <liam.fallon@est.tech>
adheli.tavares [Wed, 16 Nov 2022 14:12:22 +0000 (14:12 +0000)]
Topic names in PAP should be configurable from application.yaml
- for using Kafka instead of dmaap, topics names need to be lowercase
- fix for unit/integration tests using default names and changed names
for topics and group
- fix for sonar lints found along the way
Issue-ID: POLICY-4455
Change-Id: I89e9e6f7dbb07462f1ae497755965cb5a3f223a3
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
liamfallon [Fri, 21 Oct 2022 16:45:27 +0000 (17:45 +0100)]
Set snapshot and/or references of policy/pap for new release
policy/pap 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: I09bf91495a8ae93e7e3c4aaadf3ad14971c6bbfb
liamfallon [Fri, 21 Oct 2022 09:50:15 +0000 (10:50 +0100)]
Update snapshot and/or references of policy/pap to latest snapshots
policy/pap 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: I61b9bc417feeccbda2cf55d2f79327d01f362fae
liamfallon [Fri, 21 Oct 2022 09:19:41 +0000 (10:19 +0100)]
Release docker images for policy/pap: 2.7.1
This commit releases docker images for repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I8fdbe2a706b85ab97cc142fe242bcaa68db2e461
liamfallon [Fri, 21 Oct 2022 08:38:34 +0000 (09:38 +0100)]
Release policy/pap: 2.7.1
This commit releases repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic6517fa17551d36465aa1b005b48a448705fd842
liamfallon [Fri, 21 Oct 2022 07:06:17 +0000 (08:06 +0100)]
update references in policy/pap pom
updated references in the policy/pap pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4408
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Id4f5ddedad25e513aaee953d17e5c323fa7487f1
liamfallon [Tue, 11 Oct 2022 18:20:32 +0000 (19:20 +0100)]
Use spring-boot-starter-actuator managed version
Issue-ID: POLICY-4393
Change-Id: Ic091b5efa999461121e870d04d6524e44bc07e03
Signed-off-by: liamfallon <liam.fallon@est.tech>
Sirisha_Manchikanti [Wed, 28 Sep 2022 08:15:24 +0000 (09:15 +0100)]
Add Kafka dependency
Issue-ID: POLICY-4134
Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech>
Change-Id: Id9b4609c9bf0656eb0c3a83e20f4161a07fbc6d7
liamfallon [Fri, 23 Sep 2022 09:58:43 +0000 (10:58 +0100)]
Update snapshot and/or references of policy/pap to latest snapshots
policy/pap 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: Iacf22dfa0876db72b906b1b4e5b95611379be9b3
liamfallon [Fri, 23 Sep 2022 08:44:46 +0000 (09:44 +0100)]
Release docker images for policy/pap: 2.7.0
This commit releases docker images for repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I8fb14976f09872e640800600ca9a5053840dbe1d
liamfallon [Fri, 23 Sep 2022 06:51:03 +0000 (07:51 +0100)]
Release policy/pap: 2.7.0
This commit releases repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I78c6e4ddca9882ecf67cc361cfa5616047b1baa1
liamfallon [Thu, 22 Sep 2022 22:22:20 +0000 (23:22 +0100)]
update references in policy/pap pom
updated references in the policy/pap pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4343
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ie9178a197f5789b66bf0945839bdab302bdebccb
liamfallon [Fri, 16 Sep 2022 16:47:08 +0000 (17:47 +0100)]
Fix minor warnings in code
Issue-ID: POLICY-4045
Change-Id: I08c3cb1af3dbe2051dcbb0e2726906faff4a37b3
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Fri, 9 Sep 2022 09:23:00 +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: I357869ac50932de3ea857194b4ed761dcc16c2a8
danielhanrahan [Tue, 30 Aug 2022 07:27:13 +0000 (08:27 +0100)]
Allow setting external dockerfile for policy-pap
If building with an external dockerfile, e.g. using
mvn clean install -Pdocker -DdockerFile=/path/to/dockerfile
docker will look for project files in the same directory as the
new dockerfile. A new property is added for setting the context
path, to allow using existing project files in src/main/docker.
Issue-ID: POLICY-4334
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ica6984b0460e5814df56ab6679003e98b983d397
liamfallon [Fri, 29 Jul 2022 14:27:11 +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: Idc09b2371c376dc32d4827cca8d28afe2184cae1
danielhanrahan [Fri, 1 Jul 2022 13:05:57 +0000 (14:05 +0100)]
Reduce size of docker images for PAP
Remove unused jar files from image (not needed since spring boot)
Avoid creating extra layers when extracting tarball
Reduce size of Alpine image by 73% (959MB to 259MB)
Reduce size of OpenSuse image by 62% (1.12GB to 423MB)
Issue-ID: POLICY-4266
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I5a0a3efc81b0cb8da899c12f65479fd2af935451
danielhanrahan [Mon, 11 Jul 2022 14:31:01 +0000 (15:31 +0100)]
Upgrade OpenSuse version to 15.4 for pap
Issue-ID: POLICY-4278
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Iafe1e311a22693eb30758949cdb1414d4c8d080a
danielhanrahan [Tue, 28 Jun 2022 10:34:31 +0000 (11:34 +0100)]
OCI image spec labels for PAP
Issue-ID: POLICY-4254
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ide30dc437f25846b569b5f4ac9a581880705a7c4
Liam Fallon [Thu, 2 Jun 2022 08:08:22 +0000 (08:08 +0000)]
Merge "Add Ramesh Murugan Iyer as a committer"
liamfallon [Wed, 1 Jun 2022 12:04:56 +0000 (13:04 +0100)]
Add Ramesh Murugan Iyer as a committer
Issue-ID: POLICY-4228
Change-Id: I6abd4506c967e49ce093c521484f6e5a5f0c5bec
Signed-off-by: liamfallon <liam.fallon@est.tech>
danielhanrahan [Thu, 19 May 2022 09:53:50 +0000 (10:53 +0100)]
OpenSuse docker file for policy PAP
Create OpenSuse docker file
Add build profile for OpenSuse docker image
Issue-ID: POLICY-4189
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I4aca4c5d3486cecf012989e9227557587f83bbb6
liamfallon [Tue, 3 May 2022 16:21:53 +0000 (17:21 +0100)]
Set snapshot and/or references of policy/pap for new release
policy/pap updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4073
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I71900f971ba646a97d54113351406398ada70a12
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Thu, 28 Apr 2022 15:00:29 +0000 (16:00 +0100)]
Update snapshot and/or references of policy/pap to latest snapshots
policy/pap updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I312fe988c4e2611dead50a7e7b28ab18de6cd75c
liamfallon [Thu, 28 Apr 2022 14:33:10 +0000 (15:33 +0100)]
Release docker images for policy/pap: 2.6.3
This commit releases docker images for repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I3b2e5a690b67ac6e818dea33f1096a3db2b21f89
liamfallon [Thu, 28 Apr 2022 13:41:37 +0000 (14:41 +0100)]
Release policy/pap: 2.6.3
This commit releases repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I568b12a3db25004ebc4039dc229af65c2a95c262
liamfallon [Wed, 27 Apr 2022 19:55:49 +0000 (20:55 +0100)]
update references in policy/pap pom
updated references in the policy/pap pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic269481eed341f1c3043f53e76e6fa21b9856075
a.sreekumar [Tue, 19 Apr 2022 13:38:43 +0000 (14:38 +0100)]
PAP S3P jmx changes
Change-Id: I48c719276d2a53f2e4de9f4c87e54d3f373111ed
Issue-ID: POLICY-4008
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
liamfallon [Tue, 12 Apr 2022 20:34:51 +0000 (21:34 +0100)]
Update snapshot and/or references of policy/pap to latest snapshots
policy/pap updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ia650fc73cb0af8e8b36b82791918e23e51367308
liamfallon [Tue, 12 Apr 2022 18:47:37 +0000 (19:47 +0100)]
Release docker images for policy/pap: 2.6.2
This commit releases docker images for repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I0121998e4e554442bbb9c45489903eddad6ded0a
liamfallon [Tue, 12 Apr 2022 18:23:41 +0000 (19:23 +0100)]
Release policy/pap: 2.6.2
This commit releases repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I1cb5fefb3e166515d26964f9af9b8949e16f61cb
liamfallon [Tue, 12 Apr 2022 17:41:56 +0000 (18:41 +0100)]
update references in policy/pap pom
updated references in the policy/pap pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-4089
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Icf68c7320c8e1b20dde8b0db2cfbd728ba2f77bf
a.sreekumar [Mon, 11 Apr 2022 10:18:04 +0000 (11:18 +0100)]
Fix incorrect deployments counter on parallel execution
Change-Id: I72bde10eae615e2c89ccc1a211c6385404b9b3c7
Issue-ID: POLICY-4088
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Mon, 4 Apr 2022 11:32:16 +0000 (12:32 +0100)]
Fix incorrect url in PAP consolidated healthcheck
Change-Id: I0194483f371e1140ad56029c23b6f400df0dcbdc
Issue-ID: POLICY-4068
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
rameshiyer27 [Mon, 21 Mar 2022 14:29:28 +0000 (14:29 +0000)]
Fix build failure in pap
policy-models changes for metadataSet db serialization causes
test failure in pap.
Issue-ID: POLICY-3934
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: Ibc24e3a27e1cdd6111719651349888157fc31593
liamfallon [Fri, 11 Mar 2022 18:02:48 +0000 (18:02 +0000)]
Update snapshot and/or references of policy/pap to latest snapshots
policy/pap updated to its latest own and reference snapshots
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I856f412dc6e27011d13aa6ff05dff8f000cc9a2b
liamfallon [Fri, 11 Mar 2022 14:17:05 +0000 (14:17 +0000)]
Release docker images for policy/pap: 2.6.1
This commit releases docker images for repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-3982
Change-Id: I9cc8e07c25e0cd7a259fbf20d30f0be7b3c80f68
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Fri, 11 Mar 2022 12:08:11 +0000 (12:08 +0000)]
Release policy/pap: 2.6.1
This commit releases repo policy/pap.
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I442a0b6604b91c12683f0cd6960cf3f88458b0b4
a.sreekumar [Thu, 10 Mar 2022 17:56:48 +0000 (17:56 +0000)]
Fix PAP healthcheck response during failures
The healthcheck response that is returned by PAP is not inline with the
actual healthreport. Even when the report has
healthy:false, code:503, message:not alive
the response code stays 200. This is fixed, this also makes the improved
readiness probe in OOM to work properly with the healthcheck calls
Change-Id: Ib208e0a84bce74157aacbcad61a11dcf900c7c94
Issue-ID: POLICY-4030
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
liamfallon [Thu, 10 Mar 2022 09:12:57 +0000 (09:12 +0000)]
update references in policy/pap pom
updated references in the policy/pap pom
*** This commit is generated by a PF release script ***
Issue-ID: POLICY-3982
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ia809db011a805e9bec71b5843dbf6a3b5b2ea30b
Signed-off-by: liamfallon <liam.fallon@est.tech>
a.sreekumar [Mon, 14 Feb 2022 11:11:11 +0000 (11:11 +0000)]
Fix swagger and improve exception handling
1) Swagger was getting generated in a different format
due to a serialization isue. It is fixed.
2) Improved exception handling by taking care of any exceptions
that could occur in and around database operations.
3) AAF enabling/disabling was done using spring profiles.
This is changed to using parameters, as it is more easier to configure
in an OOM helm chart deployment
Change-Id: If1bee01379ba5c4efac29822662896d8aa883fc8
Issue-ID: POLICY-3975
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Liam Fallon [Fri, 25 Feb 2022 13:40:54 +0000 (13:40 +0000)]
Merge "Add support for populating metadataSet in PAP tosca policy"
rameshiyer27 [Fri, 18 Feb 2022 17:27:13 +0000 (17:27 +0000)]
Add support for populating metadataSet in PAP tosca policy
MetadataSet fetched from the db and added to the policy metadata map
with the key "metadataSet" before sending to PDPs
Issue-ID: POLICY-3832
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: I14064d82ba6877bd7560af7de7572b4813a98385
a.sreekumar [Mon, 21 Feb 2022 13:13:20 +0000 (13:13 +0000)]
Adding deployment metrics to PAP
Change-Id: I4b6a93045c1ddfd7fff037e7568b029e2e45b0b3
Issue-ID: POLICY-3757
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Liam Fallon [Fri, 18 Feb 2022 10:52:50 +0000 (10:52 +0000)]
Merge "Use classes from policy/common"
Ram Krishna Verma [Wed, 16 Feb 2022 17:12:20 +0000 (12:12 -0500)]
Use classes from policy/common
Use YamlHttpMessageConverter from policy/common.
Use CustomImplicitNamingStrategy from policy/common.
Fix few sonar issues.
Issue-ID: POLICY-3931
Change-Id: I4720761cbf8da464ec57541f9b19f8d124503e17
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
a.sreekumar [Thu, 17 Feb 2022 15:51:15 +0000 (15:51 +0000)]
Fix PAP issue with group config loading
1) PAP fails to start in OOM when no pdp group configuration file is
specified with the recent changes. This is fixed.
2) logback.xml file mounted in OOM is not used by PAP. This is also
fixed in this review.
Change-Id: I84096e1b100e2be20a9a2d95e1eb6ffc79486f29
Issue-ID: POLICY-3754
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Tue, 15 Feb 2022 12:45:29 +0000 (12:45 +0000)]
Fix issue with GeneratedValue in PfGeneratedIdKey
Change-Id: If244237e4aa39e1f3184cab04ae7d5ad7e85e5fa
Issue-ID: POLICY-3897
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Ajith Sreekumar [Mon, 14 Feb 2022 14:11:41 +0000 (14:11 +0000)]
Merge "Add yaml support to pap api's"
Prakhar Pandey [Thu, 10 Feb 2022 19:14:13 +0000 (14:14 -0500)]
Improve PAP healthcheck api to verify DB connectivity
This commit improves PAP healthcheck API to enable verification of PAP to DB connectivity.
Issue-ID: POLICY-3763
Signed-off-by: Prakhar Pandey <prakhar.pandey@bell.ca>
Change-Id: I14353572a00e68a89161bcffd2ec3476b4a4c303
Ram Krishna Verma [Thu, 10 Feb 2022 19:35:12 +0000 (14:35 -0500)]
Add yaml support to pap api's
Adding yaml support to pap rest api's.
Along with related unit tests.
Issue-ID: POLICY-3864
Change-Id: I43bdbbd4151bcae5dcf4752a9385b115efa947d3
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
a.sreekumar [Mon, 7 Feb 2022 16:05:17 +0000 (16:05 +0000)]
Move PAP database provider to spring boot default
This review makes PAP talk to DB directly using the spring repositories
instead of going to policy-models-provider.
The models-provider methods that were just used by PAP (and not used
anymore) will be removed in a different review.
Also a bug identified with the usage of GeneratedValue in
PfGeneratedIdKey (which is just used by PAP in statistics & audit) will
also be fixed in a separate review as part of POLICY-3897.
CSIT changes: https://gerrit.onap.org/r/c/policy/docker/+/127033
WIP OOM review: https://gerrit.onap.org/r/c/oom/+/127035
Change-Id: Idb13ba7eb2767cc718672b582a6518fcfc95320f
Issue-ID: POLICY-3867
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Mon, 7 Feb 2022 11:22:59 +0000 (11:22 +0000)]
Use spring boot actuator version 2.5.4
The actuator version 2.5.0 which is currently used contains
a bug where some jvm metrics are lost. So, upgrading the version
to fix this issue.
Change-Id: Ib1084f3ab879bc035a11e2e1c5c6a5bd55c0c15d
Issue-ID: POLICY-3913
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Tue, 25 Jan 2022 15:19:40 +0000 (15:19 +0000)]
Create spring repository layer for PAP
This review adds the spring repository and service layers to PAP.
Once this is merged, the next work will be to actually use these
spring boot based services to talk to the db directly,
and not using policy-models-provider in PAP.
Change-Id: Ib086b8b405020cb452e51d6359dd1a69d0000f74
Issue-ID: POLICY-3869
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
waynedunican [Wed, 5 Jan 2022 14:56:44 +0000 (14:56 +0000)]
Remove references to MariaDB from resource files
Issue-ID: POLICY-2086
Change-Id: I891feb05d2e964ae8d4454d30672ffc77c1da555
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
Ram Krishna Verma [Mon, 24 Jan 2022 20:10:52 +0000 (15:10 -0500)]
Disable statistics for default installations
As discussed during weekly call, with the move towards prometheus way of
monitoring policy framework components. There is no need to keep the
statistics flag turned on by default and utilize resources in processing
& storing them. Hence, turning off the flag here.
Will raise another review for OOM.
Won't cause any breakage to CSIT as we are already providing config
to enable the statistics there.
Issue-ID: POLICY-3156
Change-Id: I89962277a6b9aede713317336f776ea3ed9ffd65
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
isaac [Tue, 4 Jan 2022 22:34:20 +0000 (16:34 -0600)]
Adding totalPolicyDeployCounts updates to PapStasticsManager
Issue-ID: POLICY-3836
Signed-off-by: isaac <isaac.adorno@att.com>
Change-Id: Ia4ed2595984f68bf75ca9dacb6aa76f04a306224
a.sreekumar [Fri, 3 Dec 2021 11:27:32 +0000 (11:27 +0000)]
Migrate pap startup & controllers to spring boot
This commit migrates pap config, startup and controllers to spring boot.
Change-Id: Icf91d728160a23db614dfba6b40ddccd2f6163a5
Issue-ID: POLICY-3754
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
liamfallon [Thu, 2 Dec 2021 15:53:57 +0000 (15:53 +0000)]
Update snapshot and/or references of policy/pap to latest snapshots
*** This commit is generated by a PF release script ***
policy/pap updated to its latest own and reference snapshots
Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic4a5c01efd0a2682e88242f192d50f5b9e042c8e
liamfallon [Mon, 29 Nov 2021 11:33:17 +0000 (11:33 +0000)]
Update snapshot of policy/pap to 2.6.1-SNAPSHOT
*** This commit is generated by a PF release script ***
policy/pap is update from 2.6.0-SNAPSHOT to 2.6.1-SNAPSHOT
Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ic2f4f6b0a395298a74a7f354122605c64bfe2566
liamfallon [Fri, 26 Nov 2021 12:07:33 +0000 (12:07 +0000)]
Release docker images for policy/pap: 2.6.0
*** This commit is generated by a PF release script ***
This commit releases the docker images for repo policy/pap.
Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Ief35f74ef48b3f153a3771dc41556fdbb943fbea
liamfallon [Fri, 26 Nov 2021 10:41:37 +0000 (10:41 +0000)]
Release policy/pap: 2.6.0
*** Release Phase 8: This commit is generated by a PF release script ***
This is the eigth phase in releasing images, it releases policy/pap.
Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I0597b46454feacd06fe96c6ddedafb00b39e9372
liamfallon [Thu, 25 Nov 2021 11:41:05 +0000 (11:41 +0000)]
Update parent and common references
*** Release Phase 7: This commit is generated by a PF release script ***
This is the seventh release phase, it updates parent, common and models
references in policy/pap.
Issue-ID: POLICY-3827
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: If831839719c7ff87a9cc3778cd7c6803676d7469
Signed-off-by: liamfallon <liam.fallon@est.tech>
adheli.tavares [Wed, 3 Nov 2021 08:42:47 +0000 (08:42 +0000)]
Rename username for PAP operations.
Use an account other than healthcheck in PAP for provisioning of policies.
Issue-ID: POLICY-2744
Change-Id: I897f7a4fffbac2d4bbd9cceb059bae1794753aa7
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Ram Krishna Verma [Mon, 25 Oct 2021 22:08:39 +0000 (18:08 -0400)]
Point to snapshot dependency
Issue-ID: POLICY-3788
Change-Id: I2b8a9edfe7e84bcc2ec312c705875a68953cc9ba
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
waynedunican [Fri, 8 Oct 2021 08:06:25 +0000 (09:06 +0100)]
PAP S3P jmx file changes
Issue-ID: POLICY-3653
Change-Id: I4a7b033d6ba0356c46c571640e85c40253ec6ad5
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
a.sreekumar [Thu, 14 Oct 2021 11:24:23 +0000 (12:24 +0100)]
Bump policy/pap to jakarta 2.6.0-SNAPSHOT
Change-Id: I2343607e6cf92488c6f74107ced8c4234d126d26
Issue-ID: POLICY-3696
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Thu, 14 Oct 2021 10:58:10 +0000 (11:58 +0100)]
Bump policy/pap to 2.5.2-SNAPSHOT
Change-Id: Ifadbff28b39582016096865565d4b5c76f8dd027
Issue-ID: POLICY-3696
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Thu, 14 Oct 2021 10:07:11 +0000 (11:07 +0100)]
Release policy-pap 2.5.1 docker artifacts
Change-Id: I637992c444a171d8ea1b16ca738f3b0151e1fa7f
Issue-ID: POLICY-3696
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
a.sreekumar [Thu, 14 Oct 2021 09:48:09 +0000 (10:48 +0100)]
Release policy-pap 2.5.1 maven artifacts
Change-Id: I8992fb6d0116ba8a5ced46c3703589119303aeee
Issue-ID: POLICY-3696
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
liamfallon [Wed, 13 Oct 2021 14:27:57 +0000 (15:27 +0100)]
Update parent/common/models/docker references
Issue-ID: POLICY-3696
Change-Id: Ie3cfd25c36e30d7e85448da48a27419252cea077
Signed-off-by: liamfallon <liam.fallon@est.tech>
Ram Krishna Verma [Tue, 14 Sep 2021 21:36:41 +0000 (17:36 -0400)]
Bump pap to 2.5.1-SNAPSHOT
Issue-ID: POLICY-3587
Change-Id: I525db19433347938645d31670729a9429ed0eb91
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Tue, 14 Sep 2021 20:27:19 +0000 (16:27 -0400)]
Release pap 2.5.0 docker image
Issue-ID: POLICY-3587
Change-Id: I25e68b0b3e88a7c376e50cb714a010f1946dc38f
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Ram Krishna Verma [Tue, 14 Sep 2021 18:47:05 +0000 (14:47 -0400)]
Release pap 2.5.0 maven artifacts
Issue-ID: POLICY-3587
Change-Id: Ie29d403988c3034cc5ac4363e71cb6ad1019e10c
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
liamfallon [Mon, 13 Sep 2021 15:42:20 +0000 (16:42 +0100)]
Use released common and models
Issue-ID: POLICY-3587
Change-Id: Ia5cfbb56c44284d459c7e019e2a69a0b9d6b2d70
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Thu, 9 Sep 2021 14:57:48 +0000 (15:57 +0100)]
Point at released policy-parent
Issue-ID: POLICY-3587
Change-Id: I0d9a61219cef4d78e8e17d79f218b88a569bde81
Signed-off-by: liamfallon <liam.fallon@est.tech>
Pamela Dragosh [Thu, 9 Sep 2021 13:36:22 +0000 (13:36 +0000)]
Merge "Update INFO.yaml"
liamfallon [Wed, 8 Sep 2021 11:24:59 +0000 (12:24 +0100)]
Update INFO.yaml
Update the INFO.yaml file with latest information.
Issue-ID: POLICY-3552
Change-Id: I269cb7142a9820356f9d4954d005bd5ea182c342
Signed-off-by: liamfallon <liam.fallon@est.tech>
jhh [Tue, 7 Sep 2021 00:24:08 +0000 (19:24 -0500)]
Decrease eclipselink verbosity to warning
Issue-ID: POLICY-3611
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ia7e2ccba793bf7e0ee686c874b395ff728d68af3
Jim Hahn [Thu, 2 Sep 2021 13:39:37 +0000 (09:39 -0400)]
Fix PAP PDP expiration timer
Added runtime exceptions to the "catch" clause so that the thread
associated with the PDP expiration timer will not terminate.
Also added to a few other "catch" clauses, particularly those in the
REST controllers.
Issue-ID: POLICY-3625
Change-Id: I9206121d3e9b91da593ae771e7586752b13949be
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Thu, 26 Aug 2021 17:34:22 +0000 (13:34 -0400)]
Use policy/docker image 2.3.0
Issue-ID: POLICY-3587
Change-Id: Ieedb4fc34a54306d74a3bf5b934ee36e2e07077f
Signed-off-by: Jim Hahn <jrh3@att.com>
Ram Krishna Verma [Tue, 24 Aug 2021 21:33:07 +0000 (17:33 -0400)]
Add dmaap connectivity check in pap
Add dmaap connectivity check in pap consolidated health check.
Make a rest call to fetch all the topics.
Verify POLICY-PDP-PAP topic is present.
Issue-ID: POLICY-2896
Change-Id: Ide39c70999eaca61205225c95b904e3009d41408
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Jim Hahn [Mon, 23 Aug 2021 19:02:51 +0000 (15:02 -0400)]
Fix junits broken by change in is-alive type
Issue-ID: POLICY-3531
Change-Id: I1e66779f4ac05862649828e79914e902a99400d3
Signed-off-by: Jim Hahn <jrh3@att.com>
a.sreekumar [Mon, 23 Aug 2021 14:29:14 +0000 (15:29 +0100)]
Enable prometheus by default in policy-pap
Change-Id: Id75de7a8c02531acb9c461e917be971feca94ffd
Issue-ID: POLICY-3538
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
ktimoney [Tue, 17 Aug 2021 15:59:09 +0000 (16:59 +0100)]
Update Policy Components not to create tables
Issue-ID: POLICY-3488
Change-Id: I945a19eb6bd7b943adaedc1ea836ec6030c9b001
Signed-off-by: ktimoney <kevin.timoney@est.tech>
Ajith Sreekumar [Tue, 10 Aug 2021 16:13:42 +0000 (16:13 +0000)]
Merge "Update postman collection for pap api's"
Ram Krishna Verma [Mon, 9 Aug 2021 20:01:24 +0000 (16:01 -0400)]
Update postman collection for pap api's
Update postman collection in pap to sync with recent changes made in audit & statistics api's.
Issue-ID: POLICY-3528
Change-Id: I38fe28cb6f7303ecb78f74c3546dee1962af9531
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Taka Cho [Mon, 9 Aug 2021 18:55:15 +0000 (14:55 -0400)]
use url resource for docker-tag -- pap
use groovy url resource from docker repo
to identify the tag for docker
Issue-ID: POLICY-3378
Change-Id: I1abd43ae0cd6f0ddc1060ccb525d2ba43e39f392
Signed-off-by: Taka Cho <takamune.cho@att.com>