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>
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
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
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
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
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
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
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