Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2175226 - Cannot force delete repositories that are included in export content view versions
Summary: Cannot force delete repositories that are included in export content view ver...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.13.0
Assignee: Samir Jha
QA Contact: Sam Bible
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-03 15:40 UTC by Samir Jha
Modified: 2024-02-08 19:38 UTC (History)
3 users (show)

Fixed In Version: rubygem-katello-4.7.0.19-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-03 13:25:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36123 0 Normal Ready For Testing Cannot force delete repositories that are included in export content view versions 2023-03-03 15:40:22 UTC
Red Hat Issue Tracker SAT-16095 0 None None None 2023-05-11 12:36:53 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:25:23 UTC

Description Samir Jha 2023-03-03 15:40:21 UTC
To reproduce:

1) Create a CVV with a repository and export it (I used the syncable format, not sure if it matters).
2) Export the repository and library in two other exports.
3) Try to delete the repository from its details page. After the delete modal pops up, delete it, and it will fail. I believe in the finalize step.

The error will complain about library_instances_inverse.

Normal, non-generated content views do work with forced repo deletion.

Comment 1 Samir Jha 2023-03-03 15:40:24 UTC
Created from redmine issue https://projects.theforeman.org/issues/36123

Comment 2 Samir Jha 2023-03-03 15:40:25 UTC
Upstream bug assigned to None

Comment 3 Bryan Kearney 2023-03-03 20:03:32 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36123 has been resolved.

Comment 5 Sam Bible 2023-03-14 18:22:42 UTC
Verified on 6.13 - Snap 14

Steps to Verify (From https://github.com/Katello/katello/pull/10474, thanks Samir):
1. Create a yum repo (repo_to_export) and sync.
2. Create a CV, add the repo and publish
3. Run the following exports for library, the repo and content view version in hammer:
   hammer content-export complete library --organization="Default Organization"
   hammer content-export complete library --organization="Default Organization" --format=syncable   
   hammer content-export complete repository --name="repo_to_export" --product="product_name" --organization="Default Organization"
   hammer content-export complete repository --name="repo_to_export" --product="prod" --organization="Default Organization" --format=syncable
   hammer content-export complete version --content-view="cv_to_export" --version=1.0 --organization="Default Organization"
   hammer content-export complete version --content-view="cv_to_export" --version=1.0 --organization="Default Organization" --format=syncable
4. Navigate to the repo's Details page and click Remove Repository, checking the box in the modal.

Expected Results:
The repo is correctly forcibly deleted.

Actual Results
The repo was correctly forcibly deleted.

Comment 8 errata-xmlrpc 2023-05-03 13:25:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.13 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2097


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