[Freeipa-users] IPA Error on Server with Public IP?? "cannot use IP network address"
Craig T
freeipa at noboost.org
Wed Feb 8 06:33:23 UTC 2012
A friend of mine help me work this out.
FreeIPA install script is checking to see if the IP is the same as the broadcast address.
I've never hosted a VPS server so I'm not sure of the IP mask could have been better configured?
----------------------------------------------------------------------------------------
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:100.111.111.1 P-t-P:100.111.111.1 Bcast:100.111.111.1 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
----------------------------------------------------------------------------------------
The workaround:
/usr/lib/python2.6/site-packages/ipapython/ipautil.py line 145 as below.. remark all 4 lines and it'll continue
"""
if addr == net.network:
raise ValueError("cannot use IP network address")
if addr.version == 4 and addr == net.broadcast:
raise ValueError("cannot use broadcast IP address")
"""
cya
Craig
On Wed, Feb 08, 2012 at 03:39:34PM +1100, Craig T wrote:
> Hi,
>
> Is IPA somehow restricted from running on machines with a public IP address?
>
> I'm attempting to install IPA for practise on my Linux VPS (Centos 6.2 x86_64);
> ipa-admintools-2.1.3-9.el6.x86_64
> ipa-client-2.1.3-9.el6.x86_64
> ipa-pki-ca-theme-9.0.3-7.el6.noarch
> ipa-pki-common-theme-9.0.3-7.el6.noarch
> ipa-python-2.1.3-9.el6.x86_64
> ipa-server-2.1.3-9.el6.x86_64
> ipa-server-selinux-2.1.3-9.el6.x86_64
>
> Error:
> ----------------------------------------------------------------------------
> Server host name [mx1.example.com]:
>
> root : DEBUG will use host_name: mx1.example.com
>
> The domain name has been calculated based on the host name.
>
> Please confirm the domain name [example.com]:
>
> root : DEBUG read domain_name: example.com
>
> root : DEBUG args=/sbin/ip -family inet -oneline address show
> root : DEBUG stdout=1: lo inet 127.0.0.1/8 scope host lo
> 3: venet0 inet 127.0.0.1/32 scope host venet0
> 3: venet0 inet 100.111.111.1/32 brd 100.111.111.1 scope global venet0:0
> 3: venet0 inet 100.111.111.2/32 brd 100.111.111.2 scope global venet0:1
>
> root : DEBUG stderr=
> Unexpected error - see ipaserver-install.log for details:
> cannot use IP network address
> root : DEBUG cannot use IP network address
> File "/usr/sbin/ipa-server-install", line 1151, in <module>
> sys.exit(main())
>
> File "/usr/sbin/ipa-server-install", line 770, in main
> ip = CheckedIPAddress(hostaddr, match_local=True)
>
> File "/usr/lib/python2.6/site-packages/ipapython/ipautil.py", line 145, in __init__
> raise ValueError("cannot use IP network address")
> ----------------------------------------------------------------------------
>
> cya
>
> Craig
>
> _______________________________________________
> Freeipa-users mailing list
> Freeipa-users at redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-users
More information about the Freeipa-users
mailing list