Greetings fellow Foreman (and Katello) users,
I'm just joining this party, and am impressed with the community built up
around Foreman/Katello! Thanks for contributing.
I've been experimenting with Foreman 1.8 as a replacement for our current
provisioning method (PXE+kickstart+custom config scripts written in perl)
in my environment.
I've been having trouble with Foreman fitting into the various existing
infrastructure that we do not run. (DNS/DHCP, and RHEL Satellite are
managed by our central campus-IT.) Being pretty new to the system, I've yet
to figure out if I should be sticking with Foreman or switch to Katello
(2.2), but that may be a different topic. I was wondering if I could get
some insight into the PXE provisioning problem I'm experiencing.
Here is what I see when I provision:
- Provision new test system 'testsystem' w/ a static IP -> provisions a
new VM(VMware), get a new MAC, added into Foreman Hosts. PXELinux and
provision (ks) Templates are generated and viewable in foreman(web) host
view. - Boot new system 'testsystem' -> boots PXE w/ Dynamic range
IP(expected) assigned via DHCP and lands at the 'default' PXE menu with
local and discovery options. There seems to be no handoff to the PXELinux
template file seen in step 1(unexpected). I looked in
/var/lib/tftpboot/pxelinux.cfg and only the 'default' menu exists. - Observation: The system does not appear to be handed off to the
expected PXELinux menu. - Is that because the IP address does not match the static definition?
2. Normally, I would think it would just generate a MAC address based
PXE menu file so it would not matter what the initial IP address is.
3. I'm not finding any log entries in foreman/foreman-proxy (besides
the tftp connection in /var/log/messages), for the address my test system
is coming in as. (with the dynamic, temporary IP)
Any ideas where I might be futzing up?
Maybe I have some slightly incorrect assumptions how the PXE session is
handled?
Any suggestions?
Additional Environment deets:
-
DNS: Run by central IT, primarily have to submit requests for new
static/A records. -
DHCP: Run by central IT, but we have configs in place for
'next-server' for our networks. PXE works.*** - *RHEL Satellite: *Run by central IT, RHEL Satellite native
kickstart+provisioning is disabled. (because they don't use it) -
Foreman: Run by me, RHEL6 x86_64 server, Network/IPAM - Internal DB,
Boot mode Static. Two subnets, VMware compute, one domain. DNS and DHCP
proxies turned off. TFTP-proxy turned on. Testing system on the same
network as foreman server. Ports 69[udp], 80/443[tcp], 8140[tcp], 8443[tcp]
all open on the firewall.
** *Each network has a dynamic range, on production, just enough to spin up
PXE+kickstart systems that switch to static IP's when handed off to the
kickstart file (anaconda/ks build phase). Development network is split,
half and half dynamic range (with names) and static IPs (without names).
Most of our development uses the dynamic range, with static names. Using
non-dynamic ranges requires a formal request to add a A record into DNS.