naman.gupta [Wed, 14 Dec 2022 16:31:50 +0000 (22:01 +0530)]
Updating the Container tag to 3.0.1
Updating the Container tag to 3.0.1
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882fd81e
naman.gupta [Wed, 14 Dec 2022 16:20:10 +0000 (21:50 +0530)]
Fixing A1 healthcheck
Fixing A1 healthcheck.
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de81e
naman.gupta [Tue, 13 Dec 2022 14:48:20 +0000 (20:18 +0530)]
Documentation of curl commands of APIs
Documentation of curl commands of APIs
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de99e
naman.gupta [Tue, 13 Dec 2022 14:11:25 +0000 (19:41 +0530)]
G release
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de97d
naman.gupta [Tue, 13 Dec 2022 12:01:17 +0000 (17:31 +0530)]
Fixing the status of policy instance
Fixing the status of policy instance after recieving the OK status from
southbound message.
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de13f
naman.gupta [Tue, 13 Dec 2022 10:00:14 +0000 (15:30 +0530)]
Fixing the delete policy Instance API
Fixing the delete policy Instance API.
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de32f
naman.gupta [Mon, 12 Dec 2022 12:54:17 +0000 (18:24 +0530)]
Fixing Get policy instance api
Fixing Get policy instance api return type
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de64e
naman.gupta [Mon, 12 Dec 2022 12:04:31 +0000 (17:34 +0530)]
Adding docs and Readme.
Adding docs and Readme.
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de93e
naman.gupta [Mon, 12 Dec 2022 11:46:39 +0000 (17:16 +0530)]
Adding info file.
Adding info file,
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de18e
naman.gupta [Mon, 12 Dec 2022 11:33:19 +0000 (17:03 +0530)]
Files from python version needed from testing.
Adding back files from python version needed from testing.
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de48d
naman.gupta [Mon, 12 Dec 2022 11:28:35 +0000 (16:58 +0530)]
Adding license file
Adding license file
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de98f
naman.gupta [Fri, 9 Dec 2022 07:41:01 +0000 (13:11 +0530)]
Add container tag and Fixing UT and configuration.
Adding Container tag and Fixing UT SetPolicyInstance and fixing Dockerfile for configuration.
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de28f
naman.gupta [Wed, 7 Dec 2022 12:31:24 +0000 (18:01 +0530)]
Replacing a1-python with a1-go implementation
Replacing a1-python with a1-go implementation
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de24a
naman.gupta [Wed, 7 Dec 2022 10:48:18 +0000 (16:18 +0530)]
Moving RMR message reciver into go routine
Moving RMR message reciver into go routine and some typo error
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
Change-Id: I2841b57a9932813366de26318d48d07df7776b3d
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
subhash kumar singh [Thu, 4 Aug 2022 07:10:21 +0000 (07:10 +0000)]
Merge "Storing metadata for Policy Instance."
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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>
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
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
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>
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
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>
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>
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
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
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
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
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>
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
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>
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
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
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
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
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>
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
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
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
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
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
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
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
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
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
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
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
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
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
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"
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
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
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
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
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
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
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
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
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
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>
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>
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>
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>
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>
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>
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>
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