Username and password set to "(null)" instead of left empty

Bug #625013 reported by Jim Paris
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
partman-iscsi (Ubuntu)
Fix Released
High
Unassigned
Maverick
Invalid
High
Unassigned

Bug Description

Binary package hint: partman-iscsi

On a recent Maverick install to iscsi root, the file /etc/iscsi.initramfs contained these four lines at the end:

ISCSI_USERNAME="(null)"
ISCSI_PASSWORD="(null)"
ISCSI_IN_USERNAME="(null)"
ISCSI_IN_PASSWORD="(null)"

This seems to have come from partman-iscsi's finish.d/iscsi_settings script.
This prevents proper login and boot. The values came from the kernel:

$ cd /sys/devices/platform/host2/session1/iscsi_session/session1
$ sudo grep . {username,password}{,_in}
username:(null)
username_in:(null)
password:(null)
password_in:(null)

Tags: patch
Revision history for this message
Christoph Thielecke (crissi99) wrote :

This bug is still available in server iso from 5.th october 2010 and should really fixed BEFORE release.

Revision history for this message
Jan (jan-wiele) wrote :

And it is still present in the release. Username and password also dont get set, when setting them while the installation.

Got around it with editing the initrd on an other computer (https://bbs.archlinux.org/viewtopic.php?pid=282849).
After this step, the connection gets "operational", but hangs afterwards for some minutes.

Then many message like this appear:
[code]
end_request: I/O error, dev sda, sector 4713232
Buffer I/O error on device sda1, logical block 1081344
EXT4-fs error (device sda1): ext_find_entry: inode #138885: (comm check-new-relea) reading directory lblock 0
Aborting journal on device sda1-8.
...
/etc/init.d/rc: 341: /etc/rcS.d/S55urandom: Input/Output error
/proc/self/fd/10: 30: telinit: Input/Output error
[/code]
Targetserver is ubuntu-server-karmic (Package: iscsitarget: 0.4.16+svn162-3ubuntu1)

Revision history for this message
Jim Paris (jim-jtan) wrote :

Hi Jan,

The later hang is probably because of a change in the kernel (>2.6.32) that breaks open-iscsi 2.0.871.
I just reported that one to Debian http://bugs.debian.org/603990

But partman-iscsi is definitely the culprit for this installation bug. What's the hold-up? In the interest of trying to move things along, I'll attach a patch that should fix it (but is untested).

Revision history for this message
Ron (ron-neversleep) wrote :

+1 affected
Our (qty.5) Maverick 10.10 disk-less servers perfectly match Debian bug #603990

Our affected iSCSI boot scenarios:
servers which (initrd) from USB key (/boot partition) then mount iSCSI [root /] affected
servers which (initrd) from iSCSI-enabled NIC (/ partition) also affected
 * All servers loose iSCSI-root (/) device mount upon /etc/init.d/open-iscsi start
 * Issue is present from fresh-installation via Marverick 10.10 (server-cd/iso)

Debugging output of iscsid showing a wrongfully attempted CHAP connection (on AuthMethod=None targets):
iscsid: sending login PDU with current stage 0, next stage 0, transit 0x0, isid 0x000232323232 exp_statsn 2017
iscsid: > InitiatorName=iqn.2010-12:<our-san-target>
iscsid: > InitiatorAlias=<myserver013>
iscsid: > TargetName=iqn.1986-03.com.hp:storage.msa2312i.<uniqueid001>
iscsid: > SessionType=Normal
iscsid: > AuthMethod=CHAP
iscsid: Login failed to authenticate with target iqn.1986-03.com.hp:storage.msa2312i.<uniqueid001>
iscsid: session 1 login rejected: Initiator failed authentication with target

Upstream patch is present in kernel/git (link): http://git.kernel.org/?p=linux/kernel/git/mnc/open-iscsi.git;a=commitdiff;h=f0b670c016c85c882bb0583eaef8ea2f7147d4af

tags: added: patch
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks for this. I haven't yet had time to look at upgrading open-iscsi, but I'll try to do so before the natty release. In the meantime Jim's patch seems like a decent workaround.

Changed in partman-iscsi (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in partman-iscsi (Ubuntu Maverick):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package partman-iscsi - 16

---------------
partman-iscsi (16) natty; urgency=low

  [ Jim Paris ]
  * Work around username/password being "(null)", due to a kernel change
    which open-iscsi doesn't handle yet (LP: #625013).
 -- Colin Watson <email address hidden> Fri, 07 Jan 2011 14:33:16 +0000

Changed in partman-iscsi (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
JC Hulce (soaringsky) wrote :

This bug affects Ubuntu 10.10, Maverick Meerkat. Maverick has reached end-of-life and is no longer supported, so I am closing the bugtask for Maverick. Please upgrade to a newer version of Ubuntu.
More information here: https://lists.ubuntu.com/archives/ubuntu-announce/2012-April/000158.html

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