Version in base suite: 2.1.11-1+deb13u1 Base version: open-iscsi_2.1.11-1+deb13u1 Target version: open-iscsi_2.1.11-1+deb13u2 Base file: /srv/ftp-master.debian.org/ftp/pool/main/o/open-iscsi/open-iscsi_2.1.11-1+deb13u1.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/o/open-iscsi/open-iscsi_2.1.11-1+deb13u2.dsc changelog | 8 + patches/Fix-incorrect-parsing-of-node.discovery_type-static-and-f.patch | 64 ++++++++++ patches/series | 1 3 files changed, 73 insertions(+) dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmp1yi63gw0/open-iscsi_2.1.11-1+deb13u1.dsc: no acceptable signature found dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmp1yi63gw0/open-iscsi_2.1.11-1+deb13u2.dsc: no acceptable signature found diff -Nru open-iscsi-2.1.11/debian/changelog open-iscsi-2.1.11/debian/changelog --- open-iscsi-2.1.11/debian/changelog 2025-08-15 21:26:38.000000000 +0000 +++ open-iscsi-2.1.11/debian/changelog 2026-03-05 09:57:10.000000000 +0000 @@ -1,3 +1,11 @@ +open-iscsi (2.1.11-1+deb13u2) trixie; urgency=medium + + * Team upload + * [bfe3448] cherry-pick fix for discovering 'static' nodes + (Closes: #1129063) + + -- Fabian Grünbichler Thu, 05 Mar 2026 10:57:10 +0100 + open-iscsi (2.1.11-1+deb13u1) trixie; urgency=medium * [f3d17cf] initramfs: ensure that /var/lib exists. diff -Nru open-iscsi-2.1.11/debian/patches/Fix-incorrect-parsing-of-node.discovery_type-static-and-f.patch open-iscsi-2.1.11/debian/patches/Fix-incorrect-parsing-of-node.discovery_type-static-and-f.patch --- open-iscsi-2.1.11/debian/patches/Fix-incorrect-parsing-of-node.discovery_type-static-and-f.patch 1970-01-01 00:00:00.000000000 +0000 +++ open-iscsi-2.1.11/debian/patches/Fix-incorrect-parsing-of-node.discovery_type-static-and-f.patch 2026-03-05 09:57:10.000000000 +0000 @@ -0,0 +1,64 @@ +From: Mike Andrews +Date: Sun, 28 Dec 2025 19:19:39 -0500 +Subject: Fix incorrect parsing of node.discovery_type "static" and "fw" + (#518) +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +Remove the unused DISCOVERY_TYPE_SLP enumeration value so that the strings +"static" and "fw" map to the correct enum values. + +Previous versions supported an "slp" discovery_type. In d1d456cf28cd89, the +"slp" string was removed from the list of TYPE_INT_O string arguments when +processing DISC_TYPE and NODE_DISC_TYPE records in idbm_recinfo_discovery and +_idbm_node_rec_link. But, it was left in the discovery_type enum. The +resulting parsing logic would then map the string values "static" and "fw" to +the wrong enum values, and thus logic with unique action on +DISCOVERY_TYPE_STATIC and DISCOVERY_TYPE_FW did the wrong thing. Specifically, + +- "static" mapped to DISCOVERY_TYPE_SLP, and +- "fw" mapped to DISCOVERY_TYPE_STATIC. + +One manifestation of this bug is that you can no longer use iscsiadm to +manipulate or delete nodes with discovery_type = "static", as it falls through +to the default case in setup_disc_to_node_link. + +Fixes #463. + +(cherry picked from commit 290d16d6c6b6f4c78af119eb874484b2f995dc23) + +Forwarded: not-needed +Closes: #1129063 +Signed-off-by: Fabian Grünbichler +--- + libopeniscsiusr/idbm.h | 2 -- + usr/config.h | 2 -- + 2 files changed, 4 deletions(-) + +diff --git a/libopeniscsiusr/idbm.h b/libopeniscsiusr/idbm.h +index b96a082..13ce4be 100644 +--- a/libopeniscsiusr/idbm.h ++++ b/libopeniscsiusr/idbm.h +@@ -78,8 +78,6 @@ enum discovery_type { + DISCOVERY_TYPE_SENDTARGETS, + DISCOVERY_TYPE_ISNS, + DISCOVERY_TYPE_OFFLOAD_SENDTARGETS, +- /* SLP is Not Used -- kept as place holder */ +- DISCOVERY_TYPE_SLP_NOT_IMPLEMENTED, + DISCOVERY_TYPE_STATIC, + DISCOVERY_TYPE_FW, + }; +diff --git a/usr/config.h b/usr/config.h +index 716e343..d624d76 100644 +--- a/usr/config.h ++++ b/usr/config.h +@@ -161,8 +161,6 @@ typedef enum discovery_type { + DISCOVERY_TYPE_SENDTARGETS, + DISCOVERY_TYPE_ISNS, + DISCOVERY_TYPE_OFFLOAD_SENDTARGETS, +- /* SLP is Not Used -- kept as place holder */ +- DISCOVERY_TYPE_SLP_NOT_IMPLEMENTED, + DISCOVERY_TYPE_STATIC, + DISCOVERY_TYPE_FW, + } discovery_type_e; diff -Nru open-iscsi-2.1.11/debian/patches/series open-iscsi-2.1.11/debian/patches/series --- open-iscsi-2.1.11/debian/patches/series 2025-08-15 21:26:38.000000000 +0000 +++ open-iscsi-2.1.11/debian/patches/series 2026-03-05 09:57:10.000000000 +0000 @@ -1,2 +1,3 @@ debian/lp1755858-default-iscsid_conf-to-iscsid_socket.patch build-disable-Wno-all.patch +Fix-incorrect-parsing-of-node.discovery_type-static-and-f.patch