Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 532766

Summary: having multiple heuristics scripts listed in cluster.conf causes Relax-NG validity error
Product: Red Hat Enterprise Linux 5 Reporter: Martin P <rhbug>
Component: system-config-clusterAssignee: Ryan McCabe <rmccabe>
Status: CLOSED DUPLICATE QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3CC: bbrock, cluster-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-02 16:50:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin P 2009-11-03 18:27:12 UTC
Description of problem:
Adding more than one heuristic line into cluster.conf causes this warning to pop up when executing system-config-cluster:

Relax-NG validity error : Extra element quorumd in interleave
/etc/cluster/cluster.conf:2: element cluster: Relax-NG validity error : Element cluster failed to validate content
/etc/cluster/cluster.conf fails to validate


Version-Release number of selected component (if applicable):
system-config-cluster-1.0.55-1.0

How reproducible:
Every time

Steps to Reproduce:
1. (Having a cluster set up is a pre-req)
2. Add a 2nd heuristic line via CLI to the cluster.conf file
3. system-config-cluster (and watch the error pop up)
4. Remove the 2nd heuristic line from the cluster.conf
5. system-config-cluster (and the error disappears)
  
Actual results:
See problem description and steps to reproduce

Expected results:
No errors

Additional info:
It seems that the /usr/share/system-config-cluster/misc/cluster.ng should be updated to support multiple heuristic lines.

Comment 1 Martin P 2009-11-03 18:36:33 UTC
Here's my patch:

--- cluster.ng  2008-09-19 13:50:43.000000000 -0400
+++ cluster.ng.patched  2009-11-03 13:32:50.000000000 -0500
@@ -314,7 +314,7 @@
    <optional>
     <attribute name="log_facility"/>
    </optional>
-   <optional>
+   <zeroOrMore>
     <element name="heuristic">
      <attribute name="program"/>
      <optional>
@@ -327,7 +327,7 @@
       <attribute name="tko"/>
      </optional>
     </element>
-   </optional>
+   </zeroOrMore>
   </element>
  </optional>

Comment 2 Lon Hohberger 2010-07-02 16:50:42 UTC

*** This bug has been marked as a duplicate of bug 606826 ***