Project

General

Profile

Bug #23154

rake katello:reset errors with `Setting::Auth is marked as readonly`

Added by Andrew Kofink over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
trivial
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Found in nightly

rake aborted!                                                                                                                                                                                                                                 ActiveRecord::ReadOnlyRecord: Setting::Auth is marked as readonly                                                                                                                                                                             /home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/persistence.rb:615:in `_raise_readonly_record_error'                                                                                                             
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/persistence.rb:562:in `create_or_update'                                                                                                                         /home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/callbacks.rb:336:in `block in create_or_update'                                                                                                                  
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:131:in `run_callbacks'                                                                                                                            /home/vagrant/.rvm/gems/ruby-2.4.1/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:827:in `_run_save_callbacks'                                                                                                                      /home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/callbacks.rb:336:in `create_or_update'                                                                                                                           
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/persistence.rb:162:in `save!'                                                                                                                                    
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/validations.rb:50:in `save!'                                                                                                                                     
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/attribute_methods/dirty.rb:43:in `save!'                                                                                                                         
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/transactions.rb:313:in `block in save!'                                                                                                                          
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/transactions.rb:384:in `block in with_transaction_returning_status'                                                                                              
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'                                                                                
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'                                                                             /home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'                                                                                      
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'                                                                                         
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/transactions.rb:210:in `transaction'                                                                                                                             
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/transactions.rb:381:in `with_transaction_returning_status'                                                                                                       
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/transactions.rb:313:in `save!'                                                                                                                                   
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/activerecord-5.1.4/lib/active_record/suppressor.rb:46:in `save!'                                                                                                                                      
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/bullet-5.7.5/lib/bullet/active_record5.rb:14:in `save!'                                                                                                                                               
/home/vagrant/foreman/app/models/setting.rb:111:in `[]='                                                                                                                                                                                      
/home/vagrant/katello/lib/katello/tasks/reset.rake:32:in `block (2 levels) in <top (required)>'                                                                                                                                               
/home/vagrant/katello/lib/katello/tasks/reset.rake:55:in `block (2 levels) in <top (required)>'                                                                                                                                               
/home/vagrant/.rvm/gems/ruby-2.4.1/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'                                                                                                                                                         
/home/vagrant/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'                                                                                                                                                                     
/home/vagrant/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'                                                                                                                                                                   
Tasks: TOP => katello:reset_default_smart_proxy

Related issues

Related to Katello - Bug #12735: katello:reset breaks capsule on dev environmentClosed2015-12-07

Associated revisions

Revision 60aecb8b (diff)
Added by Andrew Kofink over 3 years ago

Fixes #23154: rm Setting['ssl_*'] in katello:reset

This is now set in foreman/config/settings.yaml as of
puppet-katello_devel c76572d87

History

#1 Updated by Andrew Kofink over 3 years ago

  • Related to Bug #12735: katello:reset breaks capsule on dev environment added

#2 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7293 added

#3 Updated by Andrew Kofink over 3 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#4 Updated by Justin Sherrill over 3 years ago

  • Legacy Backlogs Release (now unused) set to 338

Also available in: Atom PDF