Bug #14905
closedDHCP reservation for PXE boot not added when using static boot mode
Description
Hi,
we have one central tftp server and multiple dhcp servers to avoid the dhcp relay via firewalls.
Since foreman 1.11, we can not deploy vm, because foreman will not add the dhcp leases on the external dhcp servers. PXE will not work anymore.
tcpdump also wont show any connections..
If I add a tftp role to a dhcp server and attach it to one subnet, the leases will be added to this dhcp server doing the host creation and everything will be work as expected.
I can not find any errory on /var/log/foreman-proxy/proxy.log or /var/log/foreman/production.log .
Best Regards,
Jan-Otto Kröpke
noris network AG
Files
Updated by Jan-Otto Kröpke over 8 years ago
- File Bildschirmfoto 2016-05-02 um 19.00.51.png Bildschirmfoto 2016-05-02 um 19.00.51.png added
- File Bildschirmfoto 2016-05-02 um 19.02.05.png Bildschirmfoto 2016-05-02 um 19.02.05.png added
I have attached two screenshot
One from installing a machine.
An another screenshot from the subnet setting.
As you can see, the step "configure dhcp" is missing on the first screen.
Looks like foreman ignore the settings from the subnet.
Unset and set the settings again does not work correctly.
We are upgrade to foreman 1.11 and then to 1.11.1. Maybe there are some migrations issues.
Updated by Dominic Cleal over 8 years ago
- Project changed from Smart Proxy to Foreman
- Category changed from DHCP to DHCP
- Status changed from New to Need more information
What is the Boot mode set to in the Subnet settings? Ensure it's on DHCP, not Static.
Updated by Jan-Otto Kröpke over 8 years ago
It is Static and it work since 1.6 without any problems.
The subnet which has the foreman as TFTP and DHCP proxy itself,
If Static is a problem, how to deploy PXE machines?
Updated by Dominic Cleal over 8 years ago
- Related to Bug #14113: DHCP orchestration ignored subnet bootmode added
Updated by Dominic Cleal over 8 years ago
- Status changed from Need more information to Feedback
It is Static and it work since 1.6 without any problems.
The linked bug changes behaviour to only create DHCP reservations when DHCP boot mode is in use. You should consider changing the boot mode to DHCP, which should fix PXE booting.
Updated by Jan-Otto Kröpke over 8 years ago
Its does not make sense.
PXE should work even with Static Boot mode. In my opinion, provision and boot mode are two different things.
Using DHCP as boot mode is fatal, because if the foreman is unavailable, all maschine will drop the ip after the lease time..
The Foreman will mutate to a single point of failure.
Updated by Dominic Cleal over 8 years ago
- Subject changed from Foreman does not add dhcp.leases for new vm, if dhcp and tftp proxy is different to DHCP reservation for PXE boot not added when using static boot mode
- Status changed from Feedback to New
PXE should work even with Static Boot mode. In my opinion, provision and boot mode are two different things.
Yes, I'll leave this bug open for that reason.
Using DHCP as boot mode is fatal, because if the foreman is unavailable, all maschine will drop the ip after the lease time..
As an aside, DHCP is provided by your DHCP server and not Foreman, so could well be set up in a failover or other HA configuration.
Updated by Jan-Otto Kröpke over 8 years ago
Thanks.
Maybe a configable option would be the best.
Updated by Daniel Gagnon over 8 years ago
I confirm hitting the same issue.
In our setup, we are using DHCP for provisionning, but static IP addressing for the servers once they are online.
We still want the lease to be created to support the provisionning process as well as recovery environnements.
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release set to 155
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release changed from 155 to 159
Updated by Baptiste Agasse over 8 years ago
I confirm too, we use dhcp server only in "static" mode. The dhcp server is only used for provisioning purposes (DHCP/PXE/TFTP) and keep track of already assigned IPs on our subnets with dhcp reservations.
Updated by Dominic Cleal over 8 years ago
- Related to Support #14792: foreman not sending the POST to the DHCP smart proxy added
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Dominic Cleal
- Pull request https://github.com/theforeman/foreman/pull/3552 added
Updated by Frank Grötzner over 8 years ago
As workaround I edited the snippet "kickstart_networking_setup" and added
<% dhcp = false >
below
< dhcp = subnet.dhcp_boot_mode? -%>
in line 113.
Updated by Dominic Cleal over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset db140f2a02dbd54cba6f335ee7c6105bbd3e9521.