[Bug 1684039] Re: iBFT network configuration does not correctly populate PROTO=dhcp in /run/net-*.conf which breaks cloud-init

Eric Desrochers eric.desrochers at canonical.com
Tue Jul 4 13:49:59 UTC 2017


Debian maintainer has committed the patch ^. [1]

Next step is to make sure Artful has the fix now, and then the SRU for
all affected supported stable releases can start.

Trent, feel free to contact me once Artful has the change, and I'll
sponsor the SRU.

[1] - Debian 
Commit :
0347300 initramfs: populate PROTO= entry in /run/net-*.conf from iBFT


# git show 0347300
commit 034730044a5f9f1557b7a5a26d3ef9fdc69fdf79
Author: Christian Seiler <christian at iwakd.de>
Date:   Sun Jul 2 17:50:11 2017 +0200

    initramfs: populate PROTO= entry in /run/net-*.conf from iBFT
    
    When booting from iBFT, set the PROTO= entry in /run/net-*.conf
    accordingly, so that other tools, such as cloud-init, can use that
    information. (cloud-init fails if the current PROTO=none is used.)
    
    Closes: #866213

diff --git a/debian/extra/initramfs.local-top b/debian/extra/initramfs.local-top
index 93f4c6f..1045c50 100755
--- a/debian/extra/initramfs.local-top
+++ b/debian/extra/initramfs.local-top
@@ -159,6 +159,13 @@ do_iscsi_login ()
                                iface.primary_dns)   IPV4DNS0="${v}" ;;
                                iface.secondary_dns) IPV4DNS1="${v}" ;;
                                iface.net_ifacename) DEVICE="${v}" ;;
+                               iface.bootproto)
+                                       case "${v}" in
+                                               DHCP)   PROTO="dhcp"   ;;
+                                               STATIC) PROTO="static" ;;
+                                               *)      PROTO="${v}"   ;;
+                                       esac
+                                       ;;
                        esac
                done
        fi

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1684039

Title:
  iBFT network configuration does not correctly populate PROTO=dhcp in
  /run/net-*.conf which breaks cloud-init

Status in open-iscsi package in Ubuntu:
  New
Status in open-iscsi source package in Xenial:
  New
Status in open-iscsi source package in Yakkety:
  New
Status in open-iscsi source package in Zesty:
  New
Status in open-iscsi source package in Artful:
  New
Status in open-iscsi package in Debian:
  Fix Released

Bug description:
  When booting with iBFT, the network configuration is performed by
  open-iscsi as part of initramfs.local-top instead of by klibc-
  ipconfig.  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.

  Further to this, open-iscsi in the current version (xenial through
  zesty) does not correctly parse the iBFT origin into the boot protocol
  in "iscsistart -f" and always returns "STATIC".  This is fixed
  upstream.

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



More information about the Ubuntu-sponsors mailing list