BIND 10 trac1175_reapplied, created. 3e116588ff10cd3c18db8539163eb4fa0d46202c [1175] correct the logging id

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Sep 21 05:36:23 UTC 2011


The branch, trac1175_reapplied has been created
        at  3e116588ff10cd3c18db8539163eb4fa0d46202c (commit)

- Log -----------------------------------------------------------------
commit 3e116588ff10cd3c18db8539163eb4fa0d46202c
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Sep 13 18:22:23 2011 +0900

    [1175] correct the logging id

commit 999b4f871428137c7269258c2ffcd7e6f31d3d85
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Sep 13 18:21:55 2011 +0900

    [1175] add the package name for SessionError

commit aed8e85d982a744f81bdff7a616e65f57707a68a
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Sep 13 17:53:22 2011 +0900

    [1175] modify test_utils.py
    
     - explicitly shut down the socket of the msgq before shutting down
       the msgq
    
     - do nothing in the shutdown method of MockMsgq for avoiding shutting
       down the msgq twice
    
     - replace the stop method in the shutdown method of the MyStatsHttpd
       with the shutdown command of stats_httpd

commit 92b659b3ce4595bd3ab774f17d89c9b6499ca859
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Thu Sep 8 10:52:19 2011 +0900

    [1175] modify test_utils.py
    
      - move up an assignment of the BIND10_MSGQ_SOCKET_FILE environment
        variable (BaseModules uses a constant file name during each
        testcase)
    
      - BaseModules checks whether msgq is ready after it started the msgq
        object. A SessionTimeout is raised here if not.

commit 5d6fbce4ecabf2efea83bfa3b0d4bc56cb8a591f
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Sep 6 20:27:44 2011 +0900

    [1175] fix a typo

commit 242e8f240409141d4e3e4045f5534a51b83e2db2
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Sep 6 20:17:57 2011 +0900

    [1175] modify b10-stats-httpd_test.py
    
     - The function get_availaddr uses socket.getaddrinfo for getting the
       address family.
    
     - The function is_ipv6_enabled uses 3 random ports for checking
       whether IPv6 is enabled.

commit d6e5916819b83edc88c0cddd891965700a27e2b2
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Sep 6 11:42:42 2011 +0900

    [1175] send the command 'status' to the stats when it started, and
    then send the command 'shutdown', and also check each value returned
    by each invoked command

commit ce8e4299c2a41cbc230c45a9b4490882a534fa83
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Mon Sep 5 17:14:11 2011 +0900

    [1175] modify stats_httpd.py.in, b10-stats-httpd_test.py and
    b10-stats_test.py
    
     - The stats httpd doesn't need to return an argument when it's
       shutting down.
    
     - The testcase sends the 'status' command or the 'shutdown' command
       to the stats or the stats httpd when they started, and then their
       returned values are checked.

commit 7c726ef29b51d0eeb8e3db213f3369cb85048bf8
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Mon Sep 5 05:01:18 2011 +0000

    [1175] modify test_utils.py
    
     - add 3-time retry to creating the server object when it fails in the
       ThreadingServerManager class
    
     - suppress outputs by Msgq, and add dummy sys module and the output
       methods
    
     - pass Exceptions raised while it's running with a thread

commit c54f5951597ede0e14307f03b6e1b708ff4d1ef8
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Mon Sep 5 04:53:24 2011 +0000

    [1175] remove a logging name from unittest

commit 74e5992c5e8dc3a13c880de1636b2c382df1d440
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Mon Sep 5 04:53:11 2011 +0000

    [1175] modify b10-stats-httpd_test.py
    
      - remove a logging name from unittest
    
      - do stats_httpd.stop() in teadDown() instead of each test case
    
      - send 'shutdown' command to kill stats_httpd when testing address
        already in use

commit 1cf35d8267b8d3111313b3af38334bfb872dc6e7
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Mon Sep 5 04:46:08 2011 +0000

    [1175] remove -v option from pycoverage

commit 7b1e6a0e330bb1ff80624da3e624e79e6d579fc0
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Thu Sep 1 11:34:28 2011 +0000

    [1175] add -v option in pycoverage for debugging the failure in
    buildbot. (unittest.main() with verbosity option is not supported
    in Python3.1.)

commit db36426e94e3038bbaab643ea6528cfed1d9f473
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Thu Sep 1 04:19:53 2011 +0000

    [1175] modify b10-stats-httpd_test.py, b10-stats_test.py and
    test_utils.py
    
     - more strictly close the io object whether it's successfully opened
       or not
    
     - add verbosity=2 in unittest.main for debugging the failure in the
       buildbot
    
     - don't redict sys.stderr in MockMsgq
    
     - rename the function name to create_specfile
    
     - switch the verbose in Msgq into True

