ric-plt/a1.git
17 months agoUT for Get Policy instance Meta data 72/9972/3
naman.gupta [Tue, 6 Dec 2022 15:07:38 +0000 (20:37 +0530)]
UT for Get Policy instance Meta data

UT for Get Policy instance Meta data

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I530e8284eb2480c90f9d533a51ca2143d77c342c

17 months agoUT for GetAllPolicyIntances 71/9971/3
naman.gupta [Tue, 6 Dec 2022 15:02:58 +0000 (20:32 +0530)]
UT for GetAllPolicyIntances

UT for GetAllPolicyIntances

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I0b2cf8457bb8b3d4562b078d0b5c81c27cc24d16

17 months agoUT for SetPolicyInstanceStatus 70/9970/2
naman.gupta [Tue, 6 Dec 2022 14:59:18 +0000 (20:29 +0530)]
UT for SetPolicyInstanceStatus

UT for SetPolicyInstanceStatus

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: Ibd6e6490d51f7516eac1d2aae01da38a73682bbd

17 months agoRMR handler for A1-EI Job Creation 32/9932/7
naman.gupta [Sat, 3 Dec 2022 15:57:36 +0000 (21:27 +0530)]
RMR handler for A1-EI Job Creation

RMR handler for A1-EI Job Creation (messagetype 20015)

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I091bf291fe83600cece54f520315b9d024854976

17 months agoUpdating go.mod and go.sum 98/9898/6
naman.gupta [Thu, 1 Dec 2022 15:37:41 +0000 (21:07 +0530)]
Updating go.mod and go.sum

Updating go.mod and go.sum

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I7e37ba248c0f7aeaef063fd37e01e842cda2d9dc

17 months agoRMR handler for A1-EI Query all 96/9896/6
naman.gupta [Thu, 1 Dec 2022 13:19:35 +0000 (18:49 +0530)]
RMR handler for A1-EI Query all

RMR handler for A1-EI Query all (messagetype 20013)

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I2732c3fd8c2e66e01cd37658cb06fa9ea697c09d

17 months agoRMR handler for A1 policy query 79/9879/9
naman.gupta [Wed, 30 Nov 2022 17:33:35 +0000 (23:03 +0530)]
RMR handler for A1 policy query

RMR handler for A1 policy query(messagetype 20012) to xapp

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I7b2a031cf19d8a140f294c4c42647a4582ba0133

17 months agoRMR handler for A1 policy response 76/9876/9
naman.gupta [Wed, 30 Nov 2022 09:51:16 +0000 (15:21 +0530)]
RMR handler for A1 policy response

RMR handler for A1 policy response(messagetype 20011) to xapp

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I8bd0d6065e450185fd88e243bc06225deb5a1656

18 months agoImplement Health Check Api. 94/9694/1
naman.gupta [Thu, 17 Nov 2022 12:50:03 +0000 (18:20 +0530)]
Implement Health Check Api.

Implement Health Check Api.

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: Id091fa42eb6df5995f9d5d3995a075a59bb827f9

18 months agoInstalling Go and the RMR library in the image 95/9595/2
naman.gupta [Fri, 11 Nov 2022 09:01:57 +0000 (14:31 +0530)]
Installing Go and the RMR library in the image

Installing Go and the RMR library in the image.

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I443751f06ea77a7cad0255995e5200a3027f2a25

18 months agoImplementation of A1-EI data delivery API 34/9534/3
naman.gupta [Tue, 8 Nov 2022 14:22:05 +0000 (19:52 +0530)]
Implementation of A1-EI data delivery API

Implementation of A1-EI data delivery API which gets data related to ei
job and sends to xapp

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I80c0f744519e29978c99262caaad6b5e968316e5

18 months agoDelete Policy Instance API feature. 69/9469/4
naman.gupta [Wed, 2 Nov 2022 16:15:05 +0000 (21:45 +0530)]
Delete Policy Instance API feature.

Implementation of Deletion of Policy Instance API

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: Id20356cd9fa8d9138d965e96d23de4e76b8c98be

18 months agoMessage creation based on different operation 31/9431/3
naman.gupta [Sun, 30 Oct 2022 16:20:52 +0000 (21:50 +0530)]
Message creation based on different operation

Message creation based on different operation like creation , deletion

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I59398661ae31330769f1391de786134f9a5904ce

18 months agoImplemented Retrieval of Policy instance status 01/9401/7
naman.gupta [Wed, 26 Oct 2022 09:08:04 +0000 (14:38 +0530)]
Implemented Retrieval of Policy instance status

Implemented Get Policy instance status API and resolving issue of python
build error in a1 python implementation.

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I1cd0cf9ad9518e31b9e0d90fddc56f85cd5848d6

