Bug 2169322 - Reclaim space for repository fails with Cannot delete some instances of model 'Artifact' because they are referenced through protected foreign keys: 'ContentArtifact.artifact'."
Summary: Reclaim space for repository fails with Cannot delete some instances of model...
Keywords:
Status: POST
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.11.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-13 10:11 UTC by Manu Sunil
Modified: 2023-08-08 16:13 UTC (History)
9 users (show)

Fixed In Version: pulpcore-3.28.6, pulpcore-3.23.11, pulpcore-3.22.10, pulpcore-3.21.13, pulpcore-3.18.23
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Document Foundation 7009670 0 None None None 2023-05-01 00:53:25 UTC
Github pulp pulpcore issues 3610 0 None closed Reclaim space for repository fails with Cannot delete some instances of model 'Artifact' because they are referenced thr... 2023-07-28 18:05:25 UTC
Red Hat Issue Tracker SAT-15842 0 None None None 2023-02-13 14:12:50 UTC
Red Hat Knowledge Base (Solution) 7009670 0 None None None 2023-05-22 10:34:05 UTC

Description Manu Sunil 2023-02-13 10:11:14 UTC
Description of problem:

- Reclaim space for repository fails with the following error.

  ~~~
  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>})"
  ~~~

Version-Release number of selected component (if applicable):

  tfm-pulpcore-python3-pulpcore-3.16.14-1.el7pc.noarch
  tfm-pulpcore-python3-pulp-rpm-3.17.10-2.el7pc.noarch    
  satellite-6.11.4.1-1.el7sat.noarch

Actual results:


- The reclaim space task on Satellite for a repository fails with the following message

  ~~~
  023-02-10T10:36:24 [E|bac|69a59329] ("Cannot delete some instances of model 'Artifact' because they are referenced through protected foreign keys: 'ContentArtifact.artifact'.",
 {<ContentArtifact: pk=452959ad-c045-4e85-bf9f-6651ba37f57d>}) (Katello::Errors::Pulp3Error)  
  ~~~

Expected results:

- Reclaim space should complete without any errors.

Comment 7 Robin Chan 2023-07-28 18:05:26 UTC
The Pulp upstream bug status is at closed. Updating the external tracker on this bug.

Comment 8 Robin Chan 2023-07-28 18:05:29 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.


Note You need to log in before you can comment on or make changes to this bug.