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
monasca-agent service file is not used anymore. monasca-collector,
monasca-forwarder and monasca-statsd are new services defined in
monasca-agent target.
This change removes the legacy monasca-agent service file handling from
DevStack plugin.
Story: 2000975
Task: 36886
Change-Id: Iac7d608a202440381f211d04b0978218ac36c54d
To improve reliability of logs tempests tests we deploy only necessary
services in CI environment. This should save a lot of resources.
Change-Id: Id5b8ddc0700b2b7bc100f1eefbe891d9016e918c
This updated allow to use python3 to build grafana
Update nodejs from 8.10.0 to 10.17.0
Update npm from 3.5.4 to 6.11.3
Change-Id: I709d1e6134150f1648a8f409ce438544e15ce403
There can be lot of possibility for IPv6 address with port,
for example [::1]:80 or [2001:db8:85a3::8a2e:370]:7334.
Parsing that in more standard way is provided by oslo_uilts.netutils
parse_host_port() method[1].
Also unquote '[]' the SERVICE_HOST in case of IPv6 case so that
DB can listen on correct address.
Story: #2006309
Task: #36028
[1] 1b8bafb391/oslo_utils/netutils.py (L37)
Change-Id: I2d0ef40ab71f60564549d031185f99bc7eec40a7
The change configures and enables monasca-agent libvirt plugin in
Monasca DevStack plugin. It will allow easier integration of Monasca
with other projects for use cases based on VM measurements.
Story: 2005752
Task: 36842
Change-Id: I061e905bed06cc10c4d62201dcd945f715eb3a6e
The change introduces the possibility to run the API with the new
confluent-kafka client. It has to be enabled in the configuration file.
Story: 2003705
Task: 35859
Depends-On: https://review.opendev.org/680653
Change-Id: Id513e01c60ea584548c954a8d2e61b9510eee8de
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
Updated default config to use InfluxDB v1.7.6.
This appears to work, at least for viewing
metrics, persisting them, and some CLI commands.
Updated influxdb.conf to bring in line with sample
config.
Drops support for configs of older versions.
Story: 2005624
Task: 30877
Co-Authored-By: Isaac Prior <isaac@stackhpc.com>
Change-Id: Ib73151e6e7d0934303c9e801bb018bc22f1716ae
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
api-config.conf is the deprecated path for the configuration file. The
new path is /etc/monasca/monasca-api.conf .
Story: 2004708
Task: 28987
Change-Id: If06d9114529c3ef4520247dfc7c32d3769f07084
We want to migrate to the latest Ubuntu LTS release 18.04 aka Bionic.
See [0] for the big picture.
This change:
* installs Node.js from Ubuntu packages,
* removes apt-get `-y` option which is included in devstack's wrapper
function.
[0] https://etherpad.openstack.org/p/devstack-bionic
Story: 2004474
Task: 28174
Change-Id: I7ed847ee5f4f203f112dd051f0fb157a11907a75
Depends-On: https://review.openstack.org/618169
Starting monasca-collector service as root user will allow
to gather metrics from services which were started with root
privileges.
Change-Id: Ida453cc9e9f3f5a6bf4c69e007b7572665b6efbd
Story: 2003623
Task: 26467
With Apache Kafka 1.0.1 deleting topics fails if called with not
relevant options like `--partitions` or `--replication-factor`.
Change-Id: I614962f45e8487b34507ef1d695f3f76d0186d55
Story: 2002850
Task: 22799
According to [1], "auth_uri" has been deprecated.
This patch remove it completely.
[1] https://review.openstack.org/#/c/508522
Change-Id: I094ee869a821fefbbf5de64defda408315e7d594
Changed way to start and stop monasca-agent to take into
account that now it's a systemd target and not a service.
Improved cleanup to take care of all the installed files.
Task: 19584
Story: 2000975
Change-Id: I9420171623f288873fa263f5bc87560629391ea5
MySQL Connector is released under GPLv2 license which restricts the
distribution of the consuming project [1]. This change configures
monasca-thresh to use Drizzle JDBC (BSD license) in devstack.
[1] https://governance.openstack.org/tc/reference/licensing.html
Story: 2001522
Task: 6323
Change-Id: I1154e166e1aa6fe6693bdd169d2e5544719fbe6c
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
Default settings only allow localhost advertisement by kafka broker.
with this update kafka broker will advertise devstack configured ip address.
Change-Id: Ie3a146598789d6f63bbf55c4847cc569231c9dec
Devstack lib/keystone deprecated the cache dir argument in the
configure_auth_token_middleware method. It was used for PKI.
Monasca devstack deployment fails due to this api change.
Change-Id: Ic88dc5ad38d3b5c136e092fc0b66d78eb19dd6a5
devstack has introduced get_extra_file function
that aims at downloading the files from the URL.
The method is better alternative as it is integrated
into devstack caching process.
Change-Id: I8a804d8842e0921b0f2acfcf1cfbdffab21e5e9c
Change migrates the monasca-api to use oslo-config-generator in
order to always build newest configuration file. That removes
the need of maintaning the file along with changes to oslo configuration.
The example of the file is also included in the documentation.
Also:
* ported case for launching api under WSGI and allowing the argument
parsing of oslo to take place
Story: 2000970
Task: 4865
Story: 2000964
Task: 4106
Change-Id: I57547b0e2122e40f58db5f949773900b76214526