18 months agoDelete Policy Type Api 96/9296/4
naman.gupta [Mon, 17 Oct 2022 18:55:14 +0000 (00:25 +0530)]
Delete Policy Type Api

Delete policy type APi implementation.

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I321ff0e5470b26a39a019cf6ca91d9dc1b5f9ad2

18 months agoA1 to send policy instance data via RMR 95/9295/3
naman.gupta [Mon, 17 Oct 2022 18:44:49 +0000 (00:14 +0530)]
A1 to send policy instance data via RMR

Enabling a1 to send policy instance data to xapps which subscribed to
the message type via RMR

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: Ib5feab97ae8e538f792a13fafc5705c845b433a4

19 months agoFix patch apply changes 60/9160/3
naman.gupta [Mon, 3 Oct 2022 10:35:10 +0000 (16:05 +0530)]
Fix patch apply changes

Fixing typos error caused while applying patch

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I20c9d4e6c37de746195105d00b69cff03cb40c40

19 months agoFix UT and change function to private 14/9114/8
Naman Gupta/Single vRAN Call Control /SRI-Bangalore/Engineer/Samsung Electronics [Tue, 27 Sep 2022 05:02:15 +0000 (10:32 +0530)]
Fix UT and change function to private

Fix UT and change function to private

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: Id045e21945249764ad31d2417e11288fee5f870b

21 months agoMerge "Storing metadata for Policy Instance."
subhash kumar singh [Thu, 4 Aug 2022 07:10:21 +0000 (07:10 +0000)]
Merge "Storing metadata for Policy Instance."

21 months agoStoring metadata for Policy Instance. 25/8825/2
naman.gupta [Wed, 3 Aug 2022 11:07:44 +0000 (16:37 +0530)]
Storing metadata for Policy Instance.

Storing metadata for Policy Instance in order to handle policy status.

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I773abbb07d2c2b719acec81be17580171d1833e1

23 months agoF release step 2 of 2 88/8588/1 f-release
czichy [Thu, 16 Jun 2022 13:25:06 +0000 (16:25 +0300)]
F release step 2 of 2

Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: Ie539fdcc377b01cdb46c01a23d3b07ddc3152687

23 months agoF release step 1 of 2 83/8583/1 2.5.2
czichy [Thu, 16 Jun 2022 12:12:05 +0000 (15:12 +0300)]
F release step 1 of 2

Repeating the step because there were wrong version numbers
in earlier releases.

Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: I555431dbcfdd69d12c985de491d5dc56039dc7b1

23 months agoF release step 1 of 2 76/8576/1
czichy [Thu, 16 Jun 2022 10:22:30 +0000 (13:22 +0300)]
F release step 1 of 2

Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: I0b7c14936044d74b1cc7dee723e4c86992d7a784

23 months agoError handling in get all policy instance api 06/8406/3
naman.gupta [Wed, 25 May 2022 18:01:47 +0000 (23:31 +0530)]
Error handling in get all policy instance api

Error handling in get all policy instance api

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I773abbb07d2c2b719acec81be17580171d1833c1

2 years agoGet All Policy Type Instance 50/8150/2
naman.gupta [Thu, 5 May 2022 10:29:51 +0000 (15:59 +0530)]
Get All Policy Type Instance

Api for Get All Policy Type Instance

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Issue-ID: RIC-831
Change-Id: I649dd94059263244645e7a8236ad058c3f0ef26e

2 years agoGet Policy Type Instance 35/8135/1
naman.gupta [Mon, 2 May 2022 10:04:31 +0000 (15:34 +0530)]
Get Policy Type Instance

Api for Get Policy Type Instance

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Issue-ID: RIC-831
Change-Id: I649dd94059263244645e7a8236ad058c3f0bf86e

2 years agoCreation of Policy Type Instance 27/8127/5
naman.gupta [Tue, 26 Apr 2022 16:29:05 +0000 (21:59 +0530)]
Creation of Policy Type Instance

Api for Creation of Policy Type Instance

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I649dd94059263244645e7a8236ad058c3f0af56f

2 years agoTestcase for Get policy type from policy id 20/7920/2
naman.gupta [Thu, 10 Mar 2022 09:42:05 +0000 (15:12 +0530)]
Testcase for Get policy type from policy id

Testcase for Get policy type from policy id

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Issue-ID: RIC-831
Change-Id: I41bafaf5553d4aae95d6a7ce3bca1b4745254678

2 years agoGet Policy type Schema from policy id 34/7834/2
naman.gupta [Thu, 24 Feb 2022 09:11:55 +0000 (14:41 +0530)]
Get Policy type Schema from policy id

Get Policy type schema from policy id

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I649dd94059263244645e7a8236ad058c3f0ed26f

2 years agoTestcase for Policy type Creation 30/7830/2
naman.gupta [Wed, 23 Feb 2022 06:14:43 +0000 (11:44 +0530)]
Testcase for Policy type Creation

