policy/pap.git
19 months agoUpdate snapshot and/or references of policy/pap to latest snapshots 37/131137/1
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

19 months agoRelease docker images for policy/pap: 2.7.0 27/131127/1
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

19 months agoRelease policy/pap: 2.7.0 19/131119/1
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

19 months agoupdate references in policy/pap pom 11/131111/1
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

19 months agoFix minor warnings in code 87/130987/2
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>
19 months agoRemove inactive committers from INFO.yaml 27/130827/1
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

20 months agoAllow setting external dockerfile for policy-pap 35/130635/1
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

21 months agoUpdate docker base image to snapshot 67/130067/1
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

21 months agoReduce size of docker images for PAP 34/129734/2
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

21 months agoUpgrade OpenSuse version to 15.4 for pap 75/129875/1
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

22 months agoOCI image spec labels for PAP 07/129707/1
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

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

23 months agoAdd Ramesh Murugan Iyer as a committer 43/129443/1
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>
23 months agoOpenSuse docker file for policy PAP 16/129316/1
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

2 years agoSet snapshot and/or references of policy/pap for new release 50/129050/1
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>
2 years agoUpdate snapshot and/or references of policy/pap to latest snapshots 72/128972/1
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

2 years agoRelease docker images for policy/pap: 2.6.3 63/128963/1
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

2 years agoRelease policy/pap: 2.6.3 53/128953/1
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

2 years agoupdate references in policy/pap pom 16/128916/1
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

2 years agoPAP S3P jmx changes 11/128711/2
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>
2 years agoUpdate snapshot and/or references of policy/pap to latest snapshots 26/128526/1
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

2 years agoRelease docker images for policy/pap: 2.6.2 17/128517/1
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

2 years agoRelease policy/pap: 2.6.2 11/128511/1
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

2 years agoupdate references in policy/pap pom 01/128501/1
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

2 years agoFix incorrect deployments counter on parallel execution 26/128426/6
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>
2 years agoFix incorrect url in PAP consolidated healthcheck 65/128265/1
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>
2 years agoFix build failure in pap 15/127915/1
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

2 years agoUpdate snapshot and/or references of policy/pap to latest snapshots 11/127711/1
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

2 years agoRelease docker images for policy/pap: 2.6.1 99/127699/3
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>
2 years agoRelease policy/pap: 2.6.1 89/127689/1
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

2 years agoFix PAP healthcheck response during failures 68/127668/2
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>
2 years agoupdate references in policy/pap pom 16/127616/2
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>
2 years agoFix swagger and improve exception handling 96/127096/5
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>
2 years agoMerge "Add support for populating metadataSet in PAP tosca policy"
Liam Fallon [Fri, 25 Feb 2022 13:40:54 +0000 (13:40 +0000)]
Merge "Add support for populating metadataSet in PAP tosca policy"

2 years agoAdd support for populating metadataSet in PAP tosca policy 44/127244/2
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

2 years agoAdding deployment metrics to PAP 22/127222/5
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>
2 years agoMerge "Use classes from policy/common"
Liam Fallon [Fri, 18 Feb 2022 10:52:50 +0000 (10:52 +0000)]
Merge "Use classes from policy/common"

2 years agoUse classes from policy/common 53/127153/2
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>
2 years agoFix PAP issue with group config loading 01/127201/1
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>
2 years agoFix issue with GeneratedValue in PfGeneratedIdKey 30/127130/1
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>
2 years agoMerge "Add yaml support to pap api's"
Ajith Sreekumar [Mon, 14 Feb 2022 14:11:41 +0000 (14:11 +0000)]
Merge "Add yaml support to pap api's"

2 years agoImprove PAP healthcheck api to verify DB connectivity 64/127064/4
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

2 years agoAdd yaml support to pap api's 66/127066/1
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>
2 years agoMove PAP database provider to spring boot default 08/127008/10
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>
2 years agoUse spring boot actuator version 2.5.4 06/127006/1
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>
2 years agoCreate spring repository layer for PAP 51/126751/7
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>
2 years agoRemove references to MariaDB from resource files 30/126630/4
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>
2 years agoDisable statistics for default installations 38/126738/3
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>
2 years agoAdding totalPolicyDeployCounts updates to PapStasticsManager 32/126432/8
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

2 years agoMigrate pap startup & controllers to spring boot 66/126066/18
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>
2 years agoUpdate snapshot and/or references of policy/pap to latest snapshots 31/126031/1
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

2 years agoUpdate snapshot of policy/pap to 2.6.1-SNAPSHOT 64/125964/1
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

2 years agoRelease docker images for policy/pap: 2.6.0 35/125935/1
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

2 years agoRelease policy/pap: 2.6.0 26/125926/1
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

