Actions
Bug #37935
openrake katello:reset fails with ActiveRecord:RecordNotSaved
Description
Running rake katello:reset still fails with this:
Same as last time I ran it, several months ago. Looks like it's failing at the :reset_default_smart_proxy part.
rake aborted! ActiveRecord::RecordNotSaved: Failed to save the record /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/persistence.rb:507:in `save!' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/validations.rb:53:in `save!' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/transactions.rb:302:in `block in save!' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activesupport-6.1.7.8/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activesupport-6.1.7.8/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activesupport-6.1.7.8/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activesupport-6.1.7.8/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activesupport-6.1.7.8/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/transactions.rb:350:in `with_transaction_returning_status' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/transactions.rb:302:in `save!' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/suppressor.rb:48:in `save!' /home/vagrant/katello/app/lib/katello/lazy_accessor.rb:67:in `save!' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/persistence.rb:55:in `create!' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/relation.rb:799:in `_create!' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/relation.rb:114:in `block in create!' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/relation.rb:406:in `block in scoping' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/relation.rb:804:in `_scoping' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/relation.rb:406:in `scoping' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/relation.rb:114:in `create!' /home/vagrant/foreman/.vendor/ruby/3.0.0/gems/activerecord-6.1.7.8/lib/active_record/relation.rb:123:in `first_or_create!' /home/vagrant/katello/lib/katello/tasks/reset.rake:44:in `block (2 levels) in <main>' /home/vagrant/katello/lib/katello/tasks/reset.rake:64:in `block (2 levels) in <main>'
Actions