Commit Graph

27 Commits

Author SHA1 Message Date
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
Andreas Jaeger a2fcddc99b Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I95fb0ca759471f7ad7189a7d54c1dac2cc018fc4
2020-04-05 09:58:52 +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
Ghanshyam Mann 29c6c96d09 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-persister is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I628603dadcaabbe24d4d166dfb47d4413c9dbaac
2019-11-15 16:12:10 +00:00
Bharat Kunwar 2a76a04bcc Exclude influxdb 5.2.3 for python
This version of influxdb client does not handle correctly unicode
characters with Python 2 [1].

git issue: https://github.com/influxdata/influxdb-python/issues/633
global-requirements change: https://review.opendev.org/#/c/679608/

Change-Id: Ibcf92256be2550db17c867ee592fbff2d6d047b0
2019-09-05 14:44:37 +01:00
Zuul 2df1ffdce0 Merge "Change lower-constraints for cassandra-driver" 2019-07-12 08:56:39 +00:00
Corey Bryant f359521363 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I10050c3ff90a0b7a9a905958194c06cc8db7473a
Story: #2005924
Task: #34223
2019-07-05 13:14:12 -04:00
Arseni Lipinski ca77fb44cd Change lower-constraints for cassandra-driver
Cassandra client version had to be changed because its earlier version
doesn't contain DCAwareRoundRobinPolicy and TokenAwarePolicy in
cassandra.cluster (those are located in cassandra.policies instead),
needed in persister (specifically cassandra/connection_util.py).

Change-Id: I9f9eb478808ad978815c19a5c4e1baaa35fa6d28
2019-07-04 17:53:48 +02:00
Thomas Bechtold fe88e8f796 Add job for releasenotes
With changeset [1], releasenotes are added to monasca-persister. To
make the release notes available, the notes can be build now with
tox ("tox -e releasenotes") and the standard zuul
job (release-notes-jobs-python3) was added to build and publish the
notes.
Also adjust elasticsearch requirement to "<3.0.0" to be inline with
the global-requirements list. This fixes:

  Requirement for package elasticsearch excludes a version not excluded
  in the global list.

[1] Ida11c326b3e6771b5ccf994205c55874db05bc5c

Change-Id: I16268797151a6b997610c8fbded4c9eeb9265597
2019-02-19 10:46:25 +00:00
melissaml e6d49a20c2 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I4902f981346a6471229d33c309c6d16ceb20a108
2018-12-05 01:34:18 +08:00
Denis Poisson fe5e84f6a7 Convert README.md to ReStructuredTest format
Change-Id: Ic2ae9acab65a54e2fcab9581dad97b1d9e990425
story: 2002163
task: 22257
2018-06-21 09:38:07 +02:00
OpenStack Proposal Bot e73c693c51 Updated from global requirements
Change-Id: I25a1f9545a763024814a024ece45828771469b54
2017-11-16 11:10:56 +00:00
Jakub Wachowski 8273de7ca6 Add support for persisting events
This change extends the persister to read OpenStack
event objects from kafka topic and then stores
them into ElasticSearch.

Story: 2001112
Task: 4843

Change-Id: I35b0db67dc088e56ad281c84fc4b50fa7a064e44
2017-11-09 08:57:17 +01:00
Adrian Czarnecki 5f168778c6 Use oslo-config-generator
To generate the sample config file, do what other OpenStack projects do
and use the oslo.config provided mechanism.

Story: 2001009
Task:  4201

Change-Id: I490de4110843f7dfd618a6a8cc8d6a4e35db65ce
2017-07-28 13:48:01 +02:00
OpenStack Proposal Bot 3dbefbe900 Updated from global requirements
Change-Id: If8470a83554c0dcd3ea030de28a0c406cba139ec
2017-05-30 13:36:28 +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
Tomasz Trębski 5bcf7e69fc Copy persister configuration during install
Following commit adds copying persister's
configuration files to /etc/monasca
during installation

Change-Id: I0b08b17c69a02e128e1aea54316b72c9a43a6d7d
2017-03-02 11:42:00 +01:00
Cao Xuan Hoang 70f75304ff Changed author and author-email
Changed author to OpenStack and author-email to
openstack-dev@lists.openstack.org

Change-Id: I807ecdbbea3c65c55533d5275aa5716d28e111da
2017-02-06 14:37:01 +07:00
Laszlo Hegedus b3f9359608 Add persister.py unit tests
Add unit tests for persister.py in root directory.
Additionally:
* switched to testr as it seems to be used in many
openstack projects
* enabled coverage

Change-Id: I429ef6a900808c192ad5613c13808583d33fde24
2017-01-12 09:18:29 +00:00
Doug Hellmann c01721cd32 add a one-line summary to the package metadata
This summary is used on PyPI and when building release announcement
emails.

Change-Id: Iace350c4161bcfa3f634a9c95e1ffd104c363333
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-12-05 10:53:44 -05:00
Laszlo Hegedus b72a11716e Fix setup.cfg console_scripts
monasca_persister.servicerunner no longer exists, it has been replaced
by monasca_persister.persister.

Change-Id: Iac72acb0c355e8306fdf07ba645918beac78bd1e
Closes-Bug: #1603915
2016-07-29 12:54:15 +00: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
venkatamahesh e947a28c01 Change repositories from stackforge to openstack
Change-Id: I9b0afa3c48fcc29335f5c7d4305b768dc2084614
2015-10-19 09:25:20 +05:30
Tim Kuhlman fbf81b1404 Specified all needed subpackages
Change-Id: Ia4ba36a4ff27d2529999784654066252a1f4c89f
2014-10-16 16:18:32 -06: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 d3acf12034 Increase throughput of persister
Add batching to InfluxDB writes to improve throughput.

Change-Id: Ia173f55726cb11245f0bcf4580f1af8129c23aa3
2014-10-02 11:40:18 -06:00
Deklan Dieterly 3cf22f1c0d Add files for pypi.
Change-Id: Ib382ed1e15a7c124cab2124692e7d2e8e31bab1c
2014-09-30 15:21:50 -06:00