Bug 1919400

Summary: Cannot build a RHEL 8.3 system via Satellite Full Host Bootdisk
Product: Red Hat Satellite Reporter: James Jeffers <jjeffers>
Component: ProvisioningAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.7.0CC: alsouza, avroy, egolov, hartsjc, inecas, jpasqual, lzap, mmccune, momran, mschibli, patalber, pdwyer, rbeyel, sadas, sshtein, tonay
Target Milestone: 6.8.4Keywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: foreman-2.1.2.25-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1903247 Environment:
Last Closed: 2021-02-24 12:47:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 6 Roman Plevka 2021-02-11 12:26:41 UTC
Verified
on sat6.8.4-1.0

i was able to successfully provision a rhel8.3 host using the following flow:
- sync rhel8.3 repos
- add vmware as a compute resource
- create new host using the compute resource and "boot disk" provisioning method
  - satellite generates the full host boot disk iso and automatically uploads it to vmware store + attaches it to the newly created VM
- machine successfully booted the iso and loaded all the files via ipxe
- anaconda successfully installed all the packages
- RHEL8.3 successfully booted up after reboot.

Comment 11 errata-xmlrpc 2021-02-24 12:47:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Satellite 6.8.4 Async Bug Fix Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:0654

Comment 12 James Hartsock 2021-04-15 23:46:25 UTC
I show satellite upgrade corrects kickstart, but not kexec templates as customer pointed out in Red Hat Customer Portal Solution comment too!

So on sat 6.8.1 instance I had
# mkdir /var/tmp/6.8.1/
# for id in $(hammer template list | awk '/^[0-9]/ {print $1}'); do hammer template dump --id ${id} > /var/tmp/6.8.1/template.${id}; done
# egrep '^name|bootif.*00-' $(grep -l bootif.*00- /var/tmp/6.8.1/template.*)
/var/tmp/6.8.1/template.137:name: Discovery Red Hat kexec
/var/tmp/6.8.1/template.137:  bootif = '00-' + mac.gsub(':', '-') if mac
/var/tmp/6.8.1/template.138:name: Discovery Debian kexec
/var/tmp/6.8.1/template.138:  bootif = '00-' + mac.gsub(':', '-') if mac
/var/tmp/6.8.1/template.22:name: kickstart_kernel_options
/var/tmp/6.8.1/template.22:    bootif = '00-' + mac.gsub(':', '-')

Do upgrade
# satellite-maintain upgrade check --target-version 6.8.z
# satellite-maintain upgrade run --target-version 6.8.z

And on 6.8.6 instance now I have:
# mkdir /var/tmp/6.8.6/
# for id in $(hammer template list | awk '/^[0-9]/ {print $1}'); do hammer template dump --id ${id} > /var/tmp/6.8.6/template.${id}; done
# egrep '^name|bootif.*00-' $(grep -l bootif.*00- /var/tmp/6.8.6/template.*)
/var/tmp/6.8.6/template.137:name: Discovery Red Hat kexec
/var/tmp/6.8.6/template.137:  bootif = '00-' + mac.gsub(':', '-') if mac
/var/tmp/6.8.6/template.138:name: Discovery Debian kexec
/var/tmp/6.8.6/template.138:  bootif = '00-' + mac.gsub(':', '-') if mac

Comment 13 Lukas Zapletal 2021-04-19 08:04:41 UTC
That is right, I forgot about discovery workflows. The errata shipped with only bootdisk fixes.

I am creating a new BZ for this:

https://bugzilla.redhat.com/show_bug.cgi?id=1950929

Comment 14 Lukas Zapletal 2021-04-19 08:20:35 UTC
Please use a template change as a workaround until we ship fix for discovery kexec.