summary |
shortlog | log |
commit |
commitdiff |
review |
tree
first ⋅ prev ⋅ next
Abdulwahid W [Tue, 30 Apr 2024 13:24:17 +0000 (18:54 +0530)]
RIC:1060: Change in PTL
Change-Id: Id653eff7afa90e5277c63283987cdce3a302bfad
Signed-off-by: Abdulwahid W <abdulwahid.w@nokia.com>
czichy [Thu, 8 Jun 2023 13:00:50 +0000 (16:00 +0300)]
H release step 2 of 2
Change-Id: I6819ed1ed55a641ada680cb1d183bfb2b08d110f
Signed-off-by: czichy <thoralf.czichy@nokia.com>
czichy [Thu, 8 Jun 2023 11:58:46 +0000 (14:58 +0300)]
H release step 1 of 2
Change-Id: I21f7d53eed75717e340dbf9fffe9c14e7c6d20aa
Signed-off-by: czichy <thoralf.czichy@nokia.com>
Abdulwahid W [Thu, 18 May 2023 07:54:50 +0000 (10:54 +0300)]
updating redis module to 4.3.6
Change-Id: I135e7795696fd29619348182b7b79bc7ca75bb66
Signed-off-by: Abdulwahid W <abdulwahid.w@nokia.com>
Anil Belur [Mon, 22 May 2023 00:29:27 +0000 (10:29 +1000)]
Fix: Update python to 3.9
Change-Id: Iebcf8650775c13b0b34d8f790f3199e7dcb2804a
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Thu, 18 May 2023 22:25:30 +0000 (08:25 +1000)]
Fix: tox config error
- Remove whitelist_extrernals
Error:
tox.exception.ConfigError: ConfigError: Either whitelist_externals
or allowlist_externals might be specified, not both
Change-Id: I5ce386ec54711c021ca48e52e1302ad31f066309
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Wed, 17 May 2023 03:01:10 +0000 (13:01 +1000)]
Fix: Pin urllib3 and add allowlist_externals
- Pin urllib3 in the tox dependencies
- allowlist_externals for echo
Issue-ID: https://jira.linuxfoundation.org/browse/IT-25550
Change-Id: Iff1b7b5da9ad949529a2c36079c446cc8bfd6522
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
czichy [Mon, 12 Dec 2022 15:54:56 +0000 (17:54 +0200)]
releasing version 3.1.2 to pypi
Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: I97077ada4107e63db45f59e0aab01f3c3273da01
czichy [Mon, 12 Dec 2022 15:17:33 +0000 (17:17 +0200)]
Updating version to 3.1.2
Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: Ifbe4f91c2e779ae719b3804a366f97c6a19e480b
Thoralf Czichy [Fri, 2 Dec 2022 13:29:32 +0000 (13:29 +0000)]
Merge "Replacing committers with new ones"
czichy [Fri, 2 Dec 2022 11:55:54 +0000 (13:55 +0200)]
Replacing committers with new ones
Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: I2b10c0dea8867a98a97c9350300f5eea92078f31
Timo Tietavainen [Fri, 23 Sep 2022 10:39:02 +0000 (13:39 +0300)]
Fix Flake8 reported errors (E275)
Fix Flake8 reported issues about 'Missing whitespace after
keyword (E275)'.
Issue-Id: RIC-940
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I60e16f9fc3ca54506ccfcab8e8851dadebf2140f
Timo Tietavainen [Tue, 28 Jun 2022 08:26:08 +0000 (11:26 +0300)]
Release ricsdl 3.1.1
Issue-Id: RIC-923
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I42e7dbe1ac49284b96b383a9c8de151d808de2e7
Timo Tietavainen [Mon, 27 Jun 2022 05:21:03 +0000 (08:21 +0300)]
Bump to Python version 3.8
Bump Python version to 3.8 because nowadays Python 3.8 is the default
Python version delivered in many Linux distributions. Publish new
sdlpy version 3.1.1 due to Python version bump.
Issue-Id: RIC-923
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ia05c18456319fed82edb9dac0bc2bf7a9be8cf49
Timo Tietavainen [Mon, 14 Mar 2022 13:21:41 +0000 (15:21 +0200)]
Release ricsdl 3.1.0
Issue-Id: RIC-698
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ic2299552ef51e23ac19a629aeaae69144b5710ef
Timo Tietavainen [Mon, 14 Mar 2022 05:27:30 +0000 (07:27 +0200)]
Read list type of environment variables
DBAAS Helm Charts appconfig has been changed to have individual ports
and master names for each SDL cluster due to problems seen with DBAAS
upgrade and rollback caused by re-allocation of the same address/port
of Redis to some other SDL cluster. Implement support for new list type
environment variables reading in SDL:
* DBAAS_SERVICE_PORT
* DBAAS_SERVICE_SENTINEL_PORT
* DBAAS_MASTER_NAME
Issue-Id: RIC-698
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Id75e53c3542f2c2b24a2fd815a5583b1394d8d79
Timo Tietavainen [Fri, 21 Jan 2022 10:09:42 +0000 (12:09 +0200)]
Release ricsdl 3.0.2
Issue-Id: RIC-698
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Id67d1af652140acc9576b5e3ce3e12a9c5fd2ff5
Timo Tietavainen [Thu, 20 Jan 2022 06:34:29 +0000 (08:34 +0200)]
Bump Redis client version to 4.1.1
Bump Redis client version to the latest 4.1.1 version and replace
deprecated Redis client '_compat' module with 'utils' module.
SDLPY version: 3.0.2
Issue-Id: RIC-698
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I1d15bc2ea1a11d4cf1e3fafac53ee584b373a7c4
Timo Tietavainen [Fri, 19 Nov 2021 14:02:38 +0000 (16:02 +0200)]
Release ricsdl 3.0.1
Issue-Id: RIC-859
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Iffeff214cae72a4637c1051808722a4f71fa0378
Timo Tietavainen [Thu, 18 Nov 2021 18:51:38 +0000 (20:51 +0200)]
Add package versions to required dependencies
Add specific package versions for required dependencies:
redis==3.5.3 and hiredis==2.0.0.
The reason for adding specific package versions is that sdlpy needs
redis 'compat' module but this module has been deprecated in newer
redis client 4.x.y versions and hence sdlpy is not compatible with
newer redis client versions.
Issue-Id: RIC-859
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ie3492314c82c5ed99f7d55db17c8161d41f6ac40
Timo Tietavainen [Thu, 23 Sep 2021 08:52:09 +0000 (11:52 +0300)]
Add Ovaska and Maki-aijala, remove Badorek and Tallskog
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I7ffc25b5342572d6723849deaf494cfa034226bb
Timo Tietavainen [Thu, 10 Jun 2021 13:49:18 +0000 (16:49 +0300)]
Release ricsdl 3.0.0
Issue-ID: RIC-795
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I825dea6b8aa6375ec29d1eb5024f862b0807888c
Timo Tietavainen [Thu, 10 Jun 2021 12:54:37 +0000 (15:54 +0300)]
Change notification callback and handle_events types
In earlier implementation (commit
db775397) single event was passed to
to application notification callback as a string type and if there was
multiple notification then as a list of string. Similarly
'handle_events' function was either returning a single event as string
or a list of string. In a code it is unpleasant to handle variables what
can be either string or list type, because in application you need to
check always the variable type what comes from SDL for these functions
and based on the type either handle the value as a string or list of
string. That's why by this commit change event(s) to be passed as a list
to the notification callback what application has registered and also
now 'handle_events' function returns always received notifications a
list. Because of type change this code change is not backward
compatible.
Issue-ID: RIC-795
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I49f2bd1012d93f184945c891df03ed83ed83d544
Timo Tietavainen [Wed, 9 Jun 2021 05:07:11 +0000 (08:07 +0300)]
Release ricsdl 2.3.0
Issue-ID: RIC-795
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Icd8dc733bddbf717655747b44f4c13c4a516a5bb
Timo Tietavainen [Wed, 9 Jun 2021 02:56:54 +0000 (05:56 +0300)]
Pack notifications to be compatible with SDL golang
In SDL Golang 'publish' API implementation packs all the events to single DB
notification, where events are separated by '___' characters. In SDL Golang
subscriber receives this packed DB notification and it splits the DB
notification by '___' characters and calls application notification handler
callback function with list of received events.
Current implementation of SDL Python is however different, is does not do any
packing for events and hence it calls application notification callback many
times, once for each event it has received. Also if SDL Python application is
used as event subscriber and SDL Golang application as event published,
Python application won't be able to handle those notifications what are packed
to one db notification by SDL Golang application.
With this commit implement notification packing to SDL Python.
Issue-ID: RIC-795
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ie494430cf46756ea476b98343a8c651a2fa1dbcd
Timo Tietavainen [Fri, 28 May 2021 12:53:18 +0000 (15:53 +0300)]
Release ricsdl 2.2.0
Issue-ID: RIC-699
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I6618c5bedae933d0997d7a207a35d50e3016cd76
Timo Tietavainen [Tue, 11 May 2021 11:43:09 +0000 (14:43 +0300)]
Implement sentinel based DB capacity scaling
For time being SDL has supported standalone DBAAS DB and DBAAS HA DB deployment
with Redis sentinel. With this commit extent SDL functionality to support Redis
sentinel based DB cluster where we have multiple DBAAS Redis sentinel groups
and these groups can be used to spread out SDL DB write and read operations to
different DB instances.
Implement cluster DBAAS DB service addresses reading from environment variable
'DBAAS_CLUSTER_ADDR_LIST'.
Implement crc32 hash value calculation from namespace string and selection of
a DB instance from DB cluster based on calculated hash.
Issue-ID: RIC-699
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ib325ca68e212bde80c1536b2392293ee76f8fe9e
Timo Tietavainen [Tue, 23 Mar 2021 07:09:39 +0000 (09:09 +0200)]
Release ricsdl 2.1.1
Issue ID: RIC-758
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ie2457db24963dde55d6a6836f73b2e3e36d0069a
Timo Tietavainen [Tue, 9 Mar 2021 12:37:14 +0000 (14:37 +0200)]
Take DBAAS multi-channel publishing Redis modules into use
Following SDL APIs are defined so that multiple channel-event pairs can be
given as function argument but actual SDL implementation utilized such a DBAAS
(Redis) module what expect to get only one channel-event pair. Fix the
implementation of these SDL APIs to use the correct DBAAS module what support
multiple channel-event pairs:
* set_if_and_publish()
* set_if_not_exists_and_publish()
* remove_if_and_publish()
Please note that in runtime environment DBAAS service needs to run on DBAAS
image version 0.4.0 or newer. Older images do not have multiple channel-event
pairs support as a Redis module.
Updated also start_event_listener() and handle_events() description to
emphasize that channel-event subscription must be done before calling those
functions, otherwise open-source Redis client application could throw an
exception due to not having any subscription when it receives some event, for
example a ping event in case of the DBAAS Sentinel deployment.
Issue-ID: RIC-758
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I75d4e3316d7387b7a1a735fe3eb357de7ef794bb
Timo Tietavainen [Mon, 19 Oct 2020 14:37:52 +0000 (17:37 +0300)]
Change xml coverage capture location in tox
The tox init file is changed to write a coverage data report under
/tmp/tests.xml. Report file under tmp directory is more easily accessible by
a post processing tool than report file under sdlpy.
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I3b890b498ef98a470ba5e319117b692f9a0ff3f0
Timothy Ebido [Wed, 26 Aug 2020 06:08:04 +0000 (15:08 +0900)]
Release ricsdl 2.1.0
- Add support for notifications
Issue ID: RIC-372
Signed-off-by: Timothy Ebido <tj.ebido@samsung.com>
Change-Id: I51359e8f11fdcf9db5e0fee430f2cace6ef8103a
Timothy Ebido [Wed, 12 Aug 2020 01:49:26 +0000 (10:49 +0900)]
Add support for notifications
- set_and_publish
- set_if_and_publish
- remove_and_publish
- remove_if_and_publish
- remove_all_and_publish
- start_event_listener
- handle_events
- subscribe_channel
- unsubscribe_channel
Issue ID: RIC-372
Signed-off-by: Timothy Ebido <tj.ebido@samsung.com>
Change-Id: I55b32df5cdf6ed394a80fe70f8cd1e0d09dc4b3b
Timo Tietavainen [Wed, 13 May 2020 13:58:43 +0000 (13:58 +0000)]
Merge "Use specific RTD link to SDL documentation"
Lott, Christopher (cl778h) [Wed, 13 May 2020 12:57:45 +0000 (08:57 -0400)]
Use specific RTD link to SDL documentation
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I452c879f5c24d9c7d8e0c4e060a82d33412c4c03
Timo Tietavainen [Wed, 13 May 2020 12:37:50 +0000 (15:37 +0300)]
Release ricsdl new version 2.0.4
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I62912fdd7cc28ce2698bcc854072e91073f40c6f
Timo Tietavainen [Wed, 13 May 2020 11:21:09 +0000 (14:21 +0300)]
Improve SDL API function argument validation
Improve SDL API set() function argument validation to cover also dictionary items.
Issue-ID: RIC-379.
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I006ec530e0127a731f96154088e29b3b9d0e49c6
Timo Tietavainen [Thu, 23 Jan 2020 15:27:26 +0000 (15:27 +0000)]
Merge "Move pom for sonar analyses into ricsdl-package"
Lott, Christopher (cl778h) [Tue, 21 Jan 2020 21:51:30 +0000 (16:51 -0500)]
Move pom for sonar analyses into ricsdl-package
The test coverage data file is written by tox into ricsdl-package,
so launch maven at that directory, not in the repo root.
Drop ricsdl-package/ prefix from sonar.source and other properties.
Add directory names to sonar.inclusions property.
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I23a47a1c61d584c35429b9b40fd3098e5f4cb565
Timo Tietavainen [Wed, 22 Jan 2020 13:45:57 +0000 (15:45 +0200)]
Release ricsdl new version 2.0.3
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I167ed33a3b1ff9e7e080394ddd8aa8cc56774a66
Timo Tietavainen [Tue, 21 Jan 2020 19:57:17 +0000 (21:57 +0200)]
Add a new SDL storage API function 'is_active()'
Implement a new SDL storage API function 'is_active()' to check healthiness
of an SDL instance. For now function only validates SDL DB backend (Redis)
connection. This function can be integrated into SDL client (such as A1
Mediator) health checks and runtime initializations.
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I8bf457b9528e39223ea65a20d422d2fab49602bb
Lott, Christopher (cl778h) [Mon, 20 Jan 2020 16:02:11 +0000 (11:02 -0500)]
Change sonar property for new sonar maven plugin
LF environment now uses sonar-maven-plugin version 3.7.0.1746
Old property: sonar.python.coverage.reportPath
New property: sonar.python.coverage.reportPaths
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I017abb9e7d753d29ffe9853dc61ae9f625404666
Timo Tietavainen [Mon, 13 Jan 2020 22:40:57 +0000 (00:40 +0200)]
Release ricsdl new version 2.0.2
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I175cf69bb29ffb449e46103c09919c0a39c2acfe
Timo Tietavainen [Mon, 13 Jan 2020 22:01:37 +0000 (00:01 +0200)]
Version bump to version 2.0.2
Version bump is needed to do to get ricsdl released out
properly to [test]pypi.org.
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ie5f863495932aec8cdc705b6e0d1c2ae20093e5a
Timo Tietavainen [Mon, 13 Jan 2020 16:32:29 +0000 (18:32 +0200)]
Fix fake SDL database backend to support multiple set calls
Old fake SDL database backend implementation overwrote the whole fake
database (dictionary) with new key-values what were given in set() API
call. Fixed this to append received key-values in a set() API call to
the old values in the dictionary.
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I8000ed86a1976951270c40d4d2358077ecc3785b
Timo Tietavainen [Wed, 8 Jan 2020 14:49:11 +0000 (16:49 +0200)]
Implement a fake SDL database backend
Implement a fake SDL database backend what can be used only for
local testing purposes, when SDL client does not need real DBAAS
database services. An SDL client can activate fake SDL database
backend usage when SDL instance is initiated with optional
'fake_db_backend' parameter:
sdl_instance = SyncStorage(fake_db_backend='dict')
Value 'dict' is only supported.
Change-Id: I2ee7474175d0923617e026c306ec684b117dab60
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Timo Tietavainen [Fri, 3 Jan 2020 16:40:39 +0000 (18:40 +0200)]
Release ricsdl new version 2.0.0
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I07434242c72e194f375563c3adb4d6b8d20e6365
Timo Tietavainen [Sun, 15 Dec 2019 18:16:23 +0000 (20:16 +0200)]
Implement regular expression support for key searching
There is a use case to use only some part of the full key as a
searching criterion, as an example of such a criterion could be gNBID,
arp or qci. That's why change find_keys() and find_and_get() API
functions to take in a key search pattern instead of a key prefix.
A pattern can contain glob-style regular expression to match a key.
Removed also 'atomic' parameter of find_and_get(), because only
reasonable selection would be to use non-atomic option, which does not
block the whole Redis for a long time as atomic option could do.
Returned dictionary of matched key values are now sorted by key values
in alphabetical order.
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I870089f51b1ce4d72c7984220af0f770b562563f
Timo Tietavainen [Wed, 18 Dec 2019 12:08:04 +0000 (14:08 +0200)]
Release ricsdl new version 1.0.2
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: If2eca37bf6d4d2c85d9eceb23bc840bf20aa4686
Timo Tietavainen [Sat, 7 Dec 2019 18:09:31 +0000 (20:09 +0200)]
Take Hiredis into use in Redis backend
Add dependency to Hiredis package to take it into use in ricsdl
Redis backend, because Hiredis provides better performance for
Redis server response handling than pure build-in implementation
of Redis client in python.
Add new unit tests for configuration reading from environment
variables.
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I43227df9df4f3a84a2646d0aaa71552d0105c9d5
Timo Tietavainen [Thu, 5 Dec 2019 19:24:24 +0000 (21:24 +0200)]
Add ricsdl release file for version 1.0.1
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I02b868c574f0b84b558e7004e9a104468a897784
Timo Tietavainen [Fri, 6 Dec 2019 14:35:09 +0000 (16:35 +0200)]
Version bump to version 1.0.1
Version 1.0.1 does not include any ricsdl code changes compared
to the previous version 1.0.0. Version bump is needed to do to get
ricsdl released out properly to [test]pypi.org.
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ibc8167dfd46cf6673f9f1d6cb1c2a61e39869e92
Timo Tietavainen [Wed, 27 Nov 2019 09:50:01 +0000 (11:50 +0200)]
Add implementation of SDL in python
Added implementation for the SDL API functions:
* Functions to set, get and remove synchronously key-values from
SDL storage.
* Functions to set, get and remove synchronously group members from
SDL storage.
* Functions to acquire, manipulate and release a lock.
Added also simple examples how to use SDL API functions.
Added configuration file for the tox tool to run unittests.
Added configuration file for the tox tool to generate documents.
Added sonar pom and tox hooks to verify code coverage.
Change-Id: I1f12879f725d903397ee8f9e788edf7890db381d
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Timo Tietavainen [Fri, 8 Nov 2019 10:39:24 +0000 (12:39 +0200)]
Add python shareddatalayer API and public exceptions.
Added synchronous API functions:
* To read, write and remove from SDL storage.
* To read, write and remove from SDL group.
* To acquire, release and control an SDL lock entry.
Defined a set of SDL exceptions what SDL python implementation
will raise when there happens an error either in SDL or in
the backend database (Redis) what SDL utilizes.
Change-Id: Iaf0f4b3052d2cf189feadf2eb506b7e9a8463409
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Timo Tietavainen [Fri, 8 Nov 2019 07:50:00 +0000 (09:50 +0200)]
Add empty README file
Change-Id: I363a6394a170a7b291d6cff3a804a6363584b98f
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Timo Tietavainen [Fri, 8 Nov 2019 07:43:22 +0000 (09:43 +0200)]
Add license file
Change-Id: I11a27acb01015ce69ea447158c7fdc7af91a6965
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Timo Tietavainen [Fri, 8 Nov 2019 06:23:21 +0000 (08:23 +0200)]
Add initial versions of Git Control files
Change-Id: I17d0a89182c9eac712d840b42e90cbdd045e0c08
Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Aric Gardner [Fri, 8 Nov 2019 16:02:36 +0000 (16:02 +0000)]
Automation adds INFO.yaml
Change-Id: Ibf7c872253a8a6b030276307a70db74c76620542
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Andrew Grimberg [Mon, 8 Apr 2019 19:44:49 +0000 (19:44 +0000)]
Initial empty repository