Testcase for Policy type Creation

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I649dd94059263244645e7a8236ad058c3f0ef25f

2 years agoCreation of Policy Type Schema 89/7789/5
naman.gupta [Fri, 18 Feb 2022 12:33:36 +0000 (18:03 +0530)]
Creation of Policy Type Schema

Api for Creation of Policy Type Schema

Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I649dd94059263244645e7a8236ad058c3f0df95f

2 years agoChanging log severity level in case of liveness/readiness issues 47/7547/1
wahidw [Wed, 12 Jan 2022 06:18:20 +0000 (06:18 +0000)]
Changing log severity level in case of liveness/readiness issues

Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: I649dd94059263244645e7a8236ad058c3f0df55d

2 years agoRelease ric-plt/a1 26/7226/1 e-release
wahidw [Fri, 3 Dec 2021 11:50:07 +0000 (11:50 +0000)]
Release ric-plt/a1

Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: Ifc4882a84a1766b70e077655af23ce51bd3a0166

2 years agoUpdate RMR to v4.8.0 20/7220/1 2.5.1
wahidw [Fri, 3 Dec 2021 10:29:52 +0000 (10:29 +0000)]
Update RMR to v4.8.0

Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: I2cd162b76921948bf4a1fd68cdc01b7b45e51e90

2 years agoupdating to ubuntu20 42/7042/1
wahidw [Fri, 12 Nov 2021 09:54:20 +0000 (09:54 +0000)]
updating to ubuntu20

Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: I424291b4957e95298cfb16847ff3135d8a5dc502

2 years agoDocker build file for a1 mediator 49/6949/1
subhash kumar singh [Wed, 27 Oct 2021 11:58:34 +0000 (11:58 +0000)]
Docker build file for a1 mediator

Provide docker build file for a1 mediator.
Also fixes the test cases.

Issue-ID: RIC-831
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Change-Id: I60aed9a85ea3bb9b9085bdc3016fc9f277cec139

2 years agoLoggin using MDCLogger 39/6939/2
subhash kumar singh [Tue, 26 Oct 2021 12:14:26 +0000 (12:14 +0000)]
Loggin using MDCLogger

This commit includes:
* Enabled logging using MDCLogger.
* Test case updates.
* Addition of go.sum.

Issue-ID: RIC-831
Change-Id: I4d9fb56acd7f0c5d0bd4f4ae79c851a2d6735e6c
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
2 years agoUpdate module name 29/6829/3
subhash kumar singh [Thu, 7 Oct 2021 12:28:25 +0000 (12:28 +0000)]
Update module name

Update module name to gerrit.o-ran-sc.org/r/ric-plt/a1.

Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Issue-ID: RIC-831
Change-Id: I8b13da174fbb5914cadd399fd05d24523788bc46

2 years agoInitial code for the a1 implementation for go 10/6810/1
subhash kumar singh [Thu, 30 Sep 2021 19:07:18 +0000 (19:07 +0000)]
Initial code for the a1 implementation for go

This patch sets up initial repo structure for a1 mediator in go.
Mainly this patch contains swagger file "api/swagger.yaml" to represent
a1 interface APIs.

Swagger tool is used to generate the models which are required for the
exposing the the APIs.

Current patch contains one API implemented for querying policy instance
with UT (pkg/restful pkg/resthooks).

Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Issue-ID: RIC-831
Change-Id: I41bafaf5553d4aae95d6a7ce3bca1b4745254638

2 years agoRename A1 policy metrics 86/6586/6
Mohamed Abukar [Tue, 10 Aug 2021 06:46:03 +0000 (06:46 +0000)]
Rename A1 policy metrics

Change-Id: I580c6c8f1b99dd4bf66f084cc43d87a0e9edbd7a
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
2 years agoRelease image v2.5.0 80/6380/1 dawn
subhash kumar singh [Tue, 22 Jun 2021 18:56:55 +0000 (00:26 +0530)]
Release image v2.5.0

Release image v2.5.0 for a1.

Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Change-Id: If83a7f92b4930c9ea21181bf3403b2914e1452a6

2 years agoUpdate release notes for Dawn release 79/6379/1 2.5.0
subhash kumar singh [Tue, 22 Jun 2021 18:34:46 +0000 (00:04 +0530)]
Update release notes for Dawn release

Update release notes for Dawn release.

Change-Id: I8fae7c903a7a33f2bb0b8c64fcae162a0afe7e1e
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
2 years agoMDC Dynamic log level changes for a1mediator 65/6365/2
rangajal [Mon, 21 Jun 2021 17:39:53 +0000 (17:39 +0000)]
MDC Dynamic log level changes for a1mediator