2 years agoUpdate parent and common references 15/125915/2
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>
2 years agoRename username for PAP operations. 59/125559/1
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>
2 years agoPoint to snapshot dependency 40/125340/1
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>
2 years agoPAP S3P jmx file changes 29/125029/2
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>
2 years agoBump policy/pap to jakarta 2.6.0-SNAPSHOT 81/124981/1
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>
2 years agoBump policy/pap to 2.5.2-SNAPSHOT 68/124968/1
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>
2 years agoRelease policy-pap 2.5.1 docker artifacts 65/124965/1
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>
2 years agoRelease policy-pap 2.5.1 maven artifacts 56/124956/1
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>
2 years agoUpdate parent/common/models/docker references 97/124897/1
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>
2 years agoBump pap to 2.5.1-SNAPSHOT 08/124208/1
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>
2 years agoRelease pap 2.5.0 docker image 02/124202/1
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>
2 years agoRelease pap 2.5.0 maven artifacts 94/124194/1
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>
2 years agoUse released common and models 83/124083/1
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>
2 years agoPoint at released policy-parent 01/124001/1
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>
2 years agoMerge "Update INFO.yaml"
Pamela Dragosh [Thu, 9 Sep 2021 13:36:22 +0000 (13:36 +0000)]
Merge "Update INFO.yaml"

2 years agoUpdate INFO.yaml 50/123950/1
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>
2 years agoDecrease eclipselink verbosity to warning 04/123904/1
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

2 years agoFix PAP PDP expiration timer 13/123813/1
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>
2 years agoUse policy/docker image 2.3.0 16/123616/1
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>
2 years agoAdd dmaap connectivity check in pap 24/123524/4
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>
2 years agoFix junits broken by change in is-alive type 71/123471/1
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>
2 years agoEnable prometheus by default in policy-pap 56/123456/1
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>
2 years agoUpdate Policy Components not to create tables 34/123334/1
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>
2 years agoMerge "Update postman collection for pap api's"
Ajith Sreekumar [Tue, 10 Aug 2021 16:13:42 +0000 (16:13 +0000)]
Merge "Update postman collection for pap api's"

2 years agoUpdate postman collection for pap api's 01/123201/1
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>
2 years agouse url resource for docker-tag -- pap 00/123200/1
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>
2 years agoUse lombok in pap 62/123162/1
Ram Krishna Verma [Thu, 5 Aug 2021 20:47:47 +0000 (16:47 -0400)]
Use lombok in pap

Issue-ID: POLICY-3399
Change-Id: I839f67ff02fdabcb4012a340f7a6a7528dc107e5
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoUpdate query params in audit api's 81/123081/1
Ram Krishna Verma [Tue, 3 Aug 2021 22:03:10 +0000 (18:03 -0400)]
Update query params in audit api's

Updating query params in audit api's
to keep them in sync with statistics api's.

Issue-ID: POLICY-3527
Change-Id: I096436930450c263835ff8852edd40655de4fb0d
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoAdd time ranges to PAP statistics API 21/123021/2
Jim Hahn [Fri, 30 Jul 2021 18:54:35 +0000 (14:54 -0400)]
Add time ranges to PAP statistics API

Issue-ID: POLICY-3511
Change-Id: Ifc91e4732b3574da37f55658b23faf8a9f8091f5
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoMerge "Fix swagger tags in controllers"
Jim Hahn [Fri, 30 Jul 2021 17:43:30 +0000 (17:43 +0000)]
Merge "Fix swagger tags in controllers"

2 years agoAdd audit api's to postman collection 77/122977/1
Ram Krishna Verma [Thu, 29 Jul 2021 20:49:06 +0000 (16:49 -0400)]
Add audit api's to postman collection

Adding policy audit api's to the postman collection in pap.

Issue-ID: POLICY-3340
Change-Id: Ic549ad2e242dd611cac5434b5fc7b0ec052db3ac
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoFix swagger tags in controllers 76/122976/1
Ram Krishna Verma [Thu, 29 Jul 2021 20:42:07 +0000 (16:42 -0400)]
Fix swagger tags in controllers

Fixing the swagger tags in controllers to match with documents.

Issue-ID: POLICY-3340
Change-Id: Ib30029cc4efa287348f5869f036b30cbab3db079
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoMerge "Add datetime format to audit api's"
Ajith Sreekumar [Thu, 29 Jul 2021 13:38:31 +0000 (13:38 +0000)]
Merge "Add datetime format to audit api's"

2 years agoAdd datetime format to audit api's 88/122888/5
Ram Krishna Verma [Tue, 27 Jul 2021 20:22:27 +0000 (16:22 -0400)]
Add datetime format to audit api's

Adding datetime format to audit api's
so that clients can send the request in one common format.
Changed the format to epoch timestamp.
Fixed review comments.

Issue-ID: POLICY-3340
Change-Id: I613ac02154a3e521ae97f7ac2e6129f642164b3f
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoRemove statistics record limits from PAP 28/122928/1
Jim Hahn [Wed, 28 Jul 2021 14:03:50 +0000 (10:03 -0400)]
Remove statistics record limits from PAP

policy/models statistics provider has now been enhanced to limit the
record counts.  Stripped the code from PAP, as it's no longer needed
there.  Also simplified the PAP statistics provider down to one query
method, taking a filter.

Issue-ID: POLICY-3511
Change-Id: I8a8797be191dc1f299b1c4084b0108a3ab89ff61
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdd apis for policy audit 07/122807/2
Ram Krishna Verma [Wed, 21 Jul 2021 22:24:57 +0000 (18:24 -0400)]
Add apis for policy audit

