Can anyone tell me why ipa-server-install is saying the ::1 address is not assigned
[root@vm2test1 ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:16:3e:5e:44:55 brd ff:ff:ff:ff:ff:ff inet 172.17.223.17/24 brd 172.17.223.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::216:3eff:fe5e:4455/64 scope link valid_lft forever preferred_lft forever [root@vm2test1 ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
172.17.223.17 vm2test1.nmr.mgh.harvard.edu vm2test1 [root@vm2test1 ~]# cat /proc/net/if_inet6 00000000000000000000000000000001 01 80 10 80 lo fe8000000000000002163efffe5e4455 02 40 20 80 eth0 [root@vm2test1 ~]# ping6 ::1 PING ::1(::1) 56 data bytes 64 bytes from ::1: icmp_seq=1 ttl=64 time=0.062 ms 64 bytes from ::1: icmp_seq=2 ttl=64 time=0.076 ms 64 bytes from ::1: icmp_seq=3 ttl=64 time=0.076 ms 64 bytes from ::1: icmp_seq=4 ttl=64 time=0.113 ms ^C --- ::1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.062/0.081/0.113/0.021 ms [root@vm2test1 ~]# ipa-server-install --setup-dns 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 [root@vm2test1 ~]#
Paul Raines via FreeIPA-users wrote:
Can anyone tell me why ipa-server-install is saying the ::1 address is not assigned
It looks like the test is suppressing the actual error raised. You might get more info from this:
# python
from ipapython import ipautil ipautil.CheckedIPAddress('::1', allow_loopback=True)
A ValueError is being raised but this is caught and not re-raised in ipaplatform/redhat/tasks.py::check_ipv6_stack_enabled()
rob
[root@vm2test1 ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:16:3e:5e:44:55 brd ff:ff:ff:ff:ff:ff inet 172.17.223.17/24 brd 172.17.223.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::216:3eff:fe5e:4455/64 scope link valid_lft forever preferred_lft forever [root@vm2test1 ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
172.17.223.17 vm2test1.nmr.mgh.harvard.edu vm2test1 [root@vm2test1 ~]# cat /proc/net/if_inet6 00000000000000000000000000000001 01 80 10 80 lo fe8000000000000002163efffe5e4455 02 40 20 80 eth0 [root@vm2test1 ~]# ping6 ::1 PING ::1(::1) 56 data bytes 64 bytes from ::1: icmp_seq=1 ttl=64 time=0.062 ms 64 bytes from ::1: icmp_seq=2 ttl=64 time=0.076 ms 64 bytes from ::1: icmp_seq=3 ttl=64 time=0.076 ms 64 bytes from ::1: icmp_seq=4 ttl=64 time=0.113 ms ^C --- ::1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.062/0.081/0.113/0.021 ms [root@vm2test1 ~]# ipa-server-install --setup-dns 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 [root@vm2test1 ~]# _______________________________________________ FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org To unsubscribe send an email to freeipa-users-leave@lists.fedorahosted.org
The problem is on this line in ipautil.CheckedIPAddress with the netmask=ifdata['netmask'] call
ifnet = netaddr.IPNetwork('{addr}/{netmask}'.format( addr=ifaddr, netmask=ifdata['netmask'] ))
On my CentOS 7.3 box which has python-netifaces-0.10.4-3.el7.x86_64 it works
On my CentOS 7.4 box where I am trying to install ipa-server-4.5.0-22.el7.centos.x86_64 and it has python2-netifaces-0.10.5-2.el7_4.x86_64 installed, it fails with:
ValueError: IPAddress() does not support netmasks or subnet prefixes! See documentation for details.
So I don't see how anyone has been able to install ipa-server on a RedHat 7.4 or CentOS 7.4 box
Might be related to this:
https://bitbucket.org/al45tair/netifaces/issues/50/netmask-format-of-ipv6-ad...
On 04/12/2018 08:39 PM, Paul Raines via FreeIPA-users wrote:
The problem is on this line in ipautil.CheckedIPAddress with the netmask=ifdata['netmask'] call
ifnet = netaddr.IPNetwork('{addr}/{netmask}'.format( addr=ifaddr, netmask=ifdata['netmask'] ))On my CentOS 7.3 box which has python-netifaces-0.10.4-3.el7.x86_64 it works
On my CentOS 7.4 box where I am trying to install ipa-server-4.5.0-22.el7.centos.x86_64 and it has python2-netifaces-0.10.5-2.el7_4.x86_64 installed, it fails with:
ValueError: IPAddress() does not support netmasks or subnet prefixes! See documentation for details.
So I don't see how anyone has been able to install ipa-server on a RedHat 7.4 or CentOS 7.4 box
Might be related to this:
https://bitbucket.org/al45tair/netifaces/issues/50/netmask-format-of-ipv6-ad... _______________________________________________ FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org To unsubscribe send an email to freeipa-users-leave@lists.fedorahosted.org
Hi,
this is a known issue, see #7021 ipa-server-install failure on checking matching interfaces - invalid format of netmas [1]. The fix was provided in FreeIPA 4.5.3, but I don't think it is available in CentOS.
HTH, Flo
freeipa-users@lists.fedorahosted.org