Direct iPXE provisioning from Satellite 6.10 server configured with DHCP service fails with 'failed to fetch kickstart from http://satellite.example.com:8000/' error

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.10

Issue

  • Direct (i.e. provisioning is done directly from the Satellite server, not via an external capsule) iPXE provisioning from Red Hat Satellite 6.10 server configured with DHCP service fails with the following error:
failed to fetch kickstart from http://satellite.example.com:8000/
  • No daemon is running on port 8000 on the Satellite server.

Resolution

Run the following command to define the set foreman-proxy-http to true to have foreman-proxy listening on port 8000:

# satellite-installer --foreman-proxy-http true --foreman-proxy-http-port 8000 --foreman-proxy-templates true

For more KB articles/solutions related to Red Hat Satellite 6.x Provisioning Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Provisioning related Issues

Diagnostic Steps

  • Confirm that the :enabled: setting in /etc/foreman-proxy/settings.d/templates.yml is set to true:

       # grep enabled /etc/foreman-proxy/settings.d/templates.yml
    :enabled: true
    
  • Confirm that the required kickstart repos are enabled and sync'd under the organization that the provisioning is performed under its context.

  • If firewalld is running on the Satellite server, make sure that port 8000 is enabled in the output from the following command:

    # firewall-cmd --list-all
    
  • Confirm that the foreman-proxy-templates plug-in is enabled on the Satellite server, that it is listening on both HTTP and HTTPS, and that the foreman-proxy-template-url is pointing to the correct URL:

    # satellite-installer --help | grep -i template
     --[no-]enable-foreman-plugin-templates Enable 'foreman_plugin_templates' puppet module (default: true)
     --foreman-proxy-template-url  URL a client should use for provisioning templates (current: "http://satellite.example.com:8000")
     --foreman-proxy-templates     Enable templates feature (current: true)
     --foreman-proxy-templates-listen-on  Templates proxy to listen on https, http, or both (current: "both")
    
SBR
Product(s)
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.