Bug 727023 - Stopping in-use tgtd script returns "Yes" instead of "Failed"
Summary: Stopping in-use tgtd script returns "Yes" instead of "Failed"
Keywords:
Status: CLOSED DUPLICATE of bug 673167
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rgmanager
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lon Hohberger
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-01 04:07 UTC by Madison Kelly
Modified: 2011-08-02 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-02 15:37:42 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Madison Kelly 2011-08-01 04:07:07 UTC
Description of problem:

If you have a script service managing tgtd (iscsi target daemon), and the tgtd daemon fails to stop because it is in use, rgmanager shows:

====
# clusvcadm -d service:an1_storage
Local machine disabling service:an1_storage...Yes
====

In the node's syslog is this:

====
Jul 31 23:59:06 an-node01 rgmanager[3371]: Executing /etc/init.d/tgtd status
Jul 31 23:59:09 an-node01 rgmanager[2245]: Stopping service service:an1_storage
Jul 31 23:59:09 an-node01 rgmanager[3409]: Executing /etc/init.d/tgtd stop
Jul 31 23:59:10 an-node01 rgmanager[3442]: script:tgtd: stop of /etc/init.d/tgtd failed (returned 1)
Jul 31 23:59:10 an-node01 rgmanager[2245]: stop on script "tgtd" returned 1 (generic error)
Jul 31 23:59:10 an-node01 rgmanager[2245]: #12: RG service:an1_storage failed to stop; intervention required
Jul 31 23:59:10 an-node01 rgmanager[2245]: Service service:an1_storage is failed
====

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

scsi-target-utils-1.0.14-2.el6.x86_64
rgmanager-3.0.12-11.el6_1.1.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Setup an iSCSI target, then on another node, mount it.
2. Add 'tgtd' as a script service to RGManager and enable it.
3. Try to stop the tgtd service
  
Actual results:

Fails to report the failure.

Expected results:

Properly detect the failure.

Additional info:

If it helps, I can provide my target.conf and cluster.conf files, though they are quite minimal configs.

Comment 2 Lon Hohberger 2011-08-02 15:37:42 UTC

*** This bug has been marked as a duplicate of bug 673167 ***


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