Project

General

Profile

Actions

Bug #2812

closed

method `lookup_values_attributes=' not defined in Host::Managed (NameError)

Added by Dominic Cleal over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Rails
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Currently nightlies (0b547e8) are failing on Foreman startup with the following error:

method `lookup_values_attributes=' not defined in Host::Managed (NameError)
  /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/nested_attributes.rb:285:in `remove_method'
  /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/nested_attributes.rb:285:in `block in accepts_nested_attributes_for'
  /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/nested_attributes.rb:283:in `class_eval'
  /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/nested_attributes.rb:283:in `block in accepts_nested_attributes_for'
  /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/nested_attributes.rb:269:in `each'
  /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/nested_attributes.rb:269:in `accepts_nested_attributes_for'
  /usr/share/foreman/app/models/concerns/host_common.rb:22:in `block in <module:HostCommon>'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/concern.rb:119:in `class_eval'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/concern.rb:119:in `append_features'
  /usr/share/foreman/app/models/host/managed.rb:44:in `include'
  /usr/share/foreman/app/models/host/managed.rb:44:in `<class:Managed>'
  /usr/share/foreman/app/models/host/managed.rb:1:in `<top (required)>'
  /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
  /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:359:in `require_or_load'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:313:in `depend_on'
  /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:225:in `require_dependency'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:438:in `each'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:438:in `block in eager_load!'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:436:in `each'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:436:in `eager_load!'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
  /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
  /usr/share/foreman/config/environment.rb:5:in `<top (required)>'
  /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
  /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
  config.ru:3:in `block in <main>'
  /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
  /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in `eval'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in `preload_app'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in `<module:App>'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in `<module:PhusionPassenger>'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in `<main>'

Related issues 1 (0 open1 closed)

Related to Foreman - Refactor #2739: ActiveSupport::Concern syntax to mixinsClosedJoseph Magen07/03/2013Actions
Actions #1

Updated by Joseph Magen over 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Joseph Magen
Actions #2

Updated by Dominic Cleal over 10 years ago

  • Status changed from Assigned to Ready For Testing
Actions #3

Updated by Joseph Magen over 10 years ago

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

Also available in: Atom PDF