ric-plt/dbaas.git
4 years agoUpdate DBAAS version to 0.4.0 25/3425/1
Timo Tietavainen [Thu, 23 Apr 2020 12:05:41 +0000 (15:05 +0300)]
Update DBAAS version to 0.4.0

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

4 years agoBump docker tag version to 0.4.0 to follow RIC versioning rules 23/3423/1 0.4.0
Timo Tietavainen [Thu, 23 Apr 2020 11:10:39 +0000 (14:10 +0300)]
Bump docker tag version to 0.4.0 to follow RIC versioning rules

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

4 years agoUpgrade base image that builds library for alpine 92/3392/1
Lott, Christopher (cl778h) [Wed, 22 Apr 2020 15:16:05 +0000 (11:16 -0400)]
Upgrade base image that builds library for alpine

Use image bldr-alpine3:10-a3.11-rmr3
Bump docker tag to 0.3.2
No functional changes

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

4 years agoFree resources when 'nget.noatomic' thread terminates 94/3294/2
Heinonen Arvo [Thu, 16 Apr 2020 07:22:31 +0000 (10:22 +0300)]
Free resources when 'nget.noatomic' thread terminates

Call 'pthread_detach' from newly created thread.

Update unit tests to check that 'pthread_detach'
is called.

Update redismodule test container base image to '2-rmr1.13.1'
because '1-rmr1.13.1' no longer exists.

Previously the redismodule command 'nget.noatomic'
started a thread but the started thread was never
cleaned up because by default pthread cleans up
threads only when 'pthread_join' is called.
In case of 'nget.noatomic' the thread from which
'pthread_create' is called terminates immediately
and 'pthread_join' is never called resulting in
a resource leak.
We expect the created thread to be joined.
Therefore we need to call 'pthread_detach' from the
newly created thread which signals to pthread that
the resources allocated by the newly created thread
can be deallocated when the thread terminates.

Signed-off-by: Heinonen Arvo <arvo.heinonen@nokia.com>
Change-Id: If4d076fc4d58f65896638e99948c2d91a0000a9b

4 years agoUpgrade Alpine base builder image 90/2490/4
Lott, Christopher (cl778h) [Wed, 12 Feb 2020 18:37:13 +0000 (13:37 -0500)]
Upgrade Alpine base builder image

Switch from old base builder image with outdated NNG.
Document change in release notes as version 0.3.1.

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

4 years agoUpdate release notes for version 0.3.0 01/2501/2
Heinonen Arvo [Thu, 13 Feb 2020 08:15:00 +0000 (10:15 +0200)]
Update release notes for version 0.3.0

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: I639f2d192747f9458bc56e0ddb88a19175388a61

4 years agoEnable redismodule UT in CI pipeline 57/2357/3
Heinonen Arvo [Thu, 23 Jan 2020 15:35:45 +0000 (17:35 +0200)]
Enable redismodule UT in CI pipeline

Add new build stage to 'Dockerfile.redis'
that runs unit tests with valgrind in ubuntu-based
container.

Also run unit tests without valgrind in the actual
build stage. Valgrind is not run at this stage
because alpine-linux uses musl implementation
of libc which causes valgrind to emit false
positives.

Unit tests and valgrind memory checks are now enabled
by default. They can be disabled with the configure options:
'--disable-unit-test' and '--disable-unit-test-memcheck'
respectively.

Disabled cpputest's builtin memory checks in UT even if
they are available.

Updated redismodule/README.md on compiling redismodule.

Removed some Nokia-specific scripts.

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: Id7c37f6a99888d1a9229ca41dd7cbc325b6d495f

4 years agoAdd refactored ndel command and UT 55/2255/6
Heinonen Arvo [Thu, 16 Jan 2020 15:41:11 +0000 (17:41 +0200)]
Add refactored ndel command and UT

Add refactored ndel command 'ndel.atomic'.
Add new unit test for this command.
Remove unused includes.

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: Ie051e170ec12af45f076876c94016b989a2ead25

4 years agoAdd refactored nget commands and UT 54/2254/6
Heinonen Arvo [Thu, 16 Jan 2020 15:23:07 +0000 (17:23 +0200)]
Add refactored nget commands and UT

Add refactored nget commands 'nget.atomic' and 'nget.noatomic'.
Add new unit tests for these commands.

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: Icbb116bf59f3e84dfdcee1a55d4209affa6b4244

4 years agoAdd updated version of Redis modules 53/2253/2
Heinonen Arvo [Thu, 12 Dec 2019 14:22:12 +0000 (16:22 +0200)]
Add updated version of Redis modules

Adapted from Nokia internal RCP code repository, revision 120a6bb from
branch 'rcp2.0'.

Changes to original:
* Unit tests and checking for unit test dependencies is now disabled
  by default.
* Unit tests can be enabled with the configure flag '--enable-unit-test'
* Remove Nget and Ndel. These will be refactored and reintroduced in
  a later commit.
* Run valgrind in UT to check for memory leaks.
* For opaque types there is not need to use real redis types in UT.
  Instead define opaque types as dummy structs in
  'tst/mock/include/redismodule.h'.
* Add instructions on running UT to redismodule/README.md.
* Remove dead code and unused includes.
* Fix compiler warnings in UT.
* Treat warnings as errors in UT.

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: I8759d1c91d0dbd8c6373b7863ea11287e2d799c2

4 years agoreleasing the 0.1.0 version container (non HA) 94/2194/1
wrider [Fri, 10 Jan 2020 15:22:36 +0000 (10:22 -0500)]
releasing the 0.1.0 version container (non HA)

Change-Id: Idfaff31c99e2ab1975ebb6dc9b2d3a8c7d061fe6
Signed-off-by: wrider <lji@research.att.com>
4 years agoIncrement Docker container version number after Amber release 70/1870/1
Timo Tietavainen [Fri, 29 Nov 2019 07:44:37 +0000 (09:44 +0200)]
Increment Docker container version number after Amber release

Incremented container version from 0.2.2 to 0.3.0 in order to
publish a new Docker container, which is not overlapping with
the container name what has been released out for Amber release.

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

4 years agoAdd dbaas docker release file 47/1847/1
Timo Tietavainen [Thu, 28 Nov 2019 14:15:47 +0000 (16:15 +0200)]
Add dbaas docker release file

Added dbaas container release file based on ric-plt-dbaas
docker container version 0.2.2.

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

4 years agoMerge "Add extra line about src files are part of RIC platform project" Amber 0.2.2
Timo Tietavainen [Thu, 28 Nov 2019 09:36:03 +0000 (09:36 +0000)]
Merge "Add extra line about src files are part of RIC platform project"

4 years agoAdd extra line about src files are part of RIC platform project 32/1832/1
Timo Tietavainen [Thu, 28 Nov 2019 08:02:41 +0000 (10:02 +0200)]
Add extra line about src files are part of RIC platform project

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

4 years agoAutomation adds INFO.yaml 28/1428/3
Aric Gardner [Fri, 8 Nov 2019 15:58:20 +0000 (15:58 +0000)]
Automation adds INFO.yaml

Change-Id: Ide1b2e7c2428c0bc9fbcf9e02e755ab79b53663b
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
4 years agoAdd documentation files 96/1496/9
Timo Tietavainen [Tue, 12 Nov 2019 11:24:44 +0000 (13:24 +0200)]
Add documentation files

Added mandatory documentation files for the RIC Amber release.
Updated also docker base image to Alpine 6-a3.9, because
older version has been removed from ORAN nexus3 repository.

Change-Id: I3c55faf82cf589e339019e2fd70bad4fe40ce195
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
4 years agoInclude curl in dbaas docker image 61/961/1
Marco Tallskog [Tue, 17 Sep 2019 06:46:53 +0000 (09:46 +0300)]
Include curl in dbaas docker image

Add the curl tool to docker image to facilitate trouble-shooting.

Change-Id: I0e06aecc0c5c16bb2af9540ccfcf05d7adefa7cf
Signed-off-by: Marco Tallskog <marco.tallskog@nokia.com>
4 years agoTake Redis 5.0 in use 80/880/1
Marco Tallskog [Tue, 3 Sep 2019 12:11:26 +0000 (15:11 +0300)]
Take Redis 5.0 in use

Modify the dockerfile to use two phase build process. In the first phase
build the redismodules and install them in the second phase. The actual
docker image is built using the publicly available redis docker file
which is using alpine distribution as a base build.

Change-Id: I292c58a61a114b951434bbd26f4798fc1b50d63d
Signed-off-by: Marco Tallskog <marco.tallskog@nokia.com>
4 years agoMerge "Add tag file to support CI-based build of DBaaS" 0.1.0
Marco Tallskog [Mon, 17 Jun 2019 05:42:51 +0000 (05:42 +0000)]
Merge "Add tag file to support CI-based build of DBaaS"

4 years agoAdd tag file to support CI-based build of DBaaS 59/259/3
Lott, Christopher (cl778h) [Wed, 5 Jun 2019 15:34:25 +0000 (11:34 -0400)]
Add tag file to support CI-based build of DBaaS

This tag-definition file is read by the Jenkins job
that builds a Docker image.
Also add .gitattributes and .gitreview for convenience.

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

4 years agoAdd new redis command DELMPUB 28/228/4
Heinonen Arvo [Wed, 15 May 2019 12:55:44 +0000 (15:55 +0300)]
Add new redis command DELMPUB

