Project

General

Profile

Actions

Bug #15606

closed

smart_proxy_dynflow doesn't work with smart-proxy 1.12+

Added by Dominik Hlavac Duran over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Smart Proxy Dynflow
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Problem with dynflow.yml and remote_execution_ssh.yml
Errors detected on startup, see log for details. Exiting: undefined method `settings' for #<Hash:0x00559125f893f8>

downgrade to 1.11.3 is working


Related issues 2 (0 open2 closed)

Related to Smart Proxy - Bug #15025: Warning on startup: Couldn't find settings file config/settings.d/foreman_proxy.ymlClosed05/12/2016Actions
Related to Foreman Remote Execution - Bug #15734: undefined method `settings' for #<Hash:0x005567cce19bf8>Duplicate07/19/2016Actions
Actions #1

Updated by Daniel Lobato Garcia over 8 years ago

Can you be more specific about what's failing? What's the full log? How does your settings.yml, dynflow.yml and remote_execution_ssh.yml look like?

Actions #2

Updated by Dominik Hlavac Duran over 8 years ago

In dyneflow.yml and remote_execution_ssh.yml is only
---
:enabled: true

Here is log from actual version on develop

➜ smart-proxy git:(develop) ✗ bundle exec bin/smart-proxy
D, [2016-07-08T13:11:33.109277 #8210] DEBUG -- : 'dynflow' settings: 'core_url': http://localhost:8008 (default), 'enabled': true
D, [2016-07-08T13:11:33.109598 #8210] DEBUG -- : 'ssh' settings: 'enabled': true, 'local_working_dir': /var/tmp (default), 'remote_working_dir': /var/tmp (default), 'ssh_identity_key_file': ~/.ssh/id_rsa_foreman_proxy (default), 'ssh_user': root (default)
W, [2016-07-08T13:11:33.109784 #8210] WARN -- : Couldn't find settings file /home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/config/settings.d/facts.yml. Using default settings.
W, [2016-07-08T13:11:33.109848 #8210] WARN -- : Couldn't find settings file /home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/config/settings.d/dns.yml. Using default settings.
W, [2016-07-08T13:11:33.109910 #8210] WARN -- : Couldn't find settings file /home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/config/settings.d/templates.yml. Using default settings.
W, [2016-07-08T13:11:33.109961 #8210] WARN -- : Couldn't find settings file /home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/config/settings.d/tftp.yml. Using default settings.
W, [2016-07-08T13:11:33.110012 #8210] WARN -- : Couldn't find settings file /home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/config/settings.d/dhcp.yml. Using default settings.
W, [2016-07-08T13:11:33.110052 #8210] WARN -- : Couldn't find settings file /home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/config/settings.d/puppetca.yml. Using default settings.
W, [2016-07-08T13:11:33.110091 #8210] WARN -- : Couldn't find settings file /home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/config/settings.d/puppet.yml. Using default settings.
W, [2016-07-08T13:11:33.110148 #8210] WARN -- : Couldn't find settings file /home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/config/settings.d/bmc.yml. Using default settings.
W, [2016-07-08T13:11:33.110186 #8210] WARN -- : Couldn't find settings file /home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/config/settings.d/realm.yml. Using default settings.
W, [2016-07-08T13:11:33.110225 #8210] WARN -- : Couldn't find settings file /home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/config/settings.d/logs.yml. Using default settings.
D, [2016-07-08T13:11:33.110307 #8210] DEBUG -- : 'logs' settings: 'enabled': true (default)
I, [2016-07-08T13:11:33.110592 #8210] INFO -- : Successfully initialized 'dynflow'
I, [2016-07-08T13:11:33.111204 #8210] INFO -- : Successfully initialized 'ssh'
I, [2016-07-08T13:11:33.111246 #8210] INFO -- : Successfully initialized 'foreman_proxy'
D, [2016-07-08T13:11:33.111277 #8210] DEBUG -- : Log buffer API initialized, available capacity: 2000/1000
I, [2016-07-08T13:11:33.111296 #8210] INFO -- : Successfully initialized 'logs'
E, [2016-07-08T13:11:33.112531 #8210] ERROR -- : Error during startup, terminating. undefined method `settings' for #<Hash:0x00555f12ed4ee8>
D, [2016-07-08T13:11:33.112557 #8210] DEBUG -- : ["/home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/lib/launcher.rb:21:in `instance_eval'", "/home/dominik_redhat/Dokumenty/foreman_project/smart_proxy_dynflow/lib/smart_proxy_dynflow_core/settings.rb:76:in `each'", "/home/dominik_redhat/Dokumenty/foreman_project/smart_proxy_dynflow/lib/smart_proxy_dynflow_core/settings.rb:76:in `load_from_proxy'", "(eval):4:in `block (2 levels) in http_app'", "/home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/lib/launcher.rb:21:in `instance_eval'", "/home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/lib/launcher.rb:21:in `block (2 levels) in http_app'", "/home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/lib/launcher.rb:20:in `each'", "/home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/lib/launcher.rb:20:in `block in http_app'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'", "/home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/lib/launcher.rb:19:in `new'", "/home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/lib/launcher.rb:19:in `http_app'", "/home/dominik_redhat/Dokumenty/foreman_project/smart-proxy/lib/launcher.rb:124:in `launch'", "bin/smart-proxy:6:in `<top (required)>'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'", "/home/dominik_redhat/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'", "/home/dominik_redhat/.rbenv/versions/2.2.2/bin/bundle:23:in `load'", "/home/dominik_redhat/.rbenv/versions/2.2.2/bin/bundle:23:in `<main>'"]
Errors detected on startup, see log for details. Exiting: undefined method `settings' for #<Hash:0x00555f12ed4ee8>

Actions #3

Updated by Ivan Necas over 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Ivan Necas
Actions #4

Updated by Ivan Necas over 8 years ago

  • Subject changed from Smart proxy with remote execution to smart_proxy_dynflow doesn't work with smart-proxy 1.12+
Actions #5

Updated by Ivan Necas over 8 years ago

  • Related to Bug #15025: Warning on startup: Couldn't find settings file config/settings.d/foreman_proxy.yml added
Actions #6

Updated by Ivan Necas over 8 years ago

A fix to http://projects.theforeman.org/issues/15025/ seems to have broken smart_proxy_dynflow

Actions #7

Updated by The Foreman Bot over 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/smart_proxy_dynflow/pull/24 added
Actions #8

Updated by Ivan Necas over 8 years ago

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

Updated by Marek Hulán over 8 years ago

  • Translation missing: en.field_release set to 173
Actions #10

Updated by Anonymous over 8 years ago

  • Related to Bug #15734: undefined method `settings' for #<Hash:0x005567cce19bf8> added
Actions

Also available in: Atom PDF