)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"7581855951e729ef4ab2e088fe1533f967bc585f","unresolved":false,"context_lines":[{"line_number":14,"context_line":"them using SIGHUP can lead to unpredictable circumstances."},{"line_number":15,"context_line":"So, until changing other options is handled it is highly recommended"},{"line_number":16,"context_line":"to use SIGHUP for changing ONLY logging options."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: Ic0cf8a9ca7f3a16b556a6825e2979471ae136c33"},{"line_number":19,"context_line":"Partial-Bug: #1276694"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5afe65bd_55e2b3d6","line":17,"updated":"2015-06-02 14:00:53.000000000","message":"DocImpact?","commit_id":"ebc50769c67c7ba2bb69889055b86e145bb248f3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"cd8ac1d9e86506a7f1b416589f325bc0f35a1158","unresolved":false,"context_lines":[{"line_number":13,"context_line":"All other config options are not handled explicitly and changing"},{"line_number":14,"context_line":"them using SIGHUP can lead to unpredictable circumstances."},{"line_number":15,"context_line":"So, until changing other options is handled it is highly recommended"},{"line_number":16,"context_line":"to use SIGHUP for changing ONLY logging options."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"DocImpact"},{"line_number":19,"context_line":"Change-Id: Ic0cf8a9ca7f3a16b556a6825e2979471ae136c33"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3afb71cf_95960393","line":16,"updated":"2015-06-05 03:08:53.000000000","message":"My only issue is that other services seem to support changing things other than the logging value, according to comments in the bug at least.  If that is the case shouldn\u0027t Neutron behave the same way so that users have the same experience?","commit_id":"4b4d9bb2d02f60894a1474039912fe77c7d64fe6"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"b58a7d12b49e1cd879f72f84abdf20eee5c5efbe","unresolved":false,"context_lines":[{"line_number":13,"context_line":"All other config options are not handled explicitly and changing"},{"line_number":14,"context_line":"them using SIGHUP can lead to unpredictable circumstances."},{"line_number":15,"context_line":"So, until changing other options is handled it is highly recommended"},{"line_number":16,"context_line":"to use SIGHUP for changing ONLY logging options."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"DocImpact"},{"line_number":19,"context_line":"Change-Id: Ic0cf8a9ca7f3a16b556a6825e2979471ae136c33"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3afb71cf_7c76cf3f","line":16,"in_reply_to":"3afb71cf_95960393","updated":"2015-06-05 07:17:40.000000000","message":"In fact there are not so many openstack services that can handle SIGHUP. As for those that do:\n\n* Glance has its wsgi server written in a way that it doesn\u0027t use common/service code and it can handle changing such options as bind_host and bind_port [1]\n\n* Heat engine can now also reload logging options [2]\n\n* Some nova services don\u0027t die on receiving SIGHUP, but that\u0027s all [3]\n\nPerhaps I am missing something and if you can provide a better example I would be grateful.\n\nAdding ability for neutron services to handle SIGHUP and reload logging options is the first step. Before making further steps a unified solution on how will OpenStack services handle config changes should be made, i.e. we can make it using hooks, etc.... Anyway, that still has to be decided.\n\n[1] https://github.com/openstack/glance/blob/master/glance/common/wsgi.py#L472\n\n[2] https://github.com/openstack/heat/blob/master/heat/engine/service.py#L400\n\n[3] https://github.com/openstack/nova/blob/master/nova/wsgi.py#L237","commit_id":"4b4d9bb2d02f60894a1474039912fe77c7d64fe6"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"0b619512b1d445833157996e4ed29dcea59cb62f","unresolved":false,"context_lines":[{"line_number":1588,"context_line":""},{"line_number":1589,"context_line":"    def _handle_sighup(self, signum, frame):"},{"line_number":1590,"context_line":"        LOG.info(_LI(\"Agent caught SIGHUP, resetting.\"))"},{"line_number":1591,"context_line":"        cfg.CONF.reload_config_files()"},{"line_number":1592,"context_line":"        LOG.debug(\u0027Full set of CONF:\u0027)"},{"line_number":1593,"context_line":"        cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)"},{"line_number":1594,"context_line":"        config.setup_logging()"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_a5b55e7f","line":1591,"updated":"2015-06-01 15:51:05.000000000","message":"Does it mean more than just reloading logging options said in the commit message?","commit_id":"38b74e8741f9a000d5897bd09e903b568fbb0c7a"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"1db53515fb563b658b4886e4180a9de3be0e545d","unresolved":false,"context_lines":[{"line_number":1588,"context_line":""},{"line_number":1589,"context_line":"    def _handle_sighup(self, signum, frame):"},{"line_number":1590,"context_line":"        LOG.info(_LI(\"Agent caught SIGHUP, resetting.\"))"},{"line_number":1591,"context_line":"        cfg.CONF.reload_config_files()"},{"line_number":1592,"context_line":"        LOG.debug(\u0027Full set of CONF:\u0027)"},{"line_number":1593,"context_line":"        cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)"},{"line_number":1594,"context_line":"        config.setup_logging()"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_ef6af119","line":1591,"in_reply_to":"5afe65bd_016e47c9","updated":"2015-06-02 11:06:05.000000000","message":"But some config options are changed implicitly after reload, right?\nWe need to assess all implications of such a half update: for example agent uses CONF.host for state reports. It was red from config on initialization and will not change in reports after SIGHUP handling. On the other hand in treat_devices_added_or_updated(), treat_devices_removed() and alike the agent will use different host in case it was changed in the config. It\u0027s unlikely but that\u0027s what I noticed first. There might be other examples.","commit_id":"38b74e8741f9a000d5897bd09e903b568fbb0c7a"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"09d475c84bd2c20383f369f3b15265313944fee8","unresolved":false,"context_lines":[{"line_number":1588,"context_line":""},{"line_number":1589,"context_line":"    def _handle_sighup(self, signum, frame):"},{"line_number":1590,"context_line":"        LOG.info(_LI(\"Agent caught SIGHUP, resetting.\"))"},{"line_number":1591,"context_line":"        cfg.CONF.reload_config_files()"},{"line_number":1592,"context_line":"        LOG.debug(\u0027Full set of CONF:\u0027)"},{"line_number":1593,"context_line":"        cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)"},{"line_number":1594,"context_line":"        config.setup_logging()"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_9d9bb7c9","line":1591,"in_reply_to":"5afe65bd_12d21601","updated":"2015-06-02 12:03:06.000000000","message":"Yeah, setting proper expectations for users sounds good. Can you please update commit message with summary of this discussion :)?","commit_id":"38b74e8741f9a000d5897bd09e903b568fbb0c7a"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"9094c6cb5ce833a53f5d2c60bcae5e66f8696d13","unresolved":false,"context_lines":[{"line_number":1588,"context_line":""},{"line_number":1589,"context_line":"    def _handle_sighup(self, signum, frame):"},{"line_number":1590,"context_line":"        LOG.info(_LI(\"Agent caught SIGHUP, resetting.\"))"},{"line_number":1591,"context_line":"        cfg.CONF.reload_config_files()"},{"line_number":1592,"context_line":"        LOG.debug(\u0027Full set of CONF:\u0027)"},{"line_number":1593,"context_line":"        cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)"},{"line_number":1594,"context_line":"        config.setup_logging()"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_924ba1b0","line":1591,"in_reply_to":"5afe65bd_9d9bb7c9","updated":"2015-06-02 13:48:01.000000000","message":"Done","commit_id":"38b74e8741f9a000d5897bd09e903b568fbb0c7a"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"df2d498136845f22ff7b019519554d206af7286f","unresolved":false,"context_lines":[{"line_number":1588,"context_line":""},{"line_number":1589,"context_line":"    def _handle_sighup(self, signum, frame):"},{"line_number":1590,"context_line":"        LOG.info(_LI(\"Agent caught SIGHUP, resetting.\"))"},{"line_number":1591,"context_line":"        cfg.CONF.reload_config_files()"},{"line_number":1592,"context_line":"        LOG.debug(\u0027Full set of CONF:\u0027)"},{"line_number":1593,"context_line":"        cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)"},{"line_number":1594,"context_line":"        config.setup_logging()"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_016e47c9","line":1591,"in_reply_to":"5afe65bd_a5b55e7f","updated":"2015-06-02 09:20:40.000000000","message":"cfg.CONF.reload_config_files() forces rereading of config files but it doesn\u0027t necessarily mean that any options\u0027 changes are enforced - it has to be done explicitly. For now it is just reloading of logging options.\n\nBasically it\u0027s the same as in https://review.openstack.org/#/c/161732/ , but in that case config reload happens in common/service.py code.","commit_id":"38b74e8741f9a000d5897bd09e903b568fbb0c7a"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"33c65e8818717682e58d713aa178026fbbbaf14c","unresolved":false,"context_lines":[{"line_number":1588,"context_line":""},{"line_number":1589,"context_line":"    def _handle_sighup(self, signum, frame):"},{"line_number":1590,"context_line":"        LOG.info(_LI(\"Agent caught SIGHUP, resetting.\"))"},{"line_number":1591,"context_line":"        cfg.CONF.reload_config_files()"},{"line_number":1592,"context_line":"        LOG.debug(\u0027Full set of CONF:\u0027)"},{"line_number":1593,"context_line":"        cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)"},{"line_number":1594,"context_line":"        config.setup_logging()"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_12d21601","line":1591,"in_reply_to":"5afe65bd_ef6af119","updated":"2015-06-02 11:44:35.000000000","message":"I guess, one way is to implicitly reset such options in _handle_sighup.\n\nOn the other hand, if we want to start with just not dying on SIGHUP and resetting just logging options, we can in some way warn users that changing all other options using SIGHUP is highly not recommended.","commit_id":"38b74e8741f9a000d5897bd09e903b568fbb0c7a"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"d4eb0b5dcd2612971561ed426f1ab16b2632388b","unresolved":false,"context_lines":[{"line_number":1581,"context_line":"            self.rpc_loop(polling_manager\u003dpm)"},{"line_number":1582,"context_line":""},{"line_number":1583,"context_line":"    def _handle_sigterm(self, signum, frame):"},{"line_number":1584,"context_line":"        LOG.info(_LI(\"Agent caught SIGTERM, quitting daemon loop.\"))"},{"line_number":1585,"context_line":"        self.run_daemon_loop \u003d False"},{"line_number":1586,"context_line":"        if self.quitting_rpc_timeout:"},{"line_number":1587,"context_line":"            self.set_rpc_timeout(self.quitting_rpc_timeout)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_22f23c70","line":1584,"updated":"2015-06-03 02:47:35.000000000","message":"Good Catch. It should be an info and not debug.","commit_id":"4b4d9bb2d02f60894a1474039912fe77c7d64fe6"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"d4eb0b5dcd2612971561ed426f1ab16b2632388b","unresolved":false,"context_lines":[{"line_number":1589,"context_line":"    def _handle_sighup(self, signum, frame):"},{"line_number":1590,"context_line":"        LOG.info(_LI(\"Agent caught SIGHUP, resetting.\"))"},{"line_number":1591,"context_line":"        cfg.CONF.reload_config_files()"},{"line_number":1592,"context_line":"        LOG.debug(\u0027Full set of CONF:\u0027)"},{"line_number":1593,"context_line":"        cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)"},{"line_number":1594,"context_line":"        config.setup_logging()"},{"line_number":1595,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_42ef7887","line":1592,"updated":"2015-06-03 02:47:35.000000000","message":"IMO, it will be better to have the debug before \"cfg.CONF.reload_config_files()\" as \"LOG.debug(\u0027Restoring CONF:\u0027)\". If anything went wrong during the configuration restore then it will be easier to debug.","commit_id":"4b4d9bb2d02f60894a1474039912fe77c7d64fe6"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"cd8ac1d9e86506a7f1b416589f325bc0f35a1158","unresolved":false,"context_lines":[{"line_number":1591,"context_line":"        cfg.CONF.reload_config_files()"},{"line_number":1592,"context_line":"        LOG.debug(\u0027Full set of CONF:\u0027)"},{"line_number":1593,"context_line":"        cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)"},{"line_number":1594,"context_line":"        config.setup_logging()"},{"line_number":1595,"context_line":""},{"line_number":1596,"context_line":"    def set_rpc_timeout(self, timeout):"},{"line_number":1597,"context_line":"        for rpc_api in (self.plugin_rpc, self.sg_plugin_rpc,"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_f5789791","line":1594,"updated":"2015-06-05 03:08:53.000000000","message":"In other places setup_logging() always seems to be before log_opt_values()","commit_id":"4b4d9bb2d02f60894a1474039912fe77c7d64fe6"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"9f4c5fe073f6e0339a64ff7595ee5b6381d7376e","unresolved":false,"context_lines":[{"line_number":1591,"context_line":"        cfg.CONF.reload_config_files()"},{"line_number":1592,"context_line":"        LOG.debug(\u0027Full set of CONF:\u0027)"},{"line_number":1593,"context_line":"        cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)"},{"line_number":1594,"context_line":"        config.setup_logging()"},{"line_number":1595,"context_line":""},{"line_number":1596,"context_line":"    def set_rpc_timeout(self, timeout):"},{"line_number":1597,"context_line":"        for rpc_api in (self.plugin_rpc, self.sg_plugin_rpc,"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_5c90b3ec","line":1594,"in_reply_to":"3afb71cf_b96d7934","updated":"2015-06-05 07:30:27.000000000","message":"Done","commit_id":"4b4d9bb2d02f60894a1474039912fe77c7d64fe6"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"b58a7d12b49e1cd879f72f84abdf20eee5c5efbe","unresolved":false,"context_lines":[{"line_number":1591,"context_line":"        cfg.CONF.reload_config_files()"},{"line_number":1592,"context_line":"        LOG.debug(\u0027Full set of CONF:\u0027)"},{"line_number":1593,"context_line":"        cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)"},{"line_number":1594,"context_line":"        config.setup_logging()"},{"line_number":1595,"context_line":""},{"line_number":1596,"context_line":"    def set_rpc_timeout(self, timeout):"},{"line_number":1597,"context_line":"        for rpc_api in (self.plugin_rpc, self.sg_plugin_rpc,"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_b96d7934","line":1594,"in_reply_to":"3afb71cf_f5789791","updated":"2015-06-05 07:17:40.000000000","message":"That\u0027s not a problem, I can swap them","commit_id":"4b4d9bb2d02f60894a1474039912fe77c7d64fe6"}]}
