)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":31245,"name":"Daniel Bengtsson","email":"dbengt@redhat.com","username":"damani42"},"change_message_id":"ef16c2042b0ea86079a4acc7ce62a88b722118b6","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"4b2a523a_dd5e86ef","updated":"2026-10-20 11:00:59.000000000","message":"Looks good to me. This fixes the reported SIGHUP hang with the threading backend and no_fork\u003dTrue, and implements the expected mutate and reload behavior.\nOne remaining edge case should be tracked separately: a second SIGHUP arriving during restart() (for example, while service.reset() is running) can raise SignalExit outside the handling block, causing another hang in mutate mode or an exit in reload mode. This does not block the fix for the original issue.","commit_id":"273e58141b7c026d8c7ddc6ba07ecaa25883f607"},{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"308e7246e1200eeb540cfb2c07109e13ad86ca6b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"79c57b0a_4332295b","in_reply_to":"4b2a523a_dd5e86ef","updated":"2026-10-29 09:16:07.000000000","message":"Thanks for flagging this. I filed it as https://bugs.launchpad.net/bugs/2172443 and proposed a fix on top of this change: https://review.opendev.org/c/openstack/oslo.service/+/1012821.\n\nWith it, a SIGHUP that arrives during start() or restart() only marks a reload as pending, and the wait loop runs the reload once that call returns. So it no longer hangs, and the reload isn\u0027t lost. Any number of SIGHUPs during one call give one reload. The same change also covers stop() or restart() raising, and a SIGHUP during a SIGTERM shutdown.\n\nPS2 here is only a rebase onto 1011439, which the follow-up also needs; nothing else changed.","commit_id":"273e58141b7c026d8c7ddc6ba07ecaa25883f607"}],"oslo_service/backend/_threading/service.py":[{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"e710de8e84b000dc26eba486211e6b112820e662","unresolved":true,"context_lines":[{"line_number":469,"context_line":"        # TODO(gmaan): This handler is suppose to reload the service but we"},{"line_number":470,"context_line":"        # need to implement the restart() method for no_fork case which can"},{"line_number":471,"context_line":"        # call reset/restart on the service instance."},{"line_number":472,"context_line":"        self.signal_handler.clear()"},{"line_number":473,"context_line":"        raise common_service.SignalExit(signal.SIGHUP)"},{"line_number":474,"context_line":""},{"line_number":475,"context_line":"    def _fast_exit(self, *args):"}],"source_content_type":"text/x-python","patch_set":2,"id":"f196af61_045d5e9b","side":"PARENT","line":472,"range":{"start_line":472,"start_character":8,"end_line":472,"end_character":35},"updated":"2026-10-29 09:25:25.000000000","message":"Removing this allows accepting signals during reload operation. Is that intentional ?","commit_id":"bd15923e371cb7ae10792809f1d3814f9cb99a07"},{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"2f26bdee00169678807866736b4f69adaa1e3e1f","unresolved":false,"context_lines":[{"line_number":469,"context_line":"        # TODO(gmaan): This handler is suppose to reload the service but we"},{"line_number":470,"context_line":"        # need to implement the restart() method for no_fork case which can"},{"line_number":471,"context_line":"        # call reset/restart on the service instance."},{"line_number":472,"context_line":"        self.signal_handler.clear()"},{"line_number":473,"context_line":"        raise common_service.SignalExit(signal.SIGHUP)"},{"line_number":474,"context_line":""},{"line_number":475,"context_line":"    def _fast_exit(self, *args):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1be82aaf_02f46b9e","side":"PARENT","line":472,"range":{"start_line":472,"start_character":8,"end_line":472,"end_character":35},"in_reply_to":"846dfed6_b45557e7","updated":"2026-10-29 15:15:34.000000000","message":"Thanks. I didn\u0027t notice that context. Then let\u0027s merge this and the next once in batch. I\u0027ll review the next one soon.","commit_id":"bd15923e371cb7ae10792809f1d3814f9cb99a07"},{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"089cd74b6b47140d20bab3994708b818708452af","unresolved":false,"context_lines":[{"line_number":469,"context_line":"        # TODO(gmaan): This handler is suppose to reload the service but we"},{"line_number":470,"context_line":"        # need to implement the restart() method for no_fork case which can"},{"line_number":471,"context_line":"        # call reset/restart on the service instance."},{"line_number":472,"context_line":"        self.signal_handler.clear()"},{"line_number":473,"context_line":"        raise common_service.SignalExit(signal.SIGHUP)"},{"line_number":474,"context_line":""},{"line_number":475,"context_line":"    def _fast_exit(self, *args):"}],"source_content_type":"text/x-python","patch_set":2,"id":"846dfed6_b45557e7","side":"PARENT","line":472,"range":{"start_line":472,"start_character":8,"end_line":472,"end_character":35},"in_reply_to":"f196af61_045d5e9b","updated":"2026-10-29 09:36:25.000000000","message":"Yes, clear() puts every handled signal back to its default action and forgets the handlers, and in the threading backend nothing adds them again: ProcessLauncher.__init__() installs them once. Before this change that didn\u0027t matter, because a SIGHUP ended the process anyway. Now the process keeps running after a reload. If clear() stayed, then after the first SIGHUP a SIGTERM would kill the process without a graceful shutdown, and a second SIGHUP would kill it outright (SIGHUP\u0027s default action). The eventlet launcher can clear them because its wait loop adds them again on every pass. test_sighup_mutates_the_configuration checks this: after the SIGHUP, all four handlers are still installed.\n\nSo signals are handled while restart() runs. A SIGTERM goes through the graceful shutdown, as at any other time. A second SIGHUP during restart() is the case Daniel noted: with this change alone it still escapes the wait loop, and https://review.opendev.org/c/openstack/oslo.service/+/1012821 fixes it by deferring that SIGHUP until restart() returns.","commit_id":"bd15923e371cb7ae10792809f1d3814f9cb99a07"}]}
