Bug 637154
Summary: | SAPInstance and SAPDatabase fail to start/stop/status if /u exists | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Alfredo Moralejo <amoralej> | ||||||
Component: | rgmanager | Assignee: | Lon Hohberger <lhh> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 5.5 | CC: | clasohm, cluster-maint, djansa, edamato, fdanapfe, jentrena, linux, rdoty, tscherf, tvvcox | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | rgmanager-2.0.52-13.el5 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 639252 (view as bug list) | Environment: | |||||||
Last Closed: | 2011-07-21 10:46:47 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: | 639252 | ||||||||
Attachments: |
|
Description
Alfredo Moralejo
2010-09-24 13:45:58 UTC
I only escaped :upper: (in my case the file name was /u), however to fix it completely I should have applied it to lower too: tr [\:upper:\] [\:lower:\] Best regards, Alfredo Can you post a cluster.conf which exhibits this problem? Created attachment 473112 [details]
cluster.conf for SAP cluster
I'm attaching cluster.conf for a SAP cluster that exhibits the behavior explained in this bug.
Alfredo
Thanks! [lhh@ayanami ~]$ foo="`echo TEST | tr [:upper:] [:lower:]`" [lhh@ayanami ~]$ echo $foo test [lhh@ayanami ~]$ mkdir u [lhh@ayanami ~]$ foo="`echo TEST | tr [:upper:] [:lower:]`" tr: misaligned [:upper:] and/or [:lower:] construct [lhh@ayanami ~]$ foo="`echo TEST | tr \[:upper:\] \[:lower:\]`" [lhh@ayanami ~]$ echo $foo test [lhh@localhost ~]$ orasid="ora`echo $SID | tr [:upper:] [:lower:]`" [lhh@localhost ~]$ echo $orasid oraepc [lhh@localhost ~]$ orasid="ora`echo $SID | tr [:upper:] [:lower:]`" tr: misaligned [:upper:] and/or [:lower:] construct [lhh@localhost ~]$ echo $orasid ora Note that the escaping is done at different points than in your patch; I'm not quite sure how your patch would work (it seems to escape colons some of the time). Also, I think I prefer this, since at least one of the existing calls to 'tr' uses single-quotes and none use literal-escapes: [lhh@localhost ~]$ orasid="ora`echo $SID | tr '[:upper:]' '[:lower:]'`" [lhh@localhost ~]$ echo $orasid oraepc Created attachment 473154 [details]
Fix
I was now able to verify that the patch for rgmanager fixes this issue: # rpm -qa|grep -i rgmanager rgmanager-2.0.52-13.el5 # clustat Cluster Status for rh_vali @ Tue Apr 19 13:43:14 2011 Member Status: Quorate Member Name ID Status ------ ---- ---- ------ clusv1 1 Online, Local, RG-Master clusv2 2 Online, RG-Worker Service Name Owner (Last) State ------- ---- ----- ------ ----- service:svc_cor_database (none) disabled service:svc_cor_ers01 (none) disabled service:svc_cor_jc02 (none) stopped service:svc_cor_scs00 (none) stopped # cd / # mkdir u # ll -d /u drwxr-xr-x 2 root root 4096 Apr 19 13:44 /u # clusvcadm -e svc_cor_database Local machine trying to enable service:svc_cor_database...Success service:svc_cor_database is now running on clusv1 [root@ls3110 /]# clustat Cluster Status for rh_vali @ Tue Apr 19 13:45:25 2011 Member Status: Quorate Member Name ID Status ------ ---- ---- ------ clusv1 1 Online, Local, RG-Master clusv2 2 Online, RG-Worker Service Name Owner (Last) State ------- ---- ----- ------ ----- service:svc_cor_database clusv1 started service:svc_cor_ers01 (none) disabled service:svc_cor_jc02 (none) stopped service:svc_cor_scs00 (none) stopped No errors are logged for the SAPDatabase and SAPInstance resource agents. So I think this bug can be moved to verified. 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/RHSA-2011-1000.html |