Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 530940

Summary: Unexpected behavior of cluster.conf validator(?) when found `cmd_prompt="admin1->"`
Product: [Retired] Red Hat Cluster Suite Reporter: Tomasz Jaszowski <tjaszowski>
Component: redhat-config-clusterAssignee: Ryan McCabe <rmccabe>
Status: CLOSED DUPLICATE QA Contact: Cluster QE <mspqa-list>
Severity: urgent Docs Contact:
Priority: low    
Version: 4CC: bbrock, cluster-maint, iannis
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-22 20:59:33 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 Tomasz Jaszowski 2009-10-26 08:04:33 UTC
Description of problem:
We use dell servers equipped with drac controller. For fencing we are using commad:
<fencedevice agent="fence_drac5" cmd_prompt="admin1->" ipaddr="192.168.0.101"
login="root" name="node1-drac" passwd="drac_password"/>
but when config is updated  cmd_prompt="admin1->" is changed to cmd_prompt="admin1-&gt;"

It seems to not have any visible influence on fence capability but IMHO cluster config shouldn't be changed by system without any notification .

Version-Release number of selected component (if applicable):
RHEL 4U4 with 2.6.9-78.0.22.ELsmp ;
system-config-cluster-1.0.54-2.0;
rgmanager-1.9.87-1


How reproducible:
always

Steps to Reproduce:
- create cluster.conf with cmd line as above
- ccs_tool update /etc/cluster/cluster.conf
- cman_tool version -r 4
- check cluster.conf
  
Actual results:
"admin1->" is changed to "admin1-&gt;"

Expected results:
"admin1->" should not be changed to "admin1-&gt;"

Additional info:
moreover when opening cluster.conf using GUI tool I got:

Relax-NG validity error : Extra element fencedevices in interleave
/etc/cluster/cluster.conf:21: element fencedevices: Relax-NG validity error :
Element cluster failed to validate content
/etc/cluster/cluster.conf:15: element device: validity error : IDREF attribute
name references an unknown ID "node1-drac"
/etc/cluster/cluster.conf fails to validate

Comment 1 Tomasz Jaszowski 2009-11-23 14:41:52 UTC
anything?

Comment 2 Tomasz Jaszowski 2010-03-30 05:25:04 UTC
anything?

Comment 3 Lon Hohberger 2010-10-22 20:59:33 UTC
The XML validity (cluster.ng is missing cmd_prompt for the fencedevice element) will be addressed as part of bug 597253.

The other part (the change of the > to &gt;) will not.  CDATA and elements should have special characters escaped in order to be valid XML.  I highly suspect libxml2 did this translation for us, not ccsd, system-config-cluster, or cluster.ng.

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