Change-Id: Ie5a3803dd413693cfd217c4de8402a5db6d27141
Signed-off-by: rangajal <ranjit.angajala@nokia.com>
2 years agoUpgrade used ricxappframe to version 2.0.0 20/6320/1
Timo Tietavainen [Tue, 15 Jun 2021 05:22:32 +0000 (08:22 +0300)]
Upgrade used ricxappframe to version 2.0.0

Update XAPP-FRAME-PY version to 2.0.0 what utilizes latest SDL version 3.0.0
and includes implementation for the Xapp registration/deregistration to RIC.
Issue-ID: RIC-699
Issue-ID: RIC-795
Issue-ID: RIC-706

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I0facd770e1208739dd57f903407b0f2f125d2a77

2 years agoAdding note on who approved committer 03/6303/1
czichy [Fri, 11 Jun 2021 12:16:19 +0000 (15:16 +0300)]
Adding note on who approved committer

I added a note that shows who was actually
approving this committer change in the mailing
list.

Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: I80a567f38f12db76b78dd80ef24828389166592c

2 years agoFix subscription id before data delivery 39/6239/1
subhash kumar singh [Sun, 6 Jun 2021 20:01:55 +0000 (01:31 +0530)]
Fix subscription id before data delivery

Fix subscription id before data delivery.

Issue-ID: RIC-129
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Change-Id: I1523ed7db301d98fb40f2d48d5acc8e831094d2d

2 years agoAdding Naman and removing Rahul 15/6215/1
czichy [Thu, 3 Jun 2021 10:27:47 +0000 (13:27 +0300)]
Adding Naman and removing Rahul

Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: Ic0b02b11acf34ca9e647cda7815865eaa2bc27f9

2 years agoA1 Mediator enhancements for A1-EI 33/6133/5
subhash kumar singh [Tue, 25 May 2021 06:59:23 +0000 (06:59 +0000)]
A1 Mediator enhancements for A1-EI

Implementation to support A1-EI interface defined at nonRT RIC (ECS
service). This process include three steps :

* query A1-EI types
* create A1-EI Job
* handle data delivered from A1-EI producer

Issue-ID: RIC-129
Change-Id: I552569b01e8d31c056b336bafe787f7c380aace5
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
3 years agoBase docker image on ubuntu 74/6074/2
E. Scott Daniels [Thu, 13 May 2021 13:12:28 +0000 (09:12 -0400)]
Base docker image on ubuntu

The use of alpine as a base for images has been strongly discouraged
and thus this change drprecates the original Dockerfile (moving it to
Dockerfile_alpine) and creates a new, Ubuntu 18.04 based, Dockerfile
in its place.

The change also bumps the RMR version to the latest (4.7.4)

Issue-ID: RIC-787

Signed-off-by: E. Scott Daniels <daniels@att.com>
Change-Id: I8208eeb3720c90311b3e474554f9f0dfd10e9b8b

3 years agoUpdating RMR to v4.5.2 89/5589/2
wahidw [Thu, 4 Feb 2021 10:35:14 +0000 (10:35 +0000)]
Updating RMR to v4.5.2

Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: I2ee516dd27662be9d8336b0b73d9275a69c434b0
Signed-off-by: wahidw <abdulwahid.w@nokia.com>
3 years agoRelease the image 81/5281/1
E. Scott Daniels [Tue, 8 Dec 2020 18:57:14 +0000 (13:57 -0500)]
Release the image

Issue-ID: RIC-721

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I616026492da22448f001acd9fed46b6196f2113c

3 years agoReference current RMR version (4.4.6) in image 77/5277/1 2.4.0
E. Scott Daniels [Tue, 8 Dec 2020 15:01:52 +0000 (10:01 -0500)]
Reference current RMR version (4.4.6) in image

This change references the builder image which contains
RMR version 4.4.6.

Issue-ID: RIC-721

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I0669ec30c35a796be1800dd31e30c7ebd28a9486

3 years agoRemoving one and adding 2 committers 38/5238/2
czichy [Fri, 4 Dec 2020 13:50:24 +0000 (15:50 +0200)]
Removing one and adding 2 committers

Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: Iff0c59a87533af3a71a7d348e39c08d061a55eb0

3 years agoProvide coverage location to tox for unit test 61/4861/2
E. Scott Daniels [Mon, 19 Oct 2020 18:13:40 +0000 (14:13 -0400)]
Provide coverage location to tox for unit test

The tox config file has been updated to provide a directory
for unit test coverage info.

Issue-ID: RIC-659

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ia6aef81cbf9c6ab563fc6e776be093e55548c80b

3 years agoSend POLICY_UPDATE when updating existing policy instance 31/4831/3
Abukar Mohamed [Mon, 12 Oct 2020 05:22:42 +0000 (05:22 +0000)]
Send POLICY_UPDATE when updating existing policy instance

