BIND 10 #986: bindctl crash when removing unknown item

BIND 10 Development do-not-reply at isc.org
Tue May 31 08:34:31 UTC 2011


#986: bindctl crash when removing unknown item
---------------------------------+-----------------------------------------
            Reporter:  shane     |                        Owner:
                Type:  defect    |                       Status:  new
            Priority:  major     |                    Milestone:  New Tasks
           Component:  bind-ctl  |                     Keywords:
           Sensitive:  0         |              Defect Severity:  Low
         Sub-Project:  DNS       |  Feature Depending on Ticket:
Estimated Difficulty:  0         |          Add Hours to Ticket:  0
         Total Hours:  0         |                    Internal?:  0
---------------------------------+-----------------------------------------
 I was using a BIND 10 server with an old (pre-2011-05-17) configuration.
 It has a "master_addr" for all of Xfrin, instead of per-zone.

 I was unable to commit my database changes because of that:

 {{{
 > config commit
 Error: unknown item master_addr
 Configuration not committed
 }}}

 Here is the old configuration:

 {{{
 shane at madras:/opt/bind10/var/bind10-devel$ cat b10-config.db
 {"Xfrin": {"master_addr": "85.17.60.159"}, "version": 2,
  "Auth": {"listen_on": [ { "address": "85.17.60.232", "port": 53 } ]}}
 }}}

 So I decided to remove the offending legacy configuration, with these
 results:

 {{{
 > config unset Xfrin/master_addr
 Traceback (most recent call last):
   File "/usr/lib/python3.1/cmd.py", line 213, in onecmd
     func = getattr(self, 'do_' + cmd)
 AttributeError: 'BindCmdInterpreter' object has no attribute 'do_config'

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/opt/bind10/bin/bindctl", line 138, in <module>
     tool.run()
   File "/opt/bind10/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 128, in run
     self.cmdloop()
   File "/usr/lib/python3.1/cmd.py", line 139, in cmdloop
     stop = self.onecmd(line)
   File "/opt/bind10/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 450, in onecmd
     Cmd.onecmd(self, line)
   File "/usr/lib/python3.1/cmd.py", line 215, in onecmd
     return self.default(line)
   File "/opt/bind10/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 416, in default
     self._parse_cmd(line)
   File "/opt/bind10/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 554, in _parse_cmd
     self._handle_cmd(cmd)
   File "/opt/bind10/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 396, in _handle_cmd
     self.apply_config_cmd(cmd)
   File "/opt/bind10/lib/python3.1/site-packages/bindctl/bindcmd.py", line
 673, in apply_config_cmd
     self.config_data.unset(identifier)
 AttributeError: 'UIModuleCCSession' object has no attribute 'unset'
 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/986>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list