Project

General

Profile

Bug #11098

undefined method `values' for #<Array:..> error on startup on EL6

Added by Dominic Cleal about 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
High
Category:
Core
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Our EL6 (Ruby 1.8.7) tests are failing with the following error during smart proxy startup on a default installation, since #7008:

W, [2015-07-13T09:07:36.933505 #8823]  WARN -- : Couldn't find settings file /etc/foreman-proxy/settings.d/foreman_proxy.yml. Using default settings.
I, [2015-07-13T09:07:36.933627 #8823]  INFO -- : 'foreman_proxy' settings were initialized with default values: :enabled: true
I, [2015-07-13T09:07:36.936062 #8823]  INFO -- : Finished initialization of module 'foreman_proxy'
I, [2015-07-13T09:07:36.936175 #8823]  INFO -- : 'facts' module is disabled.
I, [2015-07-13T09:07:36.936321 #8823]  INFO -- : 'dns_nsupdate' settings were initialized with default values: :enabled: false
I, [2015-07-13T09:07:36.938919 #8823]  INFO -- : 'dns' module is disabled.
I, [2015-07-13T09:07:36.939064 #8823]  INFO -- : 'templates' module is disabled.
I, [2015-07-13T09:07:36.941360 #8823]  INFO -- : Finished initialization of module 'tftp'
I, [2015-07-13T09:07:36.941510 #8823]  INFO -- : 'dhcp' module is disabled.
I, [2015-07-13T09:07:37.121047 #8823]  INFO -- : Finished initialization of module 'puppetca'
I, [2015-07-13T09:07:37.121553 #8823]  INFO -- : 'puppet' settings were initialized with default values: :cache_location: /usr/share/foreman-proxy/cache, :puppet_provider: puppetrun, :puppetdir: /etc/puppet, :salt_puppetrun_cmd: puppet.run, :use_cache: true
I, [2015-07-13T09:07:37.124232 #8823]  INFO -- : Finished initialization of module 'puppet'
I, [2015-07-13T09:07:37.124398 #8823]  INFO -- : 'bmc' module is disabled.
I, [2015-07-13T09:07:37.124594 #8823]  INFO -- : 'realm' module is disabled.
E, [2015-07-13T09:07:37.124769 #8823] ERROR -- : Unable to access the SSL keys. Are the values correct in settings.yml and do permissions allow reading?: undefined method `values' for #<Array:0x7fbaeeee5bf0>
E, [2015-07-13T09:07:37.124807 #8823] ERROR -- : Both http and https are disabled, unable to start.

Related issues

Related to Smart Proxy - Feature #7008: Add providers to existing proxy modules from a plugin/moduleClosed2014-08-09

Associated revisions

Revision 0eb81790 (diff)
Added by Dmitri Dolguikh about 7 years ago

fixes #11098: fixed ruby 1.8-specific issues around plugin and provider searches

History

#1 Updated by Dominic Cleal about 7 years ago

  • Related to Feature #7008: Add providers to existing proxy modules from a plugin/module added

#2 Updated by Dmitri Dolguikh about 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Dmitri Dolguikh

#3 Updated by Dominic Cleal about 7 years ago

/usr/share/foreman-proxy/lib/proxy/plugin.rb:65:in `enabled_plugins': undefined method `values' for #<Array:0x7f6d01b57ca8> (NoMethodError)
        from /usr/share/foreman-proxy/lib/smart_proxy.rb:108:in `https_app'
        from /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval'
        from /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize'
        from /usr/share/foreman-proxy/lib/smart_proxy.rb:107:in `new'
        from /usr/share/foreman-proxy/lib/smart_proxy.rb:107:in `https_app'
        from /usr/share/foreman-proxy/lib/smart_proxy.rb:135:in `launch'
        from /usr/share/foreman-proxy/bin/smart-proxy:6

#4 Updated by The Foreman Bot about 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/301 added
  • Pull request deleted ()

#5 Updated by Dominic Cleal about 7 years ago

  • Legacy Backlogs Release (now unused) set to 63

#6 Updated by Anonymous about 7 years ago

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

Also available in: Atom PDF