Problem:
I have two dhcp pools defined. One from the original installer run and a second one using custom_hiera that was added afterwards. The problem is that the later only returns ‘No free IPs in range’ while the original one works just fine with almost identical settings. The generated files are attached below.
The infra pool is the original one. Both subnets are registered with foreman and have a different range for their static allocations so we don’t run into allocation conflicts. The settings for the subnet are also attached below.
Expected outcome:
The DHCP proxy can assign addresses from the second subnet. Same as the first one. I don’t really know what kind of setting I could have missed that stops this from working. Any help would be appreciated.
Foreman and Proxy versions:
1.20.3
Foreman and Proxy plugin versions:
1.20.3
Distribution and version:
Ubuntu 18.04.2
Other relevant data:
dhpcd.conf
# cluster
subnet 172.31.102.0 netmask 255.255.255.0 {
pool
{
range 172.31.102.101 172.31.102.249;
}
option subnet-mask 255.255.255.0;
option routers 172.31.102.250;
}
# infra.domain
subnet 172.31.100.0 netmask 255.255.254.0 {
pool
{
range 172.31.101.101 172.31.101.249;
}
option subnet-mask 255.255.254.0;
option routers 172.31.101.250;
option domain-search "[infra.domain,domain]";
}
cluster subnet definition in foreman