pacemaker v2 appears to be missing log directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pacemaker (Debian) |
Fix Released
|
Undecided
|
Unassigned | ||
pacemaker (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Won't Fix
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
# journalctl -u pacemaker | grep 'logging to'
May 08 12:30:49 nice-mako pacemakerd[325]: error: Directory '/var/log/
May 08 12:30:49 nice-mako pacemaker-
May 08 12:30:49 nice-mako pacemaker-
May 08 12:30:49 nice-mako pacemaker-
May 08 12:30:49 nice-mako pacemaker-
May 08 12:30:49 nice-mako pacemaker-
May 08 12:30:49 nice-mako pacemaker-
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/
Changed in pacemaker (Ubuntu): | |
assignee: | nobody → Rafael David Tinoco (rafaeldtinoco) |
importance: | Undecided → Medium |
status: | Triaged → Confirmed |
tags: | added: ubuntu-ha |
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 pacemaker. log* detail log files from Pacemaker 1 are not
logs.
Without this directory the default configuration emits errors and the
detail log is simply not written.
The /var/log/
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.