Add new redis command DELMPUB which is functionally identical to
DELMPUB except that it allows to specify multiple channel-message pairs
at once.

The syntax for the new command is:
DELMPUB number_of_keys number_of_channel_message_pairs
        key [ key ... ]
        channel message [ channel message ... ]

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: I9ee19675589ef1d0c19b2525281dfc2ac769da99

4 years agoRefactor delpub-commands, Allow multiple channels 27/227/4
Heinonen Arvo [Wed, 15 May 2019 14:03:52 +0000 (17:03 +0300)]
Refactor delpub-commands, Allow multiple channels

Refactor the implementation of redis commands: DELPUB, DELIEPUB
and DELNEPUB to make more clear which parts of the old implementation
are specific to each command.

Allow multiple channels as parameter in the redis commands
DELIEPUB and DELNEPUB.

New syntaxes:
DELIEPUB key oldvalue channel message [ channel message .. ]
DELNEPUB key oldvalue channel message [ channel message .. ]

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: I3dfb86ed4c8951bb395aff053b9c2bb898cfd0a4

Remove old delpub command implementation

After refactoring the old delpub command implementation in
'delPubStringGenericCommand' is no longer used. Remove it.

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: I77817744aea6c78226e8cab8aebbd401efe63c40

4 years agoAdd new redis command MSETMPUB 24/224/4
Heinonen Arvo [Tue, 14 May 2019 08:23:44 +0000 (11:23 +0300)]
Add new redis command MSETMPUB

Add new redis command MSETMPUB which is functionally identical to
MSETPUB except that it allows to specify multiple channel-message pairs
at once.

The syntax for the new command is:
MSETMPUB number_of_key_value_pairs number_of_channel_message_pairs
         key value [ key value ... ]
 channel message [ channel message ... ]

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: Ib237eacaaaf5dc22b9c8850e7127d8c96f11a36b

4 years agoRefactor setpub-commands, Allow multiple channels 23/223/4
Heinonen Arvo [Tue, 14 May 2019 08:22:38 +0000 (11:22 +0300)]
Refactor setpub-commands, Allow multiple channels

Refactor the implementation of redis commands: MSETPUB, SETIEPUB,
SETNEPUB, SETXXPUB and SETNXPUB to make more clear which parts
of the old implementation are specific to each command.

Allow multiple channels as parameter in the redis commands
SETXXPUB, SETNXPUB, SETIEPUB and SETNEPUB.

New syntaxes:
SETXXPUB key value channel message [ channel message .. ]
SETNXPUB key value channel message [ channel message .. ]
SETIEPUB key value oldvalue channel message [ channel message .. ]
SETNEPUB key value oldvalue channel message [ channel message .. ]

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: If1c99f54148140f76a213d3a88269bd4fc83e49c

5 years agoAdd base version of Redis modules 36/136/3
Rolf Badorek [Fri, 10 May 2019 13:12:32 +0000 (16:12 +0300)]
Add base version of Redis modules

Copied from Nokia internal RCP code repository, revision d452b42d from
branch 'rcp2.0'.

No functional changes compared to above mentioned base version.

Documentation of the available commands added to README file.

Updated `Dockerfile.redis` so that Redis modules are built and
installed to image which is used as a basis for `redis-standalone`
pod.

Change-Id: I32bc59b4f0a60eb3683fdd31e295d57ee68d8430
Signed-off-by: Rolf Badorek <rolf.badorek@nokia.com>
5 years agoDisable data persistency 41/141/1
Rolf Badorek [Mon, 13 May 2019 11:51:45 +0000 (14:51 +0300)]
Disable data persistency

Currently the Redis default setting is used, which is that a periodic
snapshot writing to disk is enabled.

Its implementation is quite optimal, but as backup snapshots are not
needed for anything in current configuration, those are disabled in
this commit.

Redis server instance is defined to be an init process in DBaaS service
pod/container. In case of service restart the container will restart
also. There is no external storage for `/var/lib/redis/dump.rdb`
file and thus its content will be lost in service restart.

Redis data persistency over different failure scenarios is a future
feature candidate of RIC.

Change-Id: Ic9216bcb5067ed59c846e2b7805a78ee675bbc35
Signed-off-by: Rolf Badorek <rolf.badorek@nokia.com>
5 years agoInitial commit 33/33/1
Marco Tallskog [Thu, 4 Apr 2019 11:15:24 +0000 (14:15 +0300)]
Initial commit

Change-Id: Ia3c105ab233c474abd2eb1a8af0310412fea3d0a
Signed-off-by: Marco Tallskog <marco.tallskog@nokia.com>
5 years agoInitial empty repository
Andrew Grimberg [Thu, 21 Mar 2019 23:55:41 +0000 (23:55 +0000)]
Initial empty repository