Change-Id: I01c2e717eec96cb212e6a6f4bdddfa9931fe4385
Signed-off-by: Abukar Mohamed <abukar.mohamed@nokia.com>
3 years agoRemoving Tommy as committer 67/4067/1 bronze
czichy [Thu, 11 Jun 2020 11:54:05 +0000 (14:54 +0300)]
Removing Tommy as committer

Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: Id162baee7380df1a006328f1c18d2f98f8b7da85

3 years agoAdd Prometheus metrics and query endpoint 81/3881/5
Lott, Christopher (cl778h) [Wed, 27 May 2020 19:56:20 +0000 (15:56 -0400)]
Add Prometheus metrics and query endpoint

Extend controller with counters to measure activity
Add /a1-p/metrics endpoint to expose measures in Prometheus format
Document new environment variable prometheus_multiproc_dir

Issue-ID: RIC-353
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I44bc5346b627b27ba5b344187223dd0323b32a2c

3 years agoExtend user guide with southbound API details 72/3872/2
Lott, Christopher (cl778h) [Wed, 27 May 2020 13:45:49 +0000 (09:45 -0400)]
Extend user guide with southbound API details

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I66b9603eb70ad41841a06e43e4d48a70dcb9768f

3 years agoRelease A1 at version 2.1.9 55/3855/2
Lott, Christopher (cl778h) [Tue, 26 May 2020 19:43:13 +0000 (15:43 -0400)]
Release A1 at version 2.1.9

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: If4018d40dc954c66c7e780406f002a9376c3b28b

3 years agoExtend send-message methods to log message state 56/3856/1 2.1.9
Lott, Christopher (cl778h) [Tue, 26 May 2020 20:13:43 +0000 (16:13 -0400)]
Extend send-message methods to log message state

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I77b2fe8abeda75faa8e949ba759a9e1f16d0f3b5

3 years agoRepair send-message methods for free and retry 52/3852/4
Lott, Christopher (cl778h) [Tue, 26 May 2020 17:31:48 +0000 (13:31 -0400)]
Repair send-message methods for free and retry

* Fix _send_msg method to free allocated RMR message buffers
* Adjust send-message methods to retry only on RMR_ERR_RETRY
* Use constants from ricxappframe.rmr instead of hardcoded strings
* Upgrade RMR to version 4.0.5
* Upgrade tavern to version 1.2.2
* Bump version to 2.1.9

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I9a68727a24c27b2df2a03a14d7570308e3f19d7a

4 years agoAdd bumpversion config for bumping versions 72/3572/1
Lott, Christopher (cl778h) [Mon, 4 May 2020 13:39:20 +0000 (09:39 -0400)]
Add bumpversion config for bumping versions

Document how to bump A1 Mediator version, and automate it with the
bumpversion utility.  Have missed a file too many times recently,
this automation should reduce the number of mistakes I commit.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I2cc0e88e109253a1adfbe793238f2d2c7485df18

4 years agoRelease A1 at version 2.1.8 54/3554/1
Lott, Christopher (cl778h) [Thu, 30 Apr 2020 17:56:59 +0000 (13:56 -0400)]
Release A1 at version 2.1.8

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Ic323853a1e84bdbe6f6838d7aaf5dc5f73d1ad7b

4 years agoBump A1 version to 2.1.8 in prep for release 53/3553/1
Lott, Christopher (cl778h) [Thu, 30 Apr 2020 17:58:38 +0000 (13:58 -0400)]
Bump A1 version to 2.1.8 in prep for release

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I461281074618a580b45c9358cabe722a602cdd12

4 years agoUpgrade integration tests to Tavern v1.0.0 51/3551/3 2.1.8
Lott, Christopher (cl778h) [Thu, 30 Apr 2020 15:54:59 +0000 (11:54 -0400)]
Upgrade integration tests to Tavern v1.0.0

Change all response checks from 'body' to 'json'
and add matchers for response body entries.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I0f8eabbd2d01d645ca1c6dae4d20db5bb233370a

4 years agoRevise custom exceptions to require a message 43/3543/2
Lott, Christopher (cl778h) [Thu, 30 Apr 2020 13:38:35 +0000 (09:38 -0400)]
Revise custom exceptions to require a message

Reduce code redundancy in controller exception handling.
Raise exception on ID mismatch in create policy type request.
Add test of ID mismatch case.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I2c020f41d65b7ddadd71185fafb16cf2c4557a88

4 years agoAdd USE_FAKE_SDL to mock the data storage layer 37/3537/1
Lott, Christopher (cl778h) [Wed, 29 Apr 2020 20:50:06 +0000 (16:50 -0400)]
Add USE_FAKE_SDL to mock the data storage layer

This new environment variable in the Dockerfile exposes existing
functionality in the data module. Default is False, the current behavior.
Set to True to work with A1 Mediator standalone.

Issue-ID: RIC-351
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I7efbe325e3c9536181c95eec63662d7a98a29ff4

