Commit Graph

40 Commits

Author SHA1 Message Date
Martin Chacon Piza 5225304a26 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: Idc88314ead611a6bea4dba9115b0aed9e551bb87
2022-05-02 15:33:52 +02:00
Martin Chacon Piza 35a9b57f91 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Remove hacking and friends from lower-constraints, they are not needed
there at all.

Align lower-constraints for new pip [1]

Fix flake8 E305 and E117 and set W504 as ignored

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019285.html

Change-Id: Idae87291f4556eee77d40ab49f0d151435d70875
2021-02-23 17:20:15 +01:00
wangzihao 3b91b33784 Remove six
Remove all six usage.

Change-Id: Ib2f0f6cf3b7f5d9ec20440fb81b09c1c083c67b0
Story: 2008305
Task: 41295
2020-11-20 09:35:23 +00:00
Martin Chacon Piza 44fe8f1c39 [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 netaddr to 0.7.20 in lower-constraints.txt
since it is the min version with py3.8 support [2]

Bump psycopg2 to 2.8.4 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] cc2a9bb31f
[3] https://pypi.org/project/psycopg2/2.8.4/

Change-Id: I736f141b53d5fb985e5deaa5d77c552ebad6fccd
2020-09-29 15:10:52 -05:00
Witek Bedyk db01fe425b Migrate from ujson to simplejson
Additionally, temporarily set build-monasca-docker-image as non-voting
due to problems with buggy confluent-kafka 1.4.0 release, which prevents
building the Docker image.

Change-Id: I561ea633a09eb3d7468d2d55aa46d6fb3b2380ff
Story: 2007549
Task: 39390
2020-04-18 10:42:39 +02:00
Witek Bedyk d47bbae4e8 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: 35858

Depends-On: https://review.opendev.org/675297
Change-Id: I8d9e173e9a252712fb285c0676c26334e1f677a7
2019-09-19 15:09:23 +02:00
zhangjianweibj 22d7c9bb51 Json loads error
Pyhton version below 3.6,function json.loads() throw decoder error.
3.6 version input option can bytes or bytearray,below 3.6 version
type of bytes not cimpatible.

Task: 35991
Story: 2006285
Change-Id: Ib1dba51a57fdce028a6b20da06201f0597085047
2019-07-30 08:15:10 +08:00
Doug Szumski 77328b74f4 Add Python Jira module to requirements
The Jira module is now available in global-requirements:
https://review.openstack.org/#/c/562151/

Since the Jira module is now loaded by default, it always
needs to be installed. If a future change prevents loading
of the Jira module unless the Jira plugin is enabled then
this change can be reverted.

Change-Id: I3fea82e681cd49aab5cd6afc29c60302af7b63b7
Story: 2005400
Task: 30394
2019-04-12 11:33:13 +01:00
akhil abb315961e Enable keystone authentication with webhook notification
This commit adds functionality of sending webhook notifications to
various projects that require keystone authentications. For which user
need to set auth credentials in conf under keystone header.
By default it is disabled, which can be enabled in conf.

Change-Id: I3e773af8c3ebe0cf1d57e8fa1351b1e725a9cfa0
Partially-Implements: blueprint add-monasca-push-driver
Story: 2003105
Task: 23220
2018-08-07 22:22:15 +05:30
Witold Bedyk 9a6edb40a5 Fix lower-constraints job
* update requirements from global-requirements
* move common commands to [testenv]
* bump monasca-statsd to 1.4.0 which is the first version with Python 3
  support
* add funcsigs, Jinja2 and jira to lower-constraints.txt

Depends-On: https://review.openstack.org/562151
Change-Id: I427dd136b385f8784e6d16b174dcadf3ffa555a7
2018-04-18 10:53:31 +02:00
Andreas Jaeger 99796ebb7f Update requirements manually
The global requirments sync for this repo fails since it lists
packages that are not in the global list. Manually sync
requirements.

