Satellite's delete_orphaned_content task fails with "'Errata' object has no attribute 'get'"

Solution In Progress - Updated -


  • Red Hat Satellite's weekly internal cleanup of orphaned pulp objects fails with a backtrace, which is visible in both the Actions::Katello::OrphanCleanup::RemoveOrphans foreman task, or the /var/log/messages of the Capsule being cleaned up.
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/celery/app/", line 367, in trace_task
        R = retval = fun(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/async/", line 686, in __call__
        return super(Task, self).__call__(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/async/", line 108, in __call__
        return super(PulpTask, self).__call__(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/celery/app/", line 622, in __protected_call__
        return*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/managers/content/", line 178, in delete_all_orphans
        count = OrphanManager.delete_orphan_content_units_by_type(content_type_id)
      File "/usr/lib/python2.7/site-packages/pulp/server/managers/content/", line 314, in delete_orphan_content_units_by_type
      File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/db/", line 1314, in do_post_delete_actions
    AttributeError: 'Errata' object has no attribute 'get'
  • Capsules experiencing this failure begin returning "404 not found" to Content Hosts attempting to retrieve repository metadata, as seen in the /var/log/httpd/pulp-https_access_ssl.log. (Note: there are other circumstances that can cause repomd.xml to not be found, but this issue is focused on when it happens shortly after the above failed orphan cleanup.)


  • Red Hat Satellite 6.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content