Bug 529052
Summary: | SAP resources does not have a primary attribute associated with resource and shared resource are not seen in service | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Shane Bradley <sbradley> | ||||||
Component: | rgmanager | Assignee: | Lon Hohberger <lhh> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 5.4 | CC: | cluster-maint, cward, djansa, edamato, tao | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | rgmanager-2.0.52-1.26.el5 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | 527780 | ||||||||
: | 533972 (view as bug list) | Environment: | |||||||
Last Closed: | 2010-03-30 08:49:41 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: | 527780 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Shane Bradley
2009-10-14 19:03:25 UTC
Created attachment 372608 [details]
Minimal cluster.conf illustrating a "successful" service definition
Running "rg_test test sap_ok.conf" will produce a resource tree which looks like this:
=== Resource Tree ===
service {
name = "SAPTest";
autostart = "1";
hardrecovery = "0";
exclusive = "0";
nfslock = "0";
nfs_client_cache = "0";
recovery = "restart";
depend_mode = "hard";
max_restarts = "0";
restart_expire_time = "0";
priority = "0";
SAPInstance {
InstanceName = "foo";
DIR_EXECUTABLE = "";
DIR_PROFILE = "";
START_PROFILE = "";
START_WAITTIME = "3600";
AUTOMATIC_RECOVER = "false";
PRE_START_USEREXIT = "";
POST_START_USEREXIT = "";
PRE_STOP_USEREXIT = "";
POST_STOP_USEREXIT = "";
}
SAPDatabase {
SID = "bar";
DIR_EXECUTABLE = "";
DBTYPE = "oracle";
NETSERVICENAME = "";
DBJ2EE_ONLY = "false";
JAVA_HOME = "";
STRICT_MONITORING = "false";
AUTOMATIC_RECOVER = "false";
DIR_BOOTSTRAP = "";
DIR_SECSTORE = "";
DB_JARS = "";
PRE_START_USEREXIT = "";
POST_START_USEREXIT = "";
PRE_STOP_USEREXIT = "";
POST_STOP_USEREXIT = "";
}
}
Created attachment 372611 [details]
Minimal cluster.conf illustrating problem
Running "rg_test test sap_fail.conf" *SHOULD* produce the same result as the above tree definition, but it does not. Instead, the resource tree output looks like this:
=== Resource Tree ===
service {
name = "SAPTest";
autostart = "1";
hardrecovery = "0";
exclusive = "0";
nfslock = "0";
nfs_client_cache = "0";
recovery = "restart";
depend_mode = "hard";
max_restarts = "0";
restart_expire_time = "0";
priority = "0";
}
With Shane's changes to SAPInstance and SAPDatabase (making the InstanceName and SID primary attributes in the resource agent metadata), the output of "rg_test test sap_fail.conf" looks the same as the output of "rg_test test sap_ok.conf": === Resource Tree === service { name = "SAPTest"; autostart = "1"; hardrecovery = "0"; exclusive = "0"; nfslock = "0"; nfs_client_cache = "0"; recovery = "restart"; depend_mode = "hard"; max_restarts = "0"; restart_expire_time = "0"; priority = "0"; SAPInstance { InstanceName = "foo"; DIR_EXECUTABLE = ""; DIR_PROFILE = ""; START_PROFILE = ""; START_WAITTIME = "3600"; AUTOMATIC_RECOVER = "false"; PRE_START_USEREXIT = ""; POST_START_USEREXIT = ""; PRE_STOP_USEREXIT = ""; POST_STOP_USEREXIT = ""; } SAPDatabase { SID = "bar"; DIR_EXECUTABLE = ""; DBTYPE = "oracle"; NETSERVICENAME = ""; DBJ2EE_ONLY = "false"; JAVA_HOME = ""; STRICT_MONITORING = "false"; AUTOMATIC_RECOVER = "false"; DIR_BOOTSTRAP = ""; DIR_SECSTORE = ""; DB_JARS = ""; PRE_START_USEREXIT = ""; POST_START_USEREXIT = ""; PRE_STOP_USEREXIT = ""; POST_STOP_USEREXIT = ""; } } http://git.fedorahosted.org/git/?p=cluster.git;a=commit;h=ab1c793499d12dec81beadcb5f1f3905a0f12a04 http://git.fedorahosted.org/git/?p=cluster.git;a=commit;h=1fe162a5601fe620f9fd45033f51196f6ab51b25 ~~ Attention Customers and Partners - RHEL 5.5 Beta is now available on RHN ~~ RHEL 5.5 Beta has been released! There should be a fix present in this release that addresses your request. Please test and report back results here, by March 3rd 2010 (2010-03-03) or sooner. Upon successful verification of this request, post your results and update the Verified field in Bugzilla with the appropriate value. If you encounter any issues while testing, please describe them and set this bug into NEED_INFO. If you encounter new defects or have additional patch(es) to request for inclusion, please clone this bug per each request and escalate through your support representative. Using example pass/fail config files above, but produce the same resource tree portion of output: [root@marathon-01 ~]# cat FAIL.OUT === Resource Tree === service { name = "SAPTest"; autostart = "1"; hardrecovery = "0"; exclusive = "0"; nfslock = "0"; nfs_client_cache = "0"; recovery = "restart"; depend_mode = "hard"; max_restarts = "0"; restart_expire_time = "0"; priority = "0"; SAPInstance { InstanceName = "foo"; DIR_EXECUTABLE = ""; DIR_PROFILE = ""; START_PROFILE = ""; START_WAITTIME = "3600"; AUTOMATIC_RECOVER = "false"; PRE_START_USEREXIT = ""; POST_START_USEREXIT = ""; PRE_STOP_USEREXIT = ""; POST_STOP_USEREXIT = ""; } SAPDatabase { SID = "bar"; DIR_EXECUTABLE = ""; DBTYPE = "oracle"; NETSERVICENAME = ""; DBJ2EE_ONLY = "false"; JAVA_HOME = ""; STRICT_MONITORING = "false"; AUTOMATIC_RECOVER = "false"; DIR_BOOTSTRAP = ""; DIR_SECSTORE = ""; DB_JARS = ""; PRE_START_USEREXIT = ""; POST_START_USEREXIT = ""; PRE_STOP_USEREXIT = ""; POST_STOP_USEREXIT = ""; } } [root@marathon-01 ~]# cat PASS.OUT === Resource Tree === service { name = "SAPTest"; autostart = "1"; hardrecovery = "0"; exclusive = "0"; nfslock = "0"; nfs_client_cache = "0"; recovery = "restart"; depend_mode = "hard"; max_restarts = "0"; restart_expire_time = "0"; priority = "0"; SAPInstance { InstanceName = "foo"; DIR_EXECUTABLE = ""; DIR_PROFILE = ""; START_PROFILE = ""; START_WAITTIME = "3600"; AUTOMATIC_RECOVER = "false"; PRE_START_USEREXIT = ""; POST_START_USEREXIT = ""; PRE_STOP_USEREXIT = ""; POST_STOP_USEREXIT = ""; } SAPDatabase { SID = "bar"; DIR_EXECUTABLE = ""; DBTYPE = "oracle"; NETSERVICENAME = ""; DBJ2EE_ONLY = "false"; JAVA_HOME = ""; STRICT_MONITORING = "false"; AUTOMATIC_RECOVER = "false"; DIR_BOOTSTRAP = ""; DIR_SECSTORE = ""; DB_JARS = ""; PRE_START_USEREXIT = ""; POST_START_USEREXIT = ""; PRE_STOP_USEREXIT = ""; POST_STOP_USEREXIT = ""; } } [root@marathon-01 ~]# diff PASS.OUT FAIL.OUT [root@marathon-01 ~]# An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0280.html |