Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 711852 - second ASEHA agent wont start - Unique attribute collision
second ASEHA agent wont start - Unique attribute collision
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: resource-agents (Show other bugs)
6.2
All Linux
high Severity high
: rc
: ---
Assigned To: Chris Feist
Cluster QE
: OtherQA
Depends On:
Blocks: 748554
  Show dependency treegraph
 
Reported: 2011-06-08 14:29 EDT by John Brier
Modified: 2013-08-14 19:06 EDT (History)
13 users (show)

See Also:
Fixed In Version: resource-agents-3.9.2-7.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-12-06 07:05:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Cluster.conf used to replicate bug and test fix (1.16 KB, text/plain)
2011-06-24 17:53 EDT, Chris Feist
no flags Details
Patch to fix bz (3.70 KB, patch)
2011-06-30 16:27 EDT, Chris Feist
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1580 normal SHIPPED_LIVE Low: resource-agents security, bug fix, and enhancement update 2011-12-05 19:38:57 EST

  None (edit)
Description John Brier 2011-06-08 14:29:10 EDT
Description of problem:

When using (sybase database) ASEHAagent resource in cluster.conf there is a unique attribute collision on attr=sybase_ase

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

rgmanager-3.0.12-10.el6.x86_64

How reproducible:


Steps to Reproduce:
1. In cluster.conf setup two ASEHAagent resources with the same value for the sybase_ase attribute
2. restart rgmanager
3.
Jun  7 13:51:49 hostname rgmanager[3996]: Reconfiguring
Jun  7 13:51:49 hostname rgmanager[3996]: Loading Service Data
Jun  7 13:51:50 hostname rgmanager[3996]: Unique attribute collision. type=ASEHAagent attr=sybase_home value=/opt/sybase/ASE15
Jun  7 13:51:50 hostname rgmanager[3996]: Error storing ASEHAagent resource
Jun  7 13:51:50 hostname rgmanager[3996]: Unique attribute collision. type=ASEHAagent attr=sybase_ase value=ASE-15_0
Jun  7 13:51:50 hostname rgmanager[3996]: Error storing ASEHAagent resource
Jun  7 13:51:50 hostname rgmanager[3996]: Unique attribute collision. type=ASEHAagent attr=sybase_ase value=ASE-15_0
Jun  7 13:51:50 hostname rgmanager[3996]: Error storing ASEHAagent resource



  
Actual results:
Jun  7 13:51:49 hostname rgmanager[3996]: Reconfiguring
Jun  7 13:51:49 hostname rgmanager[3996]: Loading Service Data
Jun  7 13:51:50 hostname rgmanager[3996]: Unique attribute collision. type=ASEHAagent attr=sybase_home value=/opt/sybase/ASE15
Jun  7 13:51:50 hostname rgmanager[3996]: Error storing ASEHAagent resource
Jun  7 13:51:50 hostname rgmanager[3996]: Unique attribute collision. type=ASEHAagent attr=sybase_ase value=ASE-15_0
Jun  7 13:51:50 hostname rgmanager[3996]: Error storing ASEHAagent resource
Jun  7 13:51:50 hostname rgmanager[3996]: Unique attribute collision. type=ASEHAagent attr=sybase_ase value=ASE-15_0
Jun  7 13:51:50 hostname rgmanager[3996]: Error storing ASEHAagent resource

Expected results:
no unique attribute collision

Additional info:
Comment 1 John Brier 2011-06-08 14:31:35 EDT
FYI RHEL 5 equivalent which hasn't been fixed either

https://bugzilla.redhat.com/show_bug.cgi?id=690265
Comment 6 Chris Feist 2011-06-24 17:52:47 EDT
Before fix:

[root@ask-03 ~]# rg_test test /etc/cluster/cluster.conf | grep Error
Running in test mode.
Loaded 24 resource rules
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)

After fix (with scratch rpm):
[root@ask-03 ~]# rg_test test /etc/cluster/cluster.conf | grep ErrorRunning in test mode.
Loaded 24 resource rules
[root@ask-03 ~]#
Comment 7 Chris Feist 2011-06-24 17:53:56 EDT
Created attachment 509850 [details]
Cluster.conf used to replicate bug and test fix
Comment 8 Chris Feist 2011-06-30 16:27:37 EDT
Created attachment 510751 [details]
Patch to fix bz
Comment 9 Fabio Massimo Di Nitto 2011-07-08 03:21:50 EDT
http://post-office.corp.redhat.com/archives/cluster-list/2011-June/msg00132.html

