Bug #7145
closedInstalling on a system with ipv6 issues causes odd failures
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1119351
Description of problem:
When installing katello if ipv6 is enabled but the network is not configured properly the install will fail with these errors:
[ERROR 2014-07-08 08:41:52 main] Could not start Service[elasticsearch]: Execution of '/usr/share/katello-installer/modules/service_wait/bin/service-wait elasticsearch start' returned 5: Starting elasticsearch: [ OK ]
[ERROR 2014-07-08 08:45:35 main] Could not start Service[tomcat6]: Execution of '/usr/share/katello-installer/modules/service_wait/bin/service-wait tomcat6 start' returned 5: Starting tomcat6: [ OK ]
The result of:
ping6 localhost
is:
"socket: Address family not supported by protocol"
The root cause is that in the installer's service-wait script, wget is used to retry the connection on started services for 30 seconds. It uses 'localhost' which resolves for both ipv4 and ipv6 and so the wget fails (with the same 'Address family not supported by protocol') initially and does not retry.
In this user's case commenting out the ipv6 localhost from /etc/hosts allowed the installer to run completely.
How reproducible:
Not entirely sure, but somehow ipv6 needs to be enabled but the network needs to not support it.
Steps to Reproduce:
1. Get into the state above
2. Attempt to install katello
Actual results:
Partially installs with errors.
Expected results:
Should either install correctly, or immediately error telling me that ipv6 is not supported and should be disabled.