Bug 689452 - Internal Error and trace back when adding DNS AAAA record
Summary: Internal Error and trace back when adding DNS AAAA record
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-21 15:10 UTC by Jenny Severance
Modified: 2015-01-04 23:47 UTC (History)
4 users (show)

Fixed In Version: ipa-2.0.0-17.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 13:44:45 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0631 0 normal SHIPPED_LIVE new package: ipa 2011-05-18 17:55:55 UTC

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


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