Commit Graph

39 Commits

Author SHA1 Message Date
Ghanshyam Mann f290882658 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: I011e9d6e0787dae20607040bc08e7335ff306862
2022-05-03 11:26:13 +00:00
Ghanshyam Mann c491b34888 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Ibb26169656785330e7d86a362fd110222fb63a07
2021-02-02 17:44:35 +00:00
wangzihao 6ffab589a4 Remove six
Remove six Replace the following items with Python 3 style code.
- six.PY3
- six.xrange
- six.string_types
- six.binary_type
- six.iteritems
- six.unichr
- six.wraps
- six.get_function_code
- six.PY2
- six.b
- six.moves.range
- reraise
- six.text_type

Story: 2008305
Task: 41301
Change-Id: Idf64154a013b53c7db771a25f1c63c1295e354e6
2020-11-23 15:20:59 +08:00
Martin Chacon Piza e8a953ba3a [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 requirements and lower constraints for required deps
which added python3.8 support in their later version.

-It also fixes one unit tests to handle PEP479 being enabled for all code
in Python 3.8 [2].

Story: #2007865
Task: #40197

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html
[2] https://stackoverflow.com/questions/51700960/runtimeerror-generator-raised-stopiteration-every-time-i-try-to-run-app

Change-Id: If67bbfe8a2db19fa8f3437f746ca7f4d04487447
2020-10-13 16:09:31 +02:00
Martin Chacon Piza 0f4e2bc5df Replacing ujson with simplejson
- http://lists.openstack.org/pipermail/openstack-discuss/2020-January/012285.html

Change-Id: Ic18f8cf4addfedd9055999ec685e81140ffda32d
2020-04-02 15:44:25 +02:00
Witold Bedyk a8b68cbc19 Add wrapper for Confluent Kafka async Producer
Story: 2003705
Task: 27630
Change-Id: I5981e40ecf62cd123ff1969109a8b4b0b9ec204d
2018-11-28 09:56:34 +01:00
Witold Bedyk 34e4c58d50 Remove not used pykafka requirement
Story: 2003079
Task: 23153
Change-Id: Iba653db8935f9575a7838f6daa24b1ec90526815
2018-07-24 16:23:52 +02:00
OpenStack Proposal Bot e8248f6448 Updated from global requirements
Change-Id: I87ee0178933c8974b3c0bb25d6b73e884019f73d
2018-03-14 05:37:57 +00:00
OpenStack Proposal Bot ddc8f3db9a Updated from global requirements
Change-Id: Ifd6a1cfa0e49e7f7670ef66e01bca43f2ae95815
2017-12-23 09:56:31 +00:00
Amir Mofakhar 4250756a1f Implemented a policy enforcement engine
Under monasca_common/policy an enforcement engine is added for using
oslo.policy in the other monasca projects.
There are same methods as in enforcement engings currently used in
nova and keystone projects.
Also added unit tests under tests/policy for testing implemented
methods.

Task: 6105
Story: 2001233

Change-Id: Ic5402ba0986416c9386c1dc3fc1559f148ea9625
Signed-off-by: Amir Mofakhar <amofakhar@op5.com>
2017-12-19 15:16:09 +01:00
OpenStack Proposal Bot 0c2b7ee4db Updated from global requirements
Change-Id: Ic717ba428acc7bb3dbbb5a6612d54c4107284ed4
2017-11-29 09:01:39 +00:00
OpenStack Proposal Bot b2bda29d20 Updated from global requirements
Change-Id: If140ece1d81a2e39ecaeb5a30623889337d41eaf
2017-11-16 11:10:37 +00:00
OpenStack Proposal Bot 32fb6f063a Updated from global requirements
Change-Id: Iff5af8970ba8472774b95251df3801381a3f6d17
2017-09-13 00:06:29 +00:00
Jenkins 9188cfcb34 Merge "Add a query language for group, inhibit, and silence rules" 2017-06-19 17:19:03 +00:00
Andrea Adams 41800dd195 Add a query language for group, inhibit, and silence rules
The new alarm rules will each have an expression in their
definition which will need to be parsed by both the Monasca-
API and the Monasca-Notification-Engine. Documentation for
this will be included in the API along with descriptions of the
new rules.

Story: 2000939
Task: 4692

Change-Id: I1a98fafae8dfdfa6fdb2eb66f4a4a4f40e518e46
2017-06-16 22:42:20 +00:00
OpenStack Proposal Bot 7b2d0637ed Updated from global requirements
Change-Id: Id5b48640f9c4534c2769ef21b1753d3887c2b967
2017-06-15 16:26:00 +00:00
OpenStack Proposal Bot e74ee18e00 Updated from global requirements
Change-Id: Idb00f8fb83cddf1bc3a5818505e05e7eb1579c59
2017-06-02 02:28:27 +00:00
OpenStack Proposal Bot b6b6251a63 Updated from global requirements
Change-Id: I4af20484733ca1e72428052155fb148643e188f4
2017-04-13 20:35:26 +00:00
OpenStack Proposal Bot cb38d5c7a6 Updated from global requirements
Change-Id: I824b941000f15da05742d02861a26dc6f80bfacd
2017-03-13 19:33:57 +00:00
OpenStack Proposal Bot a04f7653b0 Updated from global requirements
Change-Id: Ifbe0b8b04e56a44c007a8f640331b5e7fb6c7b44
2017-03-02 11:47:03 +00:00
Tomasz Trębski dc7c14d2d0 Removed unused logging module
monasca_common.logging seems to be unused
in other monasca projects therefore should
be removed.

Also removed one dependency that was used only
by that module

Change-Id: Ib875d9bae86c9b2b715edbe0226347b3fc9ec8ed
2017-02-17 05:50:51 +00:00
OpenStack Proposal Bot c35bc015c8 Updated from global requirements
Change-Id: Ied94fa85589288a72b62a6c5bf2565b3c21963eb
2017-01-23 23:45:30 +00:00
Joe Keen cb2ec23cee Fork 0.9.5 kafka-python and require pykafka
To let other OpenStack projects move forward with new versions of kafka-python
we're forking kafka-python and embedding it in monasca-common.  This allows us
to migrate to the new async interfaces provided by more recent kafka clients
over time and not block other projects.

Requiring pykafka to allow us to have ~4x more throughput once we write to
their async interfaces.

Change-Id: Ifb6ab67ce1335a5ec4ed7dd8b0027dc9d46a6dda
Depends-On: I26f9c588f2818059ab6ba24f9fad8e213798a39c
2017-01-21 10:40:55 -07:00
OpenStack Proposal Bot 92e08671b9 Updated from global requirements
Change-Id: Iebeb3c13f683bd726a51addd44fd01f3a92b7d01
2017-01-05 05:07:37 +00:00
OpenStack Proposal Bot 5ae20bd9ba Updated from global requirements
Change-Id: Ib7bd9a3fd8b5365cc7803d4781336f30aff2c055
2016-11-30 23:07:48 +00:00
OpenStack Proposal Bot eb7d166103 Updated from global requirements
Change-Id: Ie687ba53f5cd736efd1e5d11ac659603d29ca775
2016-11-09 04:17:26 +00:00
OpenStack Proposal Bot b28f16fcfc Updated from global requirements
Change-Id: I7adeb6517e694d95a411bae4041d6fea2d960213
2016-10-27 12:15:42 +00:00
OpenStack Proposal Bot 62c16b6ac8 Updated from global requirements
Change-Id: I5af5a33ed99dd5d0881d0e66871c170a25ffb248
2016-08-31 18:25:48 +00:00
OpenStack Proposal Bot 46c2628384 Updated from global requirements
Change-Id: Id4765cb81b2d6fde86fdc9fecf9be393e5a86789
2016-08-04 02:36:25 +00:00
OpenStack Proposal Bot 52191ba73e Updated from global requirements
Change-Id: I29f197335a44146b0cb10dd4d06ef397e1c4d9e7
2016-07-09 03:12:15 +00:00
OpenStack Proposal Bot e22862bccd Updated from global requirements
Change-Id: I189ea43268f561a36950619683b8da8b38536689
2016-07-01 16:06:45 +00:00
Joe Keen 8ed12871f8 Updating kafka requirements
Kafka interface requires kafka-python version >=0.9.5 and <1.0

Change-Id: I7547fa058c1f8d1d4551d9558b35dd2d80422c23
2016-03-08 11:53:25 -07:00
Joe Keen 7b20e0170d Restricting kafka-python version
The 1.0 version of kafka-python has several issues with perfomance and
stability.  We're avoiding that version until it stabilizes.

Change-Id: I48e25548295651e7c32623c90e2c6a15eabbca55
2016-02-17 13:11:16 -07:00
Joe Keen d759362d71 Mitaka compatibility
Change-Id: I25519d3a9bdd34f48544dd3182d8289b2fdbe07d
2016-01-25 15:10:09 -07:00
Tomasz Trębski e6143321a8 Common REST data handling
Adding common REST data handling
to monasca-common project

Change-Id: I982d0afbc51863905c56e1d4c24307fea261d944
2016-01-14 12:27:33 +00:00
Michal Zielonka 7a6aa181b9 Change MySqlDB to pymysql
MySQL-python has GPL2 license. Apache license is not compatible with it. 
We propose to replace it with pymysql which has MIT license.

Change-Id: I8d758f5e4908c1047dc4167ebd28cad24fff3a28
2015-12-15 17:04:39 +00:00
Joe Keen 78f0bda226 Adding liberty versions of oslo to requirements.txt
Change-Id: I2aba39f64af722341bad8b4e54c55c942ec857e1
2015-12-10 15:43:40 -07:00
Joe Keen 7eec9f1ebc Added kafka interaction objects to monasca_common
New consumer object intended to be used by the pieces of Monasca that want to
consume data from kafka.

New producer object that will write to kafka in a performant manner.

Require kazoo
Removed PyYaml requirement

Change-Id: I2eb0c5cd1ed64b83a67912109c4c6de7a1d73722
2015-10-30 18:03:45 -06:00
cindy oneill 21d3947845 initial python monasca-common code in monasca_common
This is the start of a python monasca-common package.
Initially it has a common python logging config,
common oslo opts, and mysql common code.

Change-Id: I15c32b72fc42a8c5ce9eeedf20ca3a11907bf29f
2015-09-01 13:56:39 -06:00