ric-plt/a1.git
4 years agoFix changelog links and titles 77/1677/1 Amber
Tommy Carpenter [Tue, 19 Nov 2019 20:04:47 +0000 (15:04 -0500)]
Fix changelog links and titles

Change-Id: Ic7412edad6e441062af7ea1afe3adf672454519d
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoUpdate doc styling only. 73/1673/2
Tommy Carpenter [Tue, 19 Nov 2019 18:13:40 +0000 (13:13 -0500)]
Update doc styling only.

Change-Id: Idcf19369a9a0bbd270b97e5080d95d2551fb9a2a
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoAdd some documentation only. 64/1664/3
Tommy Carpenter [Tue, 19 Nov 2019 14:35:23 +0000 (09:35 -0500)]
Add some documentation only.

Change-Id: I375509c42b79028ec828b8062f1ebaff8fb3451a
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoAutomation adds INFO.yaml 25/1425/2
Aric Gardner [Fri, 8 Nov 2019 15:57:42 +0000 (15:57 +0000)]
Automation adds INFO.yaml

Change-Id: I13742539445eb66cb152c2faf3261e98fd9643d2
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
4 years agoFollow docs instructions. 78/1378/2
Tommy Carpenter [Wed, 6 Nov 2019 12:27:16 +0000 (07:27 -0500)]
Follow docs instructions.

Change-Id: If54c641be966dc01798a9815d9f82d184ada8452
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoThreading pt3: 20/1220/5 1.0.4
Tommy Carpenter [Thu, 24 Oct 2019 14:13:54 +0000 (10:13 -0400)]
Threading pt3:

* Only external change here is to healthcheck the rmr thread as part of a1s healthcheck. k8s will now respin a1 if that is failing.
* Refactors (simplifies) how we wait for rmr initialization; it is now called as part of __init__
* Refactors (simplifies) how the thread is actually launched; it is now internal to the object and also a part of __init__
* Cleans up unit testing; a1rmr now exposes a replace_rcv_func; useful for unit testing, harmless if not called otherwise
* Upgrades to rmr-python 1.0.0 for simpler message allocation

Change-Id: I7106f8f35e94ba1c638d782609974bf4d4ba7c22
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoThreading pt 2 (of 3, likely) 93/1193/5 1.0.3
Tommy Carpenter [Mon, 21 Oct 2019 20:07:31 +0000 (16:07 -0400)]
Threading pt 2 (of 3, likely)

* Move database cleanup (e.g., deleting instances based on statuses) into the polling loop
* Rework how unit testing works with the polling loop; prior, exceptions were being thrown silently from the thread but not printed. The polling thread has now been paramaterized with override functions for the purposes of testing
* Make type cleanup more efficient since we know exactly what instances were touched, and it's inefficient to iterate over all instances if they were not
* Bump rmr-python version, and bump rmr version
* Still an item left to do in this work; refactor the thread slightly to tie in a healthcheck with a1s healthcheck. We need k8s to restart a1 if that thread dies too.

Change-Id: Ia7c4f29c9fd4de4287f17ec0d88c6129a06a5a87
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoThreading pt 1 77/1177/5 1.0.2
Tommy Carpenter [Thu, 17 Oct 2019 17:35:59 +0000 (13:35 -0400)]
Threading pt 1

* a1 now has a seperate, continuous polling thread
  this will enable operations like database cleanup (based on ACKs) and external notifications in real time,
  rather than when the API is invoked
* all rmr send and receive operations are now in this thread
* introduces a thread safe job queue between the two threads
* Not done yet: database cleanups in the thread
* Bump rmr python version

Change-Id: I29ca7843ffe7497c84891920f8aee332ac676591
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoTowards Resiliency. 48/1148/4 1.0.1
Tommy Carpenter [Mon, 14 Oct 2019 20:18:21 +0000 (16:18 -0400)]
Towards Resiliency.

- Moves the "database" access calls to mimic the SDL API, in preparation for moving to SDL.
- Does not yet actually use SDL or Redis, but the transition to those will be much shorter after this change.

