Bug#700762: System fails to shutdown due to iscsid being terminated.

2013-02-21 Thread Ritesh Raj Sarraf
On Sun, Feb 17, 2013 at 12:41 PM, Wakko Warner  wrote:
> Ritesh Raj Sarraf wrote:
>> Hello Wakko
>>
>> On Sun, Feb 17, 2013 at 8:13 AM, Wakko Warner  wrote:
>> > I have a test system that boots over iSCSI.  If iscsid is killed and the
>> > kernel decides to sync the scsi caches, the iSCSI connection fails.
>>
>> How is iscsid being killed here?
>>
>> I still can't see whey the connection would fail.
>
> I tested it on one of my systems and it works.  iscsid is killed during
> shutdown by sendsigs.  I don't know why either, but once iscsid is dead, the
> kernel will sync the scsi cache and then the iscsi driver cannot connect
> anymore.


The unavailability of the iscsid daemon is not a big problem. If you
lose a session, then we are in trouble.

>
>> > I change the init script to drop a link to the PID file for iscsid to the
>> > /run/sendsigs.omit.d and it shuts down properly now.
>> >
>> > I've attached the patch, it's only adds 2 lines.
>> >
>>
>> I looked but have no clue at what it does.
>
> It places a link to the pid file so that send sigs will not kill it.
>

I could add this patch. But I would still doubt if that fixes the real problem.

-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#700762: System fails to shutdown due to iscsid being terminated.

2013-02-17 Thread Wakko Warner
Ritesh Raj Sarraf wrote:
> Hello Wakko
> 
> On Sun, Feb 17, 2013 at 8:13 AM, Wakko Warner  wrote:
> > I have a test system that boots over iSCSI.  If iscsid is killed and the
> > kernel decides to sync the scsi caches, the iSCSI connection fails.
> 
> How is iscsid being killed here?
> 
> I still can't see whey the connection would fail.

I tested it on one of my systems and it works.  iscsid is killed during
shutdown by sendsigs.  I don't know why either, but once iscsid is dead, the
kernel will sync the scsi cache and then the iscsi driver cannot connect
anymore.

> > I change the init script to drop a link to the PID file for iscsid to the
> > /run/sendsigs.omit.d and it shuts down properly now.
> >
> > I've attached the patch, it's only adds 2 lines.
> >
> 
> I looked but have no clue at what it does.

It places a link to the pid file so that send sigs will not kill it.

-- 
 Microsoft has beaten Volkswagen's world record.  Volkswagen only created 22
 million bugs.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#700762: System fails to shutdown due to iscsid being terminated.

2013-02-16 Thread Ritesh Raj Sarraf
Hello Wakko

On Sun, Feb 17, 2013 at 8:13 AM, Wakko Warner  wrote:
> I have a test system that boots over iSCSI.  If iscsid is killed and the
> kernel decides to sync the scsi caches, the iSCSI connection fails.
>

How is iscsid being killed here?

I still can't see whey the connection would fail.


> I change the init script to drop a link to the PID file for iscsid to the
> /run/sendsigs.omit.d and it shuts down properly now.
>
> I've attached the patch, it's only adds 2 lines.
>

I looked but have no clue at what it does.

-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#700762: System fails to shutdown due to iscsid being terminated.

2013-02-16 Thread Wakko Warner
Package: open-iscsi
Version: 2.0.872-2
Severity: normal
Tags: patch

I have a test system that boots over iSCSI.  If iscsid is killed and the
kernel decides to sync the scsi caches, the iSCSI connection fails.

I change the init script to drop a link to the PID file for iscsid to the
/run/sendsigs.omit.d and it shuts down properly now.

I've attached the patch, it's only adds 2 lines.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 3.3.0
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages open-iscsi depends on:
ii  libc6 2.13-20Embedded GNU C Library: Shared lib
ii  udev  172-1  /dev/ and hotplug management daemo

open-iscsi recommends no packages.

-- no debconf information
--- a/open-iscsi	2011-09-14 05:18:39.0 -0400
+++ b/open-iscsi	2013-02-16 21:39:20.0 -0500
@@ -14,6 +15,7 @@
 PIDFILE=/var/run/iscsid.pid
 NAMEFILE=/etc/iscsi/initiatorname.iscsi
 CONFIGFILE=/etc/iscsi/iscsid.conf
+OMITDIR=/run/sendsigs.omit.d
 
 [ -x "$DAEMON" ] || exit 0
 
@@ -97,6 +99,7 @@
 	modprobe -q iscsi_tcp 2>/dev/null || :
 	modprobe -q ib_iser 2>/dev/null || :
 	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
+	ln -s $PIDFILE $OMITDIR
 	RETVAL=$?
 	log_end_msg $RETVAL