policy/docker.git
18 months agoupdate parent references in policy/docker pom 02/131602/1 2.5.1
liamfallon [Thu, 20 Oct 2022 14:53:15 +0000 (15:53 +0100)]
update parent references in policy/docker pom

updated the parent references in the policy/docker pom

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

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

18 months agoAdding Khon as latest db version. 91/131591/1
adheli.tavares [Thu, 20 Oct 2022 13:34:53 +0000 (14:34 +0100)]
Adding Khon as latest db version.

- no schema changes, adding a simple message for completion.

Issue-ID: POLICY-4408
Change-Id: I293278b242cc263443933393ca99eab2bef207be
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
18 months agoMerge "Extend delay on PAP test to allow undeploy to end"
Liam Fallon [Wed, 19 Oct 2022 15:08:47 +0000 (15:08 +0000)]
Merge "Extend delay on PAP test to allow undeploy to end"

18 months agoExtend delay on PAP test to allow undeploy to end 54/131554/2
liamfallon [Wed, 19 Oct 2022 12:48:17 +0000 (13:48 +0100)]
Extend delay on PAP test to allow undeploy to end

Issue-ID: POLICY-4393
Change-Id: I847a9bceec748e757dc7b05ce0228c6912308c9c
Signed-off-by: liamfallon <liam.fallon@est.tech>
18 months agoOpenSuse docker file for db-migrator 41/131541/2
danielhanrahan [Tue, 18 Oct 2022 12:20:13 +0000 (13:20 +0100)]
OpenSuse docker file for db-migrator

Create OpenSuse docker file
Add build profile for OpenSuse docker image

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

18 months agoFix CSITs for Kohn release 34/131534/1
liamfallon [Tue, 18 Oct 2022 13:04:06 +0000 (14:04 +0100)]
Fix CSITs for Kohn release

Newer versions of dependencies brought in some small updates to
configuraiton.

Also a script called start-container.sh has been added to bring up a
single Policy Framework container and its dependencies.

Issue-ID: POLICY-4393
Change-Id: I17bac4d75600431fdee74592be4700761a3f8fe7
Signed-off-by: liamfallon <liam.fallon@est.tech>
19 months agoFix CSIT failure in CLAMP, API and PAP tests 53/131453/4
rameshiyer27 [Wed, 12 Oct 2022 13:58:43 +0000 (14:58 +0100)]
Fix CSIT failure in CLAMP, API and PAP tests

ACM servlet context path is updated to the CLAMP config file.

Fixed prometheus endpoints in API and PAP.

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

19 months agoTrack configurable parameters in CSITs 54/131354/1
jhh [Sat, 1 Oct 2022 17:55:53 +0000 (12:55 -0500)]
Track configurable parameters in CSITs

Issue-ID: POLICY-3464
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I5cc0445eb811bb584bc29342157874eec04b9777

19 months agodb-migrator SQL compatibility mysql/mariadb 95/131195/1
jhh [Mon, 26 Sep 2022 16:21:11 +0000 (11:21 -0500)]
db-migrator SQL compatibility mysql/mariadb

Issue-ID: POLICY-3464
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I6b1fd22062ca4f55c036bc2632307454a1f00840

19 months agoMerge "Support onap..tcagen2 v2.0.0 and mysql 8.x"
Ramesh Murugan Iyer [Mon, 26 Sep 2022 05:22:42 +0000 (05:22 +0000)]
Merge "Support onap..tcagen2 v2.0.0 and mysql 8.x"

19 months agoAllow for mysql command flags in db-migrator 49/131149/1
jhh [Fri, 23 Sep 2022 13:32:21 +0000 (08:32 -0500)]
Allow for mysql command flags in db-migrator

For example by setting the env var to
MYSQL_CMD="mysql --ssl"

Issue-ID: POLICY-4182
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: If7298fb2ea01f15324a526e49f2ec860d29f8d31

19 months agoSupport onap..tcagen2 v2.0.0 and mysql 8.x 45/130345/8
jhh [Thu, 18 Aug 2022 00:20:27 +0000 (19:20 -0500)]
Support onap..tcagen2 v2.0.0 and mysql 8.x

Issue-ID: POLICY-4317
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Idf1b05c11edd061cdd6f52e5051b7a6a0fd1884e
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
19 months agoUpdate snapshot and/or references of policy/docker to latest snapshots 00/131100/1
liamfallon [Thu, 22 Sep 2022 18:28:26 +0000 (19:28 +0100)]
Update snapshot and/or references of policy/docker to latest snapshots

