fix: change tox.ini
fix: change queries for list_dimension_names and list_dimension_values because of influxdb time filter problem
fix: remove build_sphinx group from setup.cfg
fix: handle hashlib security problem
Change-Id: I0d31a8db5ed71c70e7b878ce5e7940e041d0fa43
Change-Id: I6f7066da10e834550cbf0c053c7bf425ac0ead93
Change-Id: If9575aee73d600bbc84fcdf58deb1c57b508d9c2
Change-Id: If515eaeee7539da3ca49997e88785dc65572b334
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).
-Bump the lower constraints for required deps which added python3.8 support
in their later version.
-Changing the way to install and configure Zookeeper.
Installing Zookeeper from official Apache's tarball.
Adding the possiblity to set the specific Zookeeper version.
Minor change in zookeeper logger.
-Use mariadb JDBC for monasca-thresh in devstack, since Drizzle isn't
compatible with MySql Server v8.0.x which is default in Focal
-Python 3.8 doesn't seem to like dictionary keys changing during
iteration.
Fixing RuntimeError: dictionary keys changed during iteration.
Tech. details:
It runs well in py27: 5 iterations
It runs risky in py37: 7 iterations
It is forbbiden in py38: raised RuntimeError
Fixed with list(dic.items()) or tuple(dic.items())
dic = {'1': 'a', '2': 'b', '3': 'c', '4': 'd', '5': 'e'}
for key, value in dic.items():
print("Key: {0} Value: {1}".format(key,value))
del dic[key]
print(dic)
dic[key] = value
print(dic)
Story: #2007865
Task: #40197
Depends-On: https://review.opendev.org/756859
Change-Id: Ieb4cf38038ffb4d1a152f8ab3b64a14098c7cbb3
We change the default value of kafka.legacy_kafka_client_enabled from
True to False. The use of new Confluent Kafka client is recommended.
DevStack plugin does not set this option anymore.
Depends-On: https://review.opendev.org/740959
Depends-On: https://review.opendev.org/740966
Change-Id: I4d57b8893a6a131769009dc3299789d3fc89bab6
Story: 2007924
Task: 40338
Kibana API has changed between the versions. To allow testing
different Kibana versions `kibana_version` option should be set in
tempest.conf.
This is a partial port of https://review.opendev.org/727195
Change-Id: I0a21bd99c942ab05ce1eae51226132691518bd91
The change removes the redundant `install_nodejs` function. After
merging the DevStack plugins function is available in plugin.sh already.
Change-Id: I5e4d6e5b05f9506ba87bdecb601e411b8496453c
The commit contains upgrade of Elk components, default index pattern
creation in new API.
Story: 2006376
Task: 38125
Depends-On: https://review.opendev.org/#/c/679781
Change-Id: Ib0b966c0d7db993802b5372156c41b3ebdf1a77f
The default and preferred way of modifying the settings of Horizon
plugin is to add a configuration file to
openstack_dashboard/local/local_settings.d/ directory. For that to work
we should use the settings from django.conf.settings and not from
monitoring.config.local_settings.
[1] https://docs.openstack.org/horizon/latest/configuration/settings.html
Story: 2006556
Task: 36645
Depends-On: https://review.opendev.org/682321
Change-Id: I718b51ce94b09bb547f03686831c3b1ac1721399
Upgrade Apache Kafka to current stable version 2.0.1.
Issues have been observed with legacy Kafka producer being used in
notification engine together with newer Kafka broker versions.
Following changes are included:
* Deprecated configuration option `advertised.host.name` is replaced
with `listeners`.
* Default `log4j.properties` is used.
Story: 2005624
Task: 30933
Change-Id: I898b511b2ab8f68e4850faab2098044cd3f94ee7
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
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
The default configuration file name for monasca-persister has been
changed to monasca-persister.conf. This change updates DevStack plugin
to use the default.
Change-Id: I95039356c768173fd902e7e253e1fad77c8a0b87
Story: 2004867
Task: 29112
Change temepst-java-influxdb test to no voting.
Java-persister fully support only casanda db.
Story: 2004175
Task: 27657
Change-Id: Iedb3844fa455fd186d6c36f0bbb69a3aa313984a
Instead of `log_config_append` option use devstack's `setup_logging`
function to set up logging in the way consistent with other OpenStack
components. This should allow correct indexing of monasca-persister logs
with project-infra grok patterns.
Also, set default log level for kafka_lib.client module to INFO to
reduce log message size and avoid long log messages.
Story: 2003911
Task: 26839
Change-Id: I19c13427b52f906b2e9e028cf6272a5e7261238e
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
Commit enables storm-{logviewer,ui} for the purposes
of the local development but keeps them disabled
in the gate runs.
Depends-On: Iccc30d411a49b9e47d6625909427f071397aedfd
Change-Id: I8cc2d6c616eff9ab058b24f837c655228b84f184
Support Cassandra db installation and Cassandra related
configurations for Monasca api and persister services
in devstack. Add Monasca rest API Cassandra plugin for
retrieving metric, dimension, measurement, statistics
and alarms.
Change-Id: Ie60d668692e1f25f555dda2355f4e513d582736c
story: 2001231
task: 5759
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
Adjust monasca-persister installation with changes:
- start/stop of monasca-persister process handles through run_process
and stop_process and no service files
- setting up environment with devstack function
- use USE_VENV for monasca-persister
- installing monasca-persister dependencies from git
- remove service file from devstack/files/monasca-persister
- reorganized also java part
Change-Id: I08195ad281637e6567a8acbace9862df2d5f9502
* shell commands completition
* usage of openstack openrc utility to source
environmental variables to use client
Extra:
* removed cassandra env and replaced it with bash code
* reworked creating bash profile
* removed devstack/files/env.sh as it is no longer needed and
everything is available through profile
Depends-On: I579f6bcd5975a32af2a255be41c9b6c4043fa1dc
Depends-On: Ifee5b88ccb632222310aafb1081ecb9c9d085150
Depends-On: I01d0f3d9814376f9358feb23494e1ca5231aedac
Depends-On: I1712a24739438e2d8331a495f18f357749a633c5
Change-Id: I35f5943ae1eadb10dc416179c575cdad62753b69
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
Previously only plugin.sh was validated.
At the monent some parts of the plugin
were moved under devstack/lib to increase plugin.sh
readability. Those files were not validated.
Note:
Tweaked a tox.ini by removing installing the monasca-api
package in environments that do not actually need it.
Also removed redundant references to main environment
dependencies.
Change-Id: I43381647228fad99603b5717c37496e80f409d4f
Adds copying policies of monasca dashboard into horizon
policies directory.
Extra:
* reworked installation process (now using setup_develop)
* installing python-monascaclient using setup_lib and cloning it
directly from referenced MONASCA_CLIENT_BRANCH
Depends-On: I273f06332fa11a81ea8de2c13059dce9d160e90d
Change-Id: I2cf1ae62e8b80aefe14d093a499f7103a5c288a5
openstack/devstack-dev has removed zookeeper support.
For details see [1].
Following commits brings back zookeper as it was
previously installed from devstack.
Extra:
* added concepts of devstack dependencies. That speeds
up installation a bit as common packages are installed
prior to the plugin code
Ref:
[1] c0d16c279a
Change-Id: I0323eacb5cbba8418550e3322189104c35cf4c36