)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"e6942bd28170ecbe6f1420bbb72553b9bd4e1634","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This patch is adding support for SIGHUP for the ironic-conductor"},{"line_number":10,"context_line":"service. When a SIGHUP is handled, the service will reload the mutable"},{"line_number":11,"context_line":"configuration options [0] and setup the logs (in case a configuration"},{"line_number":12,"context_line":"option such as \"debug\" from oslo.log have been changed)."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"[0] http://docs.openstack.org/developer/oslo.config/opts.html?highlight\u003dmutable"},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"bab6814e_167c23ea","line":12,"updated":"2016-05-25 17:23:41.000000000","message":"nit: \"have\" -\u003e \"has\"","commit_id":"471046d65c10d155c8ec83584b6d05e52d6c696e"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a03739c87291d51178f8888868fa6613dbf707be","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This patch is adding support for SIGHUP for the ironic-conductor"},{"line_number":10,"context_line":"service. When a SIGHUP is handled, the service will reload the mutable"},{"line_number":11,"context_line":"configuration options [0] and setup the logs (in case a configuration"},{"line_number":12,"context_line":"option such as \"debug\" from oslo.log have been changed)."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"[0] http://docs.openstack.org/developer/oslo.config/opts.html?highlight\u003dmutable"},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"bab6814e_2b96f93d","line":12,"in_reply_to":"bab6814e_167c23ea","updated":"2016-05-26 12:53:53.000000000","message":"Done","commit_id":"471046d65c10d155c8ec83584b6d05e52d6c696e"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a03739c87291d51178f8888868fa6613dbf707be","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[0] http://docs.openstack.org/developer/oslo.config/opts.html?highlight\u003dmutable"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: Iabb1338e935dae3b76ece7f1d4bf562a2988451b"},{"line_number":17,"context_line":"Partial-Fix: #1585595"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"bab6814e_6bcbe153","line":17,"range":{"start_line":17,"start_character":15,"end_line":17,"end_character":21},"updated":"2016-05-26 12:53:53.000000000","message":"Thanks! The number seems fine, https://bugs.launchpad.net/ironic/+bug/1585595","commit_id":"471046d65c10d155c8ec83584b6d05e52d6c696e"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"347d6c75dfda96d291be99f4906c02d1f3f0b2f1","unresolved":false,"context_lines":[{"line_number":14,"context_line":"[0] http://docs.openstack.org/developer/oslo.config/opts.html?highlight\u003dmutable"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: Iabb1338e935dae3b76ece7f1d4bf562a2988451b"},{"line_number":17,"context_line":"Partial-Fix: #1585595"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"bab6814e_4d8b9c68","line":17,"range":{"start_line":17,"start_character":8,"end_line":17,"end_character":11},"updated":"2016-05-26 10:30:29.000000000","message":"s/Partial-Fix/Partial-Bug/\nAnd I didn\u0027t find the bug number actually","commit_id":"471046d65c10d155c8ec83584b6d05e52d6c696e"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"9837e6ddc6a733b1e62258df14bf93109766efed","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add SIGHUP support for ironic-conductor service"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch is adding support for SIGHUP for the ironic-conductor"},{"line_number":10,"context_line":"service. When a SIGHUP is handled, the service will reload the mutable"},{"line_number":11,"context_line":"configuration options [0] and setup the logs (in case a configuration"},{"line_number":12,"context_line":"option such as \"debug\" from oslo.log has been changed)."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"9abb7d3a_30fef46b","line":9,"range":{"start_line":9,"start_character":14,"end_line":9,"end_character":39},"updated":"2016-05-27 13:41:00.000000000","message":"could you please elaborate more on this, oslo service handle SIGHUP and reload config options by default, why do you need your own reload?","commit_id":"c2def05ddc87ba634cce91de571cbb718b1e1a4e"}],"ironic/cmd/conductor.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"1903e5f21545b2be8fc9c07c5c1614ab947ac2c7","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    LOG.debug(\"Configuration:\")"},{"line_number":42,"context_line":"    CONF.log_opt_values(LOG, log.DEBUG)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    launcher \u003d ironic_service.ServiceLauncher(CONF)"},{"line_number":45,"context_line":"    launcher.launch_service(mgr)"},{"line_number":46,"context_line":"    launcher.wait()"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9abb7d3a_56da9079","line":44,"updated":"2016-05-27 14:07:05.000000000","message":"Yes looks like oslo service supports it with restart_method\u003d\u0027mutate\u0027 launcher parameter.","commit_id":"c2def05ddc87ba634cce91de571cbb718b1e1a4e"}],"ironic/common/service.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"0f11654bf81495fb5cc35f05295781d86e46c3c1","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"class ServiceLauncher(service.ServiceLauncher):"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def _reload_service(self, *args):"},{"line_number":145,"context_line":"        # Reload the mutable configuration options"},{"line_number":146,"context_line":"        CONF.mutate_config_files()"},{"line_number":147,"context_line":"        setup_logs()"}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_5c6989bd","line":144,"updated":"2016-05-26 11:19:13.000000000","message":"Looks like we redefine \"private\" method?","commit_id":"471046d65c10d155c8ec83584b6d05e52d6c696e"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a03739c87291d51178f8888868fa6613dbf707be","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"class ServiceLauncher(service.ServiceLauncher):"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def _reload_service(self, *args):"},{"line_number":145,"context_line":"        # Reload the mutable configuration options"},{"line_number":146,"context_line":"        CONF.mutate_config_files()"},{"line_number":147,"context_line":"        setup_logs()"}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_8b70c541","line":144,"in_reply_to":"bab6814e_5c6989bd","updated":"2016-05-26 12:53:53.000000000","message":"Yeah, I will avoid it and instead override the handle_signal() public method","commit_id":"471046d65c10d155c8ec83584b6d05e52d6c696e"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"1903e5f21545b2be8fc9c07c5c1614ab947ac2c7","unresolved":false,"context_lines":[{"line_number":144,"context_line":"    def _reload(self, *args):"},{"line_number":145,"context_line":"        # Reload the mutable configuration options"},{"line_number":146,"context_line":"        CONF.mutate_config_files()"},{"line_number":147,"context_line":"        setup_logs()"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def handle_signal(self):"},{"line_number":150,"context_line":"        self.signal_handler.add_handler(\u0027SIGHUP\u0027, self._reload)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9abb7d3a_96e4f83b","line":147,"updated":"2016-05-27 14:07:05.000000000","message":"Maybe oslo config hook can be used for setup logs? https://github.com/openstack/oslo.config/blob/master/oslo_config/cfg.py#L2851","commit_id":"c2def05ddc87ba634cce91de571cbb718b1e1a4e"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"d18a36450e21f9c0ff9666974baef4954bafc2af","unresolved":false,"context_lines":[{"line_number":144,"context_line":"    def _reload(self, *args):"},{"line_number":145,"context_line":"        # Reload the mutable configuration options"},{"line_number":146,"context_line":"        CONF.mutate_config_files()"},{"line_number":147,"context_line":"        setup_logs()"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def handle_signal(self):"},{"line_number":150,"context_line":"        self.signal_handler.add_handler(\u0027SIGHUP\u0027, self._reload)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9abb7d3a_eae7583e","line":147,"in_reply_to":"9abb7d3a_96e4f83b","updated":"2016-05-27 14:24:58.000000000","message":"There is special reset() service method for this.","commit_id":"c2def05ddc87ba634cce91de571cbb718b1e1a4e"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"d484cf83b65c0bab4406bbdb5d5b7500261b2761","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        setup_logs()"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def handle_signal(self):"},{"line_number":150,"context_line":"        self.signal_handler.add_handler(\u0027SIGHUP\u0027, self._reload)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"class WSGIService(service.ServiceBase):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9abb7d3a_c4dc1c1b","line":150,"updated":"2016-05-27 09:03:40.000000000","message":"if you override handle_signal() then you miss the original handler for SIGTERM/SIGINT/SIGALRM, \nSo I prefer to override _reload_service only","commit_id":"c2def05ddc87ba634cce91de571cbb718b1e1a4e"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"2b3f90328b0be03a75807cb5fbb83c6a5148196a","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        setup_logs()"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def handle_signal(self):"},{"line_number":150,"context_line":"        self.signal_handler.add_handler(\u0027SIGHUP\u0027, self._reload)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"class WSGIService(service.ServiceBase):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9abb7d3a_6e038a10","line":150,"in_reply_to":"9abb7d3a_642c50ac","updated":"2016-05-27 10:13:23.000000000","message":"I found out that the SignalHandler class in oslo.service does not expose any method to remove a handler or clear a specific signal (only supports clearing all signals and removing all handlers at once). So I\u0027ve proposed a patch to it at https://review.openstack.org/#/c/322051/\n\nPerhaps for now we should just overwrite _reload_service() as the previous patch, and leave a FIXME in line to use the new method to clear the signal once it\u0027s merged and released in oslo.service.\n\nWDYT?","commit_id":"c2def05ddc87ba634cce91de571cbb718b1e1a4e"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8b883e6f5aa6c97f835fca3d41e00a20c30a23ee","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        setup_logs()"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def handle_signal(self):"},{"line_number":150,"context_line":"        self.signal_handler.add_handler(\u0027SIGHUP\u0027, self._reload)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"class WSGIService(service.ServiceBase):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9abb7d3a_07a46155","line":150,"in_reply_to":"9abb7d3a_6e038a10","updated":"2016-05-27 11:10:08.000000000","message":"+1","commit_id":"c2def05ddc87ba634cce91de571cbb718b1e1a4e"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a9eaf89444ceaf1eb6d71a14d6918cc647b407a4","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        setup_logs()"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def handle_signal(self):"},{"line_number":150,"context_line":"        self.signal_handler.add_handler(\u0027SIGHUP\u0027, self._reload)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"class WSGIService(service.ServiceBase):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9abb7d3a_642c50ac","line":150,"in_reply_to":"9abb7d3a_c4dc1c1b","updated":"2016-05-27 09:10:05.000000000","message":"Good point. I can invoke the handle_signal() method from the class I\u0027ve inherited from and not have to override a private (prefixed with _) method here.","commit_id":"c2def05ddc87ba634cce91de571cbb718b1e1a4e"}]}