Failure log from requirements sync:
http://logs.openstack.org/d8/d89aad257d43fe02e42e44b2a0187dbd9f505c36/post/propose-update-requirements/15a7777/job-output.txt.gz#_2018-01-31_06_57_19_908947

Errors are:
'jira' is not in global-requirements.txt or blacklist.txt

Change-Id: If85ee1bf750d310f7a3d2f52c6fd224a9ed822a2
2018-01-31 09:16:04 +01:00
Tomasz Trębski e1a9b9a96a Integrate with oslo.conf and oslo.log
Change upgrades the monasca-notification to leverage
the capabilities of both oslo.log and oslo.conf:

- configuration of logging separated from application settings
- ability to enforce data types for application settings
- ability to use oslo.config-generator capabilities
- automatic configuration parsing done by oslo.cfg

That change will bring it closer to the rest of monasca
components where such transition has happened already.
However, in the rest of monasca, oslo.cfg was partially
or fully implemented whereas monasca-notification has
been relying on YAML based configuration file.

Therefore backward compatybility for such format will
be kept for now.

Story: 2000959
Task: 4093
Task: 4092

Change-Id: Ia75c3b60d0fada854178f21ca5ccb9e6a880f37f
2017-10-20 09:32:11 +02:00
OpenStack Proposal Bot 9eb280853f Updated from global requirements
Change-Id: I92c27624db3a77b2531a78df59fafe43dc5ddaab
2017-06-10 21:39:50 +00:00
OpenStack Proposal Bot d017789caa Updated from global requirements
Change-Id: I7b08de4389dd7d99d3a1ff181b73ae409a8073f4
2017-04-12 04:14:18 +00:00
OpenStack Proposal Bot f9f209e821 Updated from global requirements
Change-Id: I2f9ce6cc44bfb7b1ba81ee2ef1709db1b378c5c9
2017-03-02 11:47:07 +00:00
OpenStack Proposal Bot 6c9b1bd636 Updated from global requirements
Change-Id: I0f003c26af567579c87fdf92da7940577c1a08dc
2017-02-11 17:44:24 +00:00
OpenStack Proposal Bot 0793709fe7 Updated from global requirements
Change-Id: I7c5ba6d8e5276822e90b937f79ec1ce01296b542
2017-01-24 20:36:58 +00:00
OpenStack Proposal Bot a8f2941a7f Updated from global requirements
Change-Id: I6201f561dc5ab38c672887feeccdd920a3da5899
2016-12-12 03:40:57 +00:00
OpenStack Proposal Bot 81547edba0 Updated from global requirements
Change-Id: I6205deb0e17548948a42ad31cd4e3d7f8eccf3d1
2016-11-09 04:17:28 +00:00
OpenStack Proposal Bot 73a8f2c181 Updated from global requirements
Change-Id: Idd064fec085b8b04f40cd2f6661770bf9620590a
2016-10-05 13:31:02 +00:00
OpenStack Proposal Bot 4c39e3ad67 Updated from global requirements
Change-Id: I0385ab1a77293d9175d980a4cfa400adead5a845
2016-09-03 01:56:37 +00:00
Kaiyan Sheng c74ea85c71 Import simport from monasca-common
Change-Id: Ibe6751b58717f1b72fe653983bf6088cecd9a158
2016-06-17 14:31:08 -06:00
Roland Hochmuth aa23020cc0 Remove kafka-python and kazoo from requirements
Change-Id: Ica70f61adf1881b4aa35914d905006ac6508cee2
2016-02-29 17:21:40 -07:00
Joe Keen da21215878 Unlocking monasca-common requirement
Change-Id: I8c54a0888ae3dde09fcfaf0fe5db80aa16bc4e60
2016-01-26 17:06:07 -07:00
Joe Keen dfbe72475b Mitaka compatibility
Unlocking the version of kafak-python for Mitaka compatibility.  It looks like
we've since fixed the issues we saw with kafka-python 0.9.3.

