Commit Graph

35 Commits

Author SHA1 Message Date
Andreas Jaeger ae84af7fb4 Retire repository
Fuel repositories are all retired in openstack namespace, retire
remaining fuel repos in x namespace since they are unused now.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011675.html

A related change is: https://review.opendev.org/699752 .

Change-Id: Ic1a73a0127e813fa5907e0639c47e61b1326add2
2019-12-18 19:36:10 +01:00
Roman Babyuk 46bada8ee6 Add support for dynamic scripting
This change is required for the Telemetry plugin that leverages dynamic
scripting.

Change-Id: I330cd17fbd5867b3e3180b4ac6dbfe79dde50f43
2016-09-23 14:37:54 +00:00
Simon Pasquier c0794133d6 Fix Elasticsearch curator job
This change upgrades the version of elasticsearch-curator because the
previous version (3.3.0) doesn't support Elasticsearch 2.x. As a
consequence, data older than the defined retention period was never
removed from Elasticsearch.

The curator is now installed on all the Elasticsearch nodes (previously
only on the primary node) and by configuration, it will only be
executed on the ES cluster master node.

Change-Id: I9da9e67fa4d353e78bd752456a9b01ca1fbae704
Closes-Bug: #1616765
Related-Bug: #1602719
2016-08-26 11:28:12 +02:00
Swann Croiset 52476e669c Install explicit package version of Elasticsearch
Change-Id: I2722a9c56b9fae33950714733a74f7557eb147e8
Related-bug: #1590013
2016-06-09 07:50:22 +00:00
Swann Croiset 6853f52c5c Rotate Elasticsearch logs
In order to fully wrap up the Elasticsearch configuration including
log management, this commit moves all the Elasticsearch related stuff
from the manifest into a new Puppet module lma_logging_analytics::elasticsearch.

Closes-bug: #1572929
Change-Id: I3dd6d027d2b1de3d6ae3baa01a92dbca1d0ff95b
2016-06-09 07:50:13 +00:00
Simon Pasquier 0baef19e01 Fix deployment when using network templates
Elasticsearch and Nginx can be deployed on any network thanks to network
templates. This change removes all the hard-coded dependencies on the
management network. All port numbers for Nginx and Elasticsearch are
also moved to Hiera to make it easier to customize if needed.

Related-Bug: #1514365
Closes-Bug: #1577358
Change-Id: If3656be46d93418a2f481e740c59ec9df5ce8523
2016-05-11 07:19:39 +00:00
Guillaume Thouvenin 25b79aff9a Add notice to identify StackLight manifests in puppet logs
Change-Id: Id5a8041dbc00db0357f64522cbdb1b77a9e470af
2016-04-15 15:54:30 +02:00
Swann Croiset e70326fd95 Specify explicitly one data.path
Change-Id: Idb1cb203b4c81ebe592e4d532d7d6b0ff1ca8e35
Fixes-bug: #1559126
2016-03-22 10:35:00 +00:00
Swann Croiset b85348aa96 Run Curator only on primary node
This avoids to run concurrently the Curator.

Change-Id: I46a19bc4653a22f01bb703c3fe2950c40f15dfe9
2016-01-25 13:55:13 +01:00
Swann Croiset 0f520dddea Configure the Curator to use the Elasticsearch VIP
Change-Id: I025b240aa51bd1a8b948eea9a5bb3c2e1390a379
2016-01-19 14:09:04 +01:00
Swann Croiset 2c9c0876bd Initialize Elasticsearch data only once
All Elasticsearch templates and Kibana dashboard imports are performed only
once from the primary-elasticserach_kibana node.

Implements: blueprint elasticsearch-clustering

Change-Id: Ifa605c9dcdc603080b8adb80dbc71f2796cdf34b
2016-01-11 14:21:50 +01:00
Swann Croiset ab90489df0 Improve cluster deployment
- Add firewall rules for corosync communication
- Use dedicated cluster.pp manifest to allow the deployment of coexistant
  clusters for LMA plugins
