Katello::Errors::CandlepinError: Unable to find content with the ID XXX

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.10 and above

Issue

  • Due to unknown circumstances the data in Candlepin may get in an inconsistent state which blocks some tasks, resulting in a Paused task with the error:

    Katello::Errors::CandlepinError: Unable to find content with the ID XXX
    
  • Issue was observed in 2 specific scenarios:

    • While deleting a repository on Satellite server.
    • During manifest refresh.

Resolution

  • This issue was reported to the Red Hat Engineering team via Bugzilla This content is not included.2032040 and the behavior has been greatly enhanced in the latest versions of Red Hat Satellite 6.11 and above. It has further been reported via This content is not included.JIRA SAT-22966 to improve the behavior of the problem.

  • If it occurs while working with a content view or a repository, it can be handled in two different ways.

Solution 1: Work with the orphaned repositories(s)\product(s)

  • As explained in the root cause section, The issue with one repo can occur due to another unrelated broken repository, specifically when the other repository is marked as Orphaned.
  • Identify the orphaned repository and product from the Content --> Products page or Content --> Sync Status page in Satellite WebUI.

  • And then

    • Either, fix their Orphaned status by ensuring the the subscription manifest imported in satellite has the expected subscription to support that repository\product offering.
    • Or, Delete\Remove that Orphaned repository.
  • Once the Orphaned object has been dealt with, Resume the existing related task that had failed earlier and wait for its completion.

Solution 2: To be used when Solution 1 is not possible to implement

  • Go to the concerning tasks and Skip the ERROR sub-task & Resume the task again:

    • Satellite Web UI -> Monitor -> Tasks -> Search for the concerned task

    • Click on the DynFlow Console button and check both the Run and Finalize tabs for the sub-task.

    • Skip the ERROR sub-task ( usually it's the Actions::Candlepin::Environment::SetContent one ) & Resume the main task Status again:

 

Reach out to This content is not included.Red Hat Technical Support for any further assistance required.

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 Manifest Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Manifest Issues

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

Root Cause

  • One or more repositories exist in Satellite, for which the corresponding content does not exist in Candlepin. This may be because of a previously failed task.

  • This is usually noticeable when a repository or its parent product has been marked as *Orphaned due to the absence of required subscriptions in the subscription manifest.

    • When it's observed that the Repo A is affected but has no direct relation with the orphaned Repo B, The only reason Repo A is affected is because both the repositories are part of the same content-view version(s).

Diagnostic Steps

  • The content is missing in the Candlepin DB:

    # su - postgres -c "psql candlepin -c \"select uuid, content_id, contentUrl, label, type, vendor from cp2_content where content_id = 'xxxx'\""
    
  • But it's still referenced by some root repositories:

    # su - postgres -c "psql foreman -c \"select * from katello_root_repositories where content_id = 'xxxx'\""
    
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.