Change-Id: Ia01c84dab452f262ce4308e6339c00f5e9f74955
2016-01-22 12:45:16 -07:00
kaiyan-sheng 1e03695f00 Update Notification Engine Requirements.txt
Change-Id: Ie6f9a3d6c25f811efa50972a54942127399bd0b6
2016-01-22 09:25:40 -07:00
Deklan Dieterly 752dc6708a Fix simport requirement
Make simport requirement be =>0.2.dev16. This works
when installing Monasca Notification in the DevStack
Plugin.

Change-Id: I4917653fc2e113e9f7e67cb7f1fb5a50ff8cf1b0
2015-11-10 15:04:48 -07:00
Joe Keen 6b5d79df5f Migrate notification engine to common kafka interface
Change-Id: I6963e71edfe1b694e5299f400b6cdc07e6dd4354
2015-11-02 14:31:10 -07:00
Joe Keen 947a238524 Adding stricter requirements
Change-Id: I58b4246deeea77092438cc9381f060a9cb5ee111
2015-08-20 11:57:50 -06:00
Michal Zielonka a82a49a1e8 Add configurable database setting (mysql, postgres, orm)
We used sqlalchemy.core for execute query for orm.
The configuration of db is based on monasca-api.
The default mode is mysql connection so we can use old configuration.

Change-Id: Iebb4d6dfca6d43298ced407178e7f9673a83a7ca
2015-08-04 22:34:57 +02:00
Tim Kuhlman e100f433f4 Allows a newer version of pbr
Change-Id: Ibfb5aae957f39ecbc06ae569cee39e647e2e3631
2015-07-27 15:30:13 -06:00
Craig Bryant 821f3bac7e six is also a required dependency
Found this because monasca-notification aborted before
monasca-agent was installed in the virtual environment

Change-Id: Ib1eea8afde785ecadeac69d21ea6dd831f55b0ed
2015-04-28 23:22:27 -06:00
Tim Kuhlman 1162ccba8b Don't install kafka-python 0.9.3
Change-Id: I800960122169267d85aa763633bec872a0512774
2015-02-04 14:05:32 -07:00
henriquetruta 634965a6dc Implementing Webhook Notification type
This patch enables the Webhook notification through a Http POST in a
URL address given in the "address" field of the Monasca
Notification-Method resource.

Depends on patch 135365

bp webhook-notification

Change-Id: Iec64d4507c360df1e123552d78ef9d97c5ba05d1
2014-11-20 15:41:33 -03:00
gary-hessler 9025d8b0e4 Switch to using monasca-statsd
Switch to monasca-statsd so we can send additional dimensions
for service and component with the statsd messages.

Change-Id: Ic6ff3b67b4148c070ec9eec9f9f990680b5e9f4c
2014-11-20 09:43:52 -07:00
Tim Kuhlman 3d1deca139 Move from using zookeeper to track partition offsets to kafka
With kafka 0.8.1 it is now possible for non-java clients to track
offsets with kafka. Previously the code had built this using zookeeper.
This relies on kafka-python > 0.9.1

Change-Id: Ia42e713cc5d9ca61d8f8df2adc454f1e2579a229
2014-08-28 08:25:47 -06:00
Tim Kuhlman 224e654f4c Move to pbr based build
Change-Id: I36cc5d862c4364937450ad8ae4fa20a1a709781f
2014-07-29 16:07:42 -06:00
Tim Kuhlman 5dfd9374e9 Added wheel settings setup.cfg so the publish to pypi works correctly
Change-Id: I4bcf8c5649f8700be767e36967196a11c0f27f15
2014-07-22 14:31:21 -06:00
Tim Kuhlman ea0760508d Cleaned up dependencies for easy_install 2014-05-12 09:52:41 -06:00
Tim Kuhlman 17a7694ea7 Added requirements files. 2014-03-25 11:02:18 -06:00