Project

General

Profile

Actions

Bug #36221

closed

Simplified ACS update fails to remove products if product has any empty URL repos

Added by Samir Jha almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Alternate Content Sources
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

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
Actions #2

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
Actions #3

Updated by Ian Ballou over 1 year ago

Actions #4

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.

Actions #5

Updated by Quinn James over 1 year ago

  • Triaged changed from No to Yes
Actions #6

Updated by Ian Ballou over 1 year ago

  • Bugzilla link set to 2214331
Actions #7

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
Actions #8

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.10.0 added
Actions #9

Updated by Samir Jha over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF