#6385 ipa-server-install --external-ca fails with AttributeError
Closed: Fixed None Opened 7 years ago by dkupka.

Steps to reproduce:

# ipa-server-install -a Secret123 -p Secret123 -r $REALM --domain $DOM --external-ca -U
# echo -e "0\n1\n5\n9\ny\ny\n\ny\n" | certutil -d /root/nssdb/ -f /root/pwfile -C -c ca -m $RANDOM -1 -2 -i /root/ipa.csr -o /root/ipa.crt -a
# ipa-server-install -a Secret123 -p Secret123 --external-cert-file /root/ipa.crt --external-cert-file /root/ca.crt

Output:

The log file for this installation can be found in /var/log/ipaserver-install.log
==============================================================================
This program will set up the FreeIPA Server.

This includes:
  * Configure a stand-alone CA (dogtag) for certificate management
  * Configure the Network Time Daemon (ntpd)
  * Create and configure an instance of Directory Server
  * Create and configure a Kerberos Key Distribution Center (KDC)
  * Configure Apache (httpd)

ipa.ipapython.install.cli.install_tool(Server): ERROR    'CheckedIPAddress' object has no attribute '_net'
ipa.ipapython.install.cli.install_tool(Server): ERROR    The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information

Relevant part of ipaserver-install.log:

  File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 619, in install_check
    network_ip_address_warning(ip_addresses)
  File "/usr/lib/python2.7/site-packages/ipalib/util.py", line 1008, in network_ip_address_warning
    if ip.is_network_addr():
  File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 209, in is_network_addr
    return self == self._net.network

2016-10-06T12:06:03Z DEBUG The ipa-server-install command failed, exception: AttributeError: 'CheckedIPAddress' object has no attribute '_net'
2016-10-06T12:06:03Z ERROR 'CheckedIPAddress' object has no attribute '_net'
2016-10-06T12:06:03Z ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information

A regression in 4.4.2, therefore a 4.4.2 blocker.

master:

  • fb85230 UnsafeIPAddress: Implement (g|s)etstate and to ensure proper (un)pickling

ipa-4-4:

  • 1b6ba52 UnsafeIPAddress: Implement (g|s)etstate and to ensure proper (un)pickling

Metadata Update from @dkupka:
- Issue assigned to dkupka
- Issue set to the milestone: FreeIPA 4.4.2

7 years ago

Login to comment on this ticket.

Metadata