Unable to find provision template foreman 3.3

Problem:
got annaconda failed to fetch kickstart form http://…/unantended/provision?token=…

Expected outcome:
working initial setup

Foreman and Proxy versions:
3.3

Foreman and Proxy plugin versions:
3.3

Distribution and version:
RHEL 8.6

Other relevant data:
log from production.log :
2022-08-01T11:33:34 [I|app|99e9db39] Rendering text template
2022-08-01T11:33:34 [I|app|99e9db39] Rendered text template (Duration: 0.0ms | Allocations: 1)
2022-08-01T11:33:34 [I|app|99e9db39] Completed 404 Not Found in 26ms (Views: 0.6ms | ActiveRecord: 7.6ms | Allocations: 7380)
2022-08-01T11:33:35 [I|app|811f19b2] Started GET “/unattended/provision?token=abfb0ddf-a9f4-480d-b8de-b019dc9349bc” for 10.10.10.70 at 2022-08-01 11:33:35 +0200
2022-08-01T11:33:35 [I|app|811f19b2] Processing by UnattendedController#host_template as TEXT
2022-08-01T11:33:35 [I|app|811f19b2] Parameters: {“token”=>“abfb0ddf-a9f4-480d-b8de-b019dc9349bc”, “kind”=>“provision”}
2022-08-01T11:33:35 [D|app|811f19b2] Found otvmi345s.foreman-install.worldline.com
2022-08-01T11:33:35 [D|tax|811f19b2] Current organization set to Default Organization
2022-08-01T11:33:35 [D|tax|811f19b2] Current location set to Default Location
2022-08-01T11:33:35 [D|tax|811f19b2] Current location set to none
2022-08-01T11:33:35 [D|tax|811f19b2] Current organization set to none
2022-08-01T11:33:35 [E|app|811f19b2] unable to find provision template for otvmi345s.foreman-install.worldline.com running RedHat 8.6
2022-08-01T11:33:35 [I|app|811f19b2] Rendering text template
2022-08-01T11:33:35 [I|app|811f19b2] Rendered text template (Duration: 0.0ms | Allocations: 1)
2022-08-01T11:33:35 [I|app|811f19b2] Completed 404 Not Found in 26ms (Views: 0.4ms | ActiveRecord: 7.8ms | Allocations: 7380)

log from proxy :
2022-08-01T11:18:53 8b479ef5 [I] Started GET /dhcp/10.10.10.0/mac/00:50:56:ac:c2:91
2022-08-01T11:18:53 8b479ef5 [I] Finished GET /dhcp/10.10.10.0/mac/00:50:56:ac:c2:91 with 200 (0.62 ms)
2022-08-01T11:18:53 8b479ef5 [I] Started POST /tftp/PXELinux/00:50:56:ac:c2:91
2022-08-01T11:18:53 8b479ef5 [I] Finished POST /tftp/PXELinux/00:50:56:ac:c2:91 with 200 (1.02 ms)
2022-08-01T11:18:53 8b479ef5 [I] Started POST /tftp/fetch_boot_file
2022-08-01T11:18:53 8b479ef5 [I] Finished POST /tftp/fetch_boot_file with 200 (1.03 ms)
2022-08-01T11:18:53 8b479ef5 [I] [191619] Started task /usr/bin/curl\ --silent\ --show-error\ --connect-timeout\ 10\ --retry\ 3\ --retry-delay\ 10\ --max-time\ 3600\ --remote-time\ --time-cond\ /var/lib/tftpboot/boot/wl-rhel8-6-UnujJIAoZ87W-vmlinuz\ --write-out\ Task\ done,\ result:\ %{http_code},\ size\ downloaded:\ %{size_download}b,\ speed:\ %{speed_download}b/s,\ time:\ %{time_total}ms\ --output\ /var/lib/tftpboot/boot/wl-rhel8-6-UnujJIAoZ87W-vmlinuz\ --location\ http://otvmi343s.foreman-install.worldline.com:8080/RHEL/RHEL-8.6/images/pxeboot/vmlinuz
2022-08-01T11:18:53 8b479ef5 [I] Started POST /tftp/fetch_boot_file
2022-08-01T11:18:53 8b479ef5 [I] Finished POST /tftp/fetch_boot_file with 200 (0.87 ms)
2022-08-01T11:18:53 8b479ef5 [I] [191624] Started task /usr/bin/curl\ --silent\ --show-error\ --connect-timeout\ 10\ --retry\ 3\ --retry-delay\ 10\ --max-time\ 3600\ --remote-time\ --time-cond\ /var/lib/tftpboot/boot/wl-rhel8-6-UnujJIAoZ87W-initrd.img\ --write-out\ Task\ done,\ result:\ %{http_code},\ size\ downloaded:\ %{size_download}b,\ speed:\ %{speed_download}b/s,\ time:\ %{time_total}ms\ --output\ /var/lib/tftpboot/boot/wl-rhel8-6-UnujJIAoZ87W-initrd.img\ --location\ http://otvmi343s.foreman-install.worldline.com:8080/RHEL/RHEL-8.6/images/pxeboot/initrd.img

@lstejskal haven’t you seen something like this recently? Do you recall what was the issue?

I find the issue, was missing a template in OS definition ! what is need is a better error message there.

Yeah I hit the same issue last time, I forgot both things:

  • Assign template to the OS
  • Set the template as default in OS

I agree that we need to improve the error message, created issue and put it to our backlog

1 Like