Latest packages are unavailable over the host registered to Red Hat Satellite 6

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.x

Issue

  • Yum upgrade fails on hosts because of unavailability of latest packages on Satellite.

  • Unable to update RHEL Operating System to the latest version

  • Content Hosts applied to a content view is unable to see the newly synced repositories

  • The yum upgrade command gives a dependency error similar to the following:

    Error: Package: php-mysqlnd-5.4.16-43.el7_4.x86_64 (@rhel-7-server-optional-rpms)
           Requires: php-pdo(x86-64) = 5.4.16-43.el7_4
           Removing: php-pdo-5.4.16-43.el7_4.x86_64 (@rhel-7-server-rpms)
               php-pdo(x86-64) = 5.4.16-43.el7_4
           Updated By: php-pdo-5.4.16-43.el7_4.1.x86_64 (rhel-7-server-rpms)
               php-pdo(x86-64) = 5.4.16-43.el7_4.1
           Available: php-pdo-5.4.16-21.el7.x86_64 (rhel-7-server-rpms)
               php-pdo(x86-64) = 5.4.16-21.el7
    

Resolution

  • Synchronize the repositories to obtain the latest packages:

    • On the Red Hat Satellite WebUI, navigate to Content -> Sync status -> check the box of the required repository -> click on Synchronize Now.
    • Now navigate to Hosts -> Content Hosts -> Click on the client system in question and note the Content View associated with this Host.
    • If the content view is not Default Organization View, go to Content -> Content Views -> Select the Content View -> Publish New Version.
    • Once the publish task is successfully finished, navigate to Content -> Content Views -> Select the Content View -> Promote the latest version to the appropriate Environment
  • Apply proper filter on Content View:

    • On the Red Hat Satellite WebUI, navigate to Content -> Content View -> Select the Content View -> Yum Content -> Filter

For more KB articles/solutions related to Red Hat Satellite 6.x Repository Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Repository Issues.

For more KB articles/solutions related to Red Hat Satellite 6.x Content View Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Content View Issues

Root Cause

  • Repositories were not synced recently hence the latest packages weren't available.

  • Content Views Publish and Promote is required when updates on the host registered to Red Hat Satellite 6 is controlled with a Content View.

Diagnostic Steps

  • Check if the source repository of the package is enabled on the client CLI:

    # yum repolist
    
  • Check if the repository was recently synchronized on the Red Hat Satellite CLI:

    # hammer repository info --id <Repository_ID> --organization-id <Organization_ID>
    
  • Confirm the availability of the required packages on the Red Hat Satellite WebUI:

    • Content -> Packages -> Search by the Package Name.
  • Confirm if the package is available in the Content View:

    • Content -> Content Views -> Select the content view and version -> Packages -> Search by the Package Name.
    • Content -> Content Views -> Select the content view -> Yum Content -> Filters -> Check if the content view has any filter that could exclude packages.

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