4 years agoExtend Dockerfile and improve documentation 36/3536/4
Lott, Christopher (cl778h) [Wed, 29 Apr 2020 19:23:28 +0000 (15:23 -0400)]
Extend Dockerfile and improve documentation

Bump version to 2.1.8.
No functional changes to A1 behavior.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I4486b5bec68017a3c94f13c7d1a53977a0ef9940

4 years agoMerge "Release A1 mediator at 2.1.7 using RMR 4.0.2"
Scott Daniels [Tue, 28 Apr 2020 16:40:34 +0000 (16:40 +0000)]
Merge "Release A1 mediator at 2.1.7 using RMR 4.0.2"

4 years agoBump container tag version string to 2.1.7 11/3511/1
Lott, Christopher (cl778h) [Tue, 28 Apr 2020 15:17:03 +0000 (11:17 -0400)]
Bump container tag version string to 2.1.7

Also remove spaces in PDF file names

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I9b0d9cd6a4610036dba5c5cb2cc8a99a11422ed9

4 years agoRelease A1 mediator at 2.1.7 using RMR 4.0.2 08/3508/1
Lott, Christopher (cl778h) [Tue, 28 Apr 2020 14:58:39 +0000 (10:58 -0400)]
Release A1 mediator at 2.1.7 using RMR 4.0.2

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Ic1972370d698d9bf1baa3bb36f1e3748b513d72b

4 years agoUpgrade A1 to use RMR library version 4.0.2 93/3493/4 2.1.7
Lott, Christopher (cl778h) [Mon, 27 Apr 2020 21:25:05 +0000 (17:25 -0400)]
Upgrade A1 to use RMR library version 4.0.2

This picks up a fix to dynamic route-table distribution features.
Drop mention of ricmanifest from the installation guide.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I7e91b9bd4e7ee1eb8a2efb5056218c4d9c31dc3f

4 years agoRepair A1 integration tests 54/3454/7
Lott, Christopher (cl778h) [Fri, 24 Apr 2020 15:52:42 +0000 (11:52 -0400)]
Repair A1 integration tests

Correct COPY command in Dockerfiles to get all files for RMR, not just one.
Pin the version of tavern to 0.34.0, because the latest (1.0.0) changed
the required format of the test-spec file and rejects this one.
Add delay before test AC policy status get to increase chance of success.
Adjust tox ini file for shell-script path and to be a bit more verbose.
Bump version in the a1 chart to 2.1.7.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I96dc018aa80e6bfcbf9c28068129e6cca1611d15

4 years agoExtend exception handler to report details 88/3488/3
Lott, Christopher (cl778h) [Mon, 27 Apr 2020 14:45:47 +0000 (10:45 -0400)]
Extend exception handler to report details

On failed requests, log and return details in the HTTP error response.
Extend documentation to pull in the OpenAPI specification document.
On store, overwrite ID in body with ID from path to ensure consistency.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I630360bcf90c80b84392c6afb1e59347fccd13ef

4 years agoUpgrade xapp-frame-go module in integration tests 90/3390/2
Lott, Christopher (cl778h) [Wed, 22 Apr 2020 14:54:20 +0000 (10:54 -0400)]
Upgrade xapp-frame-go module in integration tests

Use xapp-frame-go module version 0.4.8 which drops dependency on nng.
Change base builder to stop using deprecated alpine3-go image.
Drop prefix "/go" from dockerfile copy commands.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I9df1dce576b083674290857f1c23d9b3a25ab5c6

4 years agoUpgrade to RMR library version 3.8.0 84/3384/5
Lott, Christopher (cl778h) [Wed, 22 Apr 2020 13:05:32 +0000 (09:05 -0400)]
Upgrade to RMR library version 3.8.0

Pull shared object file from new Alpine3 bldr image in release registry
Bump version to 2.1.7

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I3076b7ab941e0ee6728d4350456c29c931c75088

4 years agoReport python dependencies for CLM analysis 07/2907/10
Lott, Christopher (cl778h) [Sun, 22 Mar 2020 11:29:16 +0000 (07:29 -0400)]
Report python dependencies for CLM analysis

Define new environment 'clm' with command 'pip freeze' to report code
and test dependencies with version strings as installed by tox for
CLM analysis.

Issue-ID: INT-24
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I93ae9a819d98f41bcc0c87a693690f54843b2019

4 years agoAdd missing Alpine packages to build gevent wheel 16/3316/1
Lott, Christopher (cl778h) [Sat, 18 Apr 2020 12:40:00 +0000 (08:40 -0400)]
Add missing Alpine packages to build gevent wheel

Recent change in Gevent version 1.5.0 requires Alpine packages
file, make, libffi-dev to build the wheel.  Repair the broken
build by adding these packages to the Dockerfile. Also see
https://github.com/gevent/gevent/issues/1555

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I5ec970f6f0b5594be5ac9f1abd693df098df749c

