Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 690265

Summary: Most of ASEHAagent.sh parameters should not be 'unique'
Product: Red Hat Enterprise Linux 5 Reporter: Julio Entrena Perez <jentrena>
Component: rgmanagerAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6CC: cfeist, cluster-maint, cmarthal, djansa, edamato, jentrena, jwest
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rgmanager-2.0.52-22.el5 Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:19:03 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:
Bug Depends On:    
Bug Blocks: 668957, 719046    
Attachments:
Description Flags
ASEHAagent.sh diff none

Description Julio Entrena Perez 2011-03-23 18:25:41 UTC
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.

Comment 1 Julio Entrena Perez 2011-03-23 18:27:03 UTC
Created attachment 487111 [details]
ASEHAagent.sh diff

Comment 11 Lon Hohberger 2012-01-19 19:21:00 UTC
    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.

Comment 12 errata-xmlrpc 2012-02-21 06:19:03 UTC
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