Ugly stacktrace printed out when IPv6 subnet address is passed to IPA:
$ ipa dnsrecord-add example.com aaaa --aaaa-rec=fe80::5054:ff:fe2c:918f/64 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
Better error message is expected.
https://bugzilla.redhat.com/show_bug.cgi?id=689452
I have a patch for that. The question is if we want just to sanitize the error message or also allow appending subnet information for IPv6. Currently, we don't support it for both IPv4 and IPv6.
master: 0693b67
Metadata Update from @mkosek: - Issue assigned to mkosek - Issue set to the milestone: FreeIPA 2.0.5 GA
Login to comment on this ticket.