Project

General

Profile

Actions

Bug #17864

closed

Show smart proxy errors on unattended failure

Added by Daniel Lobato Garcia over 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Unattended installations
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

If your proxy is has some error (like misconfigured sudoers, puppet not available, etc...) and you try to boot a host through unattended mode [1], the exception will not show up when you try to fetch the kickstart template. Instead, it will show something like No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully.

The application controller should be aware of this situation and don't try to redirect to back in it, instead just render the error.

[1] an example of such error - ProxyAPI::ProxyException: ERF12-0104 [ProxyAPI::ProxyException]: Unable to set PuppetCA autosign for tonia-rippeon.lobatolan.home ([RestClient::NotAcceptable]: 406 Not Acceptable) for proxy https://centos7-devel.lobatolan.home:9090/puppet/ca

Actions #1

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4142 added
Actions #2

Updated by Anonymous over 7 years ago

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

Updated by Dominic Cleal over 7 years ago

  • translation missing: en.field_release set to 210
Actions #4

Updated by Daniel Lobato Garcia about 7 years ago

  • Target version set to 169
Actions #5

Updated by Brad Buckingham about 7 years ago

  • Target version deleted (169)
Actions #6

Updated by Daniel Lobato Garcia about 7 years ago

  • Target version set to 1.11.0
Actions

Also available in: Atom PDF