[ClusterLabs] Feedback wanted: using the systemd message catalog

Strahil Nikolov hunter86_bg at yahoo.com
Tue Feb 16 22:43:18 EST 2021


Hi Ken,
I'm using a lot of 'journalctl -x' , especially when something fails and I really like the idea of having that.Yet, this will require some efforts and also a modification in the cluster's log saying something like 'The cluster is mis-configured - shutting
down and staying down. For more details use  journalctl -xe'.
Isn't it easier to just provide more details in the logs than integrating that feature ?

Best Regards,Strahil Nikolov 
 
  On Tue, Feb 16, 2021 at 21:48, Ken Gaillot<kgaillot at redhat.com> wrote:   Hi all,

The systemd journal has a feature called the message catalog, which
allows "journalctl -x" to show extended troubleshooting hints along
with log messages. Apparently a similar feature is familiar to many
Windows administrators.

So far, I've only found systemd itself that uses the feature. As an
example, if the usual log message is a one-liner about httpd dumping
core, with journalctl -x it would look like:

 -- fc2e22bc6ee647b6b90729ab34a250b1
 Subject: Process 1234 (httpd) dumped core
 Defined-By: systemd
 Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 Documentation: man:core(5)
 Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/fc2e22bc6ee647b6b90729ab34a250b1

 Process 1234 (httpd) crashed and dumped core.

 This usually indicates a programming error in the crashing program and
 should be reported to its vendor as a bug.

There is currently a proposed pull request ( 
https://github.com/ClusterLabs/libqb/pull/433 ) to add support for this
to libqb's logging API, which the rest of the cluster software could
use.

As an example, if someone forcibly uploads a CIB with syntax errors,
Pacemaker will currently log "The cluster is mis-configured - shutting
down and staying down" and exit. We could make it so that the
journalctl -x entry tells the user how to use crm_verify to figure out
what's wrong, how to use cibadmin to correct any errors, and a link to
Pacemaker Explained as a configuration reference.

This would involve considerable work for developers, so I'm curious how
many users would find this useful and would use it. Especially if most
of the time you used journalctl -x, there was no extended information,
but occasionally there was.
-- 
Ken Gaillot <kgaillot at redhat.com>

_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20210217/fef2ce36/attachment.htm>


More information about the Users mailing list