BIND 10 #3003: datasrc_config_plugin.py crashes due to uncaught exception without datasrc.spec

BIND 10 Development do-not-reply at isc.org
Wed Jun 12 23:35:32 UTC 2013


#3003: datasrc_config_plugin.py crashes due to uncaught exception without
datasrc.spec
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:
  jinmei                             |                Status:  new
                       Type:         |             Milestone:  New Tasks
  defect                             |              Keywords:
                   Priority:         |             Sensitive:  0
  medium                             |           Sub-Project:  DNS
                  Component:         |  Estimated Difficulty:  0
  configuration                      |           Total Hours:  0
               CVSS Scoring:         |
            Defect Severity:  N/A    |
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
 If you move or remove the installed datasrc.spec
 (located under e.g. /var/bind10/share/config_plugins/)
 and start bind10, it immediately fails due to a crash of cfgmgr.
 cfgmgr dies due to uncaught exception from the datasrc plugin:

 {{{
 Traceback (most recent call last):
   File "/Users/jinmei/opt/libexec/bind10/b10-cfgmgr", line 131, in
 <module>
     sys.exit(main())
   File "/Users/jinmei/opt/libexec/bind10/b10-cfgmgr", line 117, in main
     load_plugins(ppath, cm)
   File "/Users/jinmei/opt/libexec/bind10/b10-cfgmgr", line 76, in
 load_plugins
     module = imp.load_source(name, plugin)
   File
 "/Users/jinmei/opt/share/bind10/config_plugins/datasrc_config_plugin.py",
 line 25, in <module>
     spec = module_spec_from_file(path_search('datasrc.spec',
 PLUGIN_PATHS))
   File "/Users/jinmei/opt/lib/python3.2/site-packages/isc/util/file.py",
 line 29, in path_search
     raise IOError("'" + filename + "' not found in " + str(paths))
 IOError: 'datasrc.spec' not found in
 ['/Users/jinmei/opt/share/bind10/config_plugins']
 }}}

 While it's basically an operation error, it at least shouldn't die
 this way; it should catch the exception, complain about it and then
 terminate itself.

 Whether to treat it as a fatal error is a different question.  In case
 of plugin failures I'd be inclined to be lenient, but it may be debatable.

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


More information about the bind10-tickets mailing list