No automatic login, except on default interface

Bug #1001535 reported by Oscar Nunez
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
open-iscsi (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Release: Ubuntu 12.04 LTS
Package Version: 2.0.871-0ubuntu9

Scenario, created multiple interfaces for SAN

sudo iscsiadm -m iface -I eth0 -o new
sudo iscsiadm -m iface -I eth1 -o new
sudo iscsiadm -m iface -I eth2 -o new
sudo iscsiadm -m iface -I eth3 -o new
sudo iscsiadm -m discovery -t st -p 192.168.1.1
sudo iscsiadm -m node -T iqn.2001-05.com.equallogic:1234567890 -l
sudo iscsiadm -m node -T iqn.2001-05.com.equallogic:1234567890 -o update -n node.startup -v automatic

What I expected to happen:
Automatic login on eth0...eth3, on open-iscsi start

What happened:
No automatic login on any iscsci interface, no errors

Problem:
/etc/init.d/open-iscsi tries to start sessions on "/etc/iscsi/nodes/*/*/default" only

My Solution:
Change two lines in /etc/init.d/open-iscsi from "/etc/iscsi/nodes/*/*/default" to "/etc/iscsi/nodes/*/*/*"
See patch file

Conclusion:
I dont know if this was the proper solution, tried finding a solution searching the Internet for hours, could not find a fix for my issue, and this was driving me nuts, hope this helps someone else, and if this is the proper solution hope this gets included somewhere down the line.

Thank you world for open source :-)

Tags: patch
Revision history for this message
Oscar Nunez (onunez57) wrote :
Revision history for this message
Vassilis Vatikiotis (vvatikiotis) wrote :

Confirm it. Patch works.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "open-iscsi.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Abel Cheung (abelcheung) wrote :

This bug has been opened 10.04 days, as bug #669142. The core of problem here is, Ubuntu modifications of open-iscsi was based on the braindead Debian versions *four years ago*, and no attempt of rebasing the work on recent Debian package (which at least reverts some of the stupid 'features') is done at all.

Revision history for this message
Abel Cheung (abelcheung) wrote :

Besides, this approach won't work, because if I set both 'node.startup' and 'node.conn[0].startup' to automatic, then the number would be double counted.

Revision history for this message
Abel Cheung (abelcheung) wrote :

My comment #4 was a bit wrong. Previous report about this problem is not bug #669142, but bug #394398 instead, reported since Hardy.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in open-iscsi (Ubuntu):
status: New → Confirmed
Revision history for this message
Stephen Buckley (stephen-buckley) wrote :

I can confirm I have also encountered the same issue and arrived at the same conclusion.

FWIW the node.conn[0].startup varialbe does not seem to get set to automatic when you discover targets with the automatic start-up variable set in your iscsid.conf. So the scenario outlined in Abel's post #5 would only occur if you are manualy setting that value.

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.