Provisioning RHEL8 without AppStream kickstart repo fails to install redhat-lsb-core and wget packages
Environment
- Red Hat Satellite 6
- Red Hat Enterprise Linux 8
Issue
- Provisioning of Red Hat Enterprise Linux 8 client via Red Hat Satellite 6 Server fails if the AppStream kickstart repository is not enabled.
Resolution
- Sync and add the following repositories to the Content View and then
Publishit.
Red Hat Enterprise Linux 8 for x86_64 - AppStream Kickstart x86_64 8.x
Red Hat Enterprise Linux 8 for x86_64 - BaseOS Kickstart x86_64 8.x
NOTE: Content View needs to be promoted when using a different LifeCycle Environment other than Library.
-
Cancelthe current build and click onBuildagain to reflect the new changes when the kickstart file is rendered from Host Properties > Templates tab > click on drop-down againstProvisioning templateand clickReview, which shows an additionalrepoline in the kickstart.url --url http://satellite.example.com/pulp/repos/Default_Organization/Library/RHEL8/content/dist/rhel8/8.4/x86_64/baseos/kickstart/ repo --name Red_Hat_Enterprise_Linux_8_for_x86_64_-_AppStream_Kickstart_8 --baseurl http://satellite.example.com/pulp/repos/Default_Organization/Library/RHEL8/content/dist/rhel8/8.4/x86_64/appstream/kickstart/
Root Cause
-
Kickstart defaulttemplate that is shipped with Red Hat Satellite 6 installswgetandredhat-lsb-corepackages. -
Below is the snippet from the
%packagessection of%packages yum dhclient <% if use_ntp -%> ntp <% else -%> chrony <% end -%> wget @Core <% if os_major >= 6 -%> redhat-lsb-core <% end -%> -
wgetcommand is used to turn off the Build status of the client.# Inform the build system that we are done. echo "Informing Foreman that we are built" wget -q -O /dev/null --no-check-certificate <%= foreman_url('built') %> -
redhat-lsb-corepackages provide utilities needed for Linux Standard Base (LSB) compliant applications. It also contains requirements that ensure that all components required by LSB are installed on the system.
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