influxdb log cannot be collected by logrotate

Bug #1833167 reported by Lin Shuicheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Lin Shuicheng

Bug Description

Brief Description
-----------------
influxdb log cannot be collected when run "sudo logrotate --force /etc/logrotate.conf".
It is due to the log file for influxdb is influxd.log, while the configuration in logrotate is influxdb.log. The mis-match causes logrotate cannot collect it.

Severity
--------
Minor

Steps to Reproduce
------------------
Run "sudo logrotate --force /etc/logrotate.conf"

Expected Behavior
------------------
influxdb.log.gz file should be generated under /var/log/influxdb folder

Actual Behavior
----------------
There is no gz file generated for influxdb.log

Reproducibility
---------------
100%

System Configuration
--------------------
All

Branch/Pull Time/Commit
-----------------------

Last Pass
---------

Timestamp/Logs
--------------

Test Activity
-------------
Developer Testing

Changed in starlingx:
assignee: nobody → Lin Shuicheng (shuicheng)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to integ (master)

Fix proposed to branch: master
Review: https://review.opendev.org/665880

Changed in starlingx:
status: New → In Progress
Ghada Khalil (gkhalil)
tags: added: stx.distro.other stx.integ
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Low priority / not gating - no system impact; fix would help with debugging issues as the logs won't be lost, but influxdb is not a key component in starlingx and will be removed in stx.3.0.

Changed in starlingx:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.opendev.org/667009

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on integ (master)

Change abandoned by Lin Shuicheng (<email address hidden>) on branch: master
Review: https://review.opendev.org/665880

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/667009
Committed: https://git.openstack.org/cgit/starlingx/config/commit/?id=f1071baa2a283da69eb15beea3fb33c73e764872
Submitter: Zuul
Branch: master

commit f1071baa2a283da69eb15beea3fb33c73e764872
Author: Shuicheng Lin <email address hidden>
Date: Mon Jun 24 12:54:56 2019 +0800

    fix influxdb log file cannot be collected by logrotate

    The logfile for influxdb is influxd.log, not influxdb.log
    Correct the name in controller.yaml, so that logrotate could get
    the log correctly.
    Also, influxdb process uses error re-direction to append the error
    message to influxd.log, so "copytruncate" need be added in logrotate
    setting, so that log could be continue logged after logrotate
    execution.

    Closes-Bug: 1833167

    Change-Id: I1ef484e3052355e5edc0cd0f7c629c7944daf014
    Signed-off-by: Shuicheng Lin <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.config
removed: stx.integ
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.