[Bug 1513254] Re: iscsi_auto flag should use iscsistart -N in addition to -b
David Britton
david.britton at canonical.com
Thu Nov 5 23:47:19 UTC 2015
New patch, with -N and -b unbundled. Sorry, I thought I tested that
fully but I did not. My tests were all with -N and -b on separate
lines.
** Attachment removed: "patch"
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1513254/+attachment/4513104/+files/patch
** Attachment added: "patch"
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1513254/+attachment/4513853/+files/patch
** Description changed:
Right now, the following logic is used if you pass iscsi_auto as a
kernel option:
modprobe iscsi_ibft
iscsistart -b
However, in a PXE boot environment, the interface initialized will be
something like the "primary" interface of the system, probably not where
your iscsi traffic is running.
The '-N' flag of iscsistart should also be used to configure the
networking before attempting to create a session to the target.
so:
- iscsistart -Nb
+ modprobe iscsi_ibft
+ iscsistart -N
+ iscsistart -b
This change should go into the scripts/local-top/iscsi script. I'll
attach a patch. Note that this code path is not traversed unless you
are booting the kernel with iscsi_auto. Also if you boot the kernel
this way and you do not have IBFT in your ethernet adapter, you will
already fall into an (initramfs) prompt as iscsistart -b will fail.
The only consideration is if the IBFT does not have correct networking
information in it, which should be a configuration error.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to open-iscsi in Ubuntu.
https://bugs.launchpad.net/bugs/1513254
Title:
iscsi_auto flag should use iscsistart -N in addition to -b
Status in open-iscsi package in Ubuntu:
New
Bug description:
Right now, the following logic is used if you pass iscsi_auto as a
kernel option:
modprobe iscsi_ibft
iscsistart -b
However, in a PXE boot environment, the interface initialized will be
something like the "primary" interface of the system, probably not
where your iscsi traffic is running.
The '-N' flag of iscsistart should also be used to configure the
networking before attempting to create a session to the target.
so:
modprobe iscsi_ibft
iscsistart -N
iscsistart -b
This change should go into the scripts/local-top/iscsi script. I'll
attach a patch. Note that this code path is not traversed unless you
are booting the kernel with iscsi_auto. Also if you boot the kernel
this way and you do not have IBFT in your ethernet adapter, you will
already fall into an (initramfs) prompt as iscsistart -b will fail.
The only consideration is if the IBFT does not have correct networking
information in it, which should be a configuration error.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1513254/+subscriptions
More information about the foundations-bugs
mailing list