Description of problem:
When adding a new Satellite configuration provider, if the URL cannot be accessed because of a firewall dropping packets, then credential validation times out after 2 minutes with no flash message.
Version-Release number of selected component (if applicable):
220.127.116.11 and later
Steps to Reproduce:
1.) On the Satellite server, set up a firewall rule that drop packets from the appliance, e.g.,
# iptables -I INPUT -p tcp -m tcp --dport 443 -m conntrack --ctstate NEW -j DROP
2.) In the CFME web UI, create a Satellite provider and click Validate to check the credentials.
3.) Wait 2 minutes and see the spinner disappear but no flash error message.
No error message displayed after Satellite credential validation times out.
Error message displayed after Satellite credential validation times out.
In 18.104.22.168 and earlier, after the 2 minute timeout, a flash message appears with the text "Error requesting data from server". As of 22.214.171.124 and later, the message no longer appears.
For other providers, such as RHV or vSphere infrastructure providers, error messages do appear after credential validation times out, e.g.,
"Credential validation was not successful: Can't send request: Timeout was reached" or "Credential validation was not successful: Unexpected response returned from Provider, see log for details".
Created attachment 1427193 [details]
Credential validation was unsuccessful
I wasn't able to reproduce this on upstream/master, I see the attached error after the 2 minute timeout
New commit detected on ManageIQ/manageiq-providers-foreman/master:
Author: Dávid Halász <firstname.lastname@example.org>
AuthorDate: Wed Jun 13 07:48:35 2018 -0400
Commit: Dávid Halász <email@example.com>
CommitDate: Wed Jun 13 07:48:35 2018 -0400
Add 100 seconds as connection timeout to return sooner than apache
app/models/manageiq/providers/foreman/provider.rb | 1 +
spec/models/manageiq/providers/foreman/provider_spec.rb | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
Verified on 126.96.36.199.