Change-Id: I596d06bcf85b6e9d5184d478802da574058c69f9
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoFinal A1 V1.0.0 Release (but 1.1.0 to come) 79/1079/6 1.0.0
Tommy Carpenter [Mon, 7 Oct 2019 15:15:45 +0000 (11:15 -0400)]
Final A1 V1.0.0 Release (but 1.1.0 to come)

- Represents v1.0.0 of the A1 API for O-RAN-SC Release A

Change-Id: I6bd25244ad122fc290e2a2db226bcdf679ff6e46
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoTowards a1 1.0.0: rmr improvements 56/1056/2
Tommy Carpenter [Wed, 2 Oct 2019 15:15:04 +0000 (11:15 -0400)]
Towards a1 1.0.0: rmr improvements

    * Upgrade rmr to 1.9.0
    * Upgrade rmr-python to 0.13.2
    * Use the new helpers module in rmr-python for the rec all functionality
    * Switch rmr mode to a multithreaded mode that continuously reads from rmr and populates an internal queue of messages with a deterministic queue size (2048) which is better behavior for A1
    * Fix a memory leak (python obj is garbage collected but not the underlying C memory allocation)

Change-Id: I0f9cf7943071d6d58aef9c8c8bd86affe9b9223a
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoTowards a1 1.0.0; DELETE, no vector: 21/1021/7
Tommy Carpenter [Thu, 26 Sep 2019 15:14:16 +0000 (11:14 -0400)]
Towards a1 1.0.0; DELETE, no vector:

* Implement instance delete
* Moves away from the status vector and now aggregates statuses
* Pop through a1s mailbox "3x as often"; on all 3 kinds of instance GET since all such calls want the latest information
* Misc cleanups in controller
* Add rmr-version.yaml for CICD jobs

Change-Id: I7290652784b2d6d297dd9e78af3051eba209651c
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoTowards a1 1.0.0; implement missing GETs 95/995/3
Tommy Carpenter [Mon, 23 Sep 2019 13:48:23 +0000 (09:48 -0400)]
Towards a1 1.0.0; implement missing GETs

- Implement GET all policy type ids
- Implement GET all policy instance ids for a policy type
- fix a tiny bug in integration test receiver

Change-Id: I3d60415096a7d8df3392abdcdd100ef47b80ab51
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoUpgrade to rmr which required two changes 89/989/6
Tommy Carpenter [Fri, 20 Sep 2019 14:09:01 +0000 (10:09 -0400)]
Upgrade to rmr which required two changes

    * switch to rmr 1.8.1 to pick up a non blocking variant of rmr that deals with bad routing tables (no hanging connections / blocking calls)
    * improve test receiver to behave with this setup
    * add integration test for this case
    * this also switches past 1.5.x, which included another change that altered the behavior of rts; deal with this with a change to a1s helmchart that causes the sourceid to be set to a1s service name, which was not needed prior
    * improve integration tests overall

Change-Id: I155994b6f512485a5a73fc31923a46d182aeda87
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoFix code coverage in LF 82/982/2
Tommy Carpenter [Thu, 19 Sep 2019 16:27:07 +0000 (12:27 -0400)]
Fix code coverage in LF

This is NOT needed locally, however it also works locally.
This now matches one of my ONAP repos in LF.

Change-Id: I07189f307506e6ec13ec39d7740c0e62862722d8
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoTowards A1 v1.0.0 72/972/6
Tommy Carpenter [Wed, 18 Sep 2019 14:45:50 +0000 (10:45 -0400)]
Towards A1 v1.0.0

- Implement type PUT
- Implement type GET
- Remove RIC manifest
- Read type GET to get schema for instance PUT
- Remove Utils (no longer needed)
- lots more tests

Change-Id: I8facd9fd9d388a9087ba856bf781397397ac2ad3
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoAdd sonar pom and tox hooks. 70/970/1
Tommy Carpenter [Wed, 18 Sep 2019 12:46:55 +0000 (08:46 -0400)]
Add sonar pom and tox hooks.

Rebase sonar (+/951) onto v11.

