Smart proxy bootstrap is not behaving the same way as Foreman bootstrap

Foreman and Foreman Proxy versions: 3.11.4

Smart Proxy Features: Ansible, DNS, Discovery, Dynflow, HTTPBoot, Logs, Puppet, Script, TFTP, and Templates

It looks like when I’m using foreman proxy bootstrapping, I’m getting different output than using Foreman itself.
When trying to run with Foreman, I’m getting proper output from Intermediate iPXE script. When trying to run with Smart Proxy, I’m falling to iPXE Default Local Boot.

What I am missing?

Running curl against Foreman server:

curl http://chc-prd-vforeman01/unattended/iPXE?bootstrap=1

output:

#!ipxe
# Intermediate iPXE script to report MAC address to Foreman

:net0
isset ${net0/mac} || goto no_nic
dhcp net0 || goto net1
chain http://chc-prd-vforeman01.transmarketgroup.com/unattended/iPXE?mac=${net0/mac} || goto net1

:net1
isset ${net1/mac} || goto no_nic
dhcp net1 || goto net2
chain http://chc-prd-vforeman01.transmarketgroup.com/unattended/iPXE?mac=${net1/mac} || goto net2

...
2024-11-08T09:51:19 [I|app|5307d9b8] Started GET "/unattended/iPXE?bootstrap=1" for 10.48.69.37 at 2024-11-08 09:51:19 -0600
2024-11-08T09:51:19 [I|app|5307d9b8] Processing by UnattendedController#host_template as TEXT
2024-11-08T09:51:19 [I|app|5307d9b8]   Parameters: {"bootstrap"=>"1", "kind"=>"iPXE"}
2024-11-08T09:51:19 [I|app|5307d9b8]   Rendered text template (Duration: 0.0ms | Allocations: 2)
2024-11-08T09:51:19 [I|app|5307d9b8] Completed 200 OK in 14ms (Views: 0.4ms | ActiveRecord: 2.3ms | Allocations: 6978)
2024-11-08T16:46:38  [D] accept: 10.10.64.79:57548
2024-11-08T16:46:38  [D] Rack::Handler::WEBrick is invoked.
2024-11-08T16:46:38 7917dca1 [I] Started GET /version 
2024-11-08T16:46:38 7917dca1 [I] Finished GET /version with 200 (0.47 ms)
2024-11-08T16:46:39  [D] close: 10.10.64.79:57548

Running curl against smart proxy

curl http://zh4-prd-vforeman01:8000/unattended/iPXE?bootstrap=1

output:

#!ipxe

# Skips booting from network and continues booting from next device
exit 1
2024-11-08T09:52:36 [I|app|8cc07a18] Started GET "/unattended/iPXE?bootstrap=1&url=http%3A%2F%2Fzh4-prd-vforeman01.transmarketgroup.com%3A8000" for 10.50.64.42 at 2024-11-08 09:52:36 -0600
2024-11-08T09:52:36 [I|app|8cc07a18] Processing by UnattendedController#host_template as TEXT
2024-11-08T09:52:36 [I|app|8cc07a18]   Parameters: {"bootstrap"=>"1", "url"=>"http://zh4-prd-vforeman01.transmarketgroup.com:8000", "kind"=>"iPXE", "unattended"=>{}}
2024-11-08T09:52:36 [I|app|8cc07a18]   Rendered text template (Duration: 0.0ms | Allocations: 1)
2024-11-08T09:52:36 [I|app|8cc07a18] Completed 200 OK in 51ms (Views: 0.4ms | ActiveRecord: 7.3ms | Allocations: 15936)
2024-11-08T16:52:36 a7480cf3 [I] Started GET /unattended/iPXE bootstrap=1
2024-11-08T16:52:36 a7480cf3 [D] Template: request for unattended/iPXE using {"bootstrap"=>"1", "url"=>"http://zh4-prd-vforeman01.transmarketgroup.com:8000"} at chc-prd-vforeman01.transmarketgroup.com
2024-11-08T16:52:36 a7480cf3 [D] Retrieving a template from https://chc-prd-vforeman01.transmarketgroup.com//unattended/iPXE?bootstrap=1&url=http%3A%2F%2Fzh4-prd-vforeman01.transmarketgroup.com%3A8000
2024-11-08T16:52:36 a7480cf3 [D] HTTP headers: {"USER_AGENT"=>"curl/8.5.0", "ACCEPT"=>"*/*", "X-Forwarded-For"=>"10.48.69.37"}
2024-11-08T16:52:36  [D] Executor heartbeat
2024-11-08T16:52:36 a7480cf3 [I] Finished GET /unattended/iPXE with 200 (374.38 ms)