Bug 689452

Summary: Internal Error and trace back when adding DNS AAAA record
Product: Red Hat Enterprise Linux 6 Reporter: Jenny Severance <jgalipea>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: benl, dpal, mgregg, mkosek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-2.0.0-17.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:44:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jenny Severance 2011-03-21 15:10:33 UTC
Description of problem:
Internal error and trace back when attempting to add a dns AAAA record with subnet prefix.


<snip>
 ipa dnsrecord-add --aaaa-rec=fe80::5054:ff:fe2c:918f/64
Zone name: testrelm
Record name: dhcp-100-19-80
ipa: ERROR: non-public: ValueError: IPAddress() does not support netmasks or subnet prefixes! See documentation for details.
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ipalib/backend.py", line 125, in execute
    result = self.Command[_name](*args, **options)
  File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 420, in __call__
    self.validate(**params)
  File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 686, in validate
    param.validate(value, self.env.context)
  File "/usr/lib/python2.6/site-packages/ipalib/parameters.py", line 740, in validate
    self._validate_scalar(v, i)
  File "/usr/lib/python2.6/site-packages/ipalib/parameters.py", line 1427, in _validate_scalar
    error = rule(ugettext, value)
  File "/usr/lib/python2.6/site-packages/ipalib/plugins/dns.py", line 115, in _validate_ipaddr
    ip = netaddr.IPAddress(ipaddr)
  File "/usr/lib/python2.6/site-packages/netaddr/ip/__init__.py", line 289, in __init__
    % self.__class__.__name__)
ValueError: IPAddress() does not support netmasks or subnet prefixes! See documentation for details.
ipa: ERROR: an internal error has occurred
<snip>

Version-Release number of selected component (if applicable):
ipa-server-2.0.0-16.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. See description
2.
3.
  
Actual results:
internal error traceback

Expected results:
User friendly error message stating the issue and how to correctly define AAAA record.

Additional info:

There is nothing logged in the /var/log/httpd/error_log

Comment 2 Martin Kosek 2011-03-22 08:35:14 UTC
https://fedorahosted.org/freeipa/ticket/1115

Comment 3 Rob Crittenden 2011-03-22 19:01:15 UTC
master: 0693b67f200c3b02480e1185383bfa8507fbeeb7

Comment 5 Jenny Severance 2011-04-07 19:22:19 UTC
verified:

# ipa dnsrecord-add --aaaa rec=fec0:0:a10:6000:10:16ff:fe98:183/64
Zone name: testrelm
Record name: ipaqavmb
ipa: ERROR: invalid 'aaaarecord': invalid address format


version:

ipa-server-2.0.0-20.el6.x86_64
ipa-admintools-2.0.0-20.el6.x86_64

Comment 6 errata-xmlrpc 2011-05-19 13:44:45 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0631.html