Your message dated Tue, 3 Aug 2010 13:23:16 +0530
with message-id <[email protected]>
and subject line Re: Bug#589738: Acknowledgement (iscsitarget: Stop tries to
unload the module before ietd has finished exiting)
has caused the Debian Bug report #589738,
regarding iscsitarget: Stop tries to unload the module before ietd has finished
exiting
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
589738: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589738
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: iscsitarget
Version: 1.4.20.1-3
Severity: normal
Tags: patch
/etc/init.d/iscsitarget stop first shuts down ietd, then unloads the module.
Unloading the module fails because the module is still in use for some reason.
Sleeping briefly after quitting the daemon allows to reliably unload the
module. See also the attached patch.
~David
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.34 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages iscsitarget depends on:
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip
ii procps 1:3.2.8-9 /proc file system utilities
Versions of packages iscsitarget recommends:
ii iscsitarg 1.4.20.1-3+2.6.34-10.00.Custom iSCSI Enterprise Target module for
Versions of packages iscsitarget suggests:
ii iscsitarget-source 1.4.20.1-3 iSCSI Enterprise Target kernel mod
-- Configuration Files:
/etc/default/iscsitarget changed [not included]
/etc/iet/ietd.conf [Errno 13] Permission denied: u'/etc/iet/ietd.conf'
/etc/init.d/iscsitarget changed [not included]
-- no debconf information
--- iscsitarget.orig 2010-07-20 15:42:31.000000000 +0200
+++ iscsitarget 2010-07-20 15:45:32.000000000 +0200
@@ -84,6 +84,9 @@
fi
# ugly, but pid file is not removed by ietd
rm -f $PID_FILE
+
+ # give ietd time to shut down, otherwise the module won't unload
+ sleep 1
# check if the module is loaded at all
lsmod | grep -q iscsi_trgt
--- End Message ---
--- Begin Message ---
I am closing this bug. If you have proper steps to reproduce, feel free to re-
open it.
On Wednesday 21 Jul 2010 12:38:36 Ritesh Raj Sarraf wrote:
> On Tuesday 20 Jul 2010 21:24:07 David Mohr wrote:
> > I forgot to mention a crucial fact: Since the module unloading fails,
> > the init script exits. This is bad when you're doing a restart: only the
> > stopping part is performed, not the start part.
>
> I don't see this happening in my setup vm.
>
> debian-x86:~# /etc/init.d/iscsitarget start
> Starting iSCSI enterprise target service:.
> .
> debian-x86:~# lsmod |grep -i iscsi
> iscsi_trgt 60643 3
> debian-x86:~# /etc/init.d/iscsitarget stop
> Removing iSCSI enterprise target devices: :.
> Stopping iSCSI enterprise target service: :.
> Removing iSCSI enterprise target modules: ... (warning).
> .
> debian-x86:~# lsmod |grep -i iscsi
>
>
>
> Even the restart seems to be fine.
>
>
> debian-x86:~# /etc/init.d/iscsitarget start
> Starting iSCSI enterprise target service:.
> .
> debian-x86:~#
> debian-x86:~#
> debian-x86:~#
> debian-x86:~# /etc/init.d/iscsitarget restart
> Removing iSCSI enterprise target devices: :.
> Stopping iSCSI enterprise target service: :.
> Removing iSCSI enterprise target modules: ... (warning).
> .
> Starting iSCSI enterprise target service:.
> .
> debian-x86:~# lsmod | grep -i iscsi
> iscsi_trgt 60643 3
--
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
signature.asc
Description: This is a digitally signed message part.
--- End Message ---