Commit Graph

19 Commits

Author SHA1 Message Date
Guilherme Steinmüller 9e3bd3f320 Retire openstack-ansible-os_monasca
Change-Id: Ie8da46562c150885010b47980a1ee26bff4d3bc5
2019-06-11 20:22:23 +00:00
Jean-Philippe Evrard 0e4da819fd Fix monasca
This ensures the dependencies on the monasca roles are deployed
after the initial deploy steps of monasca. This allows us to
install on the host the packages required for the extra roles,
until they are fixed. Moreover, the grafana-ansible role is being
moved to ansible-grafana from cloudalchemy repository.

Change-Id: I9381c4994e38933fd12c02c673bfe409daf2a59c
Co-Authored-By: Guilherme Steinmüller <guilhermesp@lsd.ufcg.edu.br>
2018-07-17 17:47:46 -03:00
Ferenc Cserepkei 4774c28f71 Non-ascii characters in files
Ansible's Jinja2 templater reporting an error when encounters with
non-ascii characters:

An exception occurred during task execution.
To see the full traceback, use -vvv. The error was: UnicodeDecodeError:
'ascii' codec can't decode byte 0xe2 in position 278:
ordinal not in range(128)
fatal: [infra1_monasca_container-ba51ad87]: FAILED! =>
{"failed": true,
  "msg": "Unexpected failure during module execution.", "stdout": ""}

Change-Id: I4021b46dfe30cd51656dd4c7c68edd2f04b8f6fd
2018-05-10 10:52:36 +02:00
ZhongShengping 21d9c02e0f Deprecate auth_uri option
Option auth_uri from group keystone_authtoken is deprecated[1].
Use option www_authenticate_uri from group keystone_authtoken.

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

Change-Id: I130bfe3995bc5fbb5d9a2b13c9fcd5dac47c0085
Implements: blueprint deprecate-auth-uri-option
2018-04-03 14:16:53 +08:00
Flávio Ramalho ae31159705 Update monasca mysql schema
Recent changes added two new columns to the monasca-api database.
This change updates the database creation script accordingly.

Change-Id: I877a0b285dd796847119572d31d2931882bf51eb
2018-01-24 12:13:28 +01:00
Flávio Ramalho 030df04ef8 Fix for monasca modules and other minor changes
This change fixes monasca modules to work with the latest version
of monascaclient.

Other minor changes:
  - Use cryptography instead of pycrypto
  - Removed duplicate variable for monasca_api_port
  - Added static paths for dashboards

Change-Id: Ib4fe27c276413bb2e1e5da3fe532d824745c5b99
2017-08-03 15:10:25 +02:00
Flávio Ramalho b884927071 Monasca role refactoring[+docs]
This patch refactors the whole monasca role by bringing consistency
with the other openstack-ansible roles. Main changes include:
  - Install services on its specific cointainer;
  - monasca-thresh, monasca-notification and monasca-persister was
    not being installed/configured, now it is;
  - Tempest tests are ran for the whole monasca-api;
  - The service should be fully functional;
  - Added documentation.

The extras directory contains the changes necessary to openstack-
ansible to setup monasca.

Change-Id: Ib53d4311c4b4aa722c7cdf7b18632e23b8639a56
2017-06-19 14:45:02 -03:00
Jesse Pretorius bdafeffe7a Reduce init restart/kill times
The systemd unit 'TimeoutSec' value which controls the time
between sending a SIGTERM signal and a SIGKILL signal when
stopping or restarting the service has been reduced from 300
seconds to 120 seconds. This provides 2 minutes for long-lived
sessions to drain while preventing new ones from starting
before a restart or a stop.

The 'RestartSec' value which controls the time between the
service stop and start when restarting has been reduced from
150 seconds to 2 seconds to make the restart happen faster.

These values can be adjusted by using the *_init_config_overrides
variables which use the config_template task to change template
defaults.

Change-Id: Ie14d80dd4134bd7bb9cd5467503e634fb5bd7b9d
2017-05-17 18:11:52 +00:00
Kevin Carter 2746142b68 Ensure the components are isolated from the system
This creates a specific slice which all OpenStack services will operate
from. By creating an independent slice these components will be governed
away from the system slice allowing us to better optimise resource
consumption.

See the following for more information on slices:

* https://www.freedesktop.org/software/systemd/man/systemd.slice.html

See for following for more information on resource controls:

* https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html

Tools like ``systemd-cgtop`` and ``systemd-cgls`` will now give us
insight into specific processes, process groups, and resouce consumption
in ways that we've not had access to before. To enable some of this reporting
the accounting options have been added to the [Service] section of the unit
file.

Change-Id: I619ab58574eedece7e00e323f91aeaec4c5b5a6e
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-03-30 15:10:50 +00:00
Donovan Francesco (drifterza) 44111f49f1 Updating paste ini files for new middleware.
Change-Id: If79de2f3500ffcdc5890c4bd8ca26899c24f3542
2017-01-16 12:16:52 +02:00
ZhongShengping d4f2d111df Remove pki support
Change-Id: I428d59e55c6c7d03c1fa7f12d4476fb0245605f2
Implements: blueprint remove-pki
2017-01-04 10:24:18 +08:00
Jean-Philippe Evrard ce8c38afbd Fix the token cache_time
There was a typo in token cache time that prevented the token
cache time to be set.

This should fix it.

Change-Id: I4765c4b29b1bb6f8db67adec93adb8cb5844c167
2017-01-03 11:16:12 +00:00
Donovan Francesco (drifterza) 7f1c7d8c52 Adding required monasca roles so users can query the apis.
Change-Id: Id225d81b2d24b0e952ca6fb95c77d72ba189fd69
2016-11-16 13:46:49 +02:00
Donovan Francesco (drifterza) 5523577ffe Fix tmpfiles.d when multiple service are running.
- adding {{ monasca_lock_path }} for the monasca lock dir.

Change-Id: I4b6f1e72873b8e11ab805467d59cb45ba9a55af3
2016-11-10 08:39:41 +02:00
Donovan Francesco (drifterza) 57eefc0f84 Optimizing monasca role.
- Making role more compatible with keystone v3
 - Replacing variable names with more OSA aligned styling

Change-Id: I5b7230301faedfdfa63f12e51ccadcc16c26639a
2016-11-08 16:57:51 +02:00
Donovan Francesco (drifterza) a67b4c9673 Better functional tests for monasca-api.
- This patch returns status code 200 if keystone auth token is
retrieved.
 - Minor adjustments to the keystone middleware sections.
 - Adjustments in user naming in service endpoint creations.

Change-Id: Ifbb356634b29f1586c44e1135a761bf1f6adddb0
2016-11-03 15:27:57 +02:00
Donovan Francesco (drifterza) 524a052417 Refactoring Monasca role to align more with OSA.
- This patch is to provide monasca backend services and monasca api,log-api
 - Adding the use of dictionary for service group mappings.
 - Switching to use tested external roles for backend services.

Change-Id: I7f6335f12a4b3a13acf6b644f16587ab1b46745f
2016-11-01 20:03:18 +02:00
Travis Truman 641fab33a4 Role skeleton for os_monasca
So we can generate release notes, run tests, etc.

Change-Id: I3fcdd1ab92ac43393ab70117b228b7847f20da4a
2016-08-25 09:15:23 -04:00
Donovan Francesco cfda2f626d Initial Commit 2016-08-18 15:46:59 +02:00