4 years agoRelease 216 95/3195/1
Tommy Carpenter [Tue, 7 Apr 2020 14:39:44 +0000 (10:39 -0400)]
Release 216

Issue-ID: RIC-228
Change-Id: Ief0ac73e5c5d09bcd9475f59028e58f8a54180ff
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoMove to ricxappframe rmr, rmr3.6.3 92/3192/2 2.1.6
Tommy Carpenter [Tue, 7 Apr 2020 12:36:42 +0000 (08:36 -0400)]
Move to ricxappframe rmr, rmr3.6.3

Issue-ID: RIC-228
Change-Id: I879d93e111d04e8a382fa0428e3d8b652e57f3a4
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoSmall doc update 29/2929/1
Tommy Carpenter [Mon, 23 Mar 2020 19:00:32 +0000 (15:00 -0400)]
Small doc update

Change-Id: I07469a6f5d257a2143ee9b836902a384c80923d3
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoRelease 2.1.5 03/2903/1
Tommy Carpenter [Fri, 20 Mar 2020 17:20:07 +0000 (13:20 -0400)]
Release 2.1.5

Issue-ID: RIC-156
Change-Id: I2d8292017121f016a6275d9dd3c6de8c9376a780
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoUpdates: 98/2898/4 2.1.5
Tommy Carpenter [Fri, 20 Mar 2020 14:02:46 +0000 (10:02 -0400)]
Updates:

    * Switch to python3.8
    * Switch to SI95 from NNG (rmr v3 vs rmr v1)
    * The switch to SI95 led to a rabbit hole in which we eventually discovered that rmr_send may sometimes block for an arbitrary period of time. Because of this issue, a1's sends are now threaded. Please see the longer comment about this in a1rmr.
    * Bump version of py xapp frame (SDL used only) in A1
    * Bump version of go xapp frame (0.0.24 -> 0.4.2) in integration tests
    * Add some additional logging in A1

Issue-ID: RIC-156
Change-Id: I8ed5356bea60a3ccea6fa2d03981ad634b98bab1
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoMinor fix: use 1.13.1 in Unit test contaiuner. 09/2709/2
Tommy Carpenter [Mon, 9 Mar 2020 13:29:13 +0000 (09:29 -0400)]
Minor fix: use 1.13.1 in Unit test contaiuner.

Change-Id: I8e2265f9eb35fa7d1e746cdc270f1abe3f4f8c77
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoRemove SDLWrapper now that it's in xapp frame. 97/2697/1 2.1.4
Tommy Carpenter [Fri, 6 Mar 2020 14:41:57 +0000 (09:41 -0500)]
Remove SDLWrapper now that it's in xapp frame.

Issue-ID: RIC-228
Change-Id: I1f65d1b5a0029eb544d43c2c9294ef19c07d45d9
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoDrop junit option in pytest and remove pom.xml 90/2690/1
Lott, Christopher (cl778h) [Thu, 5 Mar 2020 15:26:09 +0000 (10:26 -0500)]
Drop junit option in pytest and remove pom.xml

These are not needed by the new tox-sonarqube analysis job, the config
is now in the JJB configuration.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I2a87d0cc3bd9adbd7690b8c35797020bde9a78ef

4 years agoMostly integration test work: 54/2454/16
Tommy Carpenter [Fri, 7 Feb 2020 19:06:20 +0000 (14:06 -0500)]
Mostly integration test work:

    * Switches A1's three test receivers (integration tests) over to golang; this was mostly done to learn the go xapp framework and they are identical in functionality.
    * Upgrades the version of rmr in A1 and all integration receivers to 1.13.*
    * Uses a much fancier Docker build to reduce the size of a1's image. The python:3.7-alpine image itself is 98MB and A1 is now only ~116MB, so we're done optimizing A1's container size.

Issue-ID: RICAPP-61
Change-Id: Ic2004a5b457c55c730575aa8326e61b01e8546da
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoUpdate dep script; no version/code changes 30/2430/1
Tommy Carpenter [Thu, 6 Feb 2020 15:53:22 +0000 (10:53 -0500)]
Update dep script; no version/code changes

(a1 does not even currently use this script, yet. this is mostly
 documentation right now)

Change-Id: Ibe4daef77398bd0ebd3dbf3a44849026df931f05
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoRelease 2.1.2 70/2370/1
Tommy Carpenter [Wed, 29 Jan 2020 15:56:07 +0000 (10:56 -0500)]
Release 2.1.2

Change-Id: I068f85a04727f7998dc4409c4c8f4b01cc4dafa9
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoAdd sdl healthcheck to a1's healthcheck 10/2310/2 2.1.2
Tommy Carpenter [Wed, 22 Jan 2020 18:53:34 +0000 (13:53 -0500)]
Add sdl healthcheck to a1's healthcheck