Change-Id: I21feed13a1007d5e1556afb9eac340f4ea43b0f2
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoTowards release 1.0.0 (for O-RAN A) 55/955/7
Tommy Carpenter [Thu, 12 Sep 2019 20:24:10 +0000 (16:24 -0400)]
Towards release 1.0.0 (for O-RAN A)

- Implement the Release A spec in openapi.yaml
- Rework A1 to follow that spec
- Remove rmr_mapping now that we use policyid as the mtype to send and a well known mtype for the ACKs
- Add the delay receiver test to the tavern integration tests
- Remove unneeded ENV variables from helm charts
- Switch away from builder images to avoid quicksand; upgrade rmr at our own pace

Change-Id: I62de4c7b9b06fbdc309c4c07213b76400036c95e
Signed-off-by: Tommy Carpenter <tc677g@att.com>
4 years agoPrint a terminal coverage report when running tests 04/804/1 r2-temp 0.10.3
Tommy Carpenter [Mon, 26 Aug 2019 14:12:44 +0000 (10:12 -0400)]
Print a terminal coverage report when running tests

Change-Id: I4b5a86c9a89e890b40766013ef366494e8caba83
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoInclude content type in a1 api. Not a change, no version bumps. 81/781/3
Tommy Carpenter [Fri, 23 Aug 2019 00:09:14 +0000 (20:09 -0400)]
Include content type in a1 api. Not a change, no version bumps.

Change-Id: Id570585e2b86160ce443f95db0c0e45d4cdd0097
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoUpgrade to Python RMR ver 0.10.8 61/761/1
Lott, Christopher (cl778h) [Tue, 20 Aug 2019 19:22:45 +0000 (15:22 -0400)]
Upgrade to Python RMR ver 0.10.8

Repair integration tests

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

4 years agoUpdate to later rmr-python 11/711/1 0.10.2
Tommy Carpenter [Wed, 14 Aug 2019 16:51:51 +0000 (12:51 -0400)]
Update to later rmr-python

Change-Id: Id495ae41a780e0c19e71cffea569e896ed6ac865
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoGreatly reduce the size of A1 docker from 1.25GB to 278MB 72/672/1
Tommy Carpenter [Wed, 7 Aug 2019 15:38:44 +0000 (11:38 -0400)]
Greatly reduce the size of A1 docker from 1.25GB to 278MB

Change-Id: I9850d20dc56f4cddfcb5643066ef5eba484148ec
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoRename urls per requirements. 02/602/1
Tommy Carpenter [Wed, 31 Jul 2019 13:38:28 +0000 (09:38 -0400)]
Rename urls per requirements.

Change-Id: Iad5fd80d7d2b0234d61c15c3adbae83e7b62e8b9
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoImplement GET and /healthcheck 39/539/3
Tommy Carpenter [Thu, 18 Jul 2019 20:21:21 +0000 (20:21 +0000)]
Implement GET and /healthcheck

Change-Id: Ia2804306f91e5d877dd51af21ac02d94622a4089
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoFix missing 400 impl, update test manifest 18/518/1
Tommy Carpenter [Tue, 16 Jul 2019 15:25:52 +0000 (11:25 -0400)]
Fix missing 400 impl, update test manifest

Issue-ID: RICPLT-1638
Change-Id: Iff6de7b64a0dd94c6653eff5312ec84c1cf2bced
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoMake an appuser in Dockerfile, dont run as root 09/409/1
Tommy Carpenter [Mon, 24 Jun 2019 18:27:35 +0000 (14:27 -0400)]
Make an appuser in Dockerfile, dont run as root

Change-Id: I0a7493a45a4ab050cda25e9f8e1cb7299d9b2bc3
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoUse "builder image" more appropriately 99/399/1
Tommy Carpenter [Fri, 21 Jun 2019 14:15:15 +0000 (10:15 -0400)]
Use "builder image" more appropriately

Change-Id: I6a9c00fd63a1a87ddf42daa36793c114ebe13a04
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoInstall RMR from deb at version 1.0.36 83/383/2
Lott, Christopher (cl778h) [Wed, 19 Jun 2019 12:29:43 +0000 (08:29 -0400)]
Install RMR from deb at version 1.0.36

No functional change from deb 1.0.34

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

