Problem:
[Background]
In an office network already managed by DHCP (hands out addresses on 10.10.0.0/16). Not permitted to run DHCP on Foreman so the work around is configure Discovery Image.
There’s a external iPXE server (10.10.1.217) already configured that successfully installs the Discovery Image to network booted clients.
Foreman/Foreman_Proxy are running on 10.10.16.32. (https://foreman.network.com). Also the unattended provisioning URL.
Created a Subnet on Foreman (10.10.16.0/24). Specified None for IPAM and Boot Mode is set to static. Didn’t specify DNS server/gateway.
From the Discovery Image, using DHCP configuration works and updates the discovered hosts in Foreman (Status: SUCCESS -awaiting kexec into installer). All hosts get placed in the default organization and location.
When trying to provision host from Foreman Web- Attempting to install CentOS 7 with Discovery Template (kickstart default) and Provisioning Template (Discovery Red Hat kexec).
Host interface ->
DNS Name : mac005056b5d057
Domain: foreman.net
IPv4 Subnet: Discovery(10.10.16.0/24)
IPv4 Address 10.10.16.159
Output during provisioning on the Discovery image is: Warning: anaconda: failed to fetch kickstart from https://foreman.network.com/unattended/provision?token= [token number] &static=yes ). Tried extending token expiration.
Expected outcome:
Join Discovered host to the subnet and find/use the kickstart provisioning file.
Foreman and Proxy versions:
2.5.0
Foreman and Proxy plugin versions:
foreman_discovery 17.0.1
Distribution and version:
Ubuntu 20.04.2 LTS Focal Focus
Other relevant data: