)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"a16538adb0af68418891c1420ea70c0645a56702","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Exit rpc_loop when SIGTERM is recieved in ovs-agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously ovs-agent exitted with exit code 1 after SIGTERM was sent."},{"line_number":10,"context_line":"SIGTERM should shutdown agent gracefully and exit code should be 0."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This patch introduces module level variable to drive main rpc loop."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1ae5cdf2_dddef50f","line":9,"updated":"2014-06-25 16:59:47.000000000","message":"exitted -\u003e exited\n\nwas sent -\u003e was received","commit_id":"629efae07f251a1fc292592a640630e9ba10f003"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"38ff3f313f2f971a064a7774d4346c660a9c3676","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Exit rpc_loop when SIGTERM is recieved in ovs-agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously ovs-agent exitted with exit code 1 after SIGTERM was sent."},{"line_number":10,"context_line":"SIGTERM should shutdown agent gracefully and exit code should be 0."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This patch introduces module level variable to drive main rpc loop."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1ae5cdf2_f83f3f85","line":9,"in_reply_to":"1ae5cdf2_dddef50f","updated":"2014-06-25 17:06:22.000000000","message":"Done","commit_id":"629efae07f251a1fc292592a640630e9ba10f003"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"b556ff6558a63e3aac5172a982ed9c13cc56a6e3","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Exit rpc_loop when SIGTERM is recieved in ovs-agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously ovs-agent exitted with exit code 1 after SIGTERM was sent."},{"line_number":10,"context_line":"SIGTERM should shutdown agent gracefully and exit code should be 0."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This patch introduces module level variable to drive main rpc loop."},{"line_number":13,"context_line":"Since ovs agent runs in one process there is no need to tie variable"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1ae5cdf2_2f088827","line":10,"updated":"2014-06-25 14:00:06.000000000","message":"why exit code should be 0?  it sounds rather unusual.","commit_id":"629efae07f251a1fc292592a640630e9ba10f003"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"6b529ca56abdbeb536cd5e9927769ee4d2875f7d","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Exit rpc_loop when SIGTERM is recieved in ovs-agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously ovs-agent exitted with exit code 1 after SIGTERM was sent."},{"line_number":10,"context_line":"SIGTERM should shutdown agent gracefully and exit code should be 0."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This patch introduces module level variable to drive main rpc loop."},{"line_number":13,"context_line":"Since ovs agent runs in one process there is no need to tie variable"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1ae5cdf2_ea2f6ea5","line":10,"in_reply_to":"1ae5cdf2_2f088827","updated":"2014-06-25 14:39:07.000000000","message":"Also all other services exit correctly with 0.","commit_id":"629efae07f251a1fc292592a640630e9ba10f003"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"23f3ea2a3638d97223eda50ae0357c9c0732f5cc","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Exit rpc_loop when SIGTERM is recieved in ovs-agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously ovs-agent exitted with exit code 1 after SIGTERM was sent."},{"line_number":10,"context_line":"SIGTERM should shutdown agent gracefully and exit code should be 0."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This patch introduces module level variable to drive main rpc loop."},{"line_number":13,"context_line":"Since ovs agent runs in one process there is no need to tie variable"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1ae5cdf2_af53b8e0","line":10,"in_reply_to":"1ae5cdf2_2f088827","updated":"2014-06-25 14:07:01.000000000","message":"Because that\u0027s how process indicates correct shutdown at least in Unix world? [Probably globally since it comes from early times of C?]\n\nhttp://en.wikipedia.org/wiki/Exit_status#POSIX","commit_id":"629efae07f251a1fc292592a640630e9ba10f003"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"319f1d39b0db18c0356a9f54536385554c34c987","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Exit rpc_loop when SIGTERM is recieved in ovs-agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously ovs-agent exitted with exit code 1 after SIGTERM was sent."},{"line_number":10,"context_line":"SIGTERM should shutdown agent gracefully and exit code should be 0."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This patch introduces module level variable to drive main rpc loop."},{"line_number":13,"context_line":"Since ovs agent runs in one process there is no need to tie variable"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1ae5cdf2_49006f35","line":10,"in_reply_to":"1ae5cdf2_ea2f6ea5","updated":"2014-06-25 15:19:42.000000000","message":"ok, it seems at least consistent within neutron.","commit_id":"629efae07f251a1fc292592a640630e9ba10f003"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"4f5cdaa2ef08d563c1e0acca2b3be2de401ac8af","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Jakub Libosvar \u003clibosvar@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-06-26 10:20:57 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Exit rpc_loop when SIGTERM is recieved in ovs-agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously ovs-agent exited with exit code 1 after SIGTERM was received."},{"line_number":10,"context_line":"SIGTERM should shutdown agent gracefully and exit code should be 0."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1ae5cdf2_15d80d52","line":7,"updated":"2014-06-26 14:51:38.000000000","message":"nit recieved -\u003e received","commit_id":"60fc1f64fabd86c38846c76785255c523a98b331"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7bf80ba73ee8bf77444ad9c12e3b5adb526bcf1","unresolved":false,"context_lines":[{"line_number":1443,"context_line":"            self.rpc_loop(polling_manager\u003dpm)"},{"line_number":1444,"context_line":""},{"line_number":1445,"context_line":""},{"line_number":1446,"context_line":"@lockutils.synchronized(\u0027ovs-sigterm\u0027)"},{"line_number":1447,"context_line":"def handle_sigterm(signum, frame):"},{"line_number":1448,"context_line":"    global _got_sigterm"},{"line_number":1449,"context_line":"    _got_sigterm \u003d True"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_19a4fa06","line":1446,"updated":"2014-06-25 13:17:31.000000000","message":"why do you lock here? sole state change possible here is from False to True, so even if we get two signals at the same time, global flag will eventually get to proper value, and rpc_loop will exit.\n\nOr am I missing smth?","commit_id":"1370d200a88e12f03b13d03fe8c065d3c5bad1b5"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"88595e261e8845907c2d668ff415732c21cbb143","unresolved":false,"context_lines":[{"line_number":1443,"context_line":"            self.rpc_loop(polling_manager\u003dpm)"},{"line_number":1444,"context_line":""},{"line_number":1445,"context_line":""},{"line_number":1446,"context_line":"@lockutils.synchronized(\u0027ovs-sigterm\u0027)"},{"line_number":1447,"context_line":"def handle_sigterm(signum, frame):"},{"line_number":1448,"context_line":"    global _got_sigterm"},{"line_number":1449,"context_line":"    _got_sigterm \u003d True"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_b9ea26d6","line":1446,"in_reply_to":"1ae5cdf2_19a4fa06","updated":"2014-06-25 13:23:11.000000000","message":"The reason was because I was afraid of mutual write. Simply because I don\u0027t know what happens. If you think it\u0027s safe without, I\u0027m ok to remove the lock.","commit_id":"1370d200a88e12f03b13d03fe8c065d3c5bad1b5"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"108a07a64e63cd823818e4c0712ddfe9d21e97d1","unresolved":false,"context_lines":[{"line_number":1443,"context_line":"            self.rpc_loop(polling_manager\u003dpm)"},{"line_number":1444,"context_line":""},{"line_number":1445,"context_line":""},{"line_number":1446,"context_line":"@lockutils.synchronized(\u0027ovs-sigterm\u0027)"},{"line_number":1447,"context_line":"def handle_sigterm(signum, frame):"},{"line_number":1448,"context_line":"    global _got_sigterm"},{"line_number":1449,"context_line":"    _got_sigterm \u003d True"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_59d922f3","line":1446,"in_reply_to":"1ae5cdf2_b9ea26d6","updated":"2014-06-25 13:29:46.000000000","message":"It should be safe if this is the only state change (False -\u003e True)","commit_id":"1370d200a88e12f03b13d03fe8c065d3c5bad1b5"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"a16538adb0af68418891c1420ea70c0645a56702","unresolved":false,"context_lines":[{"line_number":1443,"context_line":""},{"line_number":1444,"context_line":""},{"line_number":1445,"context_line":"def handle_sigterm(signum, frame):"},{"line_number":1446,"context_line":"    global _got_sigterm"},{"line_number":1447,"context_line":"    _got_sigterm \u003d True"},{"line_number":1448,"context_line":""},{"line_number":1449,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_180b0b25","line":1446,"updated":"2014-06-25 16:59:47.000000000","message":"Instead of using a global, consider adding this signal handler to the agent so the flag can be internal, e.g.\n\n def handle_sigterm(self, signum, frame):\n  self._got_sigterm \u003d True\n\n signal.signal(signal.SIGTERM, agent.handle_sigterm)","commit_id":"629efae07f251a1fc292592a640630e9ba10f003"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"38ff3f313f2f971a064a7774d4346c660a9c3676","unresolved":false,"context_lines":[{"line_number":1443,"context_line":""},{"line_number":1444,"context_line":""},{"line_number":1445,"context_line":"def handle_sigterm(signum, frame):"},{"line_number":1446,"context_line":"    global _got_sigterm"},{"line_number":1447,"context_line":"    _got_sigterm \u003d True"},{"line_number":1448,"context_line":""},{"line_number":1449,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_185a2bf2","line":1446,"in_reply_to":"1ae5cdf2_180b0b25","updated":"2014-06-25 17:06:22.000000000","message":"Done","commit_id":"629efae07f251a1fc292592a640630e9ba10f003"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"8cd722e8df7f60d19f9047a4ed240cba139abbb5","unresolved":false,"context_lines":[{"line_number":1445,"context_line":"def handle_sigterm(signum, frame):"},{"line_number":1446,"context_line":"    global _got_sigterm"},{"line_number":1447,"context_line":"    _got_sigterm \u003d True"},{"line_number":1448,"context_line":""},{"line_number":1449,"context_line":""},{"line_number":1450,"context_line":"def create_agent_config_map(config):"},{"line_number":1451,"context_line":"    \"\"\"Create a map of agent config parameters."}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_c95e3f79","line":1448,"updated":"2014-06-25 15:19:15.000000000","message":"isn\u0027t it simpler to call sys.exit(0) here?","commit_id":"629efae07f251a1fc292592a640630e9ba10f003"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"4d9b10f156b890f3e95a8c8c2fdf54057601bc08","unresolved":false,"context_lines":[{"line_number":1445,"context_line":"def handle_sigterm(signum, frame):"},{"line_number":1446,"context_line":"    global _got_sigterm"},{"line_number":1447,"context_line":"    _got_sigterm \u003d True"},{"line_number":1448,"context_line":""},{"line_number":1449,"context_line":""},{"line_number":1450,"context_line":"def create_agent_config_map(config):"},{"line_number":1451,"context_line":"    \"\"\"Create a map of agent config parameters."}],"source_content_type":"text/x-python","patch_set":2,"id":"1ae5cdf2_8ce5253a","line":1448,"in_reply_to":"1ae5cdf2_c95e3f79","updated":"2014-06-25 15:32:17.000000000","message":"It surely is simpler but it won\u0027t guarantee rpc loop has ended without ongoing work","commit_id":"629efae07f251a1fc292592a640630e9ba10f003"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"ce307c666404865d8f784532d891f4b3bc09026a","unresolved":false,"context_lines":[{"line_number":1441,"context_line":"            self.rpc_loop(polling_manager\u003dpm)"},{"line_number":1442,"context_line":""},{"line_number":1443,"context_line":"    def _handle_sigterm(self, signum, frame):"},{"line_number":1444,"context_line":"        LOG.debug(_(\"Agent caught SIGTERM, quitting daemon loop.\"))"},{"line_number":1445,"context_line":"        self.run_daemon_loop \u003d False"},{"line_number":1446,"context_line":""},{"line_number":1447,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_ab02be6f","line":1444,"updated":"2014-06-25 19:51:05.000000000","message":"Do we translate debug messages? I think no. See: http://docs.openstack.org/developer/oslo.i18n/guidelines.html#log-translation","commit_id":"6a6d89090d2cb699f41b01809bfc27511c16e1d0"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"dd1051ceb80fd7901b428b03d28f1433dcc7e1ee","unresolved":false,"context_lines":[{"line_number":1441,"context_line":"            self.rpc_loop(polling_manager\u003dpm)"},{"line_number":1442,"context_line":""},{"line_number":1443,"context_line":"    def _handle_sigterm(self, signum, frame):"},{"line_number":1444,"context_line":"        LOG.debug(_(\"Agent caught SIGTERM, quitting daemon loop.\"))"},{"line_number":1445,"context_line":"        self.run_daemon_loop \u003d False"},{"line_number":1446,"context_line":""},{"line_number":1447,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_34fe0639","line":1444,"updated":"2014-06-25 23:26:30.000000000","message":"agreed, but for consistency with this file we can mantain this.","commit_id":"6a6d89090d2cb699f41b01809bfc27511c16e1d0"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"0b359ad2ac0713a4244dda1c56a64beed1deedba","unresolved":false,"context_lines":[{"line_number":1441,"context_line":"            self.rpc_loop(polling_manager\u003dpm)"},{"line_number":1442,"context_line":""},{"line_number":1443,"context_line":"    def _handle_sigterm(self, signum, frame):"},{"line_number":1444,"context_line":"        LOG.debug(_(\"Agent caught SIGTERM, quitting daemon loop.\"))"},{"line_number":1445,"context_line":"        self.run_daemon_loop \u003d False"},{"line_number":1446,"context_line":""},{"line_number":1447,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_79679ab8","line":1444,"in_reply_to":"1ae5cdf2_1f3923d8","updated":"2014-06-26 08:09:57.000000000","message":"Putting even more burden on translators? I have some localisation background, I now how painful it is when developers mark everything for translation without considering the limits of translators\u0027 community.","commit_id":"6a6d89090d2cb699f41b01809bfc27511c16e1d0"},{"author":{"_account_id":704,"name":"Edgar Magana","email":"emagana@gmail.com","username":"emagana"},"change_message_id":"55144c7708b30d537bda5f44f5f7a5be9876d2c1","unresolved":false,"context_lines":[{"line_number":1441,"context_line":"            self.rpc_loop(polling_manager\u003dpm)"},{"line_number":1442,"context_line":""},{"line_number":1443,"context_line":"    def _handle_sigterm(self, signum, frame):"},{"line_number":1444,"context_line":"        LOG.debug(_(\"Agent caught SIGTERM, quitting daemon loop.\"))"},{"line_number":1445,"context_line":"        self.run_daemon_loop \u003d False"},{"line_number":1446,"context_line":""},{"line_number":1447,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_1f3923d8","line":1444,"in_reply_to":"1ae5cdf2_34fe0639","updated":"2014-06-25 23:46:16.000000000","message":"agree with Mark, we can merge this one.","commit_id":"6a6d89090d2cb699f41b01809bfc27511c16e1d0"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"4615f98b52610942e56baa6b48a520a54105c865","unresolved":false,"context_lines":[{"line_number":1441,"context_line":"            self.rpc_loop(polling_manager\u003dpm)"},{"line_number":1442,"context_line":""},{"line_number":1443,"context_line":"    def _handle_sigterm(self, signum, frame):"},{"line_number":1444,"context_line":"        LOG.debug(_(\"Agent caught SIGTERM, quitting daemon loop.\"))"},{"line_number":1445,"context_line":"        self.run_daemon_loop \u003d False"},{"line_number":1446,"context_line":""},{"line_number":1447,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_f9300a57","line":1444,"in_reply_to":"1ae5cdf2_79679ab8","updated":"2014-06-26 08:22:00.000000000","message":"Done","commit_id":"6a6d89090d2cb699f41b01809bfc27511c16e1d0"}]}
