Bug 727023

Summary: Stopping in-use tgtd script returns "Yes" instead of "Failed"
Product: Red Hat Enterprise Linux 6 Reporter: Madison Kelly <mkelly>
Component: rgmanagerAssignee: Lon Hohberger <lhh>
Status: CLOSED DUPLICATE QA Contact: Cluster QE <mspqa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: cluster-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-02 15:37:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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 ***