Bug 464809

Summary: iscsid init script kills itself when restart is requested
Product: Red Hat Enterprise Linux 5 Reporter: Milos Malik <mmalik>
Component: iscsi-initiator-utilsAssignee: Mike Christie <mchristi>
Status: CLOSED DUPLICATE QA Contact: Martin Jenner <mjenner>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: benl, coughlan, mchristi
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-14 21:10:09 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:

Description Milos Malik 2008-09-30 16:08:19 UTC
Description of problem:
When you run /etc/init.d/iscsid restart as root, the init script kills the running daemon and itself, so the daemon will not be started again. You have to do it manually.

The init script uses "pkill -KILL iscsid" to kill the daemon. Unfortunately the command also kills the init script itself.

Version-Release number of selected component (if applicable):
iscsi-initiator-utils-6.2.0.868-0.7.el5

How reproducible:
always

Steps to Reproduce:
# /etc/init.d/iscsid start
Turning off network shutdown. Starting iSCSI daemon: [  OK  ]
[  OK  ]
# echo $?
0
# /etc/init.d/iscsid restart
Stopping iSCSI daemon: Killed
# echo $?
137
# 
  
Actual results:
The init script stops the iscsid but does not start it.

Expected results:
The init script stops the iscsid and starts it again.

Additional info:

Comment 1 Mike Christie 2008-09-30 16:46:00 UTC
I think this will be fixed in bz 253834. Do you have access to our 5.3 beta/rc/alpha code? The updated rpm is iscsi-initiator-utils-6.2.0.868-0.11.el5. I can send a link to the updated code if you need it.

Comment 3 Milos Malik 2008-10-14 11:49:59 UTC
The bug is fixed in iscsi-initiator-utils-6.2.0.868-0.11.el5. Tested on RHEL5.3-Server-20081012.nightly (i386, ia64, x86_64).

:: [06:33:30] Begin Test - /CoreOS/iscsi-initiator-utils/Regression/bz464809-1.0 ::

:: Restarting iscsid ::
Stopping iSCSI daemon: 
Turning off network shutdown. Starting iSCSI daemon: [  OK  ]
[  OK  ]
        * exit code: 0
        * iscsid is running <-- correct

:: [06:33:34] End Test - /CoreOS/iscsi-initiator-utils/Regression/bz464809-1.0 ::

:: SCORE: 2/2 ::

:: RESULT: PASS ::