InfluxDB configuration script fails when upgrading influxdb.conf

Bug #1563757 reported by Swann Croiset
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StackLight
Fix Released
High
LMA-Toolchain Fuel Plugins

Bug Description

when patching the InfluxDB configuration to disable HTTP logs, the script used to create users/database/rentention policy fails because it is executed after that InfluxDB is restarted but not yet ready to accept HTTP requests: connection refused

This works the first installation but that fails while the plugin is upgraded from 0.8.0 to 0.8.1.

Notice: Compiled catalog for node-68.test.domain.local in environment production in 0.68 seconds
Notice: /Stage[main]/Influxdb::Configure/Ini_setting[http_log]/value: value changed 'true' to 'false'
Notice: /Stage[main]/Influxdb::Service/Service[influxdb]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Lma_monitoring_analytics::Influxdb/Exec[configure_influxdb_script]/returns: + INFLUXDB_URL=http://127.0.0.1:8086
Notice: /Stage[main]/Lma_monitoring_analytics::Influxdb/Exec[configure_influxdb_script]/returns: + curl -G http://127.0.0.1:8086/query --data-urlencode 'q=CREATE USER root WITH PASSWORD '\''azeaze'\'' WITH ALL PRIVILEGES'
Notice: /Stage[main]/Lma_monitoring_analytics::Influxdb/Exec[configure_influxdb_script]/returns: % Total % Received % Xferd Average Speed Time Time Time Current
Notice: /Stage[main]/Lma_monitoring_analytics::Influxdb/Exec[configure_influxdb_script]/returns: Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 127.0.0.1 port 8086: Connection refused
Error: /usr/local/bin/configure_influxdb.sh returned 7 instead of one of [0]
Error: /Stage[main]/Lma_monitoring_analytics::Influxdb/Exec[configure_influxdb_script]/returns: change from notrun to 0 failed: /usr/local/bin/configure_influxdb.sh returned 7 instead of one of [0]

Swann Croiset (swann-w)
Changed in lma-toolchain:
milestone: none → 0.8.1
assignee: nobody → LMA-Toolchain Fuel Plugins (mos-lma-toolchain)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-influxdb-grafana (stable/0.8)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-influxdb-grafana (stable/0.8)

Reviewed: https://review.openstack.org/299321
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-influxdb-grafana/commit/?id=59432991f3b90ca83921b46d78cf30cbbdef409f
Submitter: Jenkins
Branch: stable/0.8

commit 59432991f3b90ca83921b46d78cf30cbbdef409f
Author: Swann Croiset <email address hidden>
Date: Wed Mar 30 13:40:07 2016 +0200

    Retry to execute script to configure InfluxDB

    The script is executed after the influxdb service is started but
    InfluxDB doesn't accept HTTP requests directly at start time. This should
    depend on the size of the DB.

    Change-Id: I736b382186533a80854ff8efcaebfb65c1c2842c
    Fixes-bug: #1563757

Swann Croiset (swann-w)
description: updated
description: updated
Changed in lma-toolchain:
status: Triaged → Fix Committed
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.