cloud-init should parse initramfs rendered netplan if present
Bug #1861460 reported by
Ryan Harper
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Critical
|
Canonical Server | ||
cloud-init |
Expired
|
Wishlist
|
Ryan Harper | ||
casper (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
initramfs-tools used to only execute klibc based networking with some
resolvconf hooks.
In recent releases, it has been greatly improved to use
isc-dhcp-client instead of klibc, support vlan= key (like in
dracut-network), bring up Z devices using chzdev, and generate netplan
yaml from all of the above.
Above improvements were driven in part by Oracle Cloud and in part by
Subiquity netbooting on Z.
Thus these days, instead of trying to reparse klibc files in
/run/net-*, cloud-init should simply import /run/netplan/
files as the ip=* provided networking information on the command line.
I do not currently see cloud-init doing that in e.g.
/cloudinit/
Changed in ubuntu-z-systems: | |
status: | New → In Progress |
tags: | added: installer s390x |
Changed in ubuntu-z-systems: | |
assignee: | nobody → Canonical Server Team (canonical-server) |
importance: | Undecided → Critical |
tags: | added: req4focal |
To post a comment you must log in.
On Wed, Jan 29, 2020 at 9:32 AM Dimitri John Ledkov <email address hidden> wrote: gbb4131a2- 0ubuntu1~ 16.04.1 | xenial-proposed | source, all gbb4131a2- 0ubuntu1~ 16.04.1 | xenial-updates | source, all gbb4131a2- 0ubuntu1~ 18.04.1 | bionic-proposed | source, all gbb4131a2- 0ubuntu1~ 18.04.1 | bionic-updates | source, all gbb4131a2- 0ubuntu1~ 19.10.1 | eoan-proposed | source, all gbb4131a2- 0ubuntu1~ 19.10.1 | eoan-updates | source, all gbb4131a2- 0ubuntu1 | focal | source, all tools-0. 122ubuntu8. 16/scripts/ functions: _render_ netplan( ) { tools-0. 130ubuntu3. 9/scripts/ functions: _render_ netplan( ) { tools-0. 131ubuntu19. 2/scripts/ functions: _render_ netplan( ) { tools-0. 133ubuntu10/ scripts/ functions: _render_ netplan( ) { tools-0. 133ubuntu12/ scripts/ functions: _render_ netplan( ) {
>On Wed, Jan 29, 2020 at 3:17 PM Andreas Hasenack <email address hidden> wrote:
>
> cloud-init gets SRUed regularly as a new upstream version, i.e.:
> cloud-init | 19.4-33-
> cloud-init | 19.4-33-
> cloud-init | 19.4-33-
> cloud-init | 19.4-33-
> cloud-init | 19.4-33-
> cloud-init | 19.4-33-
> cloud-init | 19.4-33-
>
>
> Do these initramfs-tools improvements you speak of exist since xenial?
>
>
> Netplan rendering is available from xenial and up:
>
> ./initramfs-
> ./initramfs-
> ./initramfs-
> ./initramfs-
> ./initramfs-
Xenial images do not use netplan by default; however, cloud-init in Xenial
can read/parse it and render ifupdown as needed.
> Vlan support is available from eoan and up: tools-0. 133ubuntu10/ init: vlan=*) tools-0. 133ubuntu12/ init: vlan=*)
>
> ./initramfs-
> ./initramfs-
>
> If desired Vlan support can be backported.
Are the vlan values exported into rendered netplan?
> Note neither of above is available on Debian.
Generally, we can have cloud-init look for rendered netplan files, and prefer them over
the klibc files when present.