Your message dated Thu, 03 Mar 2016 18:09:14 +0000
with message-id <[email protected]>
and subject line Bug#816632: fixed in open-iscsi 2.0.873+git0.3b4b4500-14
has caused the Debian Bug report #816632,
regarding open-iscsi: should allow setting a custom initiatorName on install
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.)
--
816632: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816632
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: open-iscsi
Version: 2.0.873+git0.3b4b4500-13
Severity: normal
Dear Maintainer,
It appears as though open-iscsi always generates a random initiatorName from
scratch on installation; either as it runs in the installer, or as it is first
installed on the system.
Furthermore, this would then lead to the initiatorName changing from in the
installer environment and on the installed system, as it seems that
/etc/iscsi/initiatorname.iscsi isn't copied from the installer to the target.
Now, on some secured setups, the host needs to authenticate also by
initiatorName to the target, and that sometimes requires using one's own
naming scheme for the initiator name.
open-iscsi should allow using a custom initiatorName at least in the installer,
where it currently always creates /etc/iscsi/initiatorname.iscsi using
iscsi-iname. I've been testing code to allow setting the initiatorName in the
installer, but this will only work if there is an added test whether the
file exists.
Patch follows:
--- open-iscsi-2.0.873+git0.3b4b4500/debian/open-iscsi-udeb.start
2015-08-20 09:51:06.000000000 -0400
+++ open-iscsi-2.0.873+git0.3b4b4500/debian/open-iscsi-udeb.start
2016-03-01 15:10:59.000000000 -0500
@@ -4,15 +4,17 @@
# and without all the sanity checks. The installer is a clean environment, so
# we don't need all of that.
-# Generate a unique InitiatorName and save it
-INAME=`iscsi-iname -p iqn.1993-08.org.debian:01`
-echo "## DO NOT EDIT OR REMOVE THIS FILE!" > /etc/iscsi/initiatorname.iscsi
-echo "## If you remove this file, the iSCSI daemon will not start." >>
/etc/iscsi/initiatorname.iscsi
-echo "## If you change the InitiatorName, existing access control lists" >>
/etc/iscsi/initiatorname.iscsi
-echo "## may reject this initiator. The InitiatorName must be unique">>
/etc/iscsi/initiatorname.iscsi
-echo "## for each iSCSI initiator. Do NOT duplicate iSCSI InitiatorNames." >>
/etc/iscsi/initiatorname.iscsi
-printf "InitiatorName=$INAME\n" >> /etc/iscsi/initiatorname.iscsi
-chmod 600 /etc/iscsi/initiatorname.iscsi
+if [ ! -f /etc/iscsi/initiatorname.iscsi ]; then
+ # Generate a unique InitiatorName and save it
+ INAME=`iscsi-iname -p iqn.1993-08.org.debian:01`
+ echo "## DO NOT EDIT OR REMOVE THIS FILE!" >
/etc/iscsi/initiatorname.iscsi
+ echo "## If you remove this file, the iSCSI daemon will not start." >>
/etc/iscsi/initiatorname.iscsi
+ echo "## If you change the InitiatorName, existing access control
lists" >> /etc/iscsi/initiatorname.iscsi
+ echo "## may reject this initiator. The InitiatorName must be
unique">> /etc/iscsi/initiatorname.iscsi
+ echo "## for each iSCSI initiator. Do NOT duplicate iSCSI
InitiatorNames." >> /etc/iscsi/initiatorname.iscsi
+ printf "InitiatorName=$INAME\n" >> /etc/iscsi/initiatorname.iscsi
+ chmod 600 /etc/iscsi/initiatorname.iscsi
+fi
modprobe -q iscsi_tcp 2>/dev/null >&2
/sbin/iscsid
-- System Information:
Debian Release: stretch/sid
APT prefers xenial-updates
APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500,
'xenial'), (100, 'xenial-backports'), (99, 'xenial-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.4.0-7-generic (SMP w/4 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages open-iscsi depends on:
ii debconf [debconf-2.0] 1.5.58ubuntu1
ii init-system-helpers 1.28ubuntu2
ii libc6 2.21-0ubuntu6
ii udev 229-1ubuntu4
Versions of packages open-iscsi recommends:
ii busybox-initramfs 1:1.22.0-15ubuntu1
open-iscsi suggests no packages.
-- Configuration Files:
/etc/iscsi/iscsid.conf [Errno 13] Permission non accordée:
u'/etc/iscsi/iscsid.conf'
-- debconf information excluded
--- End Message ---
--- Begin Message ---
Source: open-iscsi
Source-Version: 2.0.873+git0.3b4b4500-14
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: Thu, 03 Mar 2016 18:47:46 +0100
Source: open-iscsi
Binary: open-iscsi open-iscsi-udeb
Architecture: source
Version: 2.0.873+git0.3b4b4500-14
Distribution: unstable
Urgency: medium
Maintainer: Debian iSCSI Maintainers
<[email protected]>
Changed-By: Christian Seiler <[email protected]>
Description:
open-iscsi - iSCSI initiator tools
open-iscsi-udeb - Configure iSCSI (udeb)
Closes: 816632
Changes:
open-iscsi (2.0.873+git0.3b4b4500-14) unstable; urgency=medium
.
[ Christian Seiler ]
* [7ec2450] debian/control: fix typo in Vcs-Git field
* [b98ca63] debian/control: bump Standards-Version to 3.9.7
.
[ Mathieu Trudel-Lapierre ]
* [f5b850a] udeb: don't generate initiator name if already present
(Closes: #816632)
Checksums-Sha1:
f92bea498478333708c05a3d52440539ace67e31 2336
open-iscsi_2.0.873+git0.3b4b4500-14.dsc
09cd1c391da3852b64e318474bdefe45b70c6e98 46044
open-iscsi_2.0.873+git0.3b4b4500-14.debian.tar.xz
Checksums-Sha256:
f4bf4acfe439c176ff47427fb8c710efdd897275720083d523cc363bbbbeac2e 2336
open-iscsi_2.0.873+git0.3b4b4500-14.dsc
65c47b0f7d93de3ea5ce450f4dd607c1f532dd12180c75969eaff1f3a21a04a4 46044
open-iscsi_2.0.873+git0.3b4b4500-14.debian.tar.xz
Files:
dbdf000dc81bbe07b7088b2c499d272b 2336 net optional
open-iscsi_2.0.873+git0.3b4b4500-14.dsc
e1d0d6c47e83b49c2eb6aa3fab98ce25 46044 net optional
open-iscsi_2.0.873+git0.3b4b4500-14.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJW2Hq5AAoJEGMjNFnNz6AYKIEP/RsqtaSX+aDnWHQl0O5o8lX4
6S4jPig/ZzQ4QwYalw1x1ElSaeNnG52rRlTb+gbhf7gyrH89+Tpg8fdjPUsW2hNx
5Uv7P829vW4uEfJqoF2PosXJAItCS19mR7PVT/KZduzTViH+6c/rv228ejcJUTfD
fZ80NgFE4e8e5oKbFO5dEPlz5KbwqcUAotIjwt0MF8WqkL6kj8Ok916mnF4lrBGe
BoWvfrZEP6qJKtRGg0x46fziE/WEQlEkOExLAefYcW7A9RIn0C34EpNfzjoTfz/F
28MknWdMb0rIHOS4V14Tfxo7jsipT3tdqNKLS7h5APWCLGTetFarv8ZKMAfD42Q1
7XJxvvolnDm5xomh9hwJ1HnP2fNPAvFHN2kKl0FRaOfObuHmOzGLMJllafVjCWy+
XW4qlq+JSj8+7WJPjtdnjMV0hOqjTqNYP9DNSRCItJD8Dj1xy0erPX5dcoBWe8Hy
PEUcFZjgQQ5pqZClmbG0QBcmMtdg/ZJ0CwC0fVV0Owz8sh92kGKZyTK0AlGVOHKg
CVp6rG/UV0tFaA3OOxnPeUJbEtV8djwrikGQybnl08YveVggHzZJr243gOASyjPd
/uh5jMH/yg0q1HOo/phQ6I0UpJ23uzLwAJGxBcpKA3HreFKhEW1NwkgMJEbHDYu3
C13Q79D7VwE28ZViNRof
=6AYb
-----END PGP SIGNATURE-----
--- End Message ---