[Satellite 6] Provisioning a new host fails with "undefined method `path' for nil:NilClass" error
Environment
- Red Hat Satellite v 6
Issue
- Provisioning a discovered host from Red Hat Satellite 6 fails with following error message,
[W] Fetch TFTP boot files for client.example.com task failed with the following error: undefined method `path' for nil:NilClass
Other scenario is provisioning a new host or clicking Build button errors out with:
Failure parsing template-name: undefined method `path' for nil:NilClass.
Resolution
Generic steps for resolving the error:
- Check if Content View contains a Kickstart repository and it is promoted correctly to the target Lifecycle Environment.
- Check if Installation media was created for the particular Kickstart repository (only for Red Hat Satellite 6.0-6.2)
- Check if Installation media is assigned correct Organization and Location (only for Red Hat Satellite 6.0-6.2)
- Check if Operating System is associated with the Installation Media (only for Red Hat Satellite 6.0-6.2)
- Check the Operating System version - it must match the Kickstart Operating System version (e.g. RHEL 7.0 will not work against Content View with a RHEL 7.1 Kickstart)
Discovery issue :
This issue is a known Bug and already reported to the engineering team with This content is not included.Bugzilla # 1364544. The error for discovery was fixed in https://access.redhat.com/errata/RHBA-2016:2940 errata. Follow the below steps to workaround this issue.
-
Go to the Host Group used for the auto-provisioning.
-
Go to the Operating System tab.
-
Instead of the Synced Content select the All Media.
-
Select the required Media for the kickstarting.
-
Try to Provision / Auto-Provision a host now.
-
To know the exact status of the Bugzilla please contact Red Hat Technical Support.
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
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.