Project

General

Profile

Actions

Feature #7916

open

Foreman WebUI should give clearer error message when foreman-proxy cannot be contacted

Added by Eric Feliksik about 10 years ago. Updated about 10 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Smart Proxy
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When trying to add a proxy to foreman via the Web UI, the error given is:

---------------
Unable to save

Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::Forbidden]: 403 Forbidden) for proxy https://foreman.nerdalize.com:8443/features
Please check the proxy is configured and running on the host.
---------------

This is not as helpful as the error message given by SSL:
------
$ curl --cert /var/lib/puppet/ssl/certs/my.domain.name.com.pem --key /var/lib/puppet/ssl/private_keys/my.domain.name.pem https://my.domain.name.com:8443/features k
Untrusted client localhost attempted to access /features. Check :trusted_hosts: in settings.yml
-----

This is fixed by adding 'localhost' to the list of trusted hosts (this doesn't sound like the ideal solution either, but it's the first step I could achieve).

My suggestion is to have the Foreman Web UI display the error message given by the proxy-webserver, so that the admin does not need to figure out the proper curl command.


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #1966: Improve UI errors when smart proxy returns 400 bad requestClosedLukas Zapletal11/22/2012Actions
Related to Foreman - Feature #4772: Display better error messages for DHCP errorsFeedback03/21/2014Actions
Actions #1

Updated by Dominic Cleal about 10 years ago

  • Related to Feature #1966: Improve UI errors when smart proxy returns 400 bad request added
Actions #2

Updated by Dominic Cleal about 10 years ago

  • Related to Feature #4772: Display better error messages for DHCP errors added
Actions #3

Updated by Dominic Cleal about 10 years ago

  • Category changed from Web Interface to Smart Proxy
  • Difficulty deleted (easy)

This needs some prep work on the proxy really so we return error messages in a consistent, preferably JSON, format.

Actions

Also available in: Atom PDF