Description of problem: Attempting to create two Sybase resources results in an unique attribute collision, since all the resourge agent parameters have the unique="1" attribute. Version-Release number of selected component (if applicable): rgmanager-2.0.52-9.el5 How reproducible: Always. Steps to Reproduce: 1. Create two Sybase cluster resources and their corresponding services: <ASEHAagent deep_probe_timeout="300" interfaces_file="/opt/sybase/interfaces" login_file="/opt/sybase/ase1_login_file" name="syb_ase1" server_name="ase1" shutdown_timeout="200" start_timeout="300" sybase_ase="ASE-15_0" sybase_home="/opt/sybase" sybase_ocs="OCS-15_0" sybase_user="sybase"/> <ASEHAagent deep_probe_timeout="300" interfaces_file="/opt/sybase/interfaces" login_file="/opt/sybase/ase2_login_file" name="syb_ase2" server_name="ase2" shutdown_timeout="200" start_timeout="300" sybase_ase="ASE-15_0" sybase_home="/opt/sybase" sybase_ocs="OCS-15_0" sybase_user="sybase"/> <service autostart="0" domain="fd_n1" exclusive="0" name="svc_ase1" recovery="relocate"> ... <ASEHAagent ref="syb_ase1"/> </service> <service autostart="0" domain="fd_n1" exclusive="0" name="svc_ase2" recovery="relocate"> ... <ASEHAagent ref="syb_ase2"/> </service> 2. Validate the cluster.conf file: # rg_test test /etc/cluster/cluster.conf 3. Actual results: # rg_test test /etc/cluster/cluster.conf Running in test mode. Error: Unique attribute collision. type=ASEHAagent attr=sybase_home value=/opt/sybase Error storing ASEHAagent resource Error: Reference to nonexistent resource syb_ase2 (type ASEHAagent) Loaded 24 resource rules ... Expected results: # rg_test test /etc/cluster/cluster.conf Running in test mode. Loaded 24 resource rules ... Additional info: Only the 'name' and 'server_name' parameters should be unique.
Created attachment 487111 [details] ASEHAagent.sh diff
http://git.fedorahosted.org/git?p=cluster.git;a=commit;h=5cb583fcf1293adc9df5abb01593167945dd0b0f http://git.fedorahosted.org/git?p=cluster.git;a=commit;h=39d2c37a1abf2de9e3413fc92318ed75a6d7e5ad
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: Several attributes of the ASEHAagent resource agent were marked 'unique' but should not have been. Consequence: Unnecessary resource attribute collisions. Fix: Make attributes not 'unique' Result: No more unnecessary resource attribute collisions.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0163.html