4 years agoUse base Docker image with NNG v1.1.1 73/373/9
Lott, Christopher (cl778h) [Tue, 18 Jun 2019 10:50:13 +0000 (06:50 -0400)]
Use base Docker image with NNG v1.1.1

Install RMr via deb packge from Package Cloud
in all three Dockerfiles
Bump version to 0.8.3.

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

4 years agoMake developer guide docs better RE int testing 75/375/1
Tommy Carpenter [Tue, 18 Jun 2019 13:58:55 +0000 (09:58 -0400)]
Make developer guide docs better RE int testing

Change-Id: Ia74118fcbb30bfb415b2684674a5e1902e7c20d4
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoNo need for two charts for test receivers 24/324/2
Tommy Carpenter [Wed, 12 Jun 2019 13:25:48 +0000 (09:25 -0400)]
No need for two charts for test receivers

Change-Id: Ieb8c7acf57948e3a7bdecbc0fa59bedc20fa0348
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoMerge "Move integration tests to k8s"
Tommy Carpenter [Tue, 11 Jun 2019 17:26:48 +0000 (17:26 +0000)]
Merge "Move integration tests to k8s"

4 years agoMove integration tests to k8s 98/298/2
Tommy Carpenter [Tue, 11 Jun 2019 13:10:23 +0000 (09:10 -0400)]
Move integration tests to k8s

Change-Id: Ia78a484e9f9eea4ace1ef6fa0d8075b872b8f83b
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoAdd readme and metadata, no functional change 75/275/5
Lott, Christopher (cl778h) [Fri, 7 Jun 2019 12:57:58 +0000 (08:57 -0400)]
Add readme and metadata, no functional change

Added top-level README with text from wiki.
Added git attributes file.

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

4 years agoAdd some comments, rmr serv, remove template cruft 82/282/1
Tommy Carpenter [Mon, 10 Jun 2019 13:42:49 +0000 (09:42 -0400)]
Add some comments, rmr serv, remove template cruft

Change-Id: Ia6e80f4c33163a266f6e1b7ba581475aa07132d8
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoAdd helm chart, may need rmr edits 71/271/9
Tommy Carpenter [Tue, 4 Jun 2019 14:20:30 +0000 (10:20 -0400)]
Add helm chart, may need rmr edits

Change-Id: Id1822239494dfa40c35a62b2414652a2a927e5d8
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoFix container tag 62/262/1
Tommy Carpenter [Wed, 5 Jun 2019 16:42:52 +0000 (12:42 -0400)]
Fix container tag

Change-Id: I2dbc78ad5d11d045bb7548c88df535bb3a32a867
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoUpdate rmr due to k8 bug 61/261/1
Tommy Carpenter [Wed, 5 Jun 2019 16:26:07 +0000 (12:26 -0400)]
Update rmr due to k8 bug

Change-Id: I5dbe6525de4b1e811606b16096b7d88859bbd6fb
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoAdd container tag file for Jenkins build job 36/236/1
Lott, Christopher (cl778h) [Sat, 1 Jun 2019 10:56:18 +0000 (06:56 -0400)]
Add container tag file for Jenkins build job

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

4 years agoRun tox in docker build 30/230/1
Tommy Carpenter [Fri, 31 May 2019 14:40:40 +0000 (10:40 -0400)]
Run tox in docker build

Change-Id: I63185e963df2ec19edeebe8d7236bdf2fbc027c9
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoUpdate lic headers, doc titles 19/219/1
Tommy Carpenter [Thu, 30 May 2019 19:06:37 +0000 (15:06 -0400)]
Update lic headers, doc titles

Change-Id: I2818abacc7cf85e12325135c9349a799ae14840f
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
4 years agoInitial commit of A1 17/217/1
Tommy Carpenter [Thu, 30 May 2019 18:33:21 +0000 (14:33 -0400)]
Initial commit of A1

Change-Id: I370944339d0240d5dea4d124a9c9c03ae246020d
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
5 years agoInitial empty repository
Andrew Grimberg [Thu, 21 Mar 2019 23:55:40 +0000 (23:55 +0000)]
Initial empty repository