[Freeipa-devel] [PATCH 0077] ipa-dns-install: Do not check for zone overlap when DNS, installed.

Petr Vobornik pvoborni at redhat.com
Fri Dec 18 14:39:36 UTC 2015


On 12/18/2015 12:04 PM, Petr Vobornik wrote:
> On 12/18/2015 11:26 AM, David Kupka wrote:
>> Standalone DNS installer always performed overlap check effectively
>> preventing installation on replica when other DNS instance was already
>> installed in topology.
>>
>>
>
> I don't like the position of api argument in the install_check. It is
> not consistent with install_check in KRA plus it's between two related
> options: standalone and replica.
>
> Is there a reason behind it which I don't see?

NACK, the API call is incorrect.

It should be api.Command['dns_is_enabled']()['result'] or 
api.Command.dns_is_enabled()['result']


ipa-dns-install --forwarder=$DNS_FORWARDER

The log file for this installation can be found in 
/var/log/ipaserver-install.log
Unexpected error - see /var/log/ipaserver-install.log for details:
TypeError: __call__() takes exactly 1 argument (2 given)


log file:

2015-12-18T14:33:30Z DEBUG   File 
"/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", 
line 736, in run_script
     return_value = main_function()

   File "/sbin/ipa-dns-install", line 137, in main
     dns_installer.install_check(True, api, False, options, 
hostname=api.env.host)

   File "/usr/lib/python2.7/site-packages/ipaserver/install/dns.py", 
line 113, in install_check
     already_enabled = api.Command('dns_is_enabled')['result']

2015-12-18T14:33:30Z DEBUG The ipa-dns-install command failed, 
exception: TypeError: __call__() takes exactly 1 argument (2 given)

-- 
Petr Vobornik




More information about the Freeipa-devel mailing list