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 2214331 - Simplified ACS update fails to remove products if product has any empty URL repos
Summary: Simplified ACS update fails to remove products if product has any empty URL r...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Alternate Content Sources
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.15.0
Assignee: Samir Jha
QA Contact: Vladimír Sedmík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-12 16:30 UTC by Ian Ballou
Modified: 2024-04-23 17:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-23 17:11:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36221 0 Normal New Simplified ACS update fails to remove products if product has any empty URL repos 2023-06-12 16:30:44 UTC
Red Hat Issue Tracker SAT-16982 0 None None None 2023-06-15 14:26:41 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:11:25 UTC

Description Ian Ballou 2023-06-12 16:30:43 UTC
Steps tp reproduce:
Create a product.
Create a yum repository with URL, sync and everything you'd do normally.
Create another yum repo without a URL.

Create a simplified ACS and add the product to it.
Try removing that product from the ACS. It fails.

<pre>
undefined method `smart_proxy_id' for nil:NilClass (NoMethodError)
/usr/share/gems/gems/katello-4.7.0.23/app/lib/actions/pulp3/alternate_content_source/delete.rb:6:in `plan'
</pre>

We probably need to test presence of smart_proxy_acs before planning Pulp3::Orchestration::AlternateContentSource::Delete here: https://github.com/Katello/katello/blob/449e319762f962c33dafd8b123f3f7f1d9feb1f5/app/lib/actions/katello/alternate_content_source/update.rb#L74

Comment 1 Ian Ballou 2023-06-12 16:30:47 UTC
Created from redmine issue https://projects.theforeman.org/issues/36221

Comment 2 Ian Ballou 2023-06-12 16:30:48 UTC
Upstream bug assigned to None

Comment 3 Ian Ballou 2023-06-12 16:32:41 UTC
This is not a regression. It's a bug from when simplified ACSs were introduced. It's not very likely that a user will hit the bug -- they'd have to have a custom repository that later has its upstream URL removed.

Comment 5 Brad Buckingham 2023-06-15 14:25:03 UTC
Should this be on ACS vs Subscription Management?

Comment 6 Ian Ballou 2023-06-20 13:33:19 UTC
I moved it to ACS, looks like redmine to bugzilla sync has a bug

Comment 7 Bryan Kearney 2023-07-06 12:03:05 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36221 has been resolved.

Comment 8 Brad Buckingham 2023-10-30 11:29:29 UTC
Bulk setting Target Milestone = 6.15.0 where sat-6.15.0+ is set.

Comment 9 Vladimír Sedmík 2024-01-23 11:18:13 UTC
Reproduced in 6.14.2 snap 1, verified in 6.15.0 snap 7.0 - product with combined repos (with and without url) can be added and removed from the Simplified ACS without errors. Also, if the upstream url is removed from the repository later, the containing product is removed from the ACS automatically.

Comment 12 errata-xmlrpc 2024-04-23 17:11:25 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.15.0 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-2024:2010


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