Bug #36221
closedSimplified ACS update fails to remove products if product has any empty URL repos
Description
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.
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'
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
Files
Updated by Partha Aji almost 2 years ago
- Target version set to Katello 4.9.0
- Difficulty set to easy
- Triaged changed from No to Yes
Updated by Samir Jha over 1 year ago
- Target version changed from Katello 4.9.0 to Katello 4.10.0
- Triaged changed from Yes to No
Updated by Ian Ballou over 1 year ago
This may be a duplicate of https://projects.theforeman.org/issues/35358
Updated by Samir Jha over 1 year ago
Was able to reproduce on nightly. Valid bug. Change needed in the same line of code as bug description.
Updated by The Foreman Bot over 1 year ago
- Status changed from New to Ready For Testing
- Assignee set to Samir Jha
- Pull request https://github.com/Katello/katello/pull/10625 added
Updated by The Foreman Bot over 1 year ago
- Fixed in Releases Katello 4.10.0 added
Updated by Samir Jha over 1 year ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|80a84ae61fdef7ad838b133b5be88353523567d0.