Actions
Bug #12288
closedGetting ugly error if no proxy can be used
Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
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'
Actions