Satellite-installer on Capsule fails with 503 Service Unavailable error - Unable to detect features
Environment
Red Hat Satellite 6.7
Red Hat Capsule 6.7
Red Hat Enterprise Linux 7
Issue
The satellite installer fails on the Capsule server with the following error.
[ERROR main] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[CAPSULE FQDN]/ensure: change from 'absent' to 'present' failed: Proxy CAPSULE FQDN cannot be registered: Unable to communicate with the Capsule: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Net::HTTPFatalError]: 503 "Service Unavailable") for Capsule https://CAPSULE FQDN:9090/v2/features Please check the Capsule is configured and running on the host.
Resolution
Exclude the Capsule from proxy according to the following guidelines and try running the installer again.
Configuring Satellite 6.7 with an HTTP Proxy
3.8. Excluding Hosts from Receiving Proxied Requests
If you use an HTTP Proxy for all Satellite HTTP or HTTPS requests, you can prevent certain hosts from communicating through the proxy.
To exclude one or more hosts from communicating through the proxy, complete the following steps:
In the Satellite web UI, navigate to Administer > Settings.
In the HTTP(S) proxy except for hosts row, select the adjacent Value column and enter the names of one or more hosts
that you want to exclude from proxy requests.
Click the tick icon to save your changes.
For CLI Users
Enter the following command:
# hammer settings set --name=http_proxy_except_list --value=[hostname1.hostname2...]
For more KB articles/solutions related to Red Hat Satellite 6.x Installation/Upgrade/Update Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Installation/Upgrade/Update Issues.
Root Cause
The satellite was proxying request to Capsule via external proxy server.
Diagnostic Steps
Check the /var/log/foreman/production.log for the following log on the Satellite .
DATE [I|app|9fbe9362] (RestClient) Proxying request to CAPSULE FQDN via PROXY IP ADDRESS:PROXY PORT/
And /var/log/foreman-installer/capsule.log on the Capsule server for the same time frame.
Unable to communicate with the Capsule: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Net::HTTPFatalError]: 503 "Service Unavailable") for Capsule https://CAPSULE FQDN:9090/v2/features Please check the Capsule is configured and running on the host
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.