Bug #34941

Ubuntu Autoinstall PXELinux template does not reference Smart Proxy correctly

Added by Bastian Schmidt 10 months ago. Updated 6 months ago.

Target version:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:


When deploying an Ubuntu 22.04 host, the corresponding PXELinux template holds two addresses:
  • the iso image url (``)
  • the userdata interface url (``)

In order to reference these addresses in the template, the `@preseed_server` variable is used which links to ``. This works fine for direct Foreman-based deployments.

If we want to deploy from a Smart Proxy now, a problem arises with the userdata interface: The Smart Proxy itself does not provide the userdata interface directly, but it forwards the request to the Foreman. The port to forward this request is by default ``. Unfortunately, the `@preseed_server` variable contains the port `:80` which is wrong in this scenario.
In order to reference the template server, which is supposed to be used here, we must use the correct port. A different variable than `@preseed_server` must be used which holds the corresponding Smart Proxy port (by default :8000)

Associated revisions

Revision 8fbfbca3 (diff)
Added by Bastian Schmidt 8 months ago

Fixes #34941 - Enable Ubuntu Autoinstall smart proxy deployment

  • Use foreman_request_addr to reference correct Foreman/smart proxy port
  • Use kernel and boot file variables from medium provider instead of static paths

Co-authored-by: Evgeni Golov <>


#1 Updated by The Foreman Bot 10 months ago

  • Status changed from New to Ready For Testing
  • Pull request added

#2 Updated by The Foreman Bot 8 months ago

  • Fixed in Releases 3.4.0 added

#3 Updated by Bastian Schmidt 8 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Amit Upadhye 7 months ago

  • Category set to Templates

#5 Updated by The Foreman Bot 6 months ago

  • Fixed in Releases 3.3.1 added

Also available in: Atom PDF