summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-02-10Move PAP database provider to spring boot defaulta.sreekumar68-2084/+1496
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>
2022-02-07Use spring boot actuator version 2.5.4a.sreekumar1-2/+2
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>
2022-01-28Create spring repository layer for PAPa.sreekumar24-27/+2154
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>
2022-01-27Remove references to MariaDB from resource fileswaynedunican8-12/+118
Issue-ID: POLICY-2086 Change-Id: I891feb05d2e964ae8d4454d30672ffc77c1da555 Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2022-01-24Disable statistics for default installationsRam Krishna Verma1-1/+1
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>
2022-01-07Adding totalPolicyDeployCounts updates to PapStasticsManagerisaac4-4/+54
Issue-ID: POLICY-3836 Signed-off-by: isaac <isaac.adorno@att.com> Change-Id: Ia4ed2595984f68bf75ca9dacb6aa76f04a306224
2021-12-14Migrate pap startup & controllers to spring boota.sreekumar68-1638/+1376
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>
2021-12-02Update snapshot and/or references of policy/pap to latest snapshotsliamfallon1-3/+3
*** 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
2021-11-29Update snapshot of policy/pap to 2.6.1-SNAPSHOTliamfallon9-9/+9
*** 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
2021-11-26Release docker images for policy/pap: 2.6.0liamfallon1-0/+8
*** 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
2021-11-26Release policy/pap: 2.6.0liamfallon1-0/+5
*** 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
2021-11-25Update parent and common referencesliamfallon2-4/+4
*** 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>
2021-11-03Rename username for PAP operations.adheli.tavares11-20/+20
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>
2021-10-25Point to snapshot dependencyRam Krishna Verma1-3/+3
Issue-ID: POLICY-3788 Change-Id: I2b8a9edfe7e84bcc2ec312c705875a68953cc9ba Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-10-18PAP S3P jmx file changeswaynedunican2-70/+302
Issue-ID: POLICY-3653 Change-Id: I4a7b033d6ba0356c46c571640e85c40253ec6ad5 Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
2021-10-14Bump policy/pap to jakarta 2.6.0-SNAPSHOTa.sreekumar9-10/+10
Change-Id: I2343607e6cf92488c6f74107ced8c4234d126d26 Issue-ID: POLICY-3696 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-10-14Bump policy/pap to 2.5.2-SNAPSHOTa.sreekumar9-9/+9
Change-Id: Ifadbff28b39582016096865565d4b5c76f8dd027 Issue-ID: POLICY-3696 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-10-14Release policy-pap 2.5.1 docker artifactsa.sreekumar1-0/+8
Change-Id: I637992c444a171d8ea1b16ca738f3b0151e1fa7f Issue-ID: POLICY-3696 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-10-14Release policy-pap 2.5.1 maven artifactsa.sreekumar1-0/+5
Change-Id: I8992fb6d0116ba8a5ced46c3703589119303aeee Issue-ID: POLICY-3696 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-10-13Update parent/common/models/docker referencesliamfallon2-4/+4
Issue-ID: POLICY-3696 Change-Id: Ie3cfd25c36e30d7e85448da48a27419252cea077 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-14Bump pap to 2.5.1-SNAPSHOTRam Krishna Verma9-9/+9
Issue-ID: POLICY-3587 Change-Id: I525db19433347938645d31670729a9429ed0eb91 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-09-14Release pap 2.5.0 docker imageRam Krishna Verma1-0/+8
Issue-ID: POLICY-3587 Change-Id: I25e68b0b3e88a7c376e50cb714a010f1946dc38f Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-09-14Release pap 2.5.0 maven artifactsRam Krishna Verma1-0/+5
Issue-ID: POLICY-3587 Change-Id: Ie29d403988c3034cc5ac4363e71cb6ad1019e10c Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-09-13Use released common and modelsliamfallon1-2/+2
Issue-ID: POLICY-3587 Change-Id: Ia5cfbb56c44284d459c7e019e2a69a0b9d6b2d70 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-09Point at released policy-parentliamfallon1-1/+1
Issue-ID: POLICY-3587 Change-Id: I0d9a61219cef4d78e8e17d79f218b88a569bde81 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-09Merge "Update INFO.yaml"Pamela Dragosh1-10/+13
2021-09-08Update INFO.yamlliamfallon1-10/+13
Update the INFO.yaml file with latest information. Issue-ID: POLICY-3552 Change-Id: I269cb7142a9820356f9d4954d005bd5ea182c342 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-06Decrease eclipselink verbosity to warningjhh1-1/+1
Issue-ID: POLICY-3611 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ia7e2ccba793bf7e0ee686c874b395ff728d68af3
2021-09-02Fix PAP PDP expiration timerJim Hahn8-12/+29
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>
2021-08-26Use policy/docker image 2.3.0Jim Hahn1-2/+2
Issue-ID: POLICY-3587 Change-Id: Ieedb4fc34a54306d74a3bf5b934ee36e2e07077f Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-25Add dmaap connectivity check in papRam Krishna Verma6-8/+117
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>
2021-08-23Fix junits broken by change in is-alive typeJim Hahn1-1/+3
Issue-ID: POLICY-3531 Change-Id: I1e66779f4ac05862649828e79914e902a99400d3 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-23Enable prometheus by default in policy-papa.sreekumar1-1/+2
Change-Id: Id75de7a8c02531acb9c461e917be971feca94ffd Issue-ID: POLICY-3538 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-08-17Update Policy Components not to create tablesktimoney1-3/+3
Issue-ID: POLICY-3488 Change-Id: I945a19eb6bd7b943adaedc1ea836ec6030c9b001 Signed-off-by: ktimoney <kevin.timoney@est.tech>
2021-08-10Merge "Update postman collection for pap api's"Ajith Sreekumar1-9/+49
2021-08-09Update postman collection for pap api'sRam Krishna Verma1-9/+49
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>
2021-08-09use url resource for docker-tag -- papTaka Cho1-18/+4
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>
2021-08-05Use lombok in papRam Krishna Verma3-41/+6
Issue-ID: POLICY-3399 Change-Id: I839f67ff02fdabcb4012a340f7a6a7528dc107e5 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-08-03Update query params in audit api'sRam Krishna Verma2-35/+35
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>
2021-07-30Add time ranges to PAP statistics APIJim Hahn2-37/+127
Issue-ID: POLICY-3511 Change-Id: Ifc91e4732b3574da37f55658b23faf8a9f8091f5 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-30Merge "Fix swagger tags in controllers"Jim Hahn9-22/+22
2021-07-29Add audit api's to postman collectionRam Krishna Verma1-5/+270
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>
2021-07-29Fix swagger tags in controllersRam Krishna Verma9-22/+22
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>
2021-07-29Merge "Add datetime format to audit api's"Ajith Sreekumar2-68/+138
2021-07-28Add datetime format to audit api'sRam Krishna Verma2-68/+138
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>
2021-07-28Remove statistics record limits from PAPJim Hahn2-42/+17
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>
2021-07-22Add apis for policy auditRam Krishna Verma6-1/+713
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>
2021-07-21Merge "Use docker registry properties in pap"Ajith Sreekumar1-2/+1
2021-07-20Use docker registry properties in papJim Hahn1-2/+1
Issue-ID: POLICY-3374 Change-Id: Ibc4fe79ec588d5b7342d8d667d51d8b5662fd031 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-19Use new RestClientParameters class in PAPJim Hahn4-14/+14
Replaced generic BusTopicParams with more specific RestClientParameters. Issue-ID: POLICY-3456 Change-Id: Ic1a3acca5b651730fc74332c2c5d5bc36bccb790 Signed-off-by: Jim Hahn <jrh3@att.com>