Bug #33354
closedRepository Clear failed
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
Files