- Use primary role property

Implements: blueprint elasticsearch-clustering

Change-Id: Ibf4c1c4e62f214725875869621b40a3ef4c20e53
2016-01-08 11:32:57 +01:00
Swann Croiset aa10d6ef61 Fix the way to determine the number of nodes
The Puppet size() function crashes with a hash as param:
size(): Unknown type given at ...

Change-Id: Ieec331f32254115dc3e7625cdd1175a0db04e904
2016-01-04 17:19:56 +01:00
Swann Croiset 1b68f8a3c6 Specify the number of expected nodes
The cluster recovery starts immediately when all expected nodes are up.
Without this parameter, the recovery waits 'recover_after_time' time
if the number of running nodes is at least equal to 'recover_after_nodes'.

Change-Id: Ice2a0b8ae41e9db5307724a8716d25e07b6ee82a
2015-12-31 15:12:10 +01:00
Swann Croiset 9c3955a15f Handle advanced settings for Elasticsearch
These parameters are configured with default values if not provided:
* number_of_replicas
* minimum_master_nodes
* recover_after_time
* recover_after_nodes

Change-Id: I3f4c1135c61b209e6e7b6160142c147721306cf9
2015-12-22 19:55:48 +01:00
Swann Croiset 3e2473b727 Allow to deploy 5 Elasticsearch nodes
This change also increases the number of shards accordingly.

Implements: elasticsearch-clustering

Change-Id: I3f5c26536140362684a406e05fbec684e38a794d
2015-12-22 19:55:48 +01:00
Swann Croiset 125a0ad602 Deploy Elasticsearch cluster
Configure a VIP and Corosync/Pacemaker cluster. The plugin must override
Hiera data to set explicitly the corosync node list.

Configure Elasticsearch instances with parameters:

* cluster.name
* unicast discovery

Add firewall rule to allow clustering traffic.

Implements: elasticsearch-clustering

Change-Id: I0636e02113bfdacc776beb20c08cc88308486c29
2015-12-22 19:55:43 +01:00
Swann Croiset fe2e8948af Switch to custom role elasticsearch_kibana
- Use plugin version 3.0.0 and remove compatibility with MOS 6.1
- Leverage common tasks to configure disk and network
- Update README

Change-Id: I7f185de0cfbe3098c9fee2d0f7a792df5b0a95e0
2015-09-09 09:31:07 +02:00
Simon Pasquier 56b182c5af Add support for data curation
This change configures a cron job that launches the curator script to
clean up old indices from Elasticsearch. It also configures the number
of replicas to keep per index. Note the value is always zero for now
since the plugin doesn't support cluster deployment yet.

Change-Id: Id22ebb949aeda9c90a05a975152762e2fe4b7eea
2015-08-12 09:10:41 +02:00
Simon Pasquier 2febb0b0f3 Install the curator package
This changes installs the curator package (and its dependencies) on the
Elasticsearch-Kibana node. A following commit will setup the cron job
that will clean up expired data in the Elasticsearch database.

