iPXE Provisioning of a host fails with DHCP reporting 'no free leases' on Red Hat Satellite 6.10
Environment
- Red Hat Satellite 6.10
Issue
- iPXE Provisioning of a host fails with DHCP reporting the following errors:
.
.
May 17 09:06:42 example.satellite.com dhcpd[7843]: DHCPDISCOVER from 00:50:56:84:35:d5 via ens224: network 192.168.21.0/24: no free leases
May 17 09:07:03 example.satellite.com dhcpd[7843]: DHCPDISCOVER from 00:50:56:84:35:d5 via ens224: network 192.168.21.0/24: no free leases
May 17 09:07:15 example.satellite.com dhcpd[7843]: DHCPDISCOVER from 00:50:56:84:35:d5 via ens224: network 192.168.21.0/24: no free leases
May 17 09:11:29 example.satellite.com dhcpd[7843]: DHCPREQUEST for 192.168.21.14 from 00:50:56:84:90:13 via ens224: unknown lease 192.168.21.14.
May 17 09:11:31 example.satellite.com dhcpd[7843]: DHCPDISCOVER from 00:50:56:84:90:13 via ens224: network 192.168.21.0/24: no free leases
May 17 09:11:34 example.satellite.com dhcpd[7843]: DHCPDISCOVER from 00:50:56:84:90:13 via ens224: network 192.168.21.0/24: no free leases
.
.
- Hosts are not getting IP addresses from the DHCP (Satellite server).
- When I try to create a new host, in the Interfaces tab, there will be a new IP on the install network, let's say 192.168.21.10, but that IP never shows up in the /var/lib/dhcpd/dhcpd.leases file.
Resolution
Edit the /etc/dhcp/dhcpd.conf on the Satellite server, and make sure to add the 'range' line as shown below:
.
.
subnet 192.168.21.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
range 192.168.21.0 192.168.21.255;
}
Afterwards, restart the DHCP service.
For more KB articles/solutions related to Red Hat Satellite 6.x Provisioning Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Provisioning related Issues
Diagnostic Steps
- Checking the /var/lib/dhcpd/dhcpd.leases file revealed that there was only one entry. So, there should be free leases available.
SBR
Product(s)
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.