Commit Graph

11 Commits

Author SHA1 Message Date
Thomas Bechtold 2bf341c6dd Use monasca-notification.conf during devstack runs
Since [1], monasca-notification supports the standard oslo.config
based configuration style (ini file instead of yaml). The old
notification.yaml file still works but is deprecated.
So switching to use the new oslo.config based file is the way to go
forward.
Also adjust the zuul job to copy /var/log/monasca/notification and
/etc/monasca/notification.conf so debugging will be a bit easier.

[1] https://review.openstack.org/#/c/464768/

Story: 2004862
Task: 35646

Depends-On: https://review.opendev.org/668508
Depends-On: https://review.opendev.org/663960
Change-Id: I489d66d623c3e27ca28ba87ebde32264b13ac0f3
2019-07-02 12:21:52 +02:00
Witold Bedyk 6409d06439 Set up DB schema in DevStack plugin using Alembic
SQL schema scripts are replaced with Alembic command line tool.
Notification plugins are enabled in notification engine configuration
file.

The change also fixes the `sub_alarm` table schema. The foreign key must
refer to the field with the same data type, charset and collation.
Otherwise the schema migration fails occasionally with Python 3 with the
IntegrityError[1]:

  oslo_db.exception.DBError: (pymysql.err.IntegrityError) (1215, 'Cannot add foreign key constraint')

[1] http://logs.openstack.org/61/622361/8/gate/monasca-tempest-python3-influxdb/26104a3/controller/logs/devstacklog.txt.gz#_2019-01-30_15_52_45_455

Change-Id: I95d7e91e62ff13e84f963fdbb3bca6b7dfd7c310
Story: 2001654
Task: 14421
2019-02-20 14:53:10 +01:00
akhiljain23 c11fbd6c70 Add keystone parameters to authenticate webhook notifications
This commit will update devstack plugin to add required parameters to
notification.yaml for keystone authentication.

Change-Id: I61b3b437a06f5e62b41c567d361e1d73a4e55d0e
Partially-Implements: blueprint add-monasca-push-driver
Story: 2003105
Task: 23221
2018-08-07 12:28:37 +00:00
Georgia-Anna Farmaki 62cf4e26e2 Added a field grafana_url in the installation script
Included a field 'grafana_url' in notification.yaml
for email notifications and replaced it with the
respective grafana host in plugin.sh.

Change-Id: I581b2e9d12632cc7509d24525cc225b60514a8c3
Story: 2001052
Task: 4653
2017-09-01 12:26:24 +00:00
Tomasz Trębski f9b41eefbe Use devstack utilities for monasca-notification
Adjust monasca-notification installation with changes:
- start/stop of monasca-notification proces handles through run_process
  and stop_process and no service files
- setting up environment with devstack function
- use USE_VENV for monasca-notification
- installing monasca-notification dependencies from git
- remove service file from devstack/files/monasca-notification

Also added code from Idbe5bdf56fb280412c34f04de8f2e2f301a7a432

Depends-On: Idbe5bdf56fb280412c34f04de8f2e2f301a7a432
Change-Id: Ic581fbdd2db57c9a2f13f1646eb9485c5dd0f62b
2017-07-12 13:11:27 +02:00
Tomasz Trębski 8c0046e379 Simplify RDB setup
Following commits simplifies devstack setup
by relying on $DATABASE_USER (as provided by devstack)
instead of creating custom users.

Also removed methods that were creating users
for different databases which reduced amount of
code

Change-Id: Ida5308bb6945813b5b52035dab93ff4e5c82c45f
2017-02-22 09:47:46 +01:00
Tomasz Trębski 161ad011d1 Enabling Postgres + ORM in devstack
Following commit provides:
- possibility of using postgres as database backend
- possibility of using ORM mapping in monasca:
 - API
 - Thresh
 - Notification

Additionally:
- different approach of providing configuration settings
- removed unused winchester schema
- reworked execution phases of the plugin:
-- installing dependencies in the beginning

Implements: blueprint postgres-cli-support
Change-Id: Iae561b0c7e6b90cc7c9f5b122c0e4b37bc5ef843
2017-02-08 12:29:04 +00:00
Artur Basiak b548e2f274 Make statsd options configurable
Configure statsd host and port from variables.

Change-Id: Ic772f2e68951ed12c6ff80d23562dded4fd2dee7
2016-12-08 10:14:53 +01:00
Artur Basiak 2cb747ab99 Monasca-notification config file
Add new section to configure statsd port for monasca-notification.

Change-Id: I76866652acb1d6b8bbc3b4a449edaa2492073db9
2016-11-21 08:22:40 +01:00
Michael James Hoppal c2f85438d6 Add period field to notification methods
This will allow periodic notifications

Change-Id: Ifa7c1e499d4ac45d543285463036b8a058f70c26
2016-06-08 13:31:39 -06:00
Deklan Dieterly a04606b795 Monasca DevStack integration
Add the following Monasca components:

    - monasca-persister (java)
    - monasca-notification
    - storm
    - monasca-thresh
    - monasca-keystone-credentials
    - monasca-agent
    - monasca-smoke-test

Change-Id: Ic6410895c36e70e9eea208d8868ead743132d331
2015-10-06 14:16:30 -06:00