Actions
Bug #35798
openpreseed_netplan_generic_interface generates invalid netplan for dhcp interfaces
Status:
Ready For Testing
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Description
Hi,
Trying to provision a Ubuntu 22.04 host on 3.5.0-RC1 fails when the host's primary interface is DHCP rather than static. The generated netplan file contains, e.g.,:
network: version: 2 ethernets: eno5: dhcp4: true dhcp6: false nameservers: search: [ domain.tld ] addresses:
...and the empty `addresses` clause causes installation to fail. The list of nameservers is only generated for hosts with static primary interface rather than DHCP, so the header should be as well.
This looks like a bug introduced by https://github.com/theforeman/foreman/pull/9515
PR to follow.
Updated by The Foreman Bot almost 2 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/9527 added
Actions