Red Hat Capsule synchronization status shows 50% synchronized even after synchronization has been completed.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6
  • Red Hat Capsule 6

Issue

  • Red Hat Capsule synchronization from Red Hat Satellite Web UI has been completed successfully, but still the status shows 50% synced.

  • There is no Capsule synchronization task pending in the task queue, all the synchronization tasks has been completed successfully but still the Red Hat Capsule Sync status shows 50% synced onRed Hat Satellite Web UI >> Infrastructure >> Capsule >> Select Capsule >> Overview page.

Resolution

To resolve the issue follow the steps mentioned below:

  • Execute below mentioned command on Red Hat Satellite Server to list any Red Hat Capsule synchronization tasks :

    # hammer capsule content synchronization-status --id <capsule_id> --organization-id <organization_id>
    
  • Execute below mentioned command to clean up the tasks using task ids being listed as output of the above command:

    # foreman-rake foreman_tasks:cleanup TASK_SEARCH="id = <task-id>" STATES="running,paused,stopped,suspended"
    
  • Then on affected Capsule restart the pulp worker

      # systemctl restart pulpcore-worker@*.service
    
    

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

Root Cause

  • There were some older tasks present for the Capsule Synchronization which were still in progress, thus resulting in showing the status of the Red Hat Capsule as 50% synced.

Diagnostic Steps

  • List of the tasks for synchronization will be found on the Red Hat Satellite Server as mentioned below:

     # hammer capsule content synchronization-status --id <capsule_id> --organization-id <organization_id>
    Last sync:                    2020/10/08 10:31:59
    Status:                       Capsule is synchronized
    Currently running sync tasks:
     1) Task id:  cbba33d6-e2c3-4ab4-99ec-6b7193b89b60
        Progress: 49%
     2) Task id:  cbba33d6-e2c3-4ab4-99ec-6b7193b89b60
        Progress: 49%
     3) Task id:  cbba33d6-e2c3-4ab4-99ec-6b7193b89b60
        Progress: 49%
    Last failure:
        Task id:
        Messages:
    
SBR
Product(s)
Components
Category

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.