Change-Id: If70e723c32ff7040f8eec71f0bd8bdf078aa5383
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoChange sonar property to reflect new sonar maven plugin 69/2269/2
Tommy Carpenter [Mon, 20 Jan 2020 15:15:36 +0000 (10:15 -0500)]
Change sonar property to reflect new sonar maven plugin

Change-Id: I3e73d2b858d89db71c026dd288b1c8e029e5a081
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoMerge "Cleanups only (no code changes)"
Chris Lott [Thu, 16 Jan 2020 16:38:06 +0000 (16:38 +0000)]
Merge "Cleanups only (no code changes)"

4 years agoCleanups only (no code changes) 56/2256/1
Tommy Carpenter [Thu, 16 Jan 2020 16:23:02 +0000 (11:23 -0500)]
Cleanups only (no code changes)

Documentation/comment/whitespace changes
Also updates the helm commands in the int tests to helm v3

Change-Id: I54bfd44a8e2a4bd1f79e300c32b18b8a0abfc635
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoRelease 2.1.1 24/2224/1
Tommy Carpenter [Tue, 14 Jan 2020 15:35:15 +0000 (10:35 -0500)]
Release 2.1.1

Change-Id: I7c84572bdbccab25f8e234fd12185203328a9451
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoUpgrade to SDL 2.0.2 00/2200/3 2.1.1
Tommy Carpenter [Mon, 13 Jan 2020 14:51:27 +0000 (09:51 -0500)]
Upgrade to SDL 2.0.2

* Upgrades from sdl 1.0.0 to 2.0.2
* Delete a1test_helpers because SDL 2.0.2 provides the mockup we need
* Remove general catch all from A1

Change-Id: Ic130c524d110830c7f0ef3716991ae4a8ff87f5a
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoA1 v2.1.0 43/2143/10 2.1.0
Tommy Carpenter [Thu, 2 Jan 2020 19:38:21 +0000 (14:38 -0500)]
A1 v2.1.0

* Represents a resillent version of 2.0.0 that uses Redis for persistence
* Now relies on SDL and dbaas; SDL is the python interface library to dbaas
* Adds a 503 http code to nearly all http methods, as A1 now depends on an upstream system
* Integration tests have a copy of a dbaas helm chart, however the goal is to simplify that deployment per RIC-45
* Unit tests have a mockup of SDL, however again the goal is to simplify as SDL grows per RIC-44

Change-Id: I703a60788c98dc81218dbe5275fb3899635ec26d
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoAdd one point to release notes 21/2021/1
Tommy Carpenter [Fri, 13 Dec 2019 14:11:11 +0000 (09:11 -0500)]
Add one point to release notes

Change-Id: I32f8efd9d7be8a6266b1ee732cc9a7c8cd2bfa4d
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoAdd spec differences to documentation. 14/2014/4
Tommy Carpenter [Thu, 12 Dec 2019 14:47:05 +0000 (09:47 -0500)]
Add spec differences to documentation.

Change-Id: I74407119d390991e26bfefc030b1c7591a64d7bb
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoRelease 2.0.0 87/1987/2
Tommy Carpenter [Tue, 10 Dec 2019 14:25:50 +0000 (09:25 -0500)]
Release 2.0.0

Signed-off-by: Tommy Carpenter <tc677g@att.com>
Change-Id: If5771db62ef494b4e0d360e75f2b928b46eb6c3d

4 years agoA1 2.0.0: 07/1907/13 2.0.0
Tommy Carpenter [Mon, 2 Dec 2019 16:02:01 +0000 (11:02 -0500)]
A1 2.0.0:

    * Implements new logic around when instances are deleted. See flowcharts in docs/. Basically timeouts now trigger to actually delete instances from a1s database, and these timeouts are configurable.
    * Eliminates the barrier to deleting an instance when no xapp evdr replied (via timeouts)
    * Add two new ENV variables that control timeouts
    * Make unit tests more modular so new workflows can be tested easily
    * Fixes the API for ../status to return a richer structure. This is an (albeit tiny) API change.
    * Clean up unused items in the integration tests helm chart
    * Removed "RMR_RCV_RETRY_INTERVAL" leftovers since this isn't used anymore
    * Uses the standard RIC logging library
    * Switch the backend routing scheme to using subscription id with constant message types, per request.
    * Given the above, policy type ids can be any valid 32bit greater than 0
    * Decouple the API between northbound and A1 from A1 with xapps. This is now two seperate OpenAPI files
    * Update example for AC Xapp
    * Updgrade rmr and rmr-python to utilize new features; lots of cleanups because of that

Change-Id: Ie7812607244cbcc484fe14c60fe27371e7e65082
Signed-off-by: Tommy Carpenter <tc677g@att.com>