Provisioning RHEL8 without AppStream kickstart repo fails to install redhat-lsb-core and wget packages

Solution Verified - Updated -

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 Publish it.
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.

  • Cancel the current build and click on Build again to reflect the new changes when the kickstart file is rendered from Host Properties > Templates tab > click on drop-down against Provisioning template and click Review, which shows an additional repo line 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 default template that is shipped with Red Hat Satellite 6 installs wget and redhat-lsb-core packages.

  • Below is the snippet from the %packages section of

    %packages
    yum
    dhclient
    <% if use_ntp -%>
    ntp
    <% else -%>
    chrony
    <% end -%>
    wget
    @Core
    <% if os_major >= 6 -%>
    redhat-lsb-core
    <% end -%>
    
  • wget command 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-core packages 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