Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1353909 - The ipa-dns-install command failed, exception: ValueError: DNS zone ... already exists in DNS
Summary: The ipa-dns-install command failed, exception: ValueError: DNS zone ... alrea...
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Kaleem
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-08 11:42 UTC by Sudhir Menon
Modified: 2018-08-23 20:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Sudhir Menon 2016-07-08 11:42:10 UTC
Description of problem: "The ipa-dns-install command failed, exception: ValueError:" when DNS service is running on different machine and the command is executed.

Version-Release number of selected component (if applicable):
ipa-server-dns-4.4.0-1.el7.noarch
ipa-server-4.4.0-1.el7.x86_64

How reproducible: Always

Steps to Reproduce:

1. DNS for IPA domain is setup on remote windows machine.
2. Ensure /etc/resolv.conf of IPA server points to windows machine.
3. Install IPA server without integrated DNS.
4. Now run ipa-dns-install command
5. Check the message displayed on the console.

Actual results:
The log file for this installation can be found in 
/var/log/ipaserver-install.log
Checking DNS domain testrelm.test., please wait ...
Unexpected error - see /var/log/ipaserver-install.log for details:
ValueError: DNS zone testrelm.test. already exists in DNS and is handled by server(s): apache.pne.qe.

===/var/log/ipaserver-install.log===
2016-07-08T11:24:41Z DEBUG raw: dns_is_enabled(version=u'2.210')
2016-07-08T11:24:41Z DEBUG dns_is_enabled(version=u'2.210')
2016-07-08T11:24:41Z DEBUG retrieving schema for SchemaCache url=ldapi://%2fvar%2frun%2fslapd-TESTRELM-TEST.socket conn=<ldap.ldapobject.SimpleLDAPObject instance at 0x6173cf8>
2016-07-08T11:24:41Z INFO Checking DNS domain testrelm.test., please wait ...
2016-07-08T11:24:41Z DEBUG   File "/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 752, in run_script
    return_value = main_function()
File "/usr/sbin/ipa-dns-install", line 148, 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 128, in install_check
raise e
2016-07-08T11:24:41Z DEBUG The ipa-dns-install command failed, exception: ValueError: DNS zone testrelm.test. already exists in DNS and is handled by server(s): apache.pne.qe.

Expected results:
Instead of throwing value error on the console, proper message should be displayed on the console e.g 

ipa-dns-install command failed: DNS zone testrelm.test. already exists in DNS and is handled by server(s): apache.pne.qe.

Additional info:

Comment 1 Petr Vobornik 2016-07-08 11:59:59 UTC
Seems to me that it is expected - zone overlap check, right Petr?

Comment 2 Petr Spacek 2016-07-08 12:10:46 UTC
Yes, this is expected. The message clearly says where the problem is - the user used invalid parameter values in the installer.


If I understand Sudhir correctly this bug is about replacing this message:

Unexpected error - see /var/log/ipaserver-install.log for details:
ValueError: DNS zone testrelm.test. already exists in DNS and is handled by server(s): apache.pne.qe.


with message:

ipa-dns-install command failed: DNS zone testrelm.test. already exists in DNS and is handled by server(s): apache.pne.qe.


Is that right?

Comment 3 Sudhir Menon 2016-07-08 12:22:20 UTC
Petr,
Yes the bug is about replacing message displayed on console with proper message rather than ValueError/Unexpected error.

Comment 5 Petr Vobornik 2016-07-12 16:11:38 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/6067

Comment 6 Petr Vobornik 2016-07-12 16:12:53 UTC
Affected code is fragile, there is a risk that fix can break other stuff therefore postponing so that it can live in upstream for a while.


Note You need to log in before you can comment on or make changes to this bug.