The data.path parameter shouldn't be set to an array

Bug #1559126 reported by Simon Pasquier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StackLight
Fix Released
High
Swann Croiset

Bug Description

This bug affects only the releases 0.7 and 0.8 of the Elasticsearch-Kibana plugin.

This is an example of Elasticsearch configuration file that the plugin generates:

### MANAGED BY PUPPET ###
---
bootstrap:
  mlockall: true
http:
  cors:
    allow-origin: /.*/
    enabled: true
node:
  name: node-2-es-01
path:
  data:
    - /opt/es-data/elasticsearch_data/es-01
threadpool:
  bulk:
    queue_size: 1000

The path.data parameter is set to an array value which has a subtle but important consequence for Elasticsearch < 1.7 (eg LMA 0.7 and 0.8): with these versions, Elasticsearch will continue to use /var/lib/elasticsearch as a potential data location. In general, this wouldn't be an issue because ES picks up the location that has the most free space but when /opt/es-data gets full, it will switch to /var/lib/elasticsearch and potentially fill the / partition too.

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-elasticsearch-kibana (master)

Fix proposed to branch: master
Review: https://review.openstack.org/295671

Changed in lma-toolchain:
assignee: LMA-Toolchain Fuel Plugins (mos-lma-toolchain) → Swann Croiset (swann-w)
status: Confirmed → In Progress
Revision history for this message
Denis Klepikov (dklepikov) wrote :

Please set Importance to Critical due to current behavior can fill-in root filesystem and crash the Elasticsearch server with a potential loss of data (logs).

tags: added: customer-found
Swann Croiset (swann-w)
Changed in lma-toolchain:
milestone: none → 0.8.1
importance: Medium → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-elasticsearch-kibana (master)

Reviewed: https://review.openstack.org/295671
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-elasticsearch-kibana/commit/?id=e70326fd95630ffd35bdc6ddcfe35e8ca60b60c2
Submitter: Jenkins
Branch: master

commit e70326fd95630ffd35bdc6ddcfe35e8ca60b60c2
Author: Swann Croiset <email address hidden>
Date: Tue Mar 22 09:40:08 2016 +0100

    Specify explicitly one data.path

    Change-Id: Idb1cb203b4c81ebe592e4d532d7d6b0ff1ca8e35
    Fixes-bug: #1559126

Changed in lma-toolchain:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-elasticsearch-kibana (stable/0.8)

Fix proposed to branch: stable/0.8
Review: https://review.openstack.org/296310

Changed in lma-toolchain:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.