Project

General

Profile

Actions

Bug #35798

open

preseed_netplan_generic_interface generates invalid netplan for dhcp interfaces

Added by Dan Ports over 1 year ago. Updated over 1 year ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9527 added
Actions

Also available in: Atom PDF