system hangs in shutdown if open-iscsi is working

Bug #567143 reported by Zhang Linshan
This bug affects 8 people
Affects Status Importance Assigned to Milestone
open-iscsi (Ubuntu)
Nominated for Lucid by Zhang Linshan

Bug Description

Binary package hint: open-iscsi

With open-iscsi 2.0.871-0ubuntu4 in Ubuntu lucid beta 1, the system hangs in shutdown process with the following message.
init: Disconnected from system bus
[ 5184.361085] connection1:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4295455639, last ping 4295456139, now 4295456639
[ 5392.060481] INFO: task sync:4155 blocked for more than 120 seconds.
[ 5392.060802] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 5511.846759] INFO: task sync:4155 blocked for more than 120 seconds.
[ 5511.847078] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
(2 lines repeated)

When I stop open-iscsi by '/etc/init.d/open-iscsi stop' and then execute shutdown, it succeeds without hang-up.

I'm using 1 iSCSI target by 'node.startup = automatic' in iscsid.conf. The iSCSI connection itself works well in operation.
The target is connected via 'br1v100' network interface, which is a bridge device on 'bond1.100', which is VLAN#100 on 'bond1', which uses eth2 and eth6.

Revision history for this message
Zhang Linshan (zhang-linshan) wrote :

I found a one-liner fix for /etc/init.d/open-iscsi.

--- /etc/init.d/ 2010-02-05 20:47:23.000000000 +0000
+++ /etc/init.d/open-iscsi 2010-04-22 02:36:57.264590495 +0000
@@ -69,6 +69,7 @@
                log_end_msg $RETVAL
                # Don't kill the iscsi daemon when killing all processes
                        # during system shutdown
+ mkdir -p /lib/init/rw/sendsigs.omit.d
                ln -sf $PIDFILE /lib/init/rw/sendsigs.omit.d/ || true

The open-iscsi script tries to register its PID to the 'omit' directory at start-up, but the directory does not exist. So the sendsigs script kills iscsid at shutdown without giving grace, and something goes wrong...
I'm not sure whether I should put mkdir in open-iscsi or in some common script.

Changed in open-iscsi (Ubuntu):
status: New → Confirmed
Revision history for this message
Gabriele Tozzi (gabriele-tozzi) wrote :

Same problem here with Ubuntu saucy.
Patch no longer apply, it looks like something has changed meanwhile.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers