From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1)
Description of problem:
ccsd grabs config from network sliently if local config is invalid.
Version-Release number of selected component (if applicable):
cvs head - Thu Jul 22 13:55:37 CDT 2004
Steps to Reproduce:
1. Have valid cluster.conf with running ccsd on other nodes in network.
2. put invalid xml cluster.conf on local node,
3. start ccsd.
4. run ccs_test connect force
Actual Results: ccsd will grab config from other node on network and
replace local config without giving any warning or reason.
Expected Results: It would be nice for it to at the very least print
out a message saying that the local config is invalid and that it is
getting one from the network.
Updates with the proper version and component name.
Updates with the proper version and component name. Again, just love out tools.
ccsd will no-longer start up if the local copy is unparsable. It will
display the results of the xmlParseFile() call and tell the user to
either correct the problem or (re)move the local conf and attempt to
grab a valid copy from the network.
Ccsd is now doing what is described in comment #4. Looks like this:
[root@link-12 /]# ccsd
/etc/cluster/cluster.conf:43: parser error : Opening and ending tag
mismatch: milton line 7 and cluster
/etc/cluster/cluster.conf:44: parser error : Premature end of data in
tag cluster line 2
Unable to parse /etc/cluster/cluster.conf.
You should either:
1. Correct the XML mistakes, or
2. (Re)move the file and attempt to grab a valid copy from the network.
[root@link-12 /]# echo $?
[root@link-12 /]# ccsd -V
ccsd DEVEL.1103743812 (built Dec 22 2004 13:31:24)