Bug 615203 - corosync logging_daemon config parser code does not behave as expected
Summary: corosync logging_daemon config parser code does not behave as expected
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: corosync   
(Show other bugs)
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Fabio Massimo Di Nitto
QA Contact: Cluster QE
Depends On: 614961
Blocks: 615202
TreeView+ depends on / blocked
Reported: 2010-07-16 07:05 UTC by Fabio Massimo Di Nitto
Modified: 2012-06-11 16:14 UTC (History)
12 users (show)

Fixed In Version: corosync-1.2.3-14.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 614961
Last Closed: 2010-11-10 22:07:24 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
proposed patch (1.22 KB, patch)
2010-07-16 07:13 UTC, Fabio Massimo Di Nitto
no flags Details | Diff

Comment 1 Fabio Massimo Di Nitto 2010-07-16 07:12:58 UTC
The logging_daemon config parser in exec/mainconfig.c I wrote several months ago contains 2 bugs.

The first problem is that logging_daemon, in the current implementation, requires a subsys: XXX entry. This is true only for corosync, as other daemons do not have subsystems.

The second problem is that in the original idea of logging configuration, from a cluster point of view:

 <logging_daemon name="corosync" debug="on"/>

would enable debugging (or any other option really) for all of corosync, regardless of the subsystem.

the patch in attachment addresses those 2 issues by making subsys= keyword optional (the lack of it would change the global settings as originally designed and spec´ed).

This problem affects both trunk and flatiron.

Comment 2 Fabio Massimo Di Nitto 2010-07-16 07:13:31 UTC
Created attachment 432311 [details]
proposed patch

Comment 3 Steven Dake 2010-07-16 21:48:52 UTC

Please post patch upstream first, although this looks fine.


Comment 4 Fabio Massimo Di Nitto 2010-07-17 04:21:12 UTC
(In reply to comment #3)
> Fabio,
> Please post patch upstream first, although this looks fine.

yeah I did both at the same time.

Comment 5 Fabio Massimo Di Nitto 2010-07-19 06:37:01 UTC
Committed revision 2997.

Comment 7 Dean Jansa 2010-08-26 22:01:06 UTC
[root@marathon-01 ~]# grep log /etc/cluster/cluster.conf
        <dlm log_debug="1"/>
                <logging_daemon name="corosync" debug="on"/>

Cluster starts, no parse errors/warnings in messages.

Comment 8 releng-rhel@redhat.com 2010-11-10 22:07:24 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

Comment 9 Steven Dake 2012-06-11 16:14:22 UTC
Comment on attachment 432311 [details]
proposed patch

removing review flag as patch is committed.

Note You need to log in before you can comment on or make changes to this bug.