)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"5b7e864fe86165e978200a071dfb908321094d66","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Neutron-ovs-agent crashes when OVS is restarted/dead"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Fix: Bug #1296202"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"OVS crash/restart is unpredictable, so neutron-ovs-agent should be"},{"line_number":12,"context_line":"robust enough under that situation. But currently ovs-agent would"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_756454e6","line":9,"updated":"2014-07-30 05:56:30.000000000","message":"Closes-Bug: #1296202","commit_id":"6e650964bc9af404cf3860a6f6517d19af383ff6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"6a7d08d8e8b353086e9eee5655d4c3ebacf7db10","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-07-30 16:58:18 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Neutron-ovs-agent crashes when OVS is restarted/dead"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Fix: Bug #1296202"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"OVS crash/restart is unpredictable, so neutron-ovs-agent should be"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_c8545f58","line":8,"updated":"2014-07-31 20:21:20.000000000","message":"Closes-Bug: #1296202, after the \"OVS crash/restart...\" paragraph, with a blank line between the paragraph and the \"Closes-Bug\" line.","commit_id":"67a155f9a21c94f75574d1e2e152b2381b67ceaa"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"d02431a65d419cf0648286bd1a56e1199fb1ab61","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Neutron-ovs-agent crashes when OVS is restarted/dead"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Fix: Bug #1296202"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"OVS crash/restart is unpredictable, so neutron-ovs-agent should be"},{"line_number":12,"context_line":"robust enough under that situation. But currently ovs-agent doesn\u0027t"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"baada198_21095fdd","line":9,"updated":"2014-08-01 11:16:56.000000000","message":"Closes-bug: #1296202\n\nand please move this live to the end (before or after Change-Id)","commit_id":"1653f0bff50a90dfaa685befda23d760e4902410"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"5b7e864fe86165e978200a071dfb908321094d66","unresolved":false,"context_lines":[{"line_number":1384,"context_line":"                port_info.get(\u0027removed\u0027) or"},{"line_number":1385,"context_line":"                port_info.get(\u0027updated\u0027))"},{"line_number":1386,"context_line":""},{"line_number":1387,"context_line":"    def check_ovs_status(self):"},{"line_number":1388,"context_line":"        # Check for the canary flow"},{"line_number":1389,"context_line":"        canary_flow \u003d self.int_br.dump_flows_for_table(constants.CANARY_TABLE)"},{"line_number":1390,"context_line":"        if canary_flow \u003d\u003d \u0027\u0027:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_95d64852","line":1387,"updated":"2014-07-30 05:56:30.000000000","message":"you need to update UTs.","commit_id":"6e650964bc9af404cf3860a6f6517d19af383ff6"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"629d5c28bd509c3e199567b2fa7bddaaebe50832","unresolved":false,"context_lines":[{"line_number":1384,"context_line":"                port_info.get(\u0027removed\u0027) or"},{"line_number":1385,"context_line":"                port_info.get(\u0027updated\u0027))"},{"line_number":1386,"context_line":""},{"line_number":1387,"context_line":"    def check_ovs_status(self):"},{"line_number":1388,"context_line":"        # Check for the canary flow"},{"line_number":1389,"context_line":"        canary_flow \u003d self.int_br.dump_flows_for_table(constants.CANARY_TABLE)"},{"line_number":1390,"context_line":"        if canary_flow \u003d\u003d \u0027\u0027:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_95756835","line":1387,"in_reply_to":"baada198_95d64852","updated":"2014-07-30 07:41:32.000000000","message":"Sure. Will update soon.","commit_id":"6e650964bc9af404cf3860a6f6517d19af383ff6"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"5b7e864fe86165e978200a071dfb908321094d66","unresolved":false,"context_lines":[{"line_number":1392,"context_line":"        elif canary_flow is None:"},{"line_number":1393,"context_line":"            return constants.OVS_DEAD"},{"line_number":1394,"context_line":"        else:"},{"line_number":1395,"context_line":"            return constants.OVS_NORMAL"},{"line_number":1396,"context_line":""},{"line_number":1397,"context_line":"    def rpc_loop(self, polling_manager\u003dNone):"},{"line_number":1398,"context_line":"        if not polling_manager:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_b58c2c82","line":1395,"updated":"2014-07-30 05:56:30.000000000","message":"isn\u0027t it simpler to loop in this method while it\u0027s DEAD?","commit_id":"6e650964bc9af404cf3860a6f6517d19af383ff6"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"629d5c28bd509c3e199567b2fa7bddaaebe50832","unresolved":false,"context_lines":[{"line_number":1392,"context_line":"        elif canary_flow is None:"},{"line_number":1393,"context_line":"            return constants.OVS_DEAD"},{"line_number":1394,"context_line":"        else:"},{"line_number":1395,"context_line":"            return constants.OVS_NORMAL"},{"line_number":1396,"context_line":""},{"line_number":1397,"context_line":"    def rpc_loop(self, polling_manager\u003dNone):"},{"line_number":1398,"context_line":"        if not polling_manager:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_f58b0415","line":1395,"in_reply_to":"baada198_b58c2c82","updated":"2014-07-30 07:41:32.000000000","message":"Sounds good. I\u0027ll consider it. :)","commit_id":"6e650964bc9af404cf3860a6f6517d19af383ff6"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"9b6bd4bcba5c765572f5d99515b1876aa15394b5","unresolved":false,"context_lines":[{"line_number":1407,"context_line":"                ancillary_ports.clear()"},{"line_number":1408,"context_line":"                sync \u003d False"},{"line_number":1409,"context_line":"                polling_manager.force_polling()"},{"line_number":1410,"context_line":"            ovs_status \u003d self.check_ovs_status(True)"},{"line_number":1411,"context_line":"            if ovs_status \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1412,"context_line":"                self.setup_integration_br()"},{"line_number":1413,"context_line":"                self.setup_physical_bridges(self.bridge_mappings)"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_d7e2e4d2","line":1410,"updated":"2014-08-04 11:18:58.000000000","message":"I would have done:\nif ovs_status \u003d\u003d constants.OVS_DEAD:\n    continue\n\nWhy not?","commit_id":"4aa0e06477d246912ad5d002ef45e102e4be0286"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"72e206b7dd7ca7795854205606f5a5ad6f9d7d7f","unresolved":false,"context_lines":[{"line_number":1407,"context_line":"                ancillary_ports.clear()"},{"line_number":1408,"context_line":"                sync \u003d False"},{"line_number":1409,"context_line":"                polling_manager.force_polling()"},{"line_number":1410,"context_line":"            ovs_status \u003d self.check_ovs_status(True)"},{"line_number":1411,"context_line":"            if ovs_status \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1412,"context_line":"                self.setup_integration_br()"},{"line_number":1413,"context_line":"                self.setup_physical_bridges(self.bridge_mappings)"}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_d36587e2","line":1410,"in_reply_to":"baada198_d7e2e4d2","updated":"2014-08-14 10:14:18.000000000","message":"Thanks for reviewing, Salvatore. \n\n\"continue\" is not used here, because in that case,\n\"time.sleep(self.polling_interval - elapsed)\" is not executed.\n\nThen canary_flow checking is applied too frequently. \"ovs-ofctl dump-flow\" is executed upon ovs one after another very frequently.","commit_id":"4aa0e06477d246912ad5d002ef45e102e4be0286"},{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"a891b72b4fd30964c0c80cb3010ce3fb534c4dd6","unresolved":false,"context_lines":[{"line_number":411,"context_line":"        LOG.debug(\"update chg_ip received\")"},{"line_number":412,"context_line":"        with self.tun_br.deferred() as deferred_br:"},{"line_number":413,"context_line":"            self.fdb_chg_ip_tun(context, deferred_br, fdb_entries,"},{"line_number":414,"context_line":"                                self.local_ip, self.local_vlan_map)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"    def setup_entry_for_arp_reply(self, br, action, local_vid, mac_address,"},{"line_number":417,"context_line":"                                  ip_address):"}],"source_content_type":"text/x-python","patch_set":13,"id":"baada198_31a68d0e","line":414,"updated":"2014-08-13 04:04:11.000000000","message":"We may need to ensure calls to OVS due to l2pop invocations are not affected, as these calls are asynchronous.  We need to check for OVS_NORMAL for these as well.","commit_id":"38791f0d2cc133a380fb4af66dcb30a0628ee49f"},{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"17b6023d58af5b5ee9350765916a5a76c569013e","unresolved":false,"context_lines":[{"line_number":411,"context_line":"        LOG.debug(\"update chg_ip received\")"},{"line_number":412,"context_line":"        with self.tun_br.deferred() as deferred_br:"},{"line_number":413,"context_line":"            self.fdb_chg_ip_tun(context, deferred_br, fdb_entries,"},{"line_number":414,"context_line":"                                self.local_ip, self.local_vlan_map)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"    def setup_entry_for_arp_reply(self, br, action, local_vid, mac_address,"},{"line_number":417,"context_line":"                                  ip_address):"}],"source_content_type":"text/x-python","patch_set":13,"id":"7ac7a964_449341fa","line":414,"in_reply_to":"7ac7a964_5e04f77d","updated":"2014-08-14 11:36:50.000000000","message":"Good to know.","commit_id":"38791f0d2cc133a380fb4af66dcb30a0628ee49f"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"1e3c1e13505b8a07bb8aebbaecd745af0d933538","unresolved":false,"context_lines":[{"line_number":411,"context_line":"        LOG.debug(\"update chg_ip received\")"},{"line_number":412,"context_line":"        with self.tun_br.deferred() as deferred_br:"},{"line_number":413,"context_line":"            self.fdb_chg_ip_tun(context, deferred_br, fdb_entries,"},{"line_number":414,"context_line":"                                self.local_ip, self.local_vlan_map)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"    def setup_entry_for_arp_reply(self, br, action, local_vid, mac_address,"},{"line_number":417,"context_line":"                                  ip_address):"}],"source_content_type":"text/x-python","patch_set":13,"id":"7ac7a964_5e04f77d","line":414,"in_reply_to":"baada198_31a68d0e","updated":"2014-08-14 09:50:22.000000000","message":"I\u0027ve also been considering async operations of l2pop. Would prefer to fix the crash first and then address async issue incrementally in another patch soon.","commit_id":"38791f0d2cc133a380fb4af66dcb30a0628ee49f"},{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"a891b72b4fd30964c0c80cb3010ce3fb534c4dd6","unresolved":false,"context_lines":[{"line_number":1382,"context_line":"                                                    self.patch_tun_ofport)"},{"line_number":1383,"context_line":"                self.dvr_agent.setup_dvr_flows_on_integ_tun_br()"},{"line_number":1384,"context_line":"            # Notify the plugin of tunnel IP"},{"line_number":1385,"context_line":"            if (ovs_status \u003d\u003d constants.OVS_NORMAL and"},{"line_number":1386,"context_line":"                self.enable_tunneling and tunnel_sync):"},{"line_number":1387,"context_line":"                LOG.info(_(\"Agent tunnel out of sync with plugin!\"))"},{"line_number":1388,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":13,"id":"baada198_51b3014e","line":1385,"updated":"2014-08-13 04:04:11.000000000","message":"Is the intention here to ensure that first communication with controller from ovs-agent happens only if OVS_NORMAL is ascertained?\r\n\r\nsetup_dvr_flows_on_integ_tun_br() call by dvr_agent a little above this line, also makes first communication to controller.  Would we see that also affected?","commit_id":"38791f0d2cc133a380fb4af66dcb30a0628ee49f"},{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"17b6023d58af5b5ee9350765916a5a76c569013e","unresolved":false,"context_lines":[{"line_number":1382,"context_line":"                                                    self.patch_tun_ofport)"},{"line_number":1383,"context_line":"                self.dvr_agent.setup_dvr_flows_on_integ_tun_br()"},{"line_number":1384,"context_line":"            # Notify the plugin of tunnel IP"},{"line_number":1385,"context_line":"            if (ovs_status \u003d\u003d constants.OVS_NORMAL and"},{"line_number":1386,"context_line":"                self.enable_tunneling and tunnel_sync):"},{"line_number":1387,"context_line":"                LOG.info(_(\"Agent tunnel out of sync with plugin!\"))"},{"line_number":1388,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":13,"id":"7ac7a964_c49f5102","line":1385,"in_reply_to":"7ac7a964_1e06ff20","updated":"2014-08-14 11:36:50.000000000","message":"Thanks for clarifying.","commit_id":"38791f0d2cc133a380fb4af66dcb30a0628ee49f"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"1e3c1e13505b8a07bb8aebbaecd745af0d933538","unresolved":false,"context_lines":[{"line_number":1382,"context_line":"                                                    self.patch_tun_ofport)"},{"line_number":1383,"context_line":"                self.dvr_agent.setup_dvr_flows_on_integ_tun_br()"},{"line_number":1384,"context_line":"            # Notify the plugin of tunnel IP"},{"line_number":1385,"context_line":"            if (ovs_status \u003d\u003d constants.OVS_NORMAL and"},{"line_number":1386,"context_line":"                self.enable_tunneling and tunnel_sync):"},{"line_number":1387,"context_line":"                LOG.info(_(\"Agent tunnel out of sync with plugin!\"))"},{"line_number":1388,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":13,"id":"7ac7a964_1e06ff20","line":1385,"in_reply_to":"baada198_51b3014e","updated":"2014-08-14 09:50:22.000000000","message":"Conditional here is to assure ovs cmd can be applied for subsequent operations. If it returns normal(true in alternative patch), it means bridge/flow initial setup(include dvr setup) is well performed during Agent initialization. If it returns restarted(false in alternative patch), it means ovs is just recovered, and line 1373 \"if ovs_status \u003d\u003d constants.OVS_RESTARTED:\" will do all initial work again(include dvr setup). If it returns dead(doesn\u0027t return but keep scanning in alternative patch), we do nothing but wait till it enters restarted mode again.\n\nSo dvr setup work should be well processed during initial/reset condition above. Please correct me if I miss sth. Thanks.","commit_id":"38791f0d2cc133a380fb4af66dcb30a0628ee49f"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"9f5f053cdf9c0d97ff04641a286521a8a866c740","unresolved":false,"context_lines":[{"line_number":1333,"context_line":"        # Check for the canary flow"},{"line_number":1334,"context_line":"        canary_flow \u003d self.int_br.dump_flows_for_table(constants.CANARY_TABLE)"},{"line_number":1335,"context_line":"        if canary_flow \u003d\u003d \u0027\u0027:"},{"line_number":1336,"context_line":"            LOG.debug(_(\"OVS is restarted.\"))"},{"line_number":1337,"context_line":"            return constants.OVS_RESTARTED"},{"line_number":1338,"context_line":"        elif canary_flow is None:"},{"line_number":1339,"context_line":"            if rpc_loop:"}],"source_content_type":"text/x-python","patch_set":14,"id":"7ac7a964_99ddc945","line":1336,"updated":"2014-08-14 10:04:58.000000000","message":"do not localize debug logs.","commit_id":"2756a781fe9bf250ec813221d89a93522a59d47d"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"9f5f053cdf9c0d97ff04641a286521a8a866c740","unresolved":false,"context_lines":[{"line_number":1339,"context_line":"            if rpc_loop:"},{"line_number":1340,"context_line":"                LOG.error(_(\"OVS is dead. OVSNeutronAgent keeps running. \""},{"line_number":1341,"context_line":"                            \"It will reset bridges and recover ports when \""},{"line_number":1342,"context_line":"                            \"OVS is alive again.\"))"},{"line_number":1343,"context_line":"            return constants.OVS_DEAD"},{"line_number":1344,"context_line":"        else:"},{"line_number":1345,"context_line":"            return constants.OVS_NORMAL"}],"source_content_type":"text/x-python","patch_set":14,"id":"7ac7a964_59ba51e2","line":1342,"updated":"2014-08-14 10:04:58.000000000","message":"it would be simpler to log in the caller and remove rpc_loop argument.","commit_id":"2756a781fe9bf250ec813221d89a93522a59d47d"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"4687fa151c3a3fca4b0ab8a10bdd2bd51f0e891d","unresolved":false,"context_lines":[{"line_number":1339,"context_line":"            if rpc_loop:"},{"line_number":1340,"context_line":"                LOG.error(_(\"OVS is dead. OVSNeutronAgent keeps running. \""},{"line_number":1341,"context_line":"                            \"It will reset bridges and recover ports when \""},{"line_number":1342,"context_line":"                            \"OVS is alive again.\"))"},{"line_number":1343,"context_line":"            return constants.OVS_DEAD"},{"line_number":1344,"context_line":"        else:"},{"line_number":1345,"context_line":"            return constants.OVS_NORMAL"}],"source_content_type":"text/x-python","patch_set":14,"id":"7ac7a964_6b0010ab","line":1342,"in_reply_to":"7ac7a964_59ba51e2","updated":"2014-08-14 10:18:35.000000000","message":"Sure, it makes sense. Thanks a lot.","commit_id":"2756a781fe9bf250ec813221d89a93522a59d47d"}],"neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"6a7d08d8e8b353086e9eee5655d4c3ebacf7db10","unresolved":false,"context_lines":[{"line_number":1304,"context_line":"        self.agent.tunnel_update(context\u003dNone, **kwargs)"},{"line_number":1305,"context_line":"        expected_calls \u003d [mock.call(\u0027gre-0a0a0a0a\u0027, \u002710.10.10.10\u0027, \u0027gre\u0027)]"},{"line_number":1306,"context_line":"        self.agent._setup_tunnel_port.assert_has_calls(expected_calls)"},{"line_number":1307,"context_line":""},{"line_number":1308,"context_line":"    def test_ovs_status(self):"},{"line_number":1309,"context_line":"        reply2 \u003d {\u0027current\u0027: set([\u0027tap0\u0027]),"},{"line_number":1310,"context_line":"                  \u0027added\u0027: set([\u0027tap2\u0027]),"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_68a19339","line":1307,"updated":"2014-07-31 20:21:20.000000000","message":"The new patch\u0027s behavior screams for a functional test, but that\u0027d be quite the undertaking.","commit_id":"67a155f9a21c94f75574d1e2e152b2381b67ceaa"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"94ac7b8c8c28e5e84d2cb5922b6da45020212be2","unresolved":false,"context_lines":[{"line_number":1304,"context_line":"        self.agent.tunnel_update(context\u003dNone, **kwargs)"},{"line_number":1305,"context_line":"        expected_calls \u003d [mock.call(\u0027gre-0a0a0a0a\u0027, \u002710.10.10.10\u0027, \u0027gre\u0027)]"},{"line_number":1306,"context_line":"        self.agent._setup_tunnel_port.assert_has_calls(expected_calls)"},{"line_number":1307,"context_line":""},{"line_number":1308,"context_line":"    def test_ovs_status(self):"},{"line_number":1309,"context_line":"        reply2 \u003d {\u0027current\u0027: set([\u0027tap0\u0027]),"},{"line_number":1310,"context_line":"                  \u0027added\u0027: set([\u0027tap2\u0027]),"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_c808d4db","line":1307,"in_reply_to":"baada198_68a19339","updated":"2014-08-01 03:48:06.000000000","message":"Thanks for the suggestion.\nWould you like to give more hint, do you mean that a functional test should be added, since UT code added here can\u0027t verify ovs_dead case? Thanks.","commit_id":"67a155f9a21c94f75574d1e2e152b2381b67ceaa"}]}
