yabhinav / ansible-role-ipaserver

Ansible Role - IPAServer
https://galaxy.ansible.com/yabhinav/ipaserver/
2 stars 3 forks source link

CentOS7 : IPv6 stack is enabled in the kernel but there is no interface that has ::1 address assigned #9

Closed yabhinav closed 6 years ago

yabhinav commented 6 years ago

TASK [role_under_test : Run the IPA Server installer] ** fatal: [localhost]: FAILED! => {"changed": true, "cmd": "ipa-server-install -U --realm EXAMPLE.COM --domain example.com -a Secret123 -p Secret123 --hostname=testlab.example.com --ip-address=172.17.0.2 --idstart=5000 ", "delta": "0:00:00.670820", "end": "2018-07-18 14:12:37.104935", "msg": "non-zero return code", "rc": 1, "start": "2018-07-18 14:12:36.434115", "stderr": "ipa.ipapython.install.cli.install_tool(CompatServerMasterInstall): ERROR IPv6 stack is enabled in the kernel but there is no interface that has ::1 address assigned. Add ::1 address resolution to 'lo' interface. You might need to enable IPv6 on the interface 'lo' in sysctl.conf.\nipa.ipapython.install.cli.install_tool(CompatServerMasterInstall): ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information", "stderr_lines": ["ipa.ipapython.install.cli.install_tool(CompatServerMasterInstall): ERROR IPv6 stack is enabled in the kernel but there is no interface that has ::1 address assigned. Add ::1 address resolution to 'lo' interface. You might need to enable IPv6 on the interface 'lo' in sysctl.conf.", "ipa.ipapython.install.cli.install_tool(CompatServerMasterInstall): ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information"], "stdout": "", "stdout_lines": []}

yabhinav commented 6 years ago

Possible due to new Update on CentOS7 . Refer the following article to fix the CentOS7 Ansible Image

https://osric.com/chris/accidental-developer/2017/10/ipa-server-upgrade-ipv6-stack-is-enabled-in-the-kernel-but-there-is-no-interface-that-has-1-address-assigned/

or find a way to disable ipv6 in IPAServer.

yabhinav commented 6 years ago

Alternatively add a task to ensure IPV6 is enabled before installing IPAServer

yabhinav commented 6 years ago

although there are other issues with centos7.5 this tickets is assumed to be closed.