Pxe install impossible after upgrade foreman 3.13.0 to 3.14.0

Problem:
Pxe install impossible after upgrade foreman 3.13.0 to 3.14.0

Expected outcome:
installing new host which foreman’s pxe boot

Foreman and Proxy versions:
3.14.0

Distribution and version:
rocky linux 9.5

i have a theforeman 3.13.0 running which works like charm.
The OS is rocky linux 9.5
The upgrade to Version 3.14.0 makes problems with pxe boot install (managing the hosts by puppet still works on 3.14.0)

The problem with pxe: When i try to install a computer over pxe boot, the new host contacts the theforeman server, and also gets an IP address from the dhcp server (which is identical with the theforeman server). So far, so expected.

But then it hangs and the new host falls back into the BIOS.

This is the way how i upgraded theforeman from 3.13.0 to 3.14.0:
yum update
reboot
cd /etc/yum.repos.d/
sed -i -e ‘s/3.13/3.14/g’ foreman.repo
sed -i -e ‘s/3.13/3.14/g’ foreman-plugins.repo
cd /etc/pki/rpm-gpg/
rm RPM-GPG-KEY-foreman
wget https://yum.theforeman.org/releases/3.14/RPM-GPG-KEY-foreman
yum update
foreman-rake db:migrate
reboot

after the reboot:
foreman-installer --foreman-proxy-dhcp true --foreman-proxy-dhcp-gateway “192.168.253.1” --foreman-proxy-dhcp-interface “ens192” --foreman-proxy-dhcp-managed true --foreman-proxy-dhcp-nameservers “192.168.253.50” --foreman-proxy-dhcp-range “192.168.253.51 192.168.253.150” --foreman-proxy-dhcp-server “192.168.253.50” --foreman-proxy-dns true --foreman-proxy-dns-forwarders “192.168.253.50” --foreman-proxy-dns-forwarders “192.168.253.50” --foreman-proxy-dns-interface “ens192” --foreman-proxy-dns-managed true --foreman-proxy-dns-reverse “253.168.192.in-addr.arpa” --foreman-proxy-dns-server “127.0.0.1” --foreman-proxy-dns-zone “mpia.de” --foreman-proxy-tftp true --foreman-proxy-tftp-managed true

Does anyone have an idea what could be wrong, how i can debug, where in can look into?

Many thanks in advance, ulrich

Hi,
Does it mean that the host is getting the configuration files for the bootloader from the Foreman, and the error happens after you select one of the options in the bootloader menu?

Hi,

yes, exactly.
The server on which theforeman is installed also hosts theforeman-proxy, tftp and dhcp

When i select on the boot loader menu of the host where i want to install the OS the pxe boot, it gets a valid IP address from theforeman server (or better: it’s DHCP server) and then falls back to the boot loader menu.
It seems it cannot download the boot image after the upgrade to 3.14.0 what went without problems before the upgrade on 3.13.0.

best wishes, ulrich

Hi,
now i have to apologize that i did not give you guys all the informations. Lesson lerned. I was too much blinded by “before the upgrade it worked”.

The root cause of my problem was that i have two interfaces, but pxe boot works only on one. The install host took the IP address from theforeman’s other interface, and so the image could not be downloaded and the pxe fell back into the boot menu.

I fixed is by giving foreman-proxy-tftp-servername to the foreman-installer.

Here is now my way to the upgrade from 3.13 to 3.14 (i have private network addresses, replace it by your’s):

yum update
systemctl stop foreman
cd /etc/yum.repos.d/
sed -i -e ‘s/3.13/3.14/g’ foreman.repo
sed -i -e ‘s/3.13/3.14/g’ foreman-plugins.repo
cd /etc/pki/rpm-gpg/
rm RPM-GPG-KEY-foreman
wget https://yum.theforeman.org/releases/3.14/RPM-GPG-KEY-foreman
yum update
foreman-rake db:migrate
reboot

foreman-installer --foreman-proxy-dhcp true --foreman-proxy-dhcp-gateway “192.168.100.1” --foreman-proxy-dhcp-interface “ens192” --foreman-proxy-dhcp-managed true --foreman-proxy-dhcp-nameservers “192.168.100.50” --foreman-proxy-dhcp-range “192.168.100.51 192.168.100.150” --foreman-proxy-dhcp-server “192.168.100.50” --foreman-proxy-dns true --foreman-proxy-dns-forwarders “192.168.100.50” --foreman-proxy-dns-forwarders “192.168.100.254” --foreman-proxy-dns-interface “ens192” --foreman-proxy-dns-managed true --foreman-proxy-dns-reverse “100.168.192.in-addr.arpa” --foreman-proxy-dns-server “127.0.0.1” --foreman-proxy-dns-zone “mpia.de” --foreman-proxy-tftp true --foreman-proxy-tftp-managed true --foreman-proxy-tftp-servername “192.168.100.50”

I hope that helps somebody

1 Like