Change-Id: I413957c0b39fc687cb18fc5bed08d270d6ccc3dd
2015-08-10 12:27:09 +02:00
Guillaume Thouvenin 3944d1d6fd Increase the queue_size of pending request to 1000
With a size of 50 we see a lot of messages like:
EsRejectedExecutionException[rejected execution (queue capacity 50)

So we increase this size of the bulk thread pool.

Change-Id: I4511061dc4681838779a84e362ca2bb26a2f5f9e
2015-05-29 11:25:02 +02:00
Guillaume Thouvenin 2b778eaabc Add an option to configure the JVM size
By default the JVM launched by Elasticsearch can consume up to 1G of
RAM. This parameter can be set in the plugin UI so the user will
be able to choose up to 32G.

Change-Id: Iefdbb385462b37e5a9d0a9db92f038d029220d92
2015-05-29 11:12:30 +02:00
Guillaume Thouvenin 3675c297f0 Remove downloads from ubuntu repo
As nodes should have access to ubuntu repository we don't need to
download ubuntu packages in the pre_build_hook before installing the
plugin.

It also fixed https://bugs.launchpad.net/fuel/+bug/1435892

Change-Id: Idcbffefa4ae46e87a160a327269ac27d2df4ee36
2015-05-05 13:18:42 +02:00
Guillaume Thouvenin 5c85177037 Update version of tzdata to 2015d
Change-Id: Ie159a8ad4976ea673d995c50079e944b701e64a5
2015-04-28 17:17:28 +02:00
Simon Pasquier 658c495127 Add Apache license headers to Puppet manifests
This change fixes the text of the LICENSE file too.

Change-Id: I5d8dc513b708aedd1b0f4797900b22493f8be493
2015-04-21 15:06:13 +02:00
Swann Croiset 736fa46530 Update version of tzdata
Version of tzdata has been updated to 2015c.

Change-Id: I2c9fb7dadb3f88d1ecca3751d83c9eb36b607502
2015-04-20 12:04:08 +02:00
Guillaume Thouvenin c25b7d06e4 Switch to Hiera instead of using fuel_settings
Change-Id: I2e1b9e06e8a6275e90becdc61dde7709fbe6d2cd
2015-04-08 08:47:46 +00:00
Simon Pasquier 9e56a544ad Temporary fix for bypassing bug #1435892
This change makes sure that the required version of the tzdata package
is installed before installing Java. This only affects Ubuntu
deployments.

Change-Id: I8d7dba5b7d47d012707484264adf83e3df5e5274
2015-03-25 16:25:39 +01:00
Guillaume Thouvenin 711fd4bcbe Fix errors reported by puppet-lint
This is required to enable the Fuel Plugins CI.

Change-Id: I56aec27b6ad03c3794d03757238a21f598eeb8d1
2015-03-24 11:37:04 +00:00
Guillaume Thouvenin 84976a55ae Deploy the plugin on the selected node only.
Currently Elasticsearch and Kibana are deployed on all nodes that are
using base-os role. This change ensures that the plugin is only executed
on the node selected through the Fuel UI.

Change-Id: I1a621d4b453c703e4ba92ba40c0659ccb2fc041b
2015-03-09 14:36:44 +01:00
Simon Pasquier bcb0ccd28b Upload LMA-specific templates to Elasticsearch
This change extends the scope of the kibana Puppet module so it is
renamed to lma_logging_analytics. In the future, this module may also
setup the clean-up of the Elasticsearch indices.

Change-Id: I8ae3143cd10dc4343c6cd8d7a2452d8bdcf9261b
2015-03-09 11:07:41 +01:00
Guillaume Thouvenin 5e878fba1b Add support for CentOS.
- Install openjdk 1.8.0 headless.
- Manage the /boot that is mounted as RAID 1 on all available disks.

Change-Id: Ie346a466132d0dabc2eda61d4ac65ebd50b78222
2015-03-07 13:26:04 +01:00
Guillaume Thouvenin 7017a809fd Install Kibana.
- We are using nginx as the HTTP server.

Change-Id: Ia8ac64f8df9ea65ed4f0b608aa971907154cd5be
2015-03-07 13:26:04 +01:00
Guillaume Thouvenin fb9a2d898e Create a new puppet module for managing volume.
This module allows to create physical volume with disks passed in
arguments and then create a logical volume. It will mount the directory
passed as parameters. When this module has finished the directory will
be available for elasticsearch.

Change-Id: Ieb80cbdb273cc780f6832466400d5712d6aae78c
2015-03-07 13:25:58 +01:00
Guillaume Thouvenin f4a1d22ac8 Restructuring manifests.
- Renamed elasticsearch_kibana into kibana
- Now kibana manifests only holds kibana installation and configuration
- Move all configuration of elasticsearch into its own file that will be
  called from tasks.

Change-Id: Ief27cc15b2498330446c1537aa0662bf84333048
2015-03-05 11:19:49 +01:00