#4663 DNS zonemgr validation raises assertion error
Closed: Fixed None Opened 9 years ago by mbasti.

Reported by user on IRC

It's regression in 4.1

Workaround is not specify --zonemgr, and change default value using dnszone-mod command or WebUI

/usr/sbin/ipa-server-install --setup-dns --zonemgr=root@localhost.localdomain ...
Traceback (most recent call last):
  File "/usr/sbin/ipa-server-install", line 1382, in <module>
    safe_options, options = parse_options()
  File "/usr/sbin/ipa-server-install", line 309, in parse_options
    options, args = parser.parse_args()
  File "/usr/lib64/python2.7/optparse.py", line 1400, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib64/python2.7/optparse.py", line 1440, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib64/python2.7/optparse.py", line 1515, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib64/python2.7/optparse.py", line 789, in process
    self.action, self.dest, opt, value, values, parser)
  File "/usr/lib64/python2.7/optparse.py", line 809, in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py", line 406, in zonemgr_callback
    validate_zonemgr_str(value)
  File "/usr/lib/python2.7/site-packages/ipalib/util.py", line 280, in validate_zonemgr_str
    return validate_zonemgr(zonemgr)
  File "/usr/lib/python2.7/site-packages/ipalib/util.py", line 273, in validate_zonemgr
    assert isinstance(zonemgr, DNSName)
AssertionError

Given comment:1, this needs to be fixed in 4.1.x.

master:

  • e971fad Fix dns zonemgr validation regression

ipa-4-1:

  • 75cdc50 Fix dns zonemgr validation regression

It looks like we forgot to close this one.

Metadata Update from @mbasti:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.1.1

7 years ago

Login to comment on this ticket.

Metadata