Univention Bugzilla – Bug 53795
UDM CLI error handling: dns/ptr_record: InvalidDNS_Information: Reverse zone and IP address are incompatible.
Last modified: 2021-09-15 22:17:51 CEST
udm dns/reverse_zone create --position cn=dns,l=school,l=dev --set subnet=13.59.197 --set 'zonettl=2 YE' --set contact=x247hjnrrk@rxcvab9poc.a50x8zeuzd --set serial=51260 --set 'refresh=1 ER' --set 'retry=1 NP' --set 'expire=7 BZ' --set 'ttl=5 GA' --append nameserver=yzsnz.rlsys udm dns/ptr_record create --position zoneName=197.59.13.in-addr.arpa,cn=dns,l=school,l=dev --superordinate zoneName=197.59.13.in-addr.arpa,cn=dns,l=school,l=dev --set address=149 --set ip=12.198.120.13 --append ptr_record=omwzy.tkdga Traceback (most recent call last): File "/usr/lib/python3/dist-packages/univention/admin/handlers/dns/ptr_record.py", line 183, in ready self.info['address'] = calc_rev(new_ip, self.superordinate.info['subnet']) File "/usr/lib/python3/dist-packages/univention/admin/handlers/dns/ptr_record.py", line 156, in calc_rev raise ValueError() ValueError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 213, in doit output = univention.admincli.admin.doit(arglist) File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 380, in doit out = _doit(arglist) File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 650, in _doit out.extend(cli.create(input, append, ignore_exists, parsed_options, parsed_append_options, parsed_remove_options, policy_reference)) File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 678, in create return self._create(self.module_name, self.module, self.dn, self.lo, self.position, self.superordinate, *args, **kwargs) File "/usr/lib/python3/dist-packages/univention/admincli/admin.py", line 731, in _create dn = object.create() File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 541, in create self.ready() File "/usr/lib/python3/dist-packages/univention/admin/handlers/dns/ptr_record.py", line 186, in ready raise univention.admin.uexceptions.InvalidDNS_Information(_('Reverse zone and IP address are incompatible.')) univention.admin.uexceptions.InvalidDNS_Information: Reverse zone and IP address are incompatible. The UDM CLI should also handle this exception.