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
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 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
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
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
Storm 1.1.1 is affected by the security bug CVE-2018-1332 [1].
It is recommended to upgrade to 1.1.3 (latest in the 1.1.x series).
[1]: http://www.securityfocus.com/bid/104399
Story: 2003031
Task: 23059
Change-Id: I95e9235556c9e639083482b63398a657c52f6abb
Keep log message format to ver. 0.9.0 to support old kafka-python
consumers.
Story: 2002746
Task: 22599
Change-Id: I6a092d64906a939d404abb3e43fc017d2eee74ea
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
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
Storm 1.0.3 is affected by the security bug
CVE-2017-9799 [1]. It is recommended to upgrade
to 1.1.1 (the latest release at the moment).
[1]: http://www.securityfocus.com/bid/100235
Depends-On: Ie32d184b2446e2db6b145712ec5ffadf1e3f18b3
Change-Id: I5ef6691782779a783e257a94ce16a2337596a2c6
Storm 1.0.3 is affected by the security bug
CVE-2017-9799 [1]. It is recommended to upgrade
to 1.0.5 (the latest 1.0.x release at the moment).
[1]: http://www.securityfocus.com/bid/100235
Change-Id: Ie32d184b2446e2db6b145712ec5ffadf1e3f18b3
Depends-On: Iccc30d411a49b9e47d6625909427f071397aedfd
The influxdb 1.2.x branch provides a significant performance improvement
(over factor 2) for writes, so it's good to use the latest and greatest.
Change-Id: Ia0d9220dd53890d3b42ebcf4bc9f349bc43ba83d
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
Following makes it possible to run monasca-agent (based
on keystoneauth) inside devstack environment.
Depends-On: Iec97e50089ed31ae7ad8244b37cec128817871a5
Change-Id: I579f6bcd5975a32af2a255be41c9b6c4043fa1dc
In some cases APACHE_MIRROR that is picked points
at the server from which it is not possible to download
the binaries.
Change-Id: I08f1d48cc8bdac7d9d489684e0f6e45c29b95119
Adjust monasca-api Python installation with changes:
- start/stop of monasca-api proces handles through run_process
and stop_process and no service files
- setting up environment with devstack function
- use USE_VENV for monasca-api
- installing monasca-api dependencies from git
- remove configuration file from devstack/files/monasca-api/python
- setup up configuration files with iniset
Change-Id: I2faf48d17fb5e958e1d7ad2383c125ade3faaaf0
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
Following commit migrates from usage of custom
python script to create users, roles, projects, service
and endpoint to the usage of builtin devstack's function
meant to manage keystone entities.
Benefits of doing so is that is the monasca plugin
will not depend directly on python-keystoneclient, which
API may change and may result in broken gate. Such situation
happened before, at least once.
Also new code is much more verbose and easier to understand
by simply refererring to documentation of aforementioned
functions.
Change-Id: Ie26021916a0c8a4190b3572743f99de3179671d2
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
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
Refactor the code about cloning and installing monasca-common
and monasca-statsd repos. Provide new variables in settings
for monasca-statsd.
Removed installation of monasca-common or monasca-statsd where it was
not needed.
Change-Id: I226e42655c834a9a8ac7e58989ac86018d7d4576