Project

General

Profile

Bug #3670

foreman-installer fails with stacktrace

Added by Og Maciel about 9 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Installed foreman from nightly and attempted to run the installer:

[root@cloud-qe-10 ~]# foreman-installer -i
/usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/wizard.rb:165:in `setup_colors': undefined method `keys' for #<HighLine::ColorScheme:0x7fe58a52b490> (NoMethodError)
    from /usr/lib/ruby/gems/1.8/gems/highline-1.4.0/lib/highline/color_scheme.rb:56:in `initialize'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/wizard.rb:164:in `new'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/wizard.rb:164:in `setup_colors'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/wizard.rb:12:in `initialize'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:79:in `new'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:79:in `execute'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:64:in `catch'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:64:in `execute'
    from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
    from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:101:in `run'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:100:in `catch'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:100:in `run'
    from /usr/sbin/foreman-installer:45
[root@cloud-qe-10 ~]# foreman-installer
/usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/hooking.rb:17:in `execute': undefined method `yield' for #<Proc:0x00007f903537d6e8@/usr/sbin/foreman-installer:28> (NoMethodError)
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/hooking.rb:16:in `each_pair'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/hooking.rb:16:in `execute'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:263:in `run_installation'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:94:in `execute'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:64:in `catch'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:64:in `execute'
    from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
    from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:101:in `run'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:100:in `catch'
    from /usr/lib/ruby/gems/1.8/gems/kafo-0.3.0/lib/kafo/kafo_configure.rb:100:in `run'
    from /usr/sbin/foreman-installer:45

Versions:
foreman-release-1.3.9999-7.201311151217gitc67d0d8.el6.noarch
rubygem-foreman_api-0.1.8-1.el6.noarch
foreman-installer-1.3.9999-4.201311140901git76518ec.el6.noarch
rubygem-kafo-0.3.0-1.el6.noarch

Associated revisions

Revision c8851bcc (diff)
Added by Marek Hulán about 9 years ago

Fixes #3670 - Ruby 1.8 compatible hooks

Revision 8b5323dc
Added by Marek Hulán about 9 years ago

Merge pull request #41 from ares/bug/3670

Fixes #3670 - Ruby 1.8 compatible hooks

History

#1 Updated by Marek Hulán about 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Marek Hulán

#2 Updated by Marek Hulán about 9 years ago

These are actually two problems
  • one is old version of highline built for RHEL, we need 1.6.20
  • yield was added in Ruby 1.9 and installer is executed out of SCL

#3 Updated by Marek Hulán about 9 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

#4 Updated by Marek Hulán about 9 years ago

  • Status changed from Closed to Assigned
  • % Done changed from 100 to 90

reopening since it's not released yet, also new highline is not in repo yet

#5 Updated by Marek Hulán about 9 years ago

  • Status changed from Assigned to Closed
  • Target version set to 1.10.0
  • % Done changed from 90 to 100

Merged and released in kafo 0.3.1

Also available in: Atom PDF