commit 3ac4638bb7c44404fbe603e9c79fc715638fce57
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Aug 26 12:01:47 2011 +0900

    [1175] fix wrong list-type handling in the function
    get_spec_defaults and add more tests into test_get_spec_defaults

commit 562f717d3cf74cf1e0a56a2c8336ee8f095ee2a9
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Wed Aug 24 17:28:29 2011 +0900

    [1175] fix typo and correct changes from trac519

commit 546474a6ee001b9824ec3f5c608a1039c2782e76
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Wed Aug 24 16:51:11 2011 +0900

    [1175] deadlock will be killed afer 20 secs

commit aec3777ee834ebbe6d1422d1fe8561bac28f0ea4
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Wed Aug 24 15:55:21 2011 +0900

    [1175] fix conflicts with trac519

commit ed32ac28cc36ff09b4a7fd4086735de225a5ccbf
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Aug 23 16:42:18 2011 +0900

    [1175] modify stats_httpd.py.in and b10-stats-httpd_test.py
    
     - A hostname (canonical name of host) is not acceptable in listen_on
       configuration.
    
     - A default port number(starting number for search) is added in args
       of the function get_availaddr.

commit a9b6ef1f74339112a3075aa228c627e9c505af33
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Aug 23 11:22:03 2011 +0900

    [1175] set msgq verbose off

commit 072e75ffa562a06c23c6d5c1352db20ddc37e87c
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Mon Aug 22 18:20:39 2011 +0900

    [1175] add #1175

commit 742e9788c81073c448ff285b5c7bcb4c6f3665fc
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Mon Aug 22 18:18:47 2011 +0900

    [1175] modify test_utils.py
    
     - don't use time.sleep for waiting threads are starting or finishing
    
     - correct shutting down of mock modules
    
     - use _started (threading.Event) where command_handler is invoked
    
     - add implementation to changing contents of specfile of MyStatsHttpd
    
     - set "BIND10_MSGQ_SOCKET_FILE" only when it's not set yet

commit 85234942dbbe44018149de4c3922ad9ec2864f29
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Mon Aug 22 18:10:25 2011 +0900

    [1175] modify b10-stats-httpd_test.py and b10-stats_test.py
    
     - add function get_availaddr to get available address and port on the
       platform
    
     - add function is_ipv6enabled to check ipv6 enabled on the platform
    
     - add miscellaneous changes to refactor unittest

commit a90847ca34c86153281853df1ab0ab7228d30303
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Mon Aug 22 18:05:57 2011 +0900

    [1175] modify stats_httpd.py.in
    
     - don't use DEFAULT_CONFIG
    
     - move up mccs.start and open_httpd to __init__(). It takes time to
       do these functions, and an extra sleep is needed in unittests.
    
     - set running to False in http stopping
    
     - use validate_config in module_spec class
    
     - don't close/open http before it's opened

commit e18988d2c74ea58a13f66a8634c0d88f6e841aa7
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Aug 5 16:24:03 2011 +0900

    [trac930] modify b10-stats-httpd_test.py and b10-stats_test.py
    
     - revise header comments in each test script
    
     - replace some hard-coded time strings with the constants defined in
       the setUp function
    
     - merged several checks about B10_FROM_SOURCE into the TestOSEnv
       class

commit 2f3efb4b4d748314d8023ab85a99f742cfea1084
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Aug 5 14:48:27 2011 +0900

    [trac930] modify b10-stats-httpd_test.py, b10-stats_test.py and
    test_utils.py
    
     - change address for test to 127.0.0.1 due to platform 127.0.0.2
       can't be assigned
    
     - remove unnecessary thread.Event.wait()
    
     - add thread.Event.clear() after thread.Event.wait()

commit 598e6b3becf694ffa7303821841fa26dbaeceeb0
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Wed Aug 3 11:41:05 2011 +0900

    [trac930] refactor unittests
    
     - remove time.sleep from various unittests and add in the "run"
       method in ThreadingServerManager
    
     - adjust the sleep time (TIMEOUT_SEC)
    
     - join some small unittests
       (test_start_with_err, test_command_status, test_command_shutdown)

commit 7e4441448a2ac464af1ce646309a7d2e61eb7926
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Aug 2 22:00:11 2011 +0900

    [trac930] add comments about abstracts of the test scripts in their
    headers

commit 67f7a2b52d64cc2cb5f819f3a28980302e370040
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Aug 2 21:44:07 2011 +0900

    [trac930] modify stats.py
    
     - add more documentations into update_modules, get_statistics_data
       and update_statistics_data methods
    
     - modify two methods: "update_modules" and "get_statistics_data"
       methods raise StatsError instead of just returning None, when
       communication between stats module and config manager is failed or
       when it can't find specified statistics data.
    
     - also modify the unittest depending on the changes of these
       behaviors.

