How do I check the sync status of Red Hat Satellite 6 Capsule repos?

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.9 or older

Issue

  • How do I check the sync status of Red Hat Satellite 6 Capsule repos?

Resolution

Simplified way

  • Go to WebUI -> Monitor -> Tasks
  • apply filter "label == Actions::Katello::CapsuleContent::Sync" for dedicated capsule sync, or filter "label == Actions::Katello::ContentView::CapsuleGenerateAndSync" for capsule sync triggered by content view updates.\
  • check details of the tasks by clicking on them -> button "Dynflow console" -> expand the steps for details

More detailed way

  • Install pulp-admin package on the capsule
  • Identify the username and password pulp is using on this capsule
# grep ^default /etc/pulp/server.conf
default_login: admin
default_password: <password>
  • The run pulp-admin command as follows
# pulp-admin --username=admin --password=<password> repo list
  • This will provide status information on the repos. For example...
Id:                  org-example-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterpr
                     ise_Linux_7_Server_RPMs_x86_64_7Server
Display Name:        Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server
Description:         None
Content Unit Counts: 
  Erratum:                621
  Package Category:       9
  Package Environment:    6
  Package Group:          71
  Rpm:                    7407
  Yum Repo Metadata File: 1
  • Examine the same repository via the Satellite GUI under
Content > Product > Red Hat Enterprise Linux Server > Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server
  • If the capsule has synchronized properly the counts for Erratum and RPM should match what is displayed in the GUI.

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

Diagnostic Steps

  • You can further examine the sync history of a specific repository. Select a repository id from the output of the pulp-admin repo list command, then run the following command
# pulp-admin --username=admin --password=<password> repo history sync --repo-id org-example-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server
Repo Id:       org-example-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Li
               nux_7_Server_RPMs_x86_64_7Server
Result:        success
Started:       2015-08-17T22:18:00Z
Completed:     2015-08-17T22:22:01Z
Added Count:   99
Removed Count: 0
Updated Count: 8016

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