iscsitarget fails with can't create a target 2 0

Bug #604087 reported by Scott Zawalski
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
iscsitarget (Ubuntu)
Fix Released
High
Colin Watson
Maverick
Fix Released
High
Colin Watson

Bug Description

Binary package hint: iscsitarget

Using iscsitarget on Maverick as of July 10 2010 with the latest updates setting up an iscsi target fails with the following error:

Jul 10 12:11:39 udc ietd: can't create a target 2 0

If the latest release iscsitarget-1.4.20.1 is installed this problem goes away.

My assumption is that there are kernel compatibility issues with the current version in Maverick.

To repeat:
create a simple image in /tmp

dd if=/dev/zero of=/tmp/test.img bs=1024 count=50k

Create a basic /etc/ietd.conf setup

--
Target iqn.2010-07.org.example:storage.lun0
        Lun 0 Path=/tmp/test.img,Type=fileio
--

service iscsitarget start

Observe the error in /var/log/daemon.log

service iscsitarget stop
rmmod iscsi_trgt

download, and install the latest from http://sourceforge.net/projects/iscsitarget/files/

service iscsitarget start

The error is gone and your clients should be able to discover/mount the iscsi disk.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: iscsitarget 1.4.19+svn275-ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-4.5-generic 2.6.35-rc3
Uname: Linux 2.6.35-4-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sat Jul 10 12:12:12 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100317.1)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: iscsitarget

Revision history for this message
Scott Zawalski (cowbud) wrote :
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

I'm also seeing iscsitarget fail to start up with similar errors.

Changed in iscsitarget (Ubuntu):
status: New → Confirmed
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Building from the debian 1.4.20.1 packages seems to work.for me, I suggest we just sync those.

Dave

Colin Watson (cjwatson)
Changed in iscsitarget (Ubuntu Maverick):
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Colin Watson (cjwatson) wrote :

I'd prefer to take 1.4.20.2-1 - the packaging is better (correct configuration file paths), and there's a security fix. Plus we need to merge rather than sync as there's an Ubuntu change we need to keep. However, I can't do this until the kernel side is updated. I've filed bug 618902 for this.

Changed in iscsitarget (Ubuntu Maverick):
status: Confirmed → Triaged
importance: Undecided → High
milestone: none → ubuntu-10.10-beta
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package iscsitarget - 1.4.20.2-1ubuntu1

---------------
iscsitarget (1.4.20.2-1ubuntu1) maverick; urgency=low

  * Resynchronise with Debian (update to 1.4.20.2 in conjunction with recent
    kernel changes fixes LP: #604087). Remaining changes:
    - If module unloading fails after stopping ietd, report it but still
      exit zero since this doesn't justify causing package operations to
      fail.
  * Install README.initiators and README.mcs (LP: #606068).

iscsitarget (1.4.20.2-1) unstable; urgency=low

  * New Upstream Bug Fix Release
  * Fix incorrect path installation. Correct path is /etc/iet/
  * Update Standards Version to 3.9.1 (No changes required)
  * Add DKMS support for iscsitarget kernel module building
  * Add iscsitarget-dkms to Suggests
  * Change PID_FILE to ietd.pid. This was causing the ietd daemon to not
    be killed. Not very sure, perhaps upstream must have changed to ietd.pid
    from iscsi_trgt.pid (Closes: #589738)

iscsitarget (1.4.20.1-2) unstable; urgency=low

  * Change address to my official Debian address and remove the DMUA flag
  * Handle older kernel versions patches that upstream still supports. This
    should allow compiling iscsitarget with older kernels now.
    (Closes: #581200)
  * Drop initiators.deny file in further installations which is already
    deprecated upstream
  * Switch config files directory to /etc/ietd as upstream recommends it and
    document this change in NEWS.Debian
  * Add post-installation script to handle migration of old config file to the
    new location

iscsitarget (1.4.20.1-1) unstable; urgency=low

  * New Upstream Bugfix Release
  * Switch to 3.0 (quilt) source format

iscsitarget (1.4.20-1) unstable; urgency=low

  [ Philipp Hug ]
  * This package is group maintained now
  * Changed maintainer to alioth project mailing list

  [ Ritesh Raj Sarraf ]
  * New Upstream Release (Closes: #566509)
  * Add myself to Uploaders
  * LSB-ize the iscsitarget init script (Closes: #506588, #546477)
  * Add misc:Depends
  * Bump Standards Version. (No Changes Required)
  * Add DM Upload: yes
  * Add debian/source/format specifying the source format
  * Explain a little more about iscsitarget-module package and how it is
    made available, in README.Debian
  * Add Vcs headers
 -- Colin Watson <email address hidden> Fri, 20 Aug 2010 02:30:33 +0100

Changed in iscsitarget (Ubuntu Maverick):
status: Triaged → 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.