Bug #14060
closedError message unclear when capsule fails to register (Could not set 'present on ensure: 422 Unprocessable Entity)
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1039108
Description of problem:
If doing a node-install the satellite cannot connect to the node either because of firewall or networking issues, the node install will fail but will give no indication of why.
How reproducible:
always
Steps to Reproduce:
1. Install a satellite server
2. Attempt to install a node with the firewall still running
Actual results:
Node install fails with an unhelpful error:
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[smart.proxy.example.com]/ensure: change from absent to
present failed: Could not set 'present on ensure: 422 Unprocessable Entity at
/usr/share/node-installer/modules/foreman_proxy/manifests/register.pp:12
Expected results:
Should show some type of error that would help the user understand what is wrong
Additional info:
Errors seen in /var/log/foreman/production.log:
Unprocessable entity SmartProxy (id: new):
Unable to communicate with the proxy: No route to host - connect(2)
Please check the proxy is configured and running on the host.