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 530171

Summary: system-config-cluster does not validate "startup_wait" mysql resource option
Product: Red Hat Enterprise Linux 5 Reporter: Shane Bradley <sbradley>
Component: system-config-clusterAssignee: Ryan McCabe <rmccabe>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: bbrock, cluster-maint, cward, tao
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-03-30 08:54:46 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:
Attachments:
Description Flags
Patch that adds startup_wait to cluster.ng none

Description Shane Bradley 2009-10-21 18:53:03 UTC
Created attachment 365578 [details]
Patch that adds startup_wait to cluster.ng

Description of problem:

On RHEL 5.4+ the option "startup_wait" was added. The cluster.ng file
does not have this option in xml syntax. Since it is not included then 
validation error occurs.

$ grep startup_wait /etc/cluster/cluster.conf 
           <mysql config_file="/etc/my.cnf"
           listen_address="192.168.1.183" 
           mysql_options="--log-error=/var/log/mysqld.log" 
           name="mysql-server" 
           shutdown_wait="200" 
           startup_wait="200" />


$ xmllint --relaxng /usr/share/system-config-cluster/misc/cluster.ng \
    /etc/cluster/cluster.conf

<?xml version="1.0"?>
<cluster alias="rh51mysql" config_version="13" name="rh51mysql">
....
</cluster>
Relax-NG validity error : Extra element rm 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.57-1.5

How reproducible:
Everytime

Steps to Reproduce:
1. Edit cluster.conf and add resource for mysql then add  "startup_wait" option
2. Run system-config-cluster 
  
Actual results:
Errors are generated when xml is validated

Expected results:
There should not be any validation errors on "startup_wait."

Additional info:
Patch is attached.

Comment 3 Chris Ward 2010-02-11 10:16:27 UTC
~~ Attention Customers and Partners - RHEL 5.5 Beta is now available on RHN ~~

RHEL 5.5 Beta has been released! There should be a fix present in this 
release that addresses your request. Please test and report back results 
here, by March 3rd 2010 (2010-03-03) or sooner.

Upon successful verification of this request, post your results and update 
the Verified field in Bugzilla with the appropriate value.

If you encounter any issues while testing, please describe them and set 
this bug into NEED_INFO. If you encounter new defects or have additional 
patch(es) to request for inclusion, please clone this bug per each request
and escalate through your support representative.

Comment 4 Brian Brock 2010-03-09 22:07:58 UTC
verified in system-config-cluster-1.0.57-3

cluster.conf validates with the startup_wait option

Comment 8 Shane Bradley 2010-03-19 17:44:58 UTC
Fix verified in comment: https://bugzilla.redhat.com/show_bug.cgi?id=530171#c4

Comment 9 errata-xmlrpc 2010-03-30 08:54:46 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0288.html