Chris packages have been tested and results show that the change works as expected.
Comment 10 Julio Entrena Perez 2011-07-08 04:36:05 EDT
I believe that the "server_name" parameter should remain unique.
Comment 12 Jaroslav Kortus 2011-10-18 08:16:25 EDT
Works as expected with reproducer config.

But according to comment 5 and later also comment 10 the server_name should still be unique and it's not (see the patch). Validation with duplicate server_name still passes the tests, so I'm switching this back to assigned.

Please make server_name unique.
Comment 15 Lon Hohberger 2011-10-18 13:44:33 EDT
Given the simplest possible cluster.conf that would exhibit this behavior:

[root@snap ~]# cat sybasetest.conf 
<cluster>
  <rm>
    <resources>
      <ASEHAagent name="a" sybase_home="b" sybase_ase="c" sybase_ocs="not_unique" server_name="not_unique_test" login_file="a" interfaces_file="a" sybase_user="not_unique" shutdown_timeout="120" start_timeout="120" deep_probe_timeout="120" />
      <ASEHAagent name="b" sybase_home="b" sybase_ase="c" sybase_ocs="not_unique" server_name="not_unique_test" login_file="a" interfaces_file="a" sybase_user="not_unique" shutdown_timeout="120" start_timeout="120" deep_probe_timeout="120" />
    </resources>
  </rm>
</cluster>


Prior to patch (3.9.2-6.el6):

=== Resources List ===
Resource type: ASEHAagent
Agent: ASEHAagent.sh
Attributes:
  name = a [ primary unique ]
  sybase_home = b [ required ]
  sybase_ase = c [ required ]
  sybase_ocs = not_unique [ required ]
  server_name = not_unique_test [ required ]
  login_file = a [ required ]
  interfaces_file = a [ required ]
  sybase_user = not_unique [ required ]
  shutdown_timeout = 120 [ required ]
  start_timeout = 120 [ required ]
  deep_probe_timeout = 120 [ required ]

Resource type: ASEHAagent
Agent: ASEHAagent.sh
Attributes:
  name = b [ primary unique ]
  sybase_home = b [ required ]
  sybase_ase = c [ required ]
  sybase_ocs = not_unique [ required ]
  server_name = not_unique_test [ required ]
  login_file = a [ required ]
  interfaces_file = a [ required ]
  sybase_user = not_unique [ required ]
  shutdown_timeout = 120 [ required ]
  start_timeout = 120 [ required ]
  deep_probe_timeout = 120 [ required ]

=== Event Triggers ===
Event Priority Level 100:
  Name: Default
    (Any event)
    File: /usr/share/cluster/default_event_script.sl

After patch (corrected behavior):

Error: Unique attribute collision. type=ASEHAagent attr=server_name value=not_unique_test
Error storing ASEHAagent resource
Loaded 26 resource rules
=== Resources List ===
Resource type: ASEHAagent
Agent: ASEHAagent.sh
Attributes:
  name = a [ primary unique ]
  sybase_home = b [ required ]
  sybase_ase = c [ required ]
  sybase_ocs = not_unique [ required ]
  server_name = not_unique_test [ unique required ]
  login_file = a [ required ]
  interfaces_file = a [ required ]
  sybase_user = not_unique [ required ]
  shutdown_timeout = 120 [ required ]
  start_timeout = 120 [ required ]
  deep_probe_timeout = 120 [ required ]

=== Event Triggers ===
Event Priority Level 100:
  Name: Default
    (Any event)
    File: /usr/share/cluster/default_event_script.sl
Comment 16 Lon Hohberger 2011-10-18 13:46:28 EDT
Note both the error storing the second resource with the non-unique value and also the change in flags from [ required ] to [ unique required ]
Comment 17 Jaroslav Kortus 2011-10-19 10:57:35 EDT
resource-agents-3.9.2-7.el6.x86_64

works as expected now, server_name unique.
Comment 18 errata-xmlrpc 2011-12-06 07:05:32 EST
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/RHSA-2011-1580.html

Note You need to log in before you can comment on or make changes to this bug.