BIND 10 #1172: Stats show with multiple items crashes bindctl

BIND 10 Development do-not-reply at isc.org
Thu Aug 11 15:01:18 UTC 2011


#1172: Stats show with multiple items crashes bindctl
----------------------------------------+----------------------------------
                   Reporter:  jreed     |                 Owner:
                       Type:  defect    |                Status:  new
                   Priority:  major     |             Milestone:  New Tasks
                  Component:  bind-ctl  |            Resolution:
                   Keywords:            |             Sensitive:  0
            Defect Severity:  N/A       |           Sub-Project:  Core
Feature Depending on Ticket:            |  Estimated Difficulty:  0
        Add Hours to Ticket:  0         |           Total Hours:  0
                  Internal?:  0         |
----------------------------------------+----------------------------------

Comment (by jreed):

 Also related.... if I made a mistake like, I get:

 {{{

 > Stats set [ "foo": "bar" ]
 Traceback (most recent call last):
   File "/usr/pkg/lib/python3.1/cmd.py", line 213, in onecmd
     func = getattr(self, 'do_' + cmd)
 AttributeError: 'BindCmdInterpreter' object has no attribute 'do_Stats'

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/home/reed/opt/bind10/bin/bindctl", line 149, in <module>
     tool.run()
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 128, in run
     self.cmdloop()
   File "/usr/pkg/lib/python3.1/cmd.py", line 139, in cmdloop
     stop = self.onecmd(line)
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 452, in onecmd
     Cmd.onecmd(self, line)
   File "/usr/pkg/lib/python3.1/cmd.py", line 215, in onecmd
     return self.default(line)
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 418, in default
     self._parse_cmd(line)
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 555, in _parse_cmd
     self._validate_cmd(cmd)
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 385, in _validate_cmd
     cmd.params[param_name] =
 isc.config.config_data.convert_type(param_spec, cmd.params[param_name])
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/isc/config/config_data.py", line 96, in convert_type
     map = ast.literal_eval(value)
   File "/usr/pkg/lib/python3.1/ast.py", line 49, in literal_eval
     node_or_string = parse(node_or_string, mode='eval')
   File "/usr/pkg/lib/python3.1/ast.py", line 37, in parse
     return compile(source, filename, mode, PyCF_ONLY_AST)
   File "<unknown>", line 1
     ["foo":"bar"]
           ^
 SyntaxError: invalid syntax



 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/1172#comment:2>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list