The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found by updated hacking version.
Remove hacking and friends from lower-constraints, they are not needed
there.
Change-Id: I7614df314c211dc3acca2e3e8cb647bddddd6c16
Update nodejs from 8.10.0 to 10.17.0
Update npm from 3.5.4 to 6.11.3
Configure Monasca tempest plugin to use the correct Kibana version.
This is a partial port of https://review.opendev.org/727195
Depends-On: https://review.opendev.org/730637
Change-Id: Id93ee30bcd803e7a48074da67b9538496e7d1063
Story: 2003881
Task: 38494
The change was made due to plugin trying to install grafana dashboards
using python2 instead of python3.
Change-Id: I305b2930470b259b8abc6e28580f036862b454b9
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
Change-Id: I95cf79aa121b36ff559c21759e91b83be0cbecfe
api-log.conf is the deprecated path for the configuration file. The
new path is /etc/monasca/monasca-log-api.conf .
So use this new path in devstack, documentation and docker.
Change-Id: I2208b7e27d3dbec38290ffb8ba66bc64a5129744
Story: 2004831
Task: 29024
This change also installs the Monasca output plugin from RubyGems
instead of local gem file.
Change-Id: I828fddf75990e4b6841a33fcb16a8ccc664df3f6
Story: 2004514
Task: 28242
Community has set a community wide goal
in Pike cycle: "Control Plane API endpoints deployment via WSGI" [1].
monasca-log-api is already capable of being deployed under mod-wsgi but
not under uwsgi. This commits enables that feature. Until Queens release
API will hence support:
* gunicorn
* mod_wsgi (remove in Queens)
* uwsgi (preffered)
Refs:
[1]:
https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html
Story: 2001464
Task: 6180
Change-Id: Ie4a94c9c2e166915c3f4a1783dc3527f4eb62f29
This file are no longer used because of zuulv3 migration.
Change-Id: I5e75195de6ffea533cf843b61d24c6cee8e991f1
Depends-On: I7bc913d0e5cd9e8a06a63cc3d11740056c7036d7
* Partial revert of 0a82af18ab
to restore main() method
* Add global `application` variable which will be set by main method to
problem to preserve the fix from 0a82af18ab.
* Add check for application name starting with '_mod_wsgi' to ensure
application runs in Devstack as well (Devstack does not use the entry point)
* Modify Devstack plugin to run WSGI entry point rather than app/wsgi.py from
module directory.
Change-Id: I07001dccb663ed4e6e3347089ab96e6f8ec196d4
Story: 2001197
Task: 5702
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: I90900d6a388c12bd20ce69608a1c10423839baaa
It is common for OpenStack projects to use oslo-config-generator to generate
a sample config file which contains all available configuration options.
Work items:
* removed etc/monasca/log-api.conf (it is autogenerated)
* keep all config in one place to mimic the configuration file
* added configuration files to documentation
Story: 2000970
Task: 4121
Change-Id: I8777ed6cd38739e87b19be248b9c120e84626ad1
Following commit introduces using composite
paste file to describe application pipelines.
With the help of composite feature it was possible to
define 4 distinct supapplications, each having different
pipeline setup:
* version_app => no keystoneauth, simple data return with error trap
* healthcheck_app => no keystoneauth, simple data return with error trap
* api_v2 => as it was, added error_trap though
* api_v3 => as it was, added error_trap though
Following approach opens up the possibilities of modelling an API
in far more flexible way and removes the need of any hacking inside
the codebase.
Note:
Keeps backward compatibility with older codebase.
Extra:
* removed dirty hack around skipping certain request.path
in keystonemiddleware (now described in paste file)
* removed 404 when issuing ```curl api_host:api_port/```. Request
is redirected down to VersionApp
Depends-On: I0323eacb5cbba8418550e3322189104c35cf4c36
Change-Id: I873e1376665c8cf66c8ee503975324f9b93ddb45
Adjusted log-api devstack configuration
to works with uwsgi deployed keystone.
It is done by removing custom pieces
of configuration regarding keystone
communication and replacing that with
devstack utilities wherever it is possible.
Summary:
* using configure_auth_token_middleware for log-api
configuraton file
* removed custom tempest.conf
* using devstack/openrc to generate environmental
variables OS_ containing necessary details for tempest.conf
Extra:
* moved kibana_version into monitoring group
Story: 2000995
Task: 4183
Depends-On: I22686d05670fc6c947611f8044dea498239a4212
Change-Id: Ia95b3bef2734d639c6fec57484b60bc5377d659f
Following commits adds possiblity to run monasca-log-api
with Apache2 (mod_wsgi) in devstack environment.
Change-Id: I4aca9bebacb4799a0e45b785ba1997003c6b7165
Remove --debug from log components to avoid overhead informations
in log files. Log files size where higher than 20 MB.
Change-Id: I31620de8529a3be1bca61f2e5c26e529250713e8
Following change allows to run monasca-log-api
devstack plugin on the Xenial environment.
That was implemented with the help of:
* start/stop of processes handles through run_process
and stop_process & no services files
* setting up environment using devstack functions
** monasca-log-api virtual env (USE_VENV)
** installing monasca-log-api dependencies from git
** saving data in keystone catalog with Openstack CLI
Additionally added method that downloads tarballs
only if they are not found in the system.
Change-Id: I08b2ddbe17b2c7899056a63a5633070ae9a2c2db
By default log file is rotated after reaching size of 100MB and 5 files
are archived.
Closes-Bug: 1621329
Related Change-Id: Iac7f29b3909354f75e5d3264ef2c987c9f3e2aec
Change-Id: I8d7e071e899eca1247b2db56ea348bb8775d68c3
nvm which is required to build Kibana plugins is installed in monasca-api plugin
in the 'extra' phase.
Change-Id: Ia06fb0a3f6bb1e92b5329020e84a5037b030afa0
monasca-log-metrics component generates metrics based on logs. These can then be
visualized and used to define alarms.
Change-Id: Ib5ea62953c8aa8e2e8478cd06d6839124ba601c5
Introduce variable ALWAYS_DOWNLOAD_TARBALLS. Unless set to 'true', once
downloaded tarball will be reused.
Change-Id: Iad2f5a0ff16916f09dc820b86ce6088d5dc7631a