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'
Updated by Marek Hulán about 9 years ago
- Related to Bug #12268: error message not presented to user on failure to find proxy added
Updated by Stephen Benjamin about 9 years ago
- Has duplicate Bug #12220: Undecipherable failure when Dynflow proxy is not available added
Updated by Stephen Benjamin about 9 years ago
- Has duplicate Bug #12307: no indication when proxy is unreachable added
Updated by Ivan Necas about 9 years ago
- Status changed from New to Assigned
- Assignee set to Ivan Necas
- Target version set to 92
Updated by The Foreman Bot about 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/73 added
Updated by Ivan Necas about 9 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
Updated by The Foreman Bot about 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/74 added
Updated by Ivan Necas almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_plugin|5f7394756c55564a99218b6b51d335748e5ffcd9.
Updated by Marek Hulán almost 9 years ago
- Translation missing: en.field_release set to 107
Actions