commit c9b723c8fb00781a6cee0abd31e741555652ac7a
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Aug 2 20:17:28 2011 +0900

    [trac930] modify b10-stats_test.py
    
     - set the constant variables in the setUp method in the TestUtilties
       class, and compare values returned from the functions with these
       constants in testing methods.
    
     - remove the tearDown method which has no test case in the
       TestCallback class

commit 363051af211e26b371ff07e91fca70df56aedf8a
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Aug 2 19:57:58 2011 +0900

    [trac930] remove tailing whitespaces.

commit 6cc71b62b5745c2fbfe8673ae62db1dc3af8ce63
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Mon Aug 1 18:38:35 2011 +0900

    [trac930] raise StatsError including errors in the stats spec file

commit 05e9ed850b1a73c5f75e2723d9cefec16679bff3
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Mon Aug 1 18:21:23 2011 +0900

    [trac930] rename the function name
    
     - rename the name of 'parse_spec' to 'get_spec_defaults' in the
       result of consideration of what it is doing
    
     - modify the description of the function as docstring
    
     - fix unitttests for the stats module depending on the function name

commit 1a2c75a63ce28c850d457d725cc2a586a2ac0243
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 29 22:11:38 2011 +0900

    [trac930] remove a unnecessary x bit from stats_httpd.py.in

commit 55bbf38195cecaeaa1e2e874d1e998a5bcb9f658
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Thu Jul 28 22:07:15 2011 +0900

    [trac930] modify logging add loggings and new messages for logging
    remove unused messages from the message file add test logging names
    into unittest scripts

commit 91d1b7f1b7285fa7b216e747729443ab7ef20ae7
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Wed Jul 27 20:45:18 2011 +0900

    [trac930] modify the update_modues function There is no part of
    statistics category in the spec file of a module which has no
    statistics data.

commit a40136e8618736ca7a8096a4e838628e6dd805f2
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Wed Jul 27 16:49:21 2011 +0900

    [trac930] modify stats.py and b10-stats_test.py
    
     - correct error messages in bindctl it prints together with
       arguments.
    
     - modify the command_show function it reports statistics data of the
       module even if name is not specified.
    
     - add/modify unittests depending on the changes of error messages

commit 9000948dd2fe424eccb7663878807646f69b5217
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Wed Jul 27 16:42:54 2011 +0900

    [trac930] remove unnecessary a white space

commit 299a189812d55402859d14a59a73bded56d22478
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Wed Jul 27 10:18:07 2011 +0900

    [trac930] add a test pattern which the set command with a
    non-existent item name is sent

commit dd485f1482dd11956c5fb2fd71cfe28ce04035ea
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Wed Jul 27 10:14:57 2011 +0900

    [trac930] modify parse_spec function returns empty dict if list-type
    is not specified in the argument

commit aeebadcf8bbc6efc9704bfa7cf9f3710de759c27
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 22 21:40:07 2011 +0900

    [trac930] fix conflicts with trac1021

commit 0d741be20531f138afb5db33a632236084aa2b1d
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 22 18:50:41 2011 +0900

    [trac930] add changes because query counter names described in the
    specfile are changed.

commit cb94f61cf5c3da4e2b6a25f7c3ee3ac3a33d4085
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 22 18:45:19 2011 +0900

    [trac930] add the logging when the validation of statistics data
    fails

commit 8d9dce07d96dc8abaa55ade54f1ef1c84decd7d7
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 22 18:43:26 2011 +0900

    [trac930] Add unittests to test sumitStatistics with the validation
    of statistics data and add mock ModuleSpec class

commit f62146b138f79055b9eb6c96dc6b56ecba8c1b07
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 22 18:41:34 2011 +0900

    [trac930] Add prototypes of validator_typea and
    registerStatisticsValidator
    
      - validator_type -- a type of statistics validation function
    
      - registerStatisticsValidator -- the function to register the
        validation function

commit a522bc583e8a2cfe6721b95b1ded162e2ba5cc25
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 22 18:37:22 2011 +0900

    [trac930] modify statistics.cc
    
     - Add implementation to validate statistics data
       -- When validation is success, it sends data to statistics
       module. But when it fails, it doesn't send and logs the message.
    
     - Add the function to register the validation function into the class

commit 43194af166171d79e92852a3cdf00bd84f91feb5
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 22 18:32:22 2011 +0900

    [trac930] add the helper functions which are used around the
    registration of the function to validate the statistics data.

commit 4aeaa47e2a999b35d4737dc909f164c2152d0373
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 22 18:28:40 2011 +0900

    [trac930] add new messages into the message file of Auth and Boss
    when validation of statistics data to send to statistics module is
    failed.

