Yum upgrade failing due to unavailability of latest packages to client host registered to Red Hat Satellite 6.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.x

Issue

  • The yum upgrade command gives the below error:
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

  • Re-sync the repositories on the Red Hat Satellite WebUI to obtain the latest packages:
    • On the Red Hat Satellite WebUI, go to Content -> Sync status -> check the box of the required repository -> click on Synchronize Now.
    • Once the synchronization is completed, publish and promote the Content View associated with the Host.

Root Cause

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

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 by,
    - Content > Packages > Search by the Package Name.
  • In the Content View,
    - Content > Content View > Select the content view and version > Packages > Search by the Package Name.

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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.