Unable to generate bootdisk images after upgrade to Red Hat Satellite

Solution Verified - Updated -

Environment

  • Red Hat satellite 6

Issue

  • After upgrade to Red Hat Satellite , generating bootdisk ended with errors:
# hammer -d bootdisk host --host [Machine hostname] --full true
Using exception handler HammerCLIForeman::ExceptionHandler#handle_internal_error
ERF42-7903 [Foreman::Exception]: Unable to generate disk template, PXEGrub2 template not found.
Failed to download host disk image:
  ERF42-7903 [Foreman::Exception]: Unable to generate disk template, PXEGrub2 template not found.

Resolution

1) Associate the missing template to the used operating system:

Satellite webUI -> Hosts -> Provisioning Templates -> Kickstart default PXEGrub -> Association -> Applicable Operating Systems -> [Add "OS"]
Satellite webUI -> Hosts -> Provisioning Templates -> Kickstart default PXEGrub2 -> Association -> Applicable Operating Systems -> [Add "OS"]

2) Set the templates on the OS page:

Satellite webUI -> Hosts -> Operating System -> "rhel 8.x" -> Templates -> Set both "PXEGrub template" and "PXEGrub2 template"

3) On the provisioned host page , cancel the build and build it again:

Satellite webUI -> Hosts -> All Hosts -> [Host name] -> Cancel build 
Satellite webUI -> Hosts -> All Hosts -> [Host name] -> build

Root Cause

  • Provisioning templates PXEGrub and PXEGrub2 are not associated with the used OS.

Diagnostic Steps

  • Generating bootdisk using hammer failed:
# hammer -d bootdisk host --host [Machine hostname] --full true

Using exception handler HammerCLIForeman::ExceptionHandler#handle_internal_error
ERF42-7903 [Foreman::Exception]: Unable to generate disk template, PXEGrub2 template not found.
Failed to download host disk image:
  ERF42-7903 [Foreman::Exception]: Unable to generate disk template, PXEGrub2 template not found.

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.

Comments