Httpboot provisoning files missing

Hi :slight_smile:

Problem:
When i build a host with Grub2 UEFI HTTP boot selected, there are no files provisionend under /var/lib/tftpboot/httpboot. So if the host boots grub2, he wont find the files for the http(s)boot.

Expected outcome:
vmlinuz and initrd files in tftboot/httpboot/ like in tftboot/boot/

Foreman and Proxy versions:
Foreman: 2.0.0-0.9.rc2.el7
Proxy: 2.0.0-0.3.rc2.el7

Foreman and Proxy plugin versions:
HTTPboot: 2.0.0-rc3
TFTP: 2.0.0-rc3

Distribution and version:
RHEL 7.7

Other relevant data:
I enabled httpboot like mentionend here.

  • enabled httpboot in /etc/foreman-proxy/settings.d/http.yml
  • enabled http and https in /etc/foreman-proxy/settings.yml (default values)
  • restarted the proxy
  • then HTTPboot is listed under Active Features in the webUI
  • Proxy is set in the subnet and the subnet is selected in the Host Group
  • foreman-proxy has read/write access to the whole folder tftboot

When i restart the proxy, the log says that httpboot and tftp got initialized successfully.
Then i click build for a host but foreman just builds the files for grub2/ and boot/. In the logs are no errors regarding httpboot, the log level is set to Debug.

Proxy startup:

2020-03-26T11:54:36  [D] 'tftp' settings: 'enabled': true, 'tftp_connect_timeout': 10 (default), 'tftp_dns_timeout': 10 (default), 'tftp_read_timeout': 60 (default), 'tftproot': /var/lib/tftpboot (default)
2020-03-26T11:54:36  [D] 'tftp' ports: 'http': true, 'https': true
...
2020-03-26T11:54:36  [D] 'httpboot' settings: 'enabled': https, 'http_port': , 'https_port': 8443, 'root_dir': /var/lib/tftpboot (default)
2020-03-26T11:54:36  [D] 'httpboot' ports: 'http': false, 'https': true
...
2020-03-26T11:54:36  [I] Successfully initialized 'foreman_proxy'
2020-03-26T11:54:36  [I] Successfully initialized 'facts' 
2020-03-26T11:54:36  [I] Successfully initialized 'tftp'
...
2020-03-26T11:54:36  [I] Successfully initialized 'httpboot'

Any help is appreciated!
Thanks

Hello,

URL /httpboot maps to /var/lib/tftpboot directly so TFTP and HTTP files are shared. When you provision a host, these files should be available in the boot/ subdirectory making them available via /httpboot/boot/kernel etc.