Commit Graph

11 Commits

Author SHA1 Message Date
Guilherme Steinmüller 56e16a7ba6 Retire openstack-ansible-os_monasca-agent
Change-Id: I3b6bb0ae9413ec54fd5444b45f68a480cbc2744b
2019-06-11 20:25:37 +00:00
Logan V 542cbedb60 Remove Neutron LBaaS from monitored services
Change-Id: I66c89fb9330d37df9218d9dc0de49ba746358cdd
2019-05-16 15:49:24 -05:00
Jesse Pretorius 31b4ae3d89 Use a common python build/install role
In order to radically simplify how we prepare the service
venvs, we use a common role to do the wheel builds and the
venv preparation. This makes the process far simpler to
understand, because the role does its own building and
installing. It also reduces the code maintenance burden,
because instead of duplicating the build processes in the
repo_build role and the service role - we only have it all
done in a single place.

We also change the role venv tag var to use the integrated
build's common venv tag so that we can remove the role's
venv tag in group_vars in the integrated build. This reduces
memory consumption and also reduces the duplication.

This is by no means the final stop in the simplification
process, but it is a step forward. The will be work to follow
which:

1. Replaces 'developer mode' with an equivalent mechanism
   that uses the common role and is simpler to understand.
   We will also simplify the provisioning of pip install
   arguments when doing this.
2. Simplifies the installation of optional pip packages.
   Right now it's more complicated than it needs to be due
   to us needing to keep the py_pkgs plugin working in the
   integrated build.
3. Deduplicates the distro package installs. Right now the
   role installs the distro packages twice - just before
   building the venv, and during the python_venv_build role
   execution.

Depends-On: https://review.openstack.org/598957
Change-Id: Ic00b23cb61ea7f0269d4e01b944d93accc3a218b
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-09-03 12:01:07 +00:00
kaiokassiano a05457498f Cleanup unused pip packages
The virtualenv shouldn't be installed individually by a role,
therefore should be removed. The other packages are not really
necessary since they are remnant from the role creation (copied
and pasted from another role).

Thus we also remove the task related to the install of those.

Change-Id: I76b870ae54602a0c7f99774b250c447c748fb6aa
2018-08-10 11:56:20 -03:00
Jesse Pretorius 89c616ff32 Replace virtualenv-tools with a script
virtualenv-tools has a bug which gets triggered in gates: it can't
change the shebang of a virtualenv python bin/ files if they
were generated with a virtualenv script whose shebang ends with
python2 instead of python.

Because we can't modify virtualenv-tools, we use shell scripts
instead.

Change-Id: Ic37abfb14303b93dfc80398d6e37706a68135cb0
Partial-Bug: #1741634
Partial-Bug: #1764470
2018-04-18 11:12:02 +01:00
Kaio Oliveira a758a204cc Fix default role missing pip packages
The default role is missing keystoneauth1 and oslo.utils pip
packages. Both of them are needed by monasca-agent venv to work
and build properly.

Change-Id: I10f61ac70effdcb8758fd44c92d6248af6b4ce2d
Closes-Bug: #1736036
2017-12-13 22:50:10 -03:00
Flávio Ramalho 2ca872d988 Added ceph plugin and other fixes
This change adds the configuration for the ceph plugin, a plugin
to monitor an ceph cluster.

Also, fixes:
  - host alive, http and process plugins
  - the agent configuration

Also, moved the dashboards to the grafana role, where they are
already being imported to grafana.

Change-Id: I70b10630c9181f293fc9dbe268029b251fad7823
2017-08-03 12:19:23 +02:00
Flávio Ramalho ecae6cc994 Monasca-Agent role refactoring[+docs]
This patch refactors the monasca-agent role by bringing consistency
with the other openstack-ansible roles. Main changes include:
  - Plugins are automatically configured based on the openstack-ansible
    configuration;
  - Added tests;
  - Added documentation.

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

Change-Id: I3678af93ef460e5c32751e08201e68cef216787d
2017-06-12 10:41:44 -03:00
Ramon Melero 34ddec1a08 Added to readme 2016-11-16 15:31:44 +00:00
Ramon Melero a34df3e9b9 fixes and added host_alive check templating 2016-11-15 07:27:58 +00:00
Ramon Melero 5c318ea4d3 working agent 2016-11-14 03:03:59 +00:00