Bug 673167 - clusvcadm -d service name does not act consistently
Summary: clusvcadm -d service name does not act consistently
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rgmanager
Version: 6.1
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: rc
: 6.2
Assignee: Lon Hohberger
QA Contact: Cluster QE
URL:
Whiteboard:
: 727023 857591 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-27 15:52 UTC by Rob Marti
Modified: 2018-11-28 19:16 UTC (History)
7 users (show)

Fixed In Version: rgmanager-3.0.12.1-2.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 11:57:18 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1595 0 normal SHIPPED_LIVE rgmanager bug fix and enhancement update 2011-12-06 00:38:45 UTC

Description Rob Marti 2011-01-27 15:52:16 UTC
Description of problem:
Testing a cluster before moving it into production, we pulled the fiber path to the SAN.  The postgresql service on the node failed, but did not start automatically on the other node (even with the service set to relocate).  Fencing the "failed" node, and trying to do a disable/enable on the working node started the service, but not in the way that was expected

Version-Release number of selected component (if applicable):
-> rpm -q rgmanager cman
rgmanager-2.0.52-9.el5
cman-2.0.115-68.el5_6.1

How reproducible:
Always

Steps to Reproduce:
1.  Cause service on node1 to fail (I'm not sure if <crit> #12: RG service:servicename failed to stop; intervention required failure step is part of the problem or not)
2.  Fence node1
3.  On node2, clusvcadm -d servicename && clusvcadm -e servicename
  
Actual results:
[09:25:44][root@lnxdb02][/root]-> clusvcadm -d PostGres && clusvcadm -e PostGres
Local machine disabling service:PostGres...Yes
[09:26:14][root@lnxdb02][/root]-> clusvcadm -e PostGres
Local machine trying to enable service:PostGres...Success
service:PostGres is now running on lnxdb02.shsu.edu
[09:26:28][root@lnxdb02][/root]->

Expected results:
[09:28:21][root@lnxdb02][/root]-> clusvcadm -d PostGres && clusvcadm -e PostGres
Local machine disabling service:PostGres...Success
Local machine trying to enable service:PostGres...Success
service:PostGres is now running on lnxdb02.shsu.edu
[09:28:48][root@lnxdb02][/root]->

Additional info:
Note the different outputs for the disable command - that's why I'm submitting the bug.  It looks like everything else is acting correctly (requiring intervention to start the service, which makes sense based on the error - although I'm not sure why intervention is required).

Comment 1 Lon Hohberger 2011-01-31 15:14:46 UTC
It looks like it has to do with the return codes when a service goes from "failed" -> "disabled" vs. when it goes from "started" -> "disabled".

Comment 2 Lon Hohberger 2011-01-31 15:23:11 UTC
I'd like to fix this in Red Hat Enterprise Linux 6 since it's mostly a nuisance and not causing any service outages.

Comment 3 Jason Ganovsky 2011-04-12 15:40:36 UTC
+1 - Although there are circumstances when I actually get a result similar to

"Local machine disabling service:<servicename>...Yes" (notice the ...Yes instead of ...Success)

after which I cannot restart the resource.  I have to run -d twice in a row, getting two differing results, before re-enabling the service

Local machine disabling service:<servicename>...Yes
Local machine disabling service:<servicename>...Success

Comment 6 Lon Hohberger 2011-07-08 16:13:50 UTC
So, the fix does the following...

1) Fail to start (and fail to stop) during enable requests will result in 'Aborted; service failed'

2) Fail to stop during relocation requests will result in 'Aborted; service failed'

3) Fail to stop during 'stop' requests or 'disable' requests will result in 'Failure'

4) Fail to stop during 'disable' requests when the service is in the failed or disabled states will result in 'Warning; see system logs'

5) No amount of disable or stop requests will clear last-known owner, making this consistent (previously, disable-after-disable would erroneously clear previous owner)

Comment 7 Lon Hohberger 2011-07-08 16:15:08 UTC
(1 & 2 should be how rgmanager worked previously; these didn't change)

Comment 10 Lon Hohberger 2011-08-02 15:37:42 UTC
*** Bug 727023 has been marked as a duplicate of this bug. ***

Comment 12 errata-xmlrpc 2011-12-06 11:57:18 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-2011-1595.html

Comment 13 Lon Hohberger 2012-09-28 14:34:23 UTC
*** Bug 857591 has been marked as a duplicate of this bug. ***


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