commit 4d9efc0238dcf049cc49a5933fbeae72b78c906f
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Wed Jul 20 10:00:29 2011 +0900

    [trac930] add statistics validation for bob

commit 1176c0b8228d00d0f1f3e1bc3ad17dc535f5ef91
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Wed Jul 13 20:25:54 2011 +0900

    [trac930] modify b10-stats-httpd_test.py
    
     - increase seconds in sleep time which is before HTTP client connects
       to the server
    
     - delete 'test_log_message' because of the deletion of original
       function

commit 65c6df4e8f873d7de01f43890ffe9eae872961be
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 21:22:34 2011 +0900

    [trac930] remove unneeded empty TODO comments

commit 38781e52b6e992d8997623ac88a744bb711a9709
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 20:08:22 2011 +0900

    [trac930] refurbish the unittests for new stats module, new stats
    httpd module and new mockups and utilities in test_utils.py

commit 26d383a5431368fe240fdfe4f7278e131d923771
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 19:56:24 2011 +0900

    [trac930] modify Stats
    
     - remove unneeded subject and listener classes
    
     - add StatsError for handling errors in Stats
    
     - add some new methods (update_modules, update_statistics_data and
       get_statistics_data)
    
     - modify implementations of existent commands(show and set) according changes
       stats.spec
    
     - remove reset and remove command because stats module couldn't manage other
       modules' statistics data schema
    
     - add implementation of strict validation of each statistics data
       (If the validation is failed, it puts out the error.)
    
     - stats module shows its PID when status command invoked
    
     - add new command showschema invokable via bindctl
    
     - set command requires arguments of owner module name and statistics item name
    
     - show and showschema commands accepts arguments of owner module name and
       statistics item name
    
     - exits at exit code 1 if got runtime errors
    
     - has boot time in _BASETIME

commit 0ec6741410544e10d5aea27edad17a1860423c33
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 19:40:15 2011 +0900

    [trac930] modify stats_httpd.py.in
    
     - remove "stats-schema.spec" setting and getting statistics data
       schema via this spec file
    
     - add "version" item in DEFAULT_CONFIG
    
     - get the address family by socket.getaddrinfo function with specified
       server_address in advance, and create HttpServer object once, in stead of
       creating double HttpServer objects for IPv6 and IPv4 in the prior code
       (It is aimed for avoiding to fail to close the once opened sockets.)
    
     - open HTTP port in start method
    
     - avoid calling config_handler recursively in the except statement
    
     - create XML, XSD, XSL documents after getting statistics data and schema from
       remote stats module via CC session
    
     - definitely close once opened template file object

commit b586b62f151bf3d5da15205ba1986d88738f2554
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 16:33:59 2011 +0900

    [trac930] update spec file of stats module
    
     - update description of status command, shutdown command and show
       command
    
     - change argument of show command (Owner module name of statistics
       data can be specified)
    
     - change argument of set command (Owner module name of statistics
       data is always required)
    
     - add showschema command which shows statistics data schema of each
       module specified)
    
     - disabled reset command and remove command

commit 70427159fd69f67162fd03e2614ef81253c2a12e
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 16:21:49 2011 +0900

    [trac930] update argument name and argument format of set command in
    auth module and boss module and also update related unittests of
    their modules

commit ce1beae9203e0f46afc9a254015cc6dece6f5f15
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 16:18:38 2011 +0900

    [trac930] remove description about removing statistics data by stats
    module update example format in bindctl when show command of stats
    module is invoked

commit 6f4a89b9e5c60dfc00bd7170464a923eb03de1e7
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 16:13:17 2011 +0900

    [trac930] add a column "Owner" in the table tag

commit d617b21df85514b0245d0b666b393ed3d69a3b19
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 16:12:09 2011 +0900

    [trac930] remove descriptions about "stats-schema.spec" and add
    description about new features because stats module can be
    requested to show statistics data schema.

commit 58b7517819a3804e86529b0ee8c64f34bbef3b59
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 16:00:30 2011 +0900

    [trac930] add utilities and mock-up modules for unittests of
    statistics modules and change some environ variables (PYTHONPATH,
    CONFIG_TESTDATA_PATH) in Makefile
    
    test_utilies.py internally calls msgq, cfgmgr and some mock modules
    with threads for as real situation as possible.

commit 4718164887f782aa5a13d5f6968019091c05b238
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 15:57:41 2011 +0900

    [trac930] remove unneeded mockups, fake modules and dummy data

commit 2d98e8568e9cf1cd9c77a328efa35b55fa52a726
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Fri Jul 8 15:55:55 2011 +0900

    [trac930] remove unneeded specfile "stats-schema.spec"

-----------------------------------------------------------------------




More information about the bind10-changes mailing list