Project

General

Profile

Bug #20427

REX doesnt start with rails 5

Added by Ohad Levy about 5 years ago. Updated about 5 years ago.

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

Description

when trying to load the plugin I'm seeing:

ArgumentError: After create callback :assign_default_templates has not been defined

/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:641:in `block (2 levels) in skip_callback'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:637:in `each'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:637:in `block in skip_callback'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:568:in `block in __update_callbacks'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:566:in `reverse_each'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:566:in `__update_callbacks'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:636:in `skip_callback'
/home/foreman/gems/bundler/gems/foreman_remote_execution-bee87c9ab0bd/app/models/concerns/foreman_remote_execution/taxonomy_extensions.rb:12:in `block in <module:TaxonomyExtensions>'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/concern.rb:120:in `class_eval'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/concern.rb:120:in `append_features'
/home/foreman/gems/bundler/gems/foreman_remote_execution-bee87c9ab0bd/lib/foreman_remote_execution/engine.rb:145:in `include'
/home/foreman/gems/bundler/gems/foreman_remote_execution-bee87c9ab0bd/lib/foreman_remote_execution/engine.rb:145:in `block (2 levels) in <class:Engine>'
/home/foreman/gems/bundler/gems/foreman_remote_execution-bee87c9ab0bd/lib/foreman_remote_execution/engine.rb:145:in `each'
/home/foreman/gems/bundler/gems/foreman_remote_execution-bee87c9ab0bd/lib/foreman_remote_execution/engine.rb:145:in `block in <class:Engine>'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:396:in `instance_exec'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:396:in `block in make_lambda'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:169:in `block (2 levels) in halting'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:547:in `block (2 levels) in default_terminator'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:546:in `catch'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:546:in `block in default_terminator'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:170:in `block in halting'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:454:in `block in call'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:454:in `each'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:454:in `call'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:750:in `_run_prepare_callbacks'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/callbacks.rb:90:in `run_callbacks'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/reloader.rb:87:in `prepare!'
/home/foreman/gems/gems/railties-5.0.4/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
/home/foreman/gems/gems/railties-5.0.4/lib/rails/initializable.rb:30:in `instance_exec'
/home/foreman/gems/gems/railties-5.0.4/lib/rails/initializable.rb:30:in `run'
/home/foreman/gems/gems/railties-5.0.4/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/foreman/gems/gems/railties-5.0.4/lib/rails/initializable.rb:54:in `run_initializers'
/home/foreman/gems/gems/railties-5.0.4/lib/rails/application.rb:352:in `initialize!'
/home/foreman/gems/gems/railties-5.0.4/lib/rails/railtie.rb:193:in `public_send'
/home/foreman/gems/gems/railties-5.0.4/lib/rails/railtie.rb:193:in `method_missing'
/home/foreman/git/foreman/config/environment.rb:5:in `<top (required)>'
/home/foreman/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/foreman/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/dependencies.rb:293:in `block in require'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/dependencies.rb:259:in `load_dependency'
/home/foreman/gems/gems/activesupport-5.0.4/lib/active_support/dependencies.rb:293:in `require'
/home/foreman/gems/gems/railties-5.0.4/lib/rails/application.rb:328:in `require_environment!'
/home/foreman/gems/gems/railties-5.0.4/lib/rails/application.rb:448:in `block in run_tasks_blocks'
/home/foreman/gems/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/home/foreman/gems/gems/bundler-1.15.3/lib/bundler/cli/exec.rb:74:in `load'
/home/foreman/gems/gems/bundler-1.15.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/home/foreman/gems/gems/bundler-1.15.3/lib/bundler/cli/exec.rb:27:in `run'
/home/foreman/gems/gems/bundler-1.15.3/lib/bundler/cli.rb:365:in `exec'
/home/foreman/gems/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/foreman/gems/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/foreman/gems/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'
/home/foreman/gems/gems/bundler-1.15.3/lib/bundler/cli.rb:22:in `dispatch'
/home/foreman/gems/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'
/home/foreman/gems/gems/bundler-1.15.3/lib/bundler/cli.rb:13:in `start'
/home/foreman/gems/gems/bundler-1.15.3/exe/bundle:30:in `block in <top (required)>'
/home/foreman/gems/gems/bundler-1.15.3/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
/home/foreman/gems/gems/bundler-1.15.3/exe/bundle:22:in `<top (required)>'
/opt/rh/rh-ruby24/root/usr/bin/bundle:22:in `load'
/opt/rh/rh-ruby24/root/usr/bin/bundle:22:in `<main>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)


Related issues

Related to Foreman Remote Execution - Bug #21168: Can't create a locationClosed2017-10-02
Blocks Foreman - Tracker #15715: Rails 5.0 upgrade tasksResolved2016-07-18

Blocks Foreman Remote Execution - Bug #20254: REX tests fail to run with rails 5Resolved2017-07-10

Associated revisions

Revision 82627b3c (diff)
Added by Adam Ruzicka about 5 years ago

Fixes #20427 - Compatibility fix for rails 5

History

#1 Updated by Tomer Brisker about 5 years ago

#2 Updated by The Foreman Bot about 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Adam Ruzicka
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/273 added

#3 Updated by Adam Ruzicka about 5 years ago

  • Blocks Bug #20254: REX tests fail to run with rails 5 added

#4 Updated by Ivan Necas about 5 years ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Adam Ruzicka about 5 years ago

  • Related to Bug #21168: Can't create a location added

Also available in: Atom PDF