Reclaim space for repository on Red Hat Satellite fails with Cannot delete some instances of model 'Artifact' because they are referenced through protected foreign keys ContentArtifact.artifact error.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.11

Issue

  • Reclaim space for repository fails with the following error on Red Hat Satellite.

    Task paused with error: "("Cannot delete some instances of model 'Artifact' because they are referenced through protected foreign keys: 'ContentArtifact.artifact'.", {<ContentArtifact: pk=452959ad-c045-4e85-bf9f-6651ba37f57d>})"
    

Resolution

  • This is a known issue and currently being tracked under Public Red Hat Bugzilla # 2169322.

  • For more information, open a support case with Red Hat Technical Support Team.

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