Bug 151081

Summary: redhat-config-cluster clobbers /etc/cluster.xml symlink
Product: [Retired] Red Hat Cluster Suite Reporter: Andrew C. Dingman <adingman>
Component: redhat-config-clusterAssignee: Jim Parsons <jparsons>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: cluster-maint, lhh
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2005-765 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-30 14:54:36 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 Andrew C. Dingman 2005-03-14 18:13:20 UTC
Description of problem: redhat-config-cluster does not follow symlinks when
modifying cluster.xml.


Version-Release number of selected component (if applicable): 1.0.3-1


How reproducible: Move cluster.xml to another location, and symlink to
/etc/cluster.xml. Modify with redhat-config-cluster. The symlink will be
replaced with a new, regular file, and the target will be unmodified.


Steps to Reproduce:
1. cp /etc/cluster.xml /shared/filesystem/
2. ln -sf /shared/filesystem/cluster.xml /etc/
3. redhat-config-cluster # alter config slightly
4. ls -l /etc/cluster.xml
   -rw-------    1 root     root         1761 Mar 14 11:33 /etc/cluster.xml

  
Actual results:
Symlink to desired location of cluster.xml is replaced by a regular file
containing the new configuration.

Expected results:
Target of symlink is replaced by regular file containing the new configuration.

Additional info:
Since all my cluster members are also part of a GFS cluster, it would be
convenient to place a shared cluster.xml on a shared file system, and let
/etc/cluster.xml be a symlink. I am doing this with several other configuration
files successfully, but this unfortunate behavior of redhat-config-cluster
defeats my strategy. Please fix in a future version.

Comment 1 Jim Parsons 2005-09-02 19:50:56 UTC
Fixed in U6 candidate build 1.0.8-1.0

Comment 2 Red Hat Bugzilla 2005-09-30 14:54:37 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 the 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-2005-765.html