[Bug 2097808] Re: IPv6 support for iBFT iSCSI boot

Chengen Du 2097808 at bugs.launchpad.net
Thu Feb 27 00:43:38 UTC 2025


I apologize for not attaching the IPv4 result, even though I had already
verified it.

[Focal]
root at focal:~# apt policy open-iscsi
open-iscsi:
  Installed: 2.0.874-7.1ubuntu6.5
  Candidate: 2.0.874-7.1ubuntu6.5
  Version table:
 *** 2.0.874-7.1ubuntu6.5 500
        500 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     2.0.874-7.1ubuntu6.4 500
        500 http://iad-ad-3.clouds.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
     2.0.874-7.1ubuntu6 500
        500 http://iad-ad-3.clouds.archive.ubuntu.com/ubuntu focal/main amd64 Packages
root at focal:~# iscsiadm -m session
tcp: [1] 169.254.0.2:3260,1 iqn.2015-02.oracle.boot:uefi (non-flash)

[Jammy]
root at jammy:~# apt policy open-iscsi
open-iscsi:
  Installed: 2.1.5-1ubuntu1.1
  Candidate: 2.1.5-1ubuntu1.1
  Version table:
 *** 2.1.5-1ubuntu1.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     2.1.5-1ubuntu1 500
        500 http://iad-ad-3.clouds.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
root at jammy:~# iscsiadm -m session
tcp: [1] 169.254.0.2:3260,1 iqn.2015-02.oracle.boot:uefi (non-flash)

[Noble]
root at noble:~# apt policy open-iscsi
open-iscsi:
  Installed: 2.1.9-3ubuntu5.3
  Candidate: 2.1.9-3ubuntu5.3
  Version table:
 *** 2.1.9-3ubuntu5.3 100
        100 /var/lib/dpkg/status
root at noble:~# iscsiadm -m session
tcp: [1] 169.254.0.2:3260,1 iqn.2015-02.oracle.boot:uefi (non-flash)

[Oracular]
root at oracular:~# apt policy open-iscsi
open-iscsi:
  Installed: 2.1.10-1ubuntu1.1
  Candidate: 2.1.10-1ubuntu1.1
  Version table:
 *** 2.1.10-1ubuntu1.1 100
        100 /var/lib/dpkg/status
     2.1.9-3ubuntu5.2 500
        500 http://iad-ad-3.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
     2.1.9-3ubuntu4 500
        500 http://iad-ad-3.clouds.archive.ubuntu.com/ubuntu noble/main amd64 Packages
root at oracular:~# iscsiadm -m session
tcp: [1] 169.254.0.2:3260,1 iqn.2015-02.oracle.boot:uefi (non-flash)

** Tags removed: verification-needed-jammy verification-needed-noble verification-needed-oracular
** Tags added: verification-done-jammy verification-done-noble verification-done-oracular

-- 
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/2097808

Title:
  IPv6 support for iBFT iSCSI boot

Status in open-iscsi package in Ubuntu:
  Fix Released
Status in open-iscsi source package in Focal:
  Fix Committed
Status in open-iscsi source package in Jammy:
  Fix Committed
Status in open-iscsi source package in Noble:
  Fix Committed
Status in open-iscsi source package in Oracular:
  Fix Committed
Status in open-iscsi source package in Plucky:
  Fix Released

Bug description:
  [Impact]
  Using IPv4-specific APIs during NIC setup based on iBFT information, regardless of the IP version, results in the following error in IPv6-only environments:

  Setting up software interface ens300f0np0
  iscsistart: Invalid or missing ipaddr in fw entry
  Setting up software interface ens300f0np0 failed

  [Fix]
  Upstream has a patch to resolve this issue.

  commit 72c2b97c19a2d0710b38802d50813feb682278f7
  Author:     yukariatlas <49406051+yukariatlas at users.noreply.github.com>
  Date: Fri Dec 27 11:03:43 2024 -0800

      IPv6 support for iBFT iSCSI boot (#493)

      * Avoid reassigning a char pointer variable to a newly allocated
  string

      Introduce two separate variables to clearly distinguish their
  usage.

      Signed-off-by: Chengen Du <chengen.du at canonical.com>

      * IPv6 support for iBFT iSCSI boot

      Use IPv4-specific APIs during NIC setup based on iBFT information,
      regardless of the IP version, which leads to the following error
      in IPv6-only environments:

      Setting up software interface ens300f0np0
      iscsistart: Invalid or missing ipaddr in fw entry
      Setting up software interface ens300f0np0 failed

      To address this, the process now determines the IP version first
      and calls the appropriate functions to handle NIC setup.

      Signed-off-by: Chengen Du <chengen.du at canonical.com>

      ---------

      Signed-off-by: Chengen Du <chengen.du at canonical.com>

  [Test Plan]
  1. Set up a machine with an iSCSI backend in an IPv6-only environment.  
  2. Power on the machine and verify that the following error does not occur:  
     Setting up software interface ens300f0np0  
     iscsistart: Invalid or missing ipaddr in fw entry  
     Setting up software interface ens300f0np0 failed  
  3. Ensure that the machine can successfully boot via iSCSI in an IPv4 environment.

  [Where problems could occur]
  The fix primarily adds IPv6 support for iBFT iSCSI boot and should not impact the IPv4 scenario. However, if any regressions occur, the iBFT iSCSI boot mechanism may be affected, potentially preventing the machine from booting via iSCSI.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/2097808/+subscriptions




More information about the foundations-bugs mailing list