Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:

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