Description of problem: If you issue the command "ccs_test connect FOOBAR" and there is no cluster FOOBAR, it just connects to the local ccsd regardless. My clustername here is really MILTON: [root@link-11 root]# ccs_test connect FOOFOO Setting cluster name to FOOFOO Connect successful. Connection descriptor = 0 [root@link-11 root]# ccs_test get 0 //cluster/@name Get successful. Value = <MILTON> [root@link-11 root]# Version-Release number of selected component (if applicable): [root@link-11 root]# ccsd -V ccsd DEVEL.1090955927 (built Jul 27 2004 14:19:52) Copyright (C) Red Hat, Inc. 2004 All rights reserved. How reproducible: Always. Steps to Reproduce: 1. Make your cluster quorate 2. Run "ccs_test connect foofoo" where foofoo is not a valid cluster name. 3. Actual results: Connect to local ccsd Expected results: Either connect to cluster foofoo or error and exit. Additional info:
The above described procedure will no longer provoke this bug. However, a variation still exists (that will not happen in a quorate cluster). To produce, do the following: node1> ccsd node2> ccsd; ccs_test connect force <any name> node1> ccs_test connect force <name other than what's in cluster.conf> FAIL The broadcast request from another node causes the first to load the local file into memory and then reply to the broadcast. Once the file is in memory, any requests for a differently named cluster will fail... You have to kill and restart ccsd at this point.
Updates with the proper version and component name.
Updates with the proper version and component name. Again, just love out tools.
Updating version to the right level in the defects. Sorry for the storm.
fixed
Verified: [root@link-12 cluster]# ccs_test connect BARF Setting cluster name to BARF A cluster name can only be specified when using 'force'. [root@link-12 cluster]# ccs_test connect force BARF Force is set. Setting cluster name to BARF ccs_connect failed: Invalid argument [root@link-12 cluster]# echo $? 1 [root@link-12 cluster]# ccsd -V ccsd DEVEL.1103743812 (built Dec 22 2004 13:31:24) Copyright (C) Red Hat, Inc. 2004 All rights reserved. [root@link-12 cluster]#