Adding api's to fetch policy audit records from db.
This is as per the design documented here -
https://wiki.onap.org/display/DW/PAP+REST+API+changes+for+Istanbul+release

Issue-ID: POLICY-3340
Change-Id: Iff80ab695d17ec38d4fe8ab98c0b95048cbae448
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoMerge "Use docker registry properties in pap"
Ajith Sreekumar [Wed, 21 Jul 2021 11:35:59 +0000 (11:35 +0000)]
Merge "Use docker registry properties in pap"

2 years agoUse docker registry properties in pap 53/122753/1
Jim Hahn [Tue, 20 Jul 2021 13:57:03 +0000 (09:57 -0400)]
Use docker registry properties in pap

Issue-ID: POLICY-3374
Change-Id: Ibc4fe79ec588d5b7342d8d667d51d8b5662fd031
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUse new RestClientParameters class in PAP 12/122712/1
Jim Hahn [Mon, 19 Jul 2021 15:21:33 +0000 (11:21 -0400)]
Use new RestClientParameters class in PAP

Replaced generic BusTopicParams with more specific RestClientParameters.

Issue-ID: POLICY-3456
Change-Id: Ic1a3acca5b651730fc74332c2c5d5bc36bccb790
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoLimit statistics record count 65/122565/3
Jim Hahn [Tue, 13 Jul 2021 18:02:30 +0000 (14:02 -0400)]
Limit statistics record count

Modified PAP, for Honolulu only, to limit the number of statistics
records retrieved from the DB.
Also added the recordCount parameter to the REST APIs, because otherwise
it would only return one record.

Per review comments:
- removed default value annotation; relying on the Provider code to
  change "0" to a reasonable default

Issue-ID: POLICY-3485
Change-Id: Ib0820cfda95672f1bc6f879dfd2ac172e7b42f0d
(cherry picked from commit 190b75c59bcc6f250446b627a96e4a12de52278f)
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpdate Pam's email INFO.yaml 05/122605/1
Dragosh, Pamela (pd1248) [Tue, 13 Jul 2021 14:34:15 +0000 (10:34 -0400)]
Update Pam's email INFO.yaml

Issue-ID: POLICY-3484
Change-Id: I3ba078199300574bd34dd3fd04022fa784fbd909
Signed-off-by: Dragosh, Pamela (pd1248) <pd1248@att.com>
2 years agoUpdate pdp statistics to count deploy/undeploy separately. 99/122499/1
adheli.tavares [Tue, 6 Jul 2021 15:49:41 +0000 (16:49 +0100)]
Update pdp statistics to count deploy/undeploy separately.

Issue-ID: POLICY-3383
Change-Id: Iec7875fb1fa6a4a360b8cfdff0b80f697a289de3
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoMerge "Use separate subscription for heartbeats"
Jim Hahn [Wed, 7 Jul 2021 12:26:04 +0000 (12:26 +0000)]
Merge "Use separate subscription for heartbeats"

2 years agoFix NPE in UpdateReq.reconfigure() 71/122471/1
Jim Hahn [Tue, 6 Jul 2021 20:03:22 +0000 (16:03 -0400)]
Fix NPE in UpdateReq.reconfigure()

While running CSIT to test heartbeat changes with multiple PAPs,
observed an NPE in UpdateReq.reconfigure().  Modified the code to
always use deployment lists instead of null lists.

Issue-ID: POLICY-3460
Change-Id: I884e091817e88309330139a01d060e286bd42008
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUse separate subscription for heartbeats 62/122462/2
Jim Hahn [Tue, 6 Jul 2021 14:19:52 +0000 (10:19 -0400)]
Use separate subscription for heartbeats

Separated the heartbeat processing onto its own POLICY-HEARTBEAT topic,
still on the "real" (i.e., "effective") POLICY-PDP-PAP topic, like we
had originally been doing with the statistics.  With this change,
statistics processing continues to be part of the heartbeat
class/processing, thus a separate class is not required to listen for,
and handle, statistics.

This new subscription uses a shared consumer group so that only one PAP
will process any given heartbeat message, which should reduce the
likelihood of DB contention and duplicate keys.

This also means that the "saveStatisticsInDb" flag will still be used,
which is a more obvious mechanism for controlling the storing of
statistics than the presence/absence of a topic in the config file.

Issue-ID: POLICY-3460
Change-Id: Ia07132b1c7aef006af86fddbe677fb1243a4e2c3
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRevert "Add listener to collect PDP statistics" 87/122287/1
Jim Hahn [Mon, 5 Jul 2021 12:13:20 +0000 (12:13 +0000)]
Revert "Add listener to collect PDP statistics"

This reverts commit 7b4a8ec06c8266f368a31cdafe75cf8a59304c83.

Reason for revert:
Decided to have the whole heartbeat processing use its own subscription, thus no need for a new class/topic just to collect statistics.

Issue-ID: POLICY-3405
Change-Id: I71580f877dae86a058ee881bc10f7bd1f57ff338
Signed-off-by: Jim Hahn <jrh3@att.com>