Commit Graph

47 Commits

Author SHA1 Message Date
Ghanshyam Mann 1ea4e21eb2 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I710eec1feec922c6b5532dc754ab0fe3e90d3ff8
2022-04-30 20:25:05 -05:00
Adrian Czarnecki df0fd4958f Remove six
Change-Id: I898c97fda4e1e93c64c6b75fbfea5af80ffd684a
Story: 2008305
Task: 41274
2020-11-24 15:10:57 +01:00
Martin Chacon Piza 6b60c25db1 [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Bump the pyflakes to 2.1.1 as min version to run pep8 jobs
on py3.8 which is default python vesion in ubuntu focal.

Bump cassandra-driver to 3.21.0 in lower-constraints.txt
since it is the min version with py3.8 support [2]

Bump kazoo to 2.8.0 in lower-constraints.txt
since it is the min version with py3.8 support [3]

Story: #2007865
Task: #40197

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html
[2] https://pypi.org/project/cassandra-driver/3.21.0/
[3] 6b6ffe62a0

Change-Id: I3a465aa0b26dd72432696d2dd19c955eb3e974e5
2020-10-13 16:07:06 +02:00
Witek Bedyk dc8956d7b8 Migrate from ujson to simplejson
The change updates the imports to use simplejson library and fixes three
unit tests. In particular TestUtils.test_parse_alarm_state_hist_message
has been slightly changed to make testing more robust.

Also, Python 2 specific implemetation has been removed from
influxdb.line_utils .

Additionally, standard library unittest.mock is used instead of the
third party mock lib.

Depends-On: https://review.opendev.org/718014
Depends-On: https://review.opendev.org/720188
Change-Id: I64b1a60e8be929c25c005a0f429b1274cb8570e6
Story: 2007549
Task: 39390
2020-04-21 12:35:08 +02:00
Arseni Lipinski 72cc931159 Fix constraints and requirements to fix failing tests
Commit contains cassandra-driver version upgrade due to
older version lacking some components used in monasca-persister

Change-Id: I6d6f5dbf6533f820c954bc910a1de64803c11a2f
2020-02-12 11:20:37 +00:00
Witek Bedyk b88084003f Use Confluent Kafka client
The change introduces the possibility to run the persister with
the new confluent-kafka client. It has to be enabled in the
configuration file.

Story: 2003705
Task: 30117

Depends-On: https://review.opendev.org/675297
Change-Id: I05428b8ae9e0ba9af5b81d3b103434ebd5657108
2019-08-15 14:47:51 +02:00
OpenStack Proposal Bot 05e3d43fb6 Updated from global requirements
Change-Id: I4dee71f212fcd30bcc52f5ee0c048e0933ae0b8d
2018-03-14 05:38:23 +00:00
OpenStack Proposal Bot 1fa2f7bc35 Updated from global requirements
Change-Id: I281606b20421c00aa3d9e057eaa89abc3619e847
2018-03-07 18:38:39 +00:00
OpenStack Proposal Bot 4cdd2389b9 Updated from global requirements
Change-Id: Id40be63dab88f77ecd4413dce2e4feea7e09abf1
2018-01-16 04:13:25 +00:00
OpenStack Proposal Bot 4f17e1da3b Updated from global requirements
Change-Id: If6a9d54d681b97cfc2d742cd0bd67c3ee43f75b7
2017-11-29 09:01:56 +00:00
OpenStack Proposal Bot e73c693c51 Updated from global requirements
Change-Id: I25a1f9545a763024814a024ece45828771469b54
2017-11-16 11:10:56 +00:00
OpenStack Proposal Bot 42d3b09f41 Updated from global requirements
Change-Id: I5d533619e4bf363fa577b465dfb740e46b75626e
2017-09-13 00:06:36 +00:00
OpenStack Proposal Bot f7292cb659 Updated from global requirements
Change-Id: Ia651c3290365fec392a4ca9927a5a1a047055b62
2017-08-24 05:52:08 +00:00
OpenStack Proposal Bot e615a318fa Updated from global requirements
Change-Id: I61df4f4464428be363e3a8b4c223b02cbeca1638
2017-06-15 16:26:08 +00:00
OpenStack Proposal Bot 464208a74a Updated from global requirements
Change-Id: Ibe2237faa3440a63e569915387aeeb43323336c6
2017-06-02 02:28:34 +00:00
Thomas Bechtold 659ddefdb0 Fix requirements for influxdb and cassandra
Both are optional requirements (but one must be used) so add both to the
"extras" section instead of a commented entry in requirements.txt .

Change-Id: I1f0eca2474ca275f64314a7b30b18e534afefdee
2017-05-05 10:22:14 +02:00
OpenStack Proposal Bot 848de0ca4d Updated from global requirements
Change-Id: Iad792474e1f93ffb9fc27b2673738bab9de55ac2
2017-03-29 18:44:00 +00:00
OpenStack Proposal Bot ce03926533 Updated from global requirements
Change-Id: Ifecfb385ae1d09c29abc08aa0b71ae097145357b
2017-03-13 19:34:04 +00:00
OpenStack Proposal Bot 23c3684a82 Updated from global requirements
Change-Id: I866f98d1bb6c7cf5fd3888447dcec47b70455978
2017-01-24 20:37:00 +00:00
OpenStack Proposal Bot 05a73ec2d7 Updated from global requirements
Change-Id: If2fb2779eec00ed504e87c5eb2b0eb99fd9149f2
2016-10-27 12:15:45 +00:00
OpenStack Proposal Bot 1bc5831556 Updated from global requirements
Change-Id: I744c5c08439f262d1c3f85440f691b4809b109ce
2016-09-21 06:43:11 +00:00
OpenStack Proposal Bot 96fbd64a14 Updated from global requirements
Change-Id: I4670edcbf8d1145a78c3dcf886852effa292925e
2016-08-31 18:25:52 +00:00
Shinya Kawabata 613bab70b8 Revival of Cassandra repository
Revival and adding some modification to support schema change.

See also: I914176d60bfce91fbe449702f7e78bb2f78706ce
Change-Id: I2152057ef4843b555a21118cb20bd9eff36c3b7a
2016-08-04 02:01:51 +09:00
Kaiyan Sheng 9d35b7fc13 Remove influxdb from requirements.txt
Change-Id: Ifbe395236b6dc19febb445f418cfb94fe6c0df4b
2016-07-01 11:55:27 -06:00
Kaiyan Sheng 014f14d9e7 Import simport from monasca-common
Change-Id: I6830a12c5cee7339ee02c55bad9ad4cd79338043
2016-06-17 14:32:32 -06:00
Bertrand Lallau f45221f93e Remove oslo.service useless requirement
This patch cleans up the requirement list to remove oslo.service module
that is not used anymore directly by monasca-persister.

Change-Id: I11ee0bea4f3420bc45effe74463ee7155df8df48
2016-05-24 21:59:28 +02:00
Jenkins e5c68d80da Merge "Remove iso8601 useless requirement" 2016-05-24 18:39:23 +00:00
Bertrand Lallau 82c3ed8a19 Remove babel useless requirement
This patch cleans up the requirement list to remove babel module
that is not used anymore directly by monasca-persister.

Change-Id: I27db884994ccd2299d7c146f5fffcaf01bcf0594
2016-05-24 10:13:03 +02:00
Bertrand Lallau 04324742af Remove iso8601 useless requirement
This patch cleans up the requirement list to remove iso8601 module
that is not used anymore directly by monasca-persister.

Change-Id: I4561cd30c0953e4cddd588763c84045d56ed7943
2016-05-24 10:04:00 +02:00
Michael James Hoppal 22e18453dd Remove cassandra repository
Change-Id: I914176d60bfce91fbe449702f7e78bb2f78706ce
2016-03-10 10:46:50 -07:00
Michael James Hoppal 5b1ffc3e2b Refactor the python persister
Separate out the persister classes into their own python files
and clean up some unused code for start up.

Change-Id: Id1460baef9e06025ed57030438a0021c253cc99a
2016-03-10 09:14:24 -07:00
Joe Keen 35090e82bd Eventlet library no longer used
Eventlet used to be used in the openstack/common directory we had.  Since we've
removed that directory we don't need the requirement anymore.

Change-Id: Ib64a6cb900afeb18bd8c3f49fb354a63d086c2b4
2016-02-09 11:19:41 -07:00
Joe Keen ec2096fbbb Mitaka compatibility
Change-Id: Iabc6999e3a38ad31d152b6ce8a9f954696d4109a
2016-01-22 17:13:12 -07:00
Deklan Dieterly 52b38a0dfb Enable Cassandra Database
Allow Cassandra Database to be used as backend database.

100% backward compatible with Influxdb.

Should not require any install or config changes to
use the default Influxdb.

Change-Id: I4cfe50a99eea0f8ae7421dcefbdd2cb2cc008b3b
2016-01-12 08:07:15 -07:00
Joe Keen 023646b3a2 Adjustments to support new oslo libraries
Removed the old openstack directory and replaced it with oslo libraries.

Updated requirements for liberty versions of oslo libraries.

Change-Id: I4d6bfb4251eb23cf86b3173ac9cb0b889ebbf674
2015-12-10 15:38:50 -07:00
Joe Keen 0b461f047c Modifying Persister to use common kafka interface
Adding six to the requirements file to handle version conflict between the
influxdb and Kazoo libraries.

Added monasca-common to requirements and removed kafka and kazoo libraries

Change-Id: I1b390b52db6bc58f6eb9850ad799970c50e23695
2015-10-30 12:24:36 -06:00
Deklan Dieterly de991dca97 Fix problems with oslo.config
Fix import error. No module named cfg.

Change-Id: Iab601d335fd4b357931c3ce80c70b516923319b6
2015-10-07 16:41:43 -06:00
Deklan Dieterly 69fd7be2d5 Upgrade influxdb python from 2.6.0 to 2.8.0
Change-Id: I3ba7e13b32b28944f9079c2db7bd16526481692c
2015-08-28 09:25:19 -06:00
Deklan Dieterly fefff77a07 Convert empty string to empty JSON for sub alarms
Change 'name' to 'measurement' for alarm state transition.
Store empty JSON for reason data.

Change-Id: I66b0c05618734a978d2f8ef9c8123815ec7b1d85
2015-06-25 14:57:53 -06:00
Deklan Dieterly 906dee94b1 Fixes for Influxd 0.9 latest
change 'name' to 'measurement'.
change 'timestamp' to 'time'.
store value_meta as "" instead of "\"\"" when empty.

Change-Id: I391ab269897e6575abd9027b6b4252083a015536
2015-06-19 14:03:34 -06:00
Deklan Dieterly 77abfc4168 Migrate to Influxdb 0.9.0
Change-Id: I0119301dfd9544b68358eb04576b040f1f40ffb2
2015-05-13 10:34:46 -06:00
Joe Keen 73b81916c8 No longer upgrading to kafka-python 0.9.3
Change-Id: I0dd4a5a6213e3bd17a93d0c433694175d423e5f5
2015-02-09 14:48:01 -07:00
Deklan Dieterly f4231d41f4 Add high-availability
Allow persister instances to come and go. Automatically rebalance
reading the partitions amongst the existing persisters.

Change-Id: Ifd47459b0a29e91680e155d22b82086e04426215
2014-12-03 09:24:37 -07:00
Deklan Dieterly b20b721af9 Add kafka configuration values
Change-Id: I303c89449bb65c52178719bfdababb135a344fa7
2014-12-01 13:03:12 -07:00
Tim Kuhlman 73fe581afe Added missing requirements
Change-Id: Ic71234853badf9c468f62f77fb738d8c4c3b7f2f
2014-11-04 15:22:10 -07:00
Tim Kuhlman 67ac55704c Moved openstack package so imports are setup correctly
Change-Id: I9f97ebf6b5c0c5728f4079af759bcfd7c65c217a
2014-10-13 09:41:37 -06:00
Deklan Dieterly 3cf22f1c0d Add files for pypi.
Change-Id: Ib382ed1e15a7c124cab2124692e7d2e8e31bab1c
2014-09-30 15:21:50 -06:00