policy/docker 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: I57d1adc21b8fedd6346edd467f524a6849632429

19 months agoRelease docker images for policy/docker: 2.5.0 97/131097/1
liamfallon [Thu, 22 Sep 2022 16:53:46 +0000 (17:53 +0100)]
Release docker images for policy/docker: 2.5.0

This commit releases docker images for repo policy/docker.

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

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

19 months agoupdate parent references in policy/docker pom 87/131087/1 2.5.0
liamfallon [Thu, 22 Sep 2022 13:34:34 +0000 (14:34 +0100)]
update parent references in policy/docker pom

updated the parent references in the policy/docker pom

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

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

20 months agoChange the properties column type to hibernate/postgres match. 49/130949/1
adheli.tavares [Wed, 14 Sep 2022 19:34:03 +0000 (20:34 +0100)]
Change the properties column type to hibernate/postgres match.

- changing the type to bigint because pap was having side effects
errors with the bytea forced cast

Issue-ID: POLICY-4352
Change-Id: I368c3ba80fce0c10d9417deee8f9ac25c467d4e3
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
20 months agoMerge "Fix minor issues with CSITs"
Liam Fallon [Fri, 9 Sep 2022 13:12:47 +0000 (13:12 +0000)]
Merge "Fix minor issues with CSITs"

20 months agoFix minor issues with CSITs 18/130818/8
liamfallon [Thu, 8 Sep 2022 23:18:33 +0000 (00:18 +0100)]
Fix minor issues with CSITs

