Public bug reported:

Problem description

In the MAAS + iBFT + iSCSI boot scenario, iscsistart -f returns iface.bootproto 
= STATIC.
In the current link, the netplan conversion of initramfs fails to generate a 
static address correctly for PROTO=static, resulting in 
/run/netplan/<iface>.yaml containing only nameserver and lacking addresses. 
Consequently, cloud-init cannot obtain the MAAS datasource.


Reproducer

1, Set up a common maas env (For me ,it's a libvirt + maas env)
2, Prepare a iscsi disk
3, Configure libvirt to boot from iBFT
   sudo virt-xml n1 --edit --boot 
kernel=/usr/lib/ipxe/ipxe.lkrn,kernel_args="dhcp && chain 
http://172.16.0.1:8080/config-boot-ibft-maas.ipxe";
4, Create config-boot-ibft-maas.ipxe, and run 'python3 -m http.server 8080' to 
enable it to be accessed via HTTP - https://paste.ubuntu.com/p/TYTcPRjrCD/
5, Enable iscsi_auto from MAAS GUI: iscsi_auto break=init
6, Now /run/netplan/<iface>.yaml contains only nameserver and lacks addresses - 
https://paste.ubuntu.com/p/TCZr2tpFC7/


Proposed solution

In the parsing of iBFT iface.bootproto:
1, DHCP is mapped to PROTO=dhcp, IPV4PROTO=dhcp.
2, STATIC is mapped to PROTO=none, IPV4PROTO=static
3, Other values remain transparently transmitted.

This satisfies both:
1, The netplan conversion can correctly generate static addresses.
2, Consumers of dynamic-interfaces can still retain static semantics through 
IPV4PROTO.

** Affects: open-iscsi (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: sts

** Tags added: sts

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2147499

Title:
  open-iscsi initramfs: preserve static iBFT semantics while fixing
  netplan rendering for MAAS boot

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to