Your message dated Sun, 02 Jul 2017 16:35:41 +0000
with message-id <[email protected]>
and subject line Bug#866213: fixed in open-iscsi 2.0.874-4
has caused the Debian Bug report #866213,
regarding open-iscsi: iBFT network setup does not populate PROTO (e.g.
PROTO=dhcp, or static) in /run/net-*.conf
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
866213: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866213
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: open-iscsi
Severity: normal
Tags: patch
When booting with iBFT, the network configuration is performed by
open-iscsi as part of initramfs.local-top instead of by klibc-ipconfig
as it would be during for example a PXE boot. This includes populating
/run/net-*.conf which is consumed among other things, by cloud-init.
Currently no attempt to determine PROTO is made, and PROTO=none is hard
coded into the file which cloud-init does not recognise and crashes out.
Recent versions of open-iscsi (such as that currently in unstable)
correctly export this information from "iscsistart -f" so I am attaching
a patch to export that information into /run/net-*.conf
The approach I took is simply to take the output from iscsistart (which
as best I can tell will be either 'dhcp' or 'static' and then pipe it
through 'tr' to lowercase it to match the output created by
klibc-ipconfig. I could not find a specific standard on the format of
/run/net-*.conf so that was the best I could go with. It works at least
for the 2 most likely situations of dhcp/static.
This requires a new-ish (last couple years) version of open-iscsi but
that is already in debian unstable [would only matter if someone
attempted to backport this functionality, probably irrelevant for this
bug]
If you want to test this, it is possible to simulate an iBFT environment
using qemu & iPXE with a "kernel command line" or manually entering a
script similar to the following:
ifconf -c dhcp && set username x && set password x && sanhook --drive
0x80 iscsi:100.64.1.254::3261:0:iqn.2017-04.net.lathiat:target1 ||
prompt ; autoboot
Cheers,
Trent
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.11.0-8-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru open-iscsi-2.0.874/debian/extra/initramfs.local-top
open-iscsi-2.0.874/debian/extra/initramfs.local-top
--- open-iscsi-2.0.874/debian/extra/initramfs.local-top 2017-05-10
00:23:32.000000000 +0800
+++ open-iscsi-2.0.874/debian/extra/initramfs.local-top 2017-06-23
16:32:53.000000000 +0800
@@ -159,6 +159,7 @@
iface.primary_dns) IPV4DNS0="${v}" ;;
iface.secondary_dns) IPV4DNS1="${v}" ;;
iface.net_ifacename) DEVICE="${v}" ;;
+ iface.bootproto) PROTO="$(echo ${v} | tr
'[:upper:]' '[:lower:]')" ;;
esac
done
fi
--- End Message ---
--- Begin Message ---
Source: open-iscsi
Source-Version: 2.0.874-4
We believe that the bug you reported is fixed in the latest version of
open-iscsi, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christian Seiler <[email protected]> (supplier of updated open-iscsi package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 02 Jul 2017 18:01:09 +0200
Source: open-iscsi
Binary: open-iscsi iscsiuio open-iscsi-udeb
Architecture: source
Version: 2.0.874-4
Distribution: unstable
Urgency: medium
Maintainer: Debian iSCSI Maintainers
<[email protected]>
Changed-By: Christian Seiler <[email protected]>
Description:
iscsiuio - iSCSI offloading daemon for QLogic devices
open-iscsi - iSCSI initiator tools
open-iscsi-udeb - Configure iSCSI (udeb)
Closes: 866213
Changes:
open-iscsi (2.0.874-4) unstable; urgency=medium
.
* [0347300] initramfs: populate PROTO= entry in /run/net-*.conf from iBFT
(Closes: #866213)
Checksums-Sha1:
10b3f5dee904c648e698e2972e497daf3c6501dc 2461 open-iscsi_2.0.874-4.dsc
0dd5576d1d1b54420340f6ccf9d1e469da6fb20c 56148
open-iscsi_2.0.874-4.debian.tar.xz
00f840d85832450f3ba97cb161f3d54be59725a0 6267
open-iscsi_2.0.874-4_source.buildinfo
Checksums-Sha256:
3b70316fea6a16fc609aab21d0ed80d37522943bd1c15f4b4ef1191a0723c1d7 2461
open-iscsi_2.0.874-4.dsc
bc03e002a03fa8b2fa9328e00ea6e9342a30fb9cedb785471fdce37c0731e02e 56148
open-iscsi_2.0.874-4.debian.tar.xz
5c2f0c6717b51033b0fa63f679a7fdbf4342e1dd6f7569ddfad757bf644fdfd8 6267
open-iscsi_2.0.874-4_source.buildinfo
Files:
5fe291a90d08e6513539852d3dcc25b1 2461 net optional open-iscsi_2.0.874-4.dsc
7e43c3a4b2111e7f49efea981aeabefa 56148 net optional
open-iscsi_2.0.874-4.debian.tar.xz
384c75ce23cd712501c4841c583335a4 6267 net optional
open-iscsi_2.0.874-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEiI49KY9tFKKWnROJYyM0Wc3PoBgFAllZGssACgkQYyM0Wc3P
oBgIMw/9FgDiKHbevox8ftfsZfiFqQ+ZhfY9IpdnIwrFhSf3Ps0jbplcDSf+OCpw
U7mzWdOy56glXeL5fPUfpWAnZ7Tx8H7kVOFhZAHJ1bcu9TxKmqRbjwi7PtuRA7qi
WyCFHL/YX0QN/JzOVP82Ej1ymZ5phFThF4I37foTNOKpZHYlOp5fFKFuXZABlL2D
vPCZe6v/Bc68IGrAI1ueRn94sg/UrlubxlnxWEtCUwhdj/j36lrgd53ytE3UaVx8
/6BXpdXgCfzaK3eK9I5ORKQACT2fIljY4LXSAfTQBlMpN856vK44V0Mos/WLbaSR
Cv3MVqsVi43xkOgftDWkEuMxHLq9bk2gSTLIqSkz9v6/PQzOBPMNpJIvzkoZjJVo
qxFT4wsY0cbYT3V7HCHnHECdA1w01IY0HNXlX5uIDpmyL5ZyrVMxlOPVCRAues18
M+7vMODwHtEqLVGEGjcZDlezF+rXqwZPd+18qlQ2P8rpg+1zs47dW3yS1l3gM194
QttrEDiPcVRCACUF0h9dUNeCT7mL8Dbt4KdbmwC/fANi0CTR6Rhfxfe+ks2FVMD1
2z1wKWzcC2CTo2Ci3n62JNG/J+KQl2jb7qY4/ZCchRuFWbgp2mwfyNOQbXoO52fD
oXEkrU/EIdoHMHecYqdv80Ola037dsTrF593FSB205skw5fgfVE=
=YPIe
-----END PGP SIGNATURE-----
--- End Message ---