Issue-ID: POLICY-4350
Change-Id: I2bbc47122aa5984fbe3f03edc252ea56e47dba73
Signed-off-by: liamfallon <liam.fallon@est.tech>
20 months agoRemove inactive committers from INFO.yaml 23/130823/1
liamfallon [Fri, 9 Sep 2022 08:59:23 +0000 (09:59 +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: I69e5ad6d76059d3ca16d748fb08fa0bc17f5ad93
Signed-off-by: liamfallon <liam.fallon@est.tech>
20 months agoMerge "Improve debugging support for CSITs"
Liam Fallon [Thu, 8 Sep 2022 21:24:26 +0000 (21:24 +0000)]
Merge "Improve debugging support for CSITs"

20 months agoBuild ONAP base image locally on ARM architecture 16/130816/1
liamfallon [Thu, 8 Sep 2022 16:32:59 +0000 (17:32 +0100)]
Build ONAP base image locally on ARM architecture

This commit forces a build o the ONAP images locally when a build is run
on ARM architecture.

Issue-ID: POLICY-4287
Change-Id: I47dd5293ef6bf0051ba074eff2a95d6b3266c871
Signed-off-by: liamfallon <liam.fallon@est.tech>
20 months agoImprove debugging support for CSITs 02/130802/5
liamfallon [Thu, 8 Sep 2022 08:56:47 +0000 (09:56 +0100)]
Improve debugging support for CSITs

The following improvements are added:
- "docker ps" command added to the wait_for_port.sh script
  tp show status of the containers coming up and down
- "docker-compose logs" added to the end of the test runs
  to print out the standard output from the containers
- Add standard output logging to all containers
- Some cleanup and use of better names

Issue-ID: POLICY-4350
Change-Id: I3ae8c59dba64f9c267f310366bb4a2a6ffd5d418
Signed-off-by: liamfallon <liam.fallon@est.tech>
20 months agoFixed Negative Heap Memory on Grafana Chart 05/130505/3
brunomilitzer [Tue, 30 Aug 2022 08:47:02 +0000 (09:47 +0100)]
Fixed Negative Heap Memory on Grafana Chart

- fixed unit to seconds (so it caulculates time)
- fixed formula with time-up variable

Issue-ID: POLICY-4326
Change-Id: I324b01d9abc92938027daafa1ebe73dccea5baba
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
20 months agoFix casting of lob type on db-migrator for postgres installation 80/130780/2
adheli.tavares [Wed, 7 Sep 2022 12:02:06 +0000 (13:02 +0100)]
Fix casting of lob type on db-migrator for postgres installation

Issue-ID: POLICY-4352
Change-Id: Ib3aa68a512c1278920a8bdf1ed29914195d0e371
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
20 months agoEnsure robot framework is installed for CSITs 73/130773/3
liamfallon [Wed, 7 Sep 2022 08:16:11 +0000 (09:16 +0100)]
Ensure robot framework is installed for CSITs

The script to install the robot framework for CSITs was not called due
to an incorrect path in its invocation. This commit ensures it is
called.

This bug has been in the CSIT scripts for a numebr of releases. It only
seems to have become an issue in the last few hours.

Issue-ID: POLICY-4338
Change-Id: I0c2c578b784732a4f2beed514512f8e8c558f726
Signed-off-by: liamfallon <liam.fallon@est.tech>
20 months agoConvert CSIT tests to use HTTP rather than HTTPS 24/130624/8
liamfallon [Thu, 1 Sep 2022 11:05:47 +0000 (12:05 +0100)]
Convert CSIT tests to use HTTP rather than HTTPS

This commit converts the CSITs from HTTPS to HTTP. It also does some
refactoring and didying up on the CSIT environment.

Issue-ID: POLICY-4338
Change-Id: Ie19908a8d2a457df3ae5f4e490d5528889f395c8
Signed-off-by: liamfallon <liam.fallon@est.tech>
20 months agoAllow setting external dockerfile for db-migrator 46/130646/1
danielhanrahan [Thu, 1 Sep 2022 14:17:18 +0000 (15:17 +0100)]
Allow setting external dockerfile for db-migrator

Added maven properties to allow overriding dockerfile during build e.g.
 mvn clean install -Pdocker -Ddocker.dbm.dockerFile=/path/to/dockerfile

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

20 months agoMerge "Added Dashboards for Policy Framework Components"
Liam Fallon [Mon, 29 Aug 2022 07:24:22 +0000 (07:24 +0000)]
Merge "Added Dashboards for Policy Framework Components"

20 months agoGenerate onap images locally on ARM architecture 82/130082/2
liamfallon [Sun, 31 Jul 2022 18:12:28 +0000 (19:12 +0100)]
Generate onap images locally on ARM architecture

The defailt ONAP base images are generated for X86 64 architecture. On
ARM architecture, these base images cannot be used locally because they
don't run properly in Docker on ARM architecture. Docker images based on
these images are also forced to X86 64 architecure.

In order to run the Policy Framework locally on a computer with ARM
architecture such as an Apple M1 Macbook, local Docker images should be
built that use ARM archtiecture.

The changes in this commit introduce a profile in the POMs for the
POLICY Framework base images. This profile is triggered only on builds
running on ARM architecture.

This new profile builds the onap-java and onap-pthon base images on ARM
architeclture locally when the build is run on a machine with ARM
architecture.

- The onap-java base image docker file does not build on ARM
  architecture becasue its base image (an Alpine version with Java 11
  preinstalled). Therefore, for this base image, a Dockerfile is
  introduced that uses the Alpine base image and adds Java 11.
- The onap-python image docker file does build on ARM architecture so
  the repo is simply checked out and built on ARM architecture

Once these ARM based ONAP base images are available locally, the rest
of the docker images in the Policy Framework build fine on a machine
with ARM architecture, and can be used to run docker-compose
compositions such as CSITs.

Issue-ID: POLICY-4287
Change-Id: I1938e232f6457f7ad1c18a0952c65fdee04d169b
Signed-off-by: liamfallon <liam.fallon@est.tech>
21 months agoAdded Dashboards for Policy Framework Components 66/130266/4
brunomilitzer [Thu, 11 Aug 2022 15:16:57 +0000 (16:16 +0100)]
Added Dashboards for Policy Framework Components

Issue-ID: POLICY-3967
Change-Id: I33f135da7dc49dc10b42902d96d8da21db36d19b
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
21 months agoUpdate docker base image to snapshot 65/130065/1
liamfallon [Fri, 29 Jul 2022 14:25:30 +0000 (15:25 +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: I55c64b06282fb7fd920924351f2d471d59bcf403

21 months agoUpdating python dependency to stop the timeout 32/130032/4
brunomilitzer [Tue, 26 Jul 2022 13:26:43 +0000 (14:26 +0100)]
Updating python dependency to stop the timeout

Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
Issue-ID: POLICY-4288
Change-Id: Ie7526356fad59de167d8c376da4d48feda07e0b3
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
22 months agoUpdate parent references on docker files 55/129955/1
liamfallon [Fri, 15 Jul 2022 13:57:36 +0000 (14:57 +0100)]
Update parent references on docker files

Issue-ID: POLICY-4287
Change-Id: I9c6c59e264624d35b70b26640c2442f937419527
Signed-off-by: liamfallon <liam.fallon@est.tech>
22 months agoMove policy-gui CSIT config files 26/129926/4
liamfallon [Thu, 14 Jul 2022 12:29:58 +0000 (13:29 +0100)]
Move policy-gui CSIT config files

The policy-gui config files for CSIT are in the CLAMp directory, they
should be in their own directory.

Tweaked timings on PAP CSIT to stop it timing out on post undeploy test

Issue-ID: POLICY-4137
Change-Id: I43b9972b544b98fbe083942e7fd616386f08ce55
Signed-off-by: liamfallon <liam.fallon@est.tech>
22 months agoMerge "Update get version script for snapshots"
Jorge Hernandez [Fri, 1 Jul 2022 16:00:21 +0000 (16:00 +0000)]
Merge "Update get version script for snapshots"

22 months agoOCI image spec labels for policy-docker images 17/129717/1
danielhanrahan [Tue, 28 Jun 2022 16:39:32 +0000 (17:39 +0100)]
OCI image spec labels for policy-docker images

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

22 months agoUpdate get version script for snapshots 03/129703/3
liamfallon [Tue, 28 Jun 2022 14:55:29 +0000 (15:55 +0100)]
Update get version script for snapshots

The current script assumes that snapshot versions are always available.
However the Linux Foundation has now implemented a policy of deleting
snapshots on no-master branches that are older than a certain age. THis
breaks our CSITs.

THis updated script copes with this by checking if a snapshot is
avaialable and, if the snapshot is not available, the script falls back
to the released version.

This script will be needed on other branches besides master as well.

Issue-ID: POLICY-4233
Change-Id: I7a9fe7ffc3abfc8044a2e0439e3fcd47c086d5f8
Signed-off-by: liamfallon <liam.fallon@est.tech>
22 months agoDuplicate volume mount for drools-apps in CSIT 69/129669/3
danielhanrahan [Thu, 23 Jun 2022 10:48:09 +0000 (11:48 +0100)]
Duplicate volume mount for drools-apps in CSIT

drools-apps docker container copies feature-lifecycle.properties from
/tmp/policy-install/config to /opt/app/policy/config
Because docker-compose mounts this file twice, it causes OpenSuse
image to abort with error 'cp: X and Y are the same file'

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

22 months agoMerge "SLA dashboard added to grafana setup"
Jorge Hernandez [Thu, 23 Jun 2022 19:46:26 +0000 (19:46 +0000)]
Merge "SLA dashboard added to grafana setup"

22 months agoSet JDBC URL env var for drools-apps CSITs 66/129666/1
jhh [Wed, 22 Jun 2022 16:19:21 +0000 (11:19 -0500)]
Set JDBC URL env var for drools-apps CSITs

Issue-ID: POLICY-4177
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ie9bb269e7a38d9e3f07191c301cfb171ef8ed8f3

22 months agoSLA dashboard added to grafana setup 45/129645/2
adheli.tavares [Thu, 16 Jun 2022 08:21:46 +0000 (09:21 +0100)]
SLA dashboard added to grafana setup

Issue-ID: POLICY-4163
Change-Id: I2b996ff519f0b8f0207589ec4f1f629c79b614c0
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
23 months agoMerge "Use proper currentInstanceCount in CSITs"
Jorge Hernandez [Fri, 17 Jun 2022 12:02:02 +0000 (12:02 +0000)]
Merge "Use proper currentInstanceCount in CSITs"

23 months agoMerge "Make CSIT scripts locally executable"
Jorge Hernandez [Fri, 17 Jun 2022 12:01:02 +0000 (12:01 +0000)]
Merge "Make CSIT scripts locally executable"

23 months agoMake CSIT scripts locally executable 41/129641/1
liamfallon [Fri, 17 Jun 2022 10:11:55 +0000 (11:11 +0100)]
Make CSIT scripts locally executable

The CSIT scripts do not have their executable flags set, this change
makes the scripts locally executable.

Issue-ID: POLICY-4233
Change-Id: Ia274481751076027c4224e791c3a35785b9d78a9
Signed-off-by: liamfallon <liam.fallon@est.tech>
23 months agoUse proper currentInstanceCount in CSITs 23/129623/1
waynedunican [Fri, 3 Jun 2022 08:07:59 +0000 (09:07 +0100)]
Use proper currentInstanceCount in CSITs

Issue-ID: POLICY-4086
Change-Id: I8d49acb66b798104f2cfbdc3765a68af866f9f6a
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
23 months agoAdding runtime-acm to grafana dashboard 07/129607/1
adheli.tavares [Tue, 7 Jun 2022 12:36:57 +0000 (13:36 +0100)]
Adding runtime-acm to grafana dashboard

Issue-ID: POLICY-4146
Change-Id: Iecd0cfa1a6e6162bb9a06345dfd12fb8375ae98b
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
23 months agoMerge "Add Ramesh Murugan Iyer as a committer"
Liam Fallon [Thu, 2 Jun 2022 08:07:34 +0000 (08:07 +0000)]
Merge "Add Ramesh Murugan Iyer as a committer"

23 months agoAdd Ramesh Murugan Iyer as a committer 40/129440/1
liamfallon [Wed, 1 Jun 2022 12:02:11 +0000 (13:02 +0100)]
Add Ramesh Murugan Iyer as a committer

Issue-ID: POLICY-4228
Change-Id: Ic3b59d3ccb8bf09514a8425019344480f9d33310
Signed-off-by: liamfallon <liam.fallon@est.tech>
23 months agoCSIT does not display logs for some containers 07/129407/1
danielhanrahan [Thu, 26 May 2022 14:59:00 +0000 (15:59 +0100)]
CSIT does not display logs for some containers

Fix container names in CSIT teardown scripts to match
docker-compose-all.yml

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

2 years agoSet snapshot and/or references of policy/docker for new release 46/129046/1
liamfallon [Tue, 3 May 2022 16:21:35 +0000 (17:21 +0100)]
Set snapshot and/or references of policy/docker for new release

policy/docker 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: Ibc0b2ea07a80ece136ae81b6dec8bb457fc86fa9
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoUpdate snapshot and/or references of policy/docker to latest snapshots 91/128891/1
liamfallon [Wed, 27 Apr 2022 08:46:38 +0000 (09:46 +0100)]
Update snapshot and/or references of policy/docker to latest snapshots

policy/docker 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: Ib1f5eaf1f685d3789375dc32fce07104fa4faf65

2 years agoRelease docker images for policy/docker: 2.4.3 79/128879/1
liamfallon [Tue, 26 Apr 2022 15:49:24 +0000 (16:49 +0100)]
Release docker images for policy/docker: 2.4.3

This commit releases docker images for repo policy/docker.

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

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

2 years agoupdate parent references in policy/docker pom 75/128875/1 10.0.0-ONAP 2.4.3
liamfallon [Tue, 26 Apr 2022 15:08:15 +0000 (16:08 +0100)]
update parent references in policy/docker pom

updated the parent references in the policy/docker pom

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

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

2 years agoUpdate snapshot and/or references of policy/docker to latest snapshots 96/128496/1
liamfallon [Tue, 12 Apr 2022 15:50:02 +0000 (16:50 +0100)]
Update snapshot and/or references of policy/docker to latest snapshots

policy/docker 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: Icf8d329eeb1713f6edd6cb94d45015c952b43a98

2 years agoRelease docker images for policy/docker: 2.4.2 91/128491/1
liamfallon [Tue, 12 Apr 2022 13:35:53 +0000 (14:35 +0100)]
Release docker images for policy/docker: 2.4.2

This commit releases docker images for repo policy/docker.

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

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

2 years agoupdate parent references in policy/docker pom 88/128488/1 2.4.2
liamfallon [Tue, 12 Apr 2022 12:10:56 +0000 (13:10 +0100)]
update parent references in policy/docker pom

updated the parent references in the policy/docker pom

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

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

2 years agoUpdate apex-pdp CSIT tests to include metrics 07/128407/1
Rashmi Pujar [Fri, 8 Apr 2022 19:45:32 +0000 (15:45 -0400)]
Update apex-pdp CSIT tests to include metrics

Validate metrics as documented in
https://wiki.onap.org/display/DW/Policy+Framework%3A+Key+metrics+to+monitor

Issue-ID: POLICY-3766
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: Iac1c0298c8e9a35c5ef25aec15e3b9bcbabebf7e

2 years agoCSITs for db-migrator 53/128153/3
waynedunican [Wed, 16 Mar 2022 08:10:54 +0000 (08:10 +0000)]
CSITs for db-migrator

- Added test to confirm databases are created
- Added test for api healthcehck

Issue-ID: POLICY-2715
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
Change-Id: I8ef9f67bf50d2fcbf7c7db2c78370f6b277e5993

2 years agoDB migrator fixes after smoke test 22/128122/1
adheli.tavares [Mon, 28 Mar 2022 11:29:01 +0000 (12:29 +0100)]
DB migrator fixes after smoke test

Issue-ID: POLICY-3999
Change-Id: I65d95cbfab4b49245bb68f2ca5067fda9437b531
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoMerge "Add CSIT Test cases for api metrics"
Ajith Sreekumar [Mon, 28 Mar 2022 09:12:20 +0000 (09:12 +0000)]
Merge "Add CSIT Test cases for api metrics"

2 years agoMerge "Start Participant containers after Runtime starts"
Liam Fallon [Sat, 26 Mar 2022 17:48:33 +0000 (17:48 +0000)]
Merge "Start Participant containers after Runtime starts"

2 years agoAdd CSIT Test cases for api metrics 03/128103/1
Prakhar Pandey [Fri, 25 Mar 2022 19:46:19 +0000 (15:46 -0400)]
Add CSIT Test cases for api metrics

Adding csit test cases for application level metrics exposed by api component.

Issue-ID: POLICY-3966
Signed-off-by: Prakhar Pandey <prakhar.pandey@bell.ca>
Change-Id: Iccaa1c8e55ddc5b9961371c85aa41a5371ada560

2 years agoAdd CSIT for metadataSet handling in api, pap, apex-pdp 21/128021/2
rameshiyer27 [Wed, 16 Mar 2022 10:36:33 +0000 (10:36 +0000)]
Add CSIT for metadataSet handling in api, pap, apex-pdp

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

2 years agoMerge "Add db migrator changes for tosca node templates"
Liam Fallon [Thu, 24 Mar 2022 21:29:15 +0000 (21:29 +0000)]
Merge "Add db migrator changes for tosca node templates"

2 years agoStart Participant containers after Runtime starts 23/128023/2
Sirisha_Manchikanti [Tue, 22 Mar 2022 16:20:18 +0000 (16:20 +0000)]
Start Participant containers after Runtime starts

PARTICIPANT_REGISTER message from participants is getting lost, as
RUNTIME_ACM is not started completely. Adjusted CSIT bringup of
containers accordingly. This needs a correction in Participant
Intermediary for next release, Jira raised for the same
https://jira.onap.org/browse/POLICY-4042

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

2 years agoMerge "Fix postgres scripts"
Liam Fallon [Thu, 24 Mar 2022 09:17:46 +0000 (09:17 +0000)]
Merge "Fix postgres scripts"

2 years agoMerge "Added scripts for manual smoke testing"
Liam Fallon [Thu, 24 Mar 2022 09:17:33 +0000 (09:17 +0000)]
Merge "Added scripts for manual smoke testing"

2 years agoAdd db migrator changes for tosca node templates 45/128045/1
rameshiyer27 [Wed, 23 Mar 2022 17:38:57 +0000 (17:38 +0000)]
Add db migrator changes for tosca node templates

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

2 years agoFix postgres scripts 88/127988/1
waynedunican [Wed, 23 Mar 2022 08:28:21 +0000 (08:28 +0000)]
Fix postgres scripts

Fix for syntax errors in postgres scripts

Issue-ID: POLICY-2715
Change-Id: I109056f7ee37b439f914fbd5d1d0ca87df550e4e
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2 years agoAdded scripts for manual smoke testing 98/127798/4
saul.gill [Tue, 15 Mar 2022 11:56:01 +0000 (11:56 +0000)]
Added scripts for manual smoke testing

Added some scripts, docker compose and config files
This is to aid in manual smoke testing
Policy gui and policy backend have been added

Issue-ID: POLICY-4000
Change-Id: Ia89cab416b02ab034c65ba8224536cde2f65c0c5
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoReuse https environment flags drools csits 80/127880/2
jhh [Thu, 17 Mar 2022 22:40:24 +0000 (17:40 -0500)]
Reuse https environment flags drools csits

Issue-ID: POLICY-3995
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ic5eb0397c5f58169845bd07f4fb2d9ab5b039b6d

2 years agoUpdate snapshot and/or references of policy/docker to latest snapshots 99/127599/1
liamfallon [Wed, 9 Mar 2022 15:49:22 +0000 (15:49 +0000)]
Update snapshot and/or references of policy/docker to latest snapshots

policy/docker 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: I5779febc813b6a2c663c1f2cd863df150f2c9837

2 years agoRelease docker images for policy/docker: 2.4.1 97/127597/1
liamfallon [Wed, 9 Mar 2022 15:33:37 +0000 (15:33 +0000)]
Release docker images for policy/docker: 2.4.1

This commit releases docker images for repo policy/docker.

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

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

2 years agoupdate parent references in policy/docker pom 91/127591/1 2.4.1
liamfallon [Wed, 9 Mar 2022 14:30:32 +0000 (14:30 +0000)]
update parent references in policy/docker pom

updated the parent references in the policy/docker pom

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

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

2 years agocorrect healthcheck parameters for drools apps 46/127446/1
jhh [Wed, 2 Mar 2022 16:13:38 +0000 (10:13 -0600)]
correct healthcheck parameters for drools apps

Issue-ID: POLICY-3977
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ib022569138c7ebcc37bc56838f5123188ba2fa43

2 years agoMerge "Update ACM Schema in db migrator"
Liam Fallon [Tue, 1 Mar 2022 19:44:46 +0000 (19:44 +0000)]
Merge "Update ACM Schema in db migrator"

2 years agoConfigure aaf using a parameter in policy-pap 93/127393/1
a.sreekumar [Tue, 1 Mar 2022 11:03:17 +0000 (11:03 +0000)]
Configure aaf using a parameter in policy-pap

Change-Id: I1505f5a04da93de3f0f4c349080480625c4a377d
Issue-ID: POLICY-3975
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoUpdate ACM Schema in db migrator 48/127248/2
Lathish [Wed, 23 Feb 2022 10:49:41 +0000 (10:49 +0000)]
Update ACM Schema in db migrator

Issue-ID: POLICY-3944
Change-Id: If22c95d0fae99e6312ca7b079a5663476d3e06f0
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2 years agoAdd csit tests for pap metrics 15/127315/1
Ram Krishna Verma [Fri, 25 Feb 2022 18:06:26 +0000 (13:06 -0500)]
Add csit tests for pap metrics

Adding csit tests for applications level metrics
exposed by pap component.

Issue-ID: POLICY-3965
Change-Id: I50cd37941514d2d18809d29f4c5447434bd5b180
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoProvisioning of prometheus datasource and dashboards 71/127271/2
adheli.tavares [Thu, 24 Feb 2022 09:54:30 +0000 (09:54 +0000)]
Provisioning of prometheus datasource and dashboards

- dashboard with details for micrometer(jvm, hikari, http requests) stats.
- dashboard with details for JVM consumption on basic levels.

Issue-ID: POLICY-3892
Change-Id: Ibe9c220c35755b9c60f2ef5d6c4b56849a9ba59a
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoMerge "Fix CLAMP controlloop CSIT testcases"
Liam Fallon [Thu, 24 Feb 2022 16:53:24 +0000 (16:53 +0000)]
Merge "Fix CLAMP controlloop CSIT testcases"

2 years agoAdding spring data properties to apiParameters 73/127273/1
a.sreekumar [Thu, 24 Feb 2022 11:04:04 +0000 (11:04 +0000)]
Adding spring data properties to apiParameters

Change-Id: If95561b0d5fb01251458a0ce52880b836922c0ae
Issue-ID: POLICY-3923
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoFix CLAMP controlloop CSIT testcases 20/127220/4
Sirisha_Manchikanti [Thu, 17 Feb 2022 17:55:21 +0000 (17:55 +0000)]
Fix CLAMP controlloop CSIT testcases

Made corrections according to the application yaml to fix CLAMP CSIT
testcases

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

2 years agoUse classes from policy/common 54/127154/2
Ram Krishna Verma [Wed, 16 Feb 2022 17:16:50 +0000 (12:16 -0500)]
Use classes from policy/common

Use CustomImplicitNamingStrategy from policy/common.

Issue-ID: POLICY-3931
Change-Id: I69f556e0e5a6bdf60a0cef6b2d49a77289c4bb8d
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoMerge "Add docker configuration for Prometheus and Grafana"
Liam Fallon [Thu, 17 Feb 2022 12:57:59 +0000 (12:57 +0000)]
Merge "Add docker configuration for Prometheus and Grafana"

2 years agoFix issue with GeneratedValue in PfGeneratedIdKey 39/127139/4
a.sreekumar [Tue, 15 Feb 2022 18:20:01 +0000 (18:20 +0000)]
Fix issue with GeneratedValue in PfGeneratedIdKey

Until now, 'ID, name and version' was used as the primary key in
jpapolicyaudit and pdpstatistics tables. With this change, only ID will
be used as the PK.
The applications works with or without this change, as ID was the only
field which was always unique. "name" and "version" are mostly
duplicates (policyName in case of jpapolicyaudit & pdpName in case of
pdpstatistics table).
Pushing this change anyway to keep the tables consistent
with the entity classes.

Change-Id: I34a7582ed9c74fa0ead8fce2e86ac2ce1ecacf1e
Issue-ID: POLICY-3897
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoAdd docker configuration for Prometheus and Grafana 30/127030/8
adheli.tavares [Wed, 2 Feb 2022 14:53:10 +0000 (14:53 +0000)]
Add docker configuration for Prometheus and Grafana

- docker compose file with the policy components
- configuration files for components to allow usage of http
- basic prometheus configuration to connect to api, pap, drools (apps/pdp), xaclm and apex
- examples of metrics to be added to a dashboard in Grafana

Issue-ID: POLICY-3886
Change-Id: Ic377b69b1a296017a85cb08ccdbbf9b8b281d8e3
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoDisable helm endpoints by default in csit 34/127134/1
Lathish [Tue, 15 Feb 2022 13:57:28 +0000 (19:27 +0530)]
Disable helm endpoints by default in csit

Issue-ID: POLICY-3894
Change-Id: I83684c6d75ab4bfd5b6a5dfb1c5caabf6ae70d2a
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2 years agoFix policy-api CSIT test 01/127101/4
a.sreekumar [Mon, 14 Feb 2022 13:51:34 +0000 (13:51 +0000)]
Fix policy-api CSIT test

Change-Id: Idd7fd933f10dabaa203ec498996aa772facddac9
Issue-ID: POLICY-3753
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoMove PAP database provider to spring boot default 33/127033/2
a.sreekumar [Wed, 9 Feb 2022 12:19:54 +0000 (12:19 +0000)]
Move PAP database provider to spring boot default

Change-Id: I5a743a8e666978c0aa0a7fc833e846379780c94b
Issue-ID: POLICY-3867
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoMerge "Fix spring datasource configuration for pap container"
Liam Fallon [Mon, 7 Feb 2022 17:19:31 +0000 (17:19 +0000)]
Merge "Fix spring datasource configuration for pap container"

2 years agoMerge "Fix failing build in jdk base image"
Liam Fallon [Mon, 7 Feb 2022 17:18:21 +0000 (17:18 +0000)]
Merge "Fix failing build in jdk base image"

2 years agoFix spring datasource configuration for pap container 01/127001/2
adheli.tavares [Mon, 7 Feb 2022 08:52:04 +0000 (08:52 +0000)]
Fix spring datasource configuration for pap container

Issue-ID: POLICY-3914
Change-Id: Iddb985161ecd51ad3f2b17ae6ac13d2825b67bec
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2 years agoMerge "Modified db-migrator to allow configuration of database"
Liam Fallon [Mon, 7 Feb 2022 11:56:21 +0000 (11:56 +0000)]
Merge "Modified db-migrator to allow configuration of database"

2 years agoFix failing build in jdk base image 00/127000/1
saul.gill [Mon, 7 Feb 2022 09:19:55 +0000 (09:19 +0000)]
Fix failing build in jdk base image

Fix originally put in drools-pdp
Upgraded Python pip package as was causing build failure

Issue-ID: POLICY-3905
Change-Id: Ib5320790914a6a1344ae0548aeda3c7cf4585734
Signed-off-by: saul.gill <saul.gill@est.tech>
2 years agoAdd upgrade/downgrade scripts for postgres in db-migrator 63/126963/1
waynedunican [Fri, 4 Feb 2022 08:36:13 +0000 (08:36 +0000)]
Add upgrade/downgrade scripts for postgres in db-migrator

- Jakarta upgrade scripts
- Jakarta downgrade scripts

Issue-ID: POLICY-2715
Change-Id: I1dbe902644ce392ef0823022a256cf37cc499a3e
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2 years agoMerge "Add upgrade/downgrade scripts for postgres in db-migrator"
Liam Fallon [Wed, 2 Feb 2022 12:35:59 +0000 (12:35 +0000)]
Merge "Add upgrade/downgrade scripts for postgres in db-migrator"

2 years agoMerge "Add upgrade/downgrade scripts for postgres in db-migrator"
Liam Fallon [Wed, 2 Feb 2022 12:35:47 +0000 (12:35 +0000)]
Merge "Add upgrade/downgrade scripts for postgres in db-migrator"

2 years agoMerge "Add upgrade/downgrade scripts for postgres in db-migrator"
Liam Fallon [Wed, 2 Feb 2022 12:35:32 +0000 (12:35 +0000)]
Merge "Add upgrade/downgrade scripts for postgres in db-migrator"

2 years agoModified db-migrator to allow configuration of database 55/126855/3
waynedunican [Tue, 4 Jan 2022 19:48:11 +0000 (19:48 +0000)]
Modified db-migrator to allow configuration of database

- Updated the Dockerfile to include postgres sql
and to copy postgres scripts
- Added db-migrator-pg script for postgres installation
- Updated prepare upgrade/downgrade scripts

Issue-ID: POLICY-2715
Change-Id: Ib8d3523e8445ad1528fe225c96acdac5ca61535d
Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>