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

Trent Lloyd trent.lloyd at canonical.com
Wed Apr 19 08:12:01 UTC 2017


Proposed patch for Review

First cherry-pick 3 upstream patches to fix parsing of the iBFT origin
and return DHCP correctly in 'iscsistart -f' output.  We then modify
initramfs-local.top to use his information.


I do need to check this with IPv6.  Both DHCP and STATIC from iscsistart convert direct to PROTO= but need to check what will happen for DHCPv6 and IPv6-RA

I refrained from removing the default PROTO=none at this stage.  cloud-
init doesn't like this value but it's not clear to me currently who
defines what values are acceptable here.  klibc-ipconfig appears to
never write none.

open-iscsi (2.0.873+git0.3b4b4500-14ubuntu3.4) xenial; urgency=medium

  * debian/patches/08_Parse-origin-value-from-iBFT.patch,
    09_Represent-DHCP-origin-as-an-enum-not-a-string.patch,
    10_iBFT-origin-is-an-enum-not-a-string.patch: Cherry pick upstream patches
    to parse IP origin passed in by IBFT.  iscsistart -f will now display the
    correct iface.bootproto
  * debian/extra/initramfs.local-top: parse iface.bootproto and populate PROTO
    in /run/net-*.conf with this information after lowercasing the string.

 -- Trent Lloyd <trent.lloyd at canonical.com>  Wed, 19 Apr 2017 05:53:25
+0800


** Patch added: "lp1684039-ibft-dhcp-origin.debdiff"
   https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1684039/+attachment/4864647/+files/lp1684039-ibft-dhcp-origin.debdiff

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

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 foundations-bugs mailing list