influxdb logs should be rotated based on size

Bug #1561605 reported by Denis Klepikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Plugins
Fix Released
Critical
Patrick Petit
StackLight
Fix Released
Medium
Swann Croiset

Bug Description

Now we have influxdb log rotated daily.
Due to it on some environments it generate a lot of logs and fill all the disk - all services are down due to unable to write down their logs.

Changed in fuel-plugins:
milestone: none → 7.0
assignee: nobody → Patrick Petit (patrick-michel-petit)
Revision history for this message
Patrick Petit (patrick-michel-petit) wrote :

Denis please file this bug against lma toolchain project

Revision history for this message
Swann Croiset (swann-w) wrote :

Denis, can you provide the logrotate configuration on your env please?
does the compression is enabled on your env?

The following configuration will be shipped with 0.8.1:
/var/log/influxdb/influxd.log {
    daily
    rotate 7
    missingok
    dateext
    copytruncate
    compress
}

Changed in lma-toolchain:
importance: Undecided → Medium
assignee: nobody → LMA-Toolchain Fuel Plugins (mos-lma-toolchain)
status: New → Incomplete
Changed in lma-toolchain:
status: Incomplete → Confirmed
Revision history for this message
Denis Klepikov (dklepikov) wrote :

@Swann,
logs should be rotated based on size, but, if use configuration you provide, logs will be rotated daily
We have logs, rotated by size. you can see configuration into /etc/logrotate.d/fuel.nodaily config

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-influxdb-grafana (master)

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

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
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-plugin-influxdb-grafana (master)

Change abandoned by Swann Croiset (<email address hidden>) on branch: master
Review: https://review.openstack.org/297661
Reason: lets disable http log instead!

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugin-influxdb-grafana (master)

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

Revision history for this message
Swann Croiset (swann-w) wrote :

the choice made is to disable http logs which are responsible of heavy log files

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

Reviewed: https://review.openstack.org/299213
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-influxdb-grafana/commit/?id=66e9419deac2cb934aff089a3511c2ac2d250df0
Submitter: Jenkins
Branch: master

commit 66e9419deac2cb934aff089a3511c2ac2d250df0
Author: Swann Croiset <email address hidden>
Date: Wed Mar 30 10:54:15 2016 +0200

    Disable HTTP logs for InfluxDB

    Change-Id: Ib8d4ef17612394bc0fc4217b74cf0295b1e1e87a
    Fixes-bug: #1561605

Changed in lma-toolchain:
status: In Progress → Fix Committed
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/299311

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

Fix proposed to branch: stable/0.9
Review: https://review.openstack.org/299312

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/299311
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-influxdb-grafana/commit/?id=4a336ee281bef200f520070326d59f18306b39c8
Submitter: Jenkins
Branch: stable/0.8

commit 4a336ee281bef200f520070326d59f18306b39c8
Author: Swann Croiset <email address hidden>
Date: Wed Mar 30 10:54:15 2016 +0200

    Disable HTTP logs for InfluxDB

    Fixes-bug: #1561605
    (cherry picked from commit 66e9419deac2cb934aff089a3511c2ac2d250df0)

    Conflicts:
     deployment_scripts/puppet/modules/influxdb/manifests/configure.pp

    Change-Id: Ib8d4ef17612394bc0fc4217b74cf0295b1e1e87a

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

Reviewed: https://review.openstack.org/299312
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-influxdb-grafana/commit/?id=2288694f3d84166dc51de6f57843c92f65ffc234
Submitter: Jenkins
Branch: stable/0.9

commit 2288694f3d84166dc51de6f57843c92f65ffc234
Author: Swann Croiset <email address hidden>
Date: Wed Mar 30 10:54:15 2016 +0200

    Disable HTTP logs for InfluxDB

    Change-Id: Ib8d4ef17612394bc0fc4217b74cf0295b1e1e87a
    Fixes-bug: #1561605
    (cherry picked from commit 66e9419deac2cb934aff089a3511c2ac2d250df0)

Changed in fuel-plugins:
status: New → Fix Committed
Changed in lma-toolchain:
milestone: none → 0.8.1
Changed in fuel-plugins:
status: Fix Committed → Fix Released
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.