Project

General

Profile

Actions

Bug #12288

closed

Getting ugly error if no proxy can be used

Added by Marek Hulán over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Fixed in Releases:
Found in Releases:

Description

When I trigger execution as a user that does not have permission to see any proxy I see the execution failing. Going to job task and navigating to subtask I see following trace in output, while in Errors tab I see this nice exception "RuntimeError: Could not use any proxy. Consider configuring remote_execution_global_proxy or remote_execution_fallback_proxy in setting"

undefined method `live_output' for nil:NilClass (NoMethodError)
/home/ares/Projekty/Zdrojaky/foreman_remote_execution/app/lib/actions/remote_execution/run_host_job.rb:38:in `live_output'
/home/ares/Projekty/Zdrojaky/foreman_remote_execution/app/lib/actions/remote_execution/run_host_job.rb:34:in `humanized_output'
/home/ares/Projekty/Zdrojaky/foreman-tasks/app/models/foreman_tasks/task/dynflow_task.rb:94:in `get_humanized'
/home/ares/Projekty/Zdrojaky/foreman-tasks/app/models/foreman_tasks/task/dynflow_task.rb:70:in `humanized'
/home/ares/Projekty/Zdrojaky/foreman-tasks/app/views/foreman_tasks/tasks/_details.html.erb:92:in `_4daddedca8198c6be0f4b221a9a92908'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/template.rb:145:in `block in render'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.22/lib/active_support/notifications.rb:125:in `instrument'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/template.rb:143:in `render'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/deface-0.9.1/lib/deface/action_view_extensions.rb:37:in `render'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `block in instrument'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `instrument'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/renderer/partial_renderer.rb:237:in `render'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/renderer/renderer.rb:41:in `render_partial'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/renderer/renderer.rb:15:in `render'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/helpers/rendering_helper.rb:24:in `render'
/home/ares/Projekty/Zdrojaky/foreman-tasks/app/views/foreman_tasks/tasks/show.html.erb:96:in `block in _f0b2ab656406b57c1067e7365a5dc2c3'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/helpers/capture_helper.rb:40:in `capture'
/home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_view/helpers/form_helper.rb:378:in `form_for'
/home/ares/Projekty/Zdrojaky/foreman/app/helpers/layout_helper.rb:400:in `form_for'

Related issues 3 (0 open3 closed)

Related to Foreman Remote Execution - Bug #12268: error message not presented to user on failure to find proxyDuplicate10/22/2015Actions
Has duplicate Foreman Remote Execution - Bug #12220: Undecipherable failure when Dynflow proxy is not availableDuplicateStephen Benjamin10/20/2015Actions
Has duplicate Foreman Remote Execution - Bug #12307: no indication when proxy is unreachableDuplicate10/26/2015Actions
Actions #1

Updated by Marek Hulán over 8 years ago

  • Related to Bug #12268: error message not presented to user on failure to find proxy added
Actions #2

Updated by Stephen Benjamin over 8 years ago

  • Has duplicate Bug #12220: Undecipherable failure when Dynflow proxy is not available added
Actions #3

Updated by Stephen Benjamin over 8 years ago

  • Has duplicate Bug #12307: no indication when proxy is unreachable added
Actions #4

Updated by Ivan Necas over 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Ivan Necas
  • Target version set to 92
Actions #5

Updated by Ivan Necas over 8 years ago

  • Target version changed from 92 to 87
Actions #6

Updated by The Foreman Bot over 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/73 added
Actions #7

Updated by Ivan Necas over 8 years ago

  • Status changed from Ready For Testing to Assigned
  • Target version changed from 87 to 92

Although, the PR https://github.com/theforeman/foreman_remote_execution/pull/73 helps with the actual error message, the linking from the host list to the failed tasks is still missing, and will be subject of another PR

Actions #8

Updated by The Foreman Bot over 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/74 added
Actions #9

Updated by Ivan Necas over 8 years ago

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

Updated by Marek Hulán over 8 years ago

  • translation missing: en.field_release set to 107
Actions

Also available in: Atom PDF