Project

General

Profile

Actions

Bug #36181

open

pressed netplan provisioning template should treat no subnet consistently with finished template

Added by Damon Maria about 1 year ago. Updated about 1 year ago.

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

Description

In the preseed_default_finish.erb template no ipv4 subnet implies dhcp:

<% subnet = @host.subnet -%>
<% if @static -%>
  <%- dhcp = false -%>
<% elsif subnet.nil? -%>
  <%- dhcp = true -%>

The preseed_netplan_setup.erb template does not:

:dhcp => bond.subnet.nil? ? false : bond.subnet.dhcp_boot_mode?

This means a host setup with no subnet works everywhere else but creates an invalid netplan.

IMHO no subnet should imply dhcp.

Actions #1

Updated by Damon Maria about 1 year ago

  • Pull request https://github.com/theforeman/foreman/pull/9645 added
Actions #2

Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
Actions

Also available in: Atom PDF