Project

General

Profile

Bug #33354

Repository Clear failed

Added by Bernhard Suttner 9 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

When attempting to generate an incremental update of the associated content views from the Debian 10 errata DSA-4873-1, the task stopped (paused) with the following error:

=== BEGIN ===
Action:
Actions::Pulp::Repository::Clear
Input: {"repo_id"=>898,
"smart_proxy_id"=>1,
"remote_user"=>"admin",
"remote_cp_user"=>"admin",
"current_request_id"=>nil,
"current_timezone"=>"Europe/Berlin",
"current_user_id"=>5,
"current_organization_id"=>1,
"current_location_id"=>3}
Output: {}
Exception:
ActiveRecord::RecordNotFound: Couldn't find SmartProxy with 'id'=1 [WHERE (smart_proxies.id IN (2))]
Backtrace:
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/relation/finder_methods.rb:339:in `raise_record_not_found_exception!'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/relation/finder_methods.rb:451:in `find_one'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/relation/finder_methods.rb:433:in `find_with_ids'

By temporarily assigning Smart Proxy #1 (Katello main instance) to Location #3, where the host and Smart Proxy #2 selected in the errata are located, the task could be continued and successfully completed.
When starting the Incremental Update, location #3 was selected in the dropdown at the top.

See Foreman Task Dynflow screenshot

repo-clear.png View repo-clear.png 1.48 MB Bernhard Suttner, 08/26/2021 11:35 AM
Repo clear

Associated revisions

Revision 6c85818a (diff)
Added by Bernhard Suttner 9 months ago

Fixes #33354 - unscoped smart proxy find for repo::clear

History

#1 Updated by The Foreman Bot 9 months ago

  • Assignee set to Bernhard Suttner
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9581 added

#2 Updated by The Foreman Bot 9 months ago

  • Fixed in Releases Katello 4.3.0 added

#3 Updated by Anonymous 9 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Justin Sherrill 9 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.3.0
  • Category set to Content Views

Also available in: Atom PDF