pacemaker v2 appears to be missing log directory

Bug #1828223 reported by Dimitri John Ledkov on 2019-05-08
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pacemaker (Debian)
Fix Released
Undecided
Unassigned
pacemaker (Ubuntu)
Medium
Rafael David Tinoco

Bug Description

# journalctl -u pacemaker | grep 'logging to'
May 08 12:30:49 nice-mako pacemakerd[325]: error: Directory '/var/log/pacemaker' does not exist: logging to '/var/log/pacemaker/pacemaker.log' is disabled
May 08 12:30:49 nice-mako pacemaker-fenced[329]: error: Directory '/var/log/pacemaker' does not exist: logging to '/var/log/pacemaker/pacemaker.log' is disabled
May 08 12:30:49 nice-mako pacemaker-based[328]: error: Directory '/var/log/pacemaker' does not exist: logging to '/var/log/pacemaker/pacemaker.log' is disabled
May 08 12:30:49 nice-mako pacemaker-schedulerd[332]: error: Directory '/var/log/pacemaker' does not exist: logging to '/var/log/pacemaker/pacemaker.log' is disabled
May 08 12:30:49 nice-mako pacemaker-attrd[331]: error: Directory '/var/log/pacemaker' does not exist: logging to '/var/log/pacemaker/pacemaker.log' is disabled
May 08 12:30:49 nice-mako pacemaker-execd[330]: error: Directory '/var/log/pacemaker' does not exist: logging to '/var/log/pacemaker/pacemaker.log' is disabled
May 08 12:30:49 nice-mako pacemaker-controld[333]: error: Directory '/var/log/pacemaker' does not exist: logging to '/var/log/pacemaker/pacemaker.log' is disabled

I guess pacemaker v2 should either be configured to log to journal by default, or that directory needs to be created? or configuration changed to log to /var/log/pacemaker.log?

Paride Legovini (legovini) wrote :

Hi Dimitri,

According to its d/changelog this is fixed in the Debian revision 2.0.1-3:

  * [3c7b0b4] Ship /var/log/pacemaker, the new default directory of the detail
    logs.
    Without this directory the default configuration emits errors and the
    detail log is simply not written.
    The /var/log/pacemaker.log* detail log files from Pacemaker 1 are not
    moved automatically on upgrade, but this new /var/log/pacemaker
    directory and its contents are removed when purging pacemaker-common.
    The owner and mode of the log directory is set to let clients like
    crm_resource --force-start running as any user in the haclient group
    write their messages into the detail log. The logrotate config relies
    on these settings as well.

Changed in pacemaker (Debian):
status: New → Fix Released
Changed in pacemaker (Ubuntu):
status: New → Triaged
Changed in pacemaker (Ubuntu):
assignee: nobody → Rafael David Tinoco (rafaeldtinoco)
importance: Undecided → Medium
status: Triaged → Confirmed
tags: added: ubuntu-ha
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers