Project

General

Profile

Actions

Bug #21081

closed

"Gem Load Error is: uninitialized constant Foreman::Dynflow" when running zeus with foreman-tasks

Added by Ivan Necas about 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman plugin
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When using zues with foreman-tasks loaded, I was getting errors with environment
initialization

Gem Load Error is: uninitialized constant Foreman::Dynflow
Backtrace for gem load error is:
/home/inecas/Projects/ws/foreman-rex/foreman-tasks/lib/foreman_tasks/dynflow/configuration.rb:8:in `<module:ForemanTasks>'
/home/inecas/Projects/ws/foreman-rex/foreman-tasks/lib/foreman_tasks/dynflow/configuration.rb:6:in `<top (required)>'
/home/inecas/Projects/ws/foreman-rex/foreman-tasks/lib/foreman_tasks.rb:5:in `<top (required)>'
/home/inecas/Projects/ws/foreman-rex/foreman-tasks/lib/foreman-tasks.rb:1:in `<top (required)>'
/home/inecas/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/runtime.rb:82:in `require'
/home/inecas/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/runtime.rb:82:in `block (2 levels) in require'
/home/inecas/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.15.4/lib/bundler/runtime.rb:77:in `each'

The issue was we were trying to access a class that was not loaded yet. Not sure why we were not seeing
this error anywhere else but the fix should be being more explicit when loading something from the Foreman.

Actions #1

Updated by The Foreman Bot about 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/286 added
Actions #2

Updated by Ivan Necas about 7 years ago

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

Updated by Ivan Necas about 7 years ago

  • Translation missing: en.field_release set to 315
Actions

Also available in: Atom PDF