We should store OCF scripts' logs locally on controller

Bug #1661003 reported by Dmitry Mescheryakov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Dmitry Mescheryakov
Mitaka
Fix Released
Medium
Dmitry Mescheryakov

Bug Description

Right now logs from OCF scripts are stored only on master node in /var/log/remote/node-X/lrmd.log files. That is bad because users tend to disable sending logs to master node on big environments, so we need to store them locally on controllers as well.

Changed in fuel:
assignee: nobody → Dmitry Mescheryakov (dmitrymex)
milestone: none → 10.1
status: New → Confirmed
importance: Undecided → Medium
tags: added: area-library
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/428140
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=4d18ef0dadedb05e4876b42123a11a0121f5f708
Submitter: Jenkins
Branch: master

commit 4d18ef0dadedb05e4876b42123a11a0121f5f708
Author: Dmitry Mescheryakov <email address hidden>
Date: Thu Feb 2 15:05:05 2017 +0400

    Set up local logging for lrmd

    Write lrmd logs to the /var/log/lrmd.log on controllers.

    Also disabled collecting all pacemaker logs into /var/log/pacemaker.log
    because Pacemaker already does that itself. In our installation rsyslog
    does not write that file because in most cases Pacemaker creates it
    first. For example, see the file's owner in any env, it will be
    hacluster, not syslog.

    Closes-Bug: #1661003
    Change-Id: I0acb59a43bd856b1689918a7cf066624efa13a63

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/445841

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/newton)

Reviewed: https://review.openstack.org/445841
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=3e67eb00435b0480a285603cc7317389db8b4e17
Submitter: Jenkins
Branch: stable/newton

commit 3e67eb00435b0480a285603cc7317389db8b4e17
Author: Dmitry Mescheryakov <email address hidden>
Date: Thu Feb 2 15:05:05 2017 +0400

    Set up local logging for lrmd

    Write lrmd logs to the /var/log/lrmd.log on controllers.

    Also disabled collecting all pacemaker logs into /var/log/pacemaker.log
    because Pacemaker already does that itself. In our installation rsyslog
    does not write that file because in most cases Pacemaker creates it
    first. For example, see the file's owner in any env, it will be
    hacluster, not syslog.

    Closes-Bug: #1661003
    Change-Id: I0acb59a43bd856b1689918a7cf066624efa13a63
    (cherry picked from commit 4d18ef0dadedb05e4876b42123a11a0121f5f708)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/450722

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/451288

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/mitaka)

Reviewed: https://review.openstack.org/450722
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=365c7735e4af7fe34c9a41c380200424870db7d2
Submitter: Jenkins
Branch: stable/mitaka

commit 365c7735e4af7fe34c9a41c380200424870db7d2
Author: Dmitry Mescheryakov <email address hidden>
Date: Thu Feb 2 15:05:05 2017 +0400

    Set up local logging for lrmd

    Write lrmd logs to the /var/log/lrmd.log on controllers.

    Also disabled collecting all pacemaker logs into /var/log/pacemaker.log
    because Pacemaker already does that itself. In our installation rsyslog
    does not write that file because in most cases Pacemaker creates it
    first. For example, see the file's owner in any env, it will be
    hacluster, not syslog.

    Closes-Bug: #1661003
    Change-Id: I0acb59a43bd856b1689918a7cf066624efa13a63
    (cherry picked from commit 4d18ef0dadedb05e4876b42123a11a0121f5f708)

tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on 9.2 + mu2 updates.

Actual results:
lrmd log is present on controller:
root@node-1:~# ll /var/log/lrmd.log
-rw-r----- 1 syslog adm 200456 May 17 07:52 /var/log/lrmd.log

tags: removed: on-verification
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/ocata)

Change abandoned by Andreas Jaeger (<email address hidden>) on branch: stable/ocata
Review: https://review.opendev.org/451288
Reason: This repo is retired now, no further work will get merged.

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.