open-iscsi causes FTBFS for anything that Build-Depends on it

Bug #414986 reported by Jamie Strandboge
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
open-iscsi (Ubuntu)
Fix Released
High
Dustin Kirkland 
Lucid
Fix Released
High
Dustin Kirkland 

Bug Description

Binary package hint: open-iscsi

Example:
Setting up open-iscsi (2.0.870.1-0ubuntu8) ...
 * Starting iSCSI initiator service iscsid
ln: target `/lib/init/rw/sendsigs.omit.d/' is not a directory: No such file or directory
 * Setting up iSCSI targets[ OK ]
invoke-rc.d: initscript open-iscsi, action "start" failed.
dpkg: error processing open-iscsi (--configure):
 subprocess installed post-installation script returned error exit status 1

Changed in open-iscsi (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
importance: Undecided → High
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package open-iscsi - 2.0.870.1-0ubuntu9

---------------
open-iscsi (2.0.870.1-0ubuntu9) karmic; urgency=low

  * debian/open-iscsi.init: don't exit with error if
    /lib/init/rw/sendsigs.omit.d/ doesn't exist (LP: #414986)

 -- Jamie Strandboge <email address hidden> Mon, 17 Aug 2009 14:12:01 -0500

Changed in open-iscsi (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

My last change didn't fix anything because the 'ln' didn't cause the script to fail (the initscript does not use the recommended '#!/bin/sh -e' which through me.

The problem is that in pbuilder and presumably the buildd's, /sysfs is mounted. This allows open-iscsi to continue trying to start itself, and we end up with:

                start-stop-daemon --start --quiet --exec $DAEMON
                RETVAL=$?

start-stop-daemon ends up returning non-zero, and at the end of the script we have:
exit $RETVAL

One way to fix this would be to use a /etc/default/open-iscsi file that is read by the initscript. (eg 'START_DEVICES=no' is the default, and the script only continues if 'START_DEVICES=yes'). I do not know the ramifications of that for the installer, etc, so I am not going to make that change.

Changed in open-iscsi (Ubuntu):
assignee: Jamie Strandboge (jdstrand) → nobody
status: Fix Released → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package open-iscsi - 2.0.870.1-0ubuntu10

---------------
open-iscsi (2.0.870.1-0ubuntu10) karmic; urgency=low

  * debian/control, debian/open-iscsi-utils.install,
    open-iscsi-utils.manpages : create a new binary package which
    contains /sbin/iscsiadm, needed for some packages to build against
    (eg, libvirt), but not containing the init script, LP: #414986

 -- Dustin Kirkland <email address hidden> Tue, 18 Aug 2009 08:11:34 -0500

Changed in open-iscsi (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

This crept back in the last merge. I'll fix.

Changed in open-iscsi (Ubuntu Lucid):
status: Fix Released → In Progress
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

This was fixed in libvirt. No bug was re-introduced in open-iscsi. Re-opened erroneously.

Changed in open-iscsi (Ubuntu Lucid):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.