Netboot file location Rocky Linux

Problem: When configuring Foreman / Katello on Rocky Linux for deployment, it is unable to find ‘information from environment production source’

[root@foreman ~]# LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 foreman-installer
2021-08-09 18:53:57 [NOTICE] [root] Loading installer configuration. This will take some time.
2021-08-09 18:54:01 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2021-08-09 18:54:01 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2021-08-09 18:54:12 [NOTICE] [configure] Starting system configuration.
2021-08-09 18:54:25 [NOTICE] [configure] 250 configuration steps out of 1986 steps complete.
2021-08-09 18:54:28 [NOTICE] [configure] 500 configuration steps out of 1986 steps complete.
2021-08-09 18:54:28 [NOTICE] [configure] 750 configuration steps out of 1990 steps complete.
2021-08-09 18:54:31 [NOTICE] [configure] 1000 configuration steps out of 1996 steps complete.
2021-08-09 18:54:32 [NOTICE] [configure] 1250 configuration steps out of 2000 steps complete.
2021-08-09 18:54:55 [NOTICE] [configure] 1500 configuration steps out of 2000 steps complete.
2021-08-09 18:54:59 [NOTICE] [configure] 1750 configuration steps out of 2854 steps complete.
2021-08-09 18:55:00 [NOTICE] [configure] 2000 configuration steps out of 2854 steps complete.
2021-08-09 18:55:00 [NOTICE] [configure] 2250 configuration steps out of 2854 steps complete.
2021-08-09 18:55:01 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Tftp::Netboot/File[/var/lib/tftpboot/grub2/grubx64.efi]: Could not evaluate: Could not retrieve information from environment production source(s) file:///boot/efi/EFI/redhat/grubx64.efi
2021-08-09 18:55:01 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Tftp::Netboot/File[/var/lib/tftpboot/grub2/shimx64.efi]: Could not evaluate: Could not retrieve information from environment production source(s) file:///boot/efi/EFI/redhat/shimx64.efi
2021-08-09 18:55:01 [NOTICE] [configure] 2500 configuration steps out of 2860 steps complete.
2021-08-09 18:55:02 [NOTICE] [configure] 2750 configuration steps out of 2860 steps complete.
2021-08-09 18:55:12 [NOTICE] [configure] System configuration has finished.

  There were errors detected during install.
  Please address the errors and re-run the installer to ensure the system is properly configured.
  Failing to do so is likely to result in broken functionality.

  The full log is at /var/log/foreman-installer/katello.log

Expected outcome: It not to fail

Foreman and Proxy versions: 2.4

Foreman and Proxy plugin versions: Katello 4.1.2

Distribution and version: Rocky Linux 8

Other relevant data:
When creating a symlink from /boot/efi/EFI/redhat to /boot/efi/EFI/rocky all is working just fine.

I would like to note here that the issue with the symlink as expertly described by Thulium-Drake was not resolved with version:

katello-4.1.3-1.el8

Although I would like to also note that given the following setup:
-Foreman host OS: Rocky Linux release 8.4 (Green Obsidian)
-Foreman Smart Proxy OS: Rocky Linux release 8.4 (Green Obsidian)
-Synced content: Rocky_Linux 8 (AppStream + BaseOS)
-Provision target host: Rocky Linux release 8.4 (Green Obsidian)

The syncs I performed were:
“Sync now” from a Rocky repo
“Optimized Sync” from the Foreman server to the smart proxy using an “On Demand” Download policy

I was able to kickstart a test host from the smart proxy with no issue.

Here is hoping the symlink fix makes it into the katello 4.2 release

There’s this at least which should make it into Katello 4.2:
https://projects.theforeman.org/issues/32710

2 Likes

I just tested the change described in Feature #32710 and I can confirm the error I was receiving when standing up the TFTP enabled Rocky smart proxy is gone.

1 Like

I am trying Foreman in Rocky Linux 8.5 and got the exact error.

The symlink helped me to fix the installer error.

thank you