Project

General

Profile

ERF42-1064 » History » Version 1

Lukas Zapletal, 09/15/2015 05:32 AM

1 1 Lukas Zapletal
h1. ERF42-1064 Unable to assign subnet, primary interface is missing IP address
2
3
Also known as *address family must be specified*.
4
5
This is an error by Foreman Discovery plugin when a node being discovered has an IP that is already assigned to an existing Managed, Unmanaged or Discovered Host. An issue ticket was created to change this with appropriate message: http://projects.theforeman.org/issues/10004
6
7
h2. Solution
8
9
Delete all hosts with network interfaces assigned with conflicting IP addresses, modify or remove those interfaces.
10
11
h2. Prevention
12
13
Discovered hosts with multiple network cards usually cause problems when DHCP lease range overlaps with reservation range. While it is possible to define the same DHCP range in Foreman, it's usually good practice to select a range from outside the pool defined in the installer, but still in the subnet. Example configuration
14
15
10.0.0.1 - 10.0.0.99 - addresses reserved during bare-metal provisioning by Foreman - set in Foreman Web UI
16
10.0.0.100 - 10.0.200 - addresses for dynamic clients in the subnet (discovered hosts, unmanaged hosts) - set in dhcpd.conf
17
18
For more info see http://theforeman.org/manuals/latest/#3.2.3InstallationScenarios
19
20
h2. Additional notes
21
22
Foreman Discovery Image 3.0 or older was initializing all network interface via DHCP, which caused many IP leases increasing chance to hit this bug. In Image version 4.0+ this behavior is turned off by default and only the primary interface (PXE booting) is initialized with DHCP. The old behavior can be turned on with @fdi.initnet@ kernel command line option.