)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"32210b9cf51533fdcd990d1896154cb4d4f803a2","unresolved":false,"context_lines":[{"line_number":7,"context_line":"OVS-Agent crashes when OVS dead(Alternative II)"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Alternative patch of https://review.openstack.org/#/c/110538/"},{"line_number":10,"context_line":"(Just for reference, and this line will be removed before merge.)"},{"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"},{"line_number":13,"context_line":"figure out this error status(only check ovs restarted status) and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"7ac7a964_390035aa","line":10,"updated":"2014-08-14 10:03:25.000000000","message":"if this is not intended to be merged, it\u0027s appropriate to put workflow -1.","commit_id":"7c7a766a7c112a23a24e845cb95da913b767c9c3"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"fbead6dd09dfca656a39ea21ecb3e134d47d7d06","unresolved":false,"context_lines":[{"line_number":1341,"context_line":"                time.sleep(self.polling_interval)"},{"line_number":1342,"context_line":"            else:"},{"line_number":1343,"context_line":"                # OVS is in normal status"},{"line_number":1344,"context_line":"                return False"},{"line_number":1345,"context_line":""},{"line_number":1346,"context_line":"    def rpc_loop(self, polling_manager\u003dNone):"},{"line_number":1347,"context_line":"        if not polling_manager:"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_1435f044","line":1344,"updated":"2014-08-13 08:39:21.000000000","message":"Thanks for pursuing another alternative.\r\n\r\nThis approach looks to be simpler than Alternative I.\r\n\r\nWill we be able to ensure that physical bridges are available to program flows on OVS Restart? \r\n\r\nPhysical bridges need to be pre-configured an available in OVS for use by ovs-agent\r\n\r\nAlso we may want to ensure to tackle l2pop trying to add/delete flows when ovs is down (or restarted).","commit_id":"c4a80268869bb55d1864e7a9ba9e292fe7d2eda3"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"954291e281f9fb2e6b0b7bce29fa36321614f381","unresolved":false,"context_lines":[{"line_number":1341,"context_line":"                time.sleep(self.polling_interval)"},{"line_number":1342,"context_line":"            else:"},{"line_number":1343,"context_line":"                # OVS is in normal status"},{"line_number":1344,"context_line":"                return False"},{"line_number":1345,"context_line":""},{"line_number":1346,"context_line":"    def rpc_loop(self, polling_manager\u003dNone):"},{"line_number":1347,"context_line":"        if not polling_manager:"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_9e268f67","line":1344,"in_reply_to":"baada198_1435f044","updated":"2014-08-14 09:35:20.000000000","message":"Thanks for the review, Vivekanandan. \n\n* Availability of physical br is guaranteed by existing code. Right after check_ovs_restart returns True, all bridges are re-constructed, including br-int/br-tunnel/br-eth.\n\n* I\u0027ve also been considering async operations of l2pop. Would prefer to address it incrementally in another patch soon.\n\nThanks very much.","commit_id":"c4a80268869bb55d1864e7a9ba9e292fe7d2eda3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"32210b9cf51533fdcd990d1896154cb4d4f803a2","unresolved":false,"context_lines":[{"line_number":1325,"context_line":""},{"line_number":1326,"context_line":"    def check_ovs_restart(self):"},{"line_number":1327,"context_line":"        canary_flow \u003d None"},{"line_number":1328,"context_line":"        while canary_flow is None:"},{"line_number":1329,"context_line":"            # Check for the canary flow"},{"line_number":1330,"context_line":"            canary_flow \u003d self.int_br.dump_flows_for_table("},{"line_number":1331,"context_line":"                constants.CANARY_TABLE)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7ac7a964_79638db1","line":1328,"updated":"2014-08-14 10:03:25.000000000","message":"while True: is simpler.","commit_id":"7c7a766a7c112a23a24e845cb95da913b767c9c3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"32210b9cf51533fdcd990d1896154cb4d4f803a2","unresolved":false,"context_lines":[{"line_number":1331,"context_line":"                constants.CANARY_TABLE)"},{"line_number":1332,"context_line":"            if canary_flow \u003d\u003d \u0027\u0027:"},{"line_number":1333,"context_line":"                LOG.debug(_(\"OVS is restarted. Reset bridges and \""},{"line_number":1334,"context_line":"                            \"recover ports.\"))"},{"line_number":1335,"context_line":"                return True"},{"line_number":1336,"context_line":"            elif canary_flow is None:"},{"line_number":1337,"context_line":"                LOG.error(_(\"OVS is dead. OVSNeutronAgent keeps running \""}],"source_content_type":"text/x-python","patch_set":6,"id":"7ac7a964_f9d95d84","line":1334,"updated":"2014-08-14 10:03:25.000000000","message":"do not localize debug log","commit_id":"7c7a766a7c112a23a24e845cb95da913b767c9c3"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"742acf8a870767376c2d629d7d07a317326b6c53","unresolved":false,"context_lines":[{"line_number":1329,"context_line":"            canary_flow \u003d self.int_br.dump_flows_for_table("},{"line_number":1330,"context_line":"                constants.CANARY_TABLE)"},{"line_number":1331,"context_line":"            if canary_flow \u003d\u003d \u0027\u0027:"},{"line_number":1332,"context_line":"                LOG.debug(_(\"OVS is restarted. Reset bridges and \""},{"line_number":1333,"context_line":"                            \"recover ports.\"))"},{"line_number":1334,"context_line":"                return True"},{"line_number":1335,"context_line":"            elif canary_flow is None:"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_ff921d9e","line":1332,"updated":"2014-08-18 10:24:33.000000000","message":"per new rules, we\u0027re not translating debug log messages","commit_id":"87a2777c68107d4d247501b8dd49709972e7c462"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"2f731daf816ed6395be980ea9b9062fdf8b4f964","unresolved":false,"context_lines":[{"line_number":1329,"context_line":"            canary_flow \u003d self.int_br.dump_flows_for_table("},{"line_number":1330,"context_line":"                constants.CANARY_TABLE)"},{"line_number":1331,"context_line":"            if canary_flow \u003d\u003d \u0027\u0027:"},{"line_number":1332,"context_line":"                LOG.debug(_(\"OVS is restarted. Reset bridges and \""},{"line_number":1333,"context_line":"                            \"recover ports.\"))"},{"line_number":1334,"context_line":"                return True"},{"line_number":1335,"context_line":"            elif canary_flow is None:"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_8ad8891f","line":1332,"in_reply_to":"1abeadc6_bd26e3b8","updated":"2014-08-28 08:10:38.000000000","message":"enikanorov\u0027s comment was to remove the translation, not stop logging, e.g.\n\n LOG.debug(\"OVS is restarted...\")\n \ninstead of \n\n LOG.debug(_(\u0027OVS is restarted...\"))","commit_id":"87a2777c68107d4d247501b8dd49709972e7c462"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"7a903939fba95e5f95a26d0783197a95e57b31f4","unresolved":false,"context_lines":[{"line_number":1329,"context_line":"            canary_flow \u003d self.int_br.dump_flows_for_table("},{"line_number":1330,"context_line":"                constants.CANARY_TABLE)"},{"line_number":1331,"context_line":"            if canary_flow \u003d\u003d \u0027\u0027:"},{"line_number":1332,"context_line":"                LOG.debug(_(\"OVS is restarted. Reset bridges and \""},{"line_number":1333,"context_line":"                            \"recover ports.\"))"},{"line_number":1334,"context_line":"                return True"},{"line_number":1335,"context_line":"            elif canary_flow is None:"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_bd26e3b8","line":1332,"in_reply_to":"1abeadc6_ff921d9e","updated":"2014-08-18 14:57:54.000000000","message":"Thanks, Eugene. IMO, ovs restart and bridges reset should be logged. Should I use LOG.info instead, or remove it?","commit_id":"87a2777c68107d4d247501b8dd49709972e7c462"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"742acf8a870767376c2d629d7d07a317326b6c53","unresolved":false,"context_lines":[{"line_number":1337,"context_line":"                            \"and detecting ovs status periodically. \"))"},{"line_number":1338,"context_line":"                # Agent doesn\u0027t apply any operations till ovs is alive,"},{"line_number":1339,"context_line":"                # to prevent unexpected failure or crash."},{"line_number":1340,"context_line":"                time.sleep(self.polling_interval)"},{"line_number":1341,"context_line":"            else:"},{"line_number":1342,"context_line":"                # OVS is in normal status"},{"line_number":1343,"context_line":"                return False"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_bff8a5e6","line":1340,"updated":"2014-08-18 10:24:33.000000000","message":"not sure if polling_interval usage is appropriate here at all, calling method is sleeping polling_interval seconds anyway","commit_id":"87a2777c68107d4d247501b8dd49709972e7c462"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"7a903939fba95e5f95a26d0783197a95e57b31f4","unresolved":false,"context_lines":[{"line_number":1337,"context_line":"                            \"and detecting ovs status periodically. \"))"},{"line_number":1338,"context_line":"                # Agent doesn\u0027t apply any operations till ovs is alive,"},{"line_number":1339,"context_line":"                # to prevent unexpected failure or crash."},{"line_number":1340,"context_line":"                time.sleep(self.polling_interval)"},{"line_number":1341,"context_line":"            else:"},{"line_number":1342,"context_line":"                # OVS is in normal status"},{"line_number":1343,"context_line":"                return False"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_fdabfb86","line":1340,"in_reply_to":"1abeadc6_bff8a5e6","updated":"2014-08-18 14:57:54.000000000","message":"calling method \"rpc_loop\" doesn\u0027t sleep when ovs is dead, since check_ovs_restarted will not return till ovs is alive again. So if no sleep here, it\u0027ll apply \"ovs-ofctl dump-flows\" one after another here, which is too frequent.\nNot sure whether we can re-use polling_interval, instead of introducing a new config parameter, to make it simpler. Thanks.","commit_id":"87a2777c68107d4d247501b8dd49709972e7c462"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"2f731daf816ed6395be980ea9b9062fdf8b4f964","unresolved":false,"context_lines":[{"line_number":1337,"context_line":"                            \"and detecting ovs status periodically. \"))"},{"line_number":1338,"context_line":"                # Agent doesn\u0027t apply any operations till ovs is alive,"},{"line_number":1339,"context_line":"                # to prevent unexpected failure or crash."},{"line_number":1340,"context_line":"                time.sleep(self.polling_interval)"},{"line_number":1341,"context_line":"            else:"},{"line_number":1342,"context_line":"                # OVS is in normal status"},{"line_number":1343,"context_line":"                return False"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_ca644124","line":1340,"in_reply_to":"1abeadc6_fdabfb86","updated":"2014-08-28 08:10:38.000000000","message":"I think reusing the polling interval should be acceptable here.  Reconnection can sometimes benefit from a backoff (increasing interval) but given that the ovs daemon is only being used locally that isn\u0027t really required here.","commit_id":"87a2777c68107d4d247501b8dd49709972e7c462"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"257a4f5f8dcb94a5e213056ce777d052d505ef53","unresolved":false,"context_lines":[{"line_number":1329,"context_line":"            canary_flow \u003d self.int_br.dump_flows_for_table("},{"line_number":1330,"context_line":"                constants.CANARY_TABLE)"},{"line_number":1331,"context_line":"            if canary_flow \u003d\u003d \u0027\u0027:"},{"line_number":1332,"context_line":"                LOG.debug(_(\"OVS is restarted. Reset bridges and \""},{"line_number":1333,"context_line":"                            \"recover ports.\"))"},{"line_number":1334,"context_line":"                return True"},{"line_number":1335,"context_line":"            elif canary_flow is None:"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_8a7ec9ad","line":1332,"updated":"2014-08-28 08:11:44.000000000","message":"As per the comments on the previous patch, please remove the translation from this log message (e.g. LOG.debug(_(\"...\")) -\u003e LOG.debug(\"...\"))","commit_id":"aea5bf63ce33cf52f3960a977856dcc924c9bb23"},{"author":{"_account_id":7743,"name":"Robin Wang","email":"wangbibo@huawei.com","username":"RobinWang"},"change_message_id":"4478e9ef0ffabf4cd848c93b0ebfa8a4ecc52c5d","unresolved":false,"context_lines":[{"line_number":1329,"context_line":"            canary_flow \u003d self.int_br.dump_flows_for_table("},{"line_number":1330,"context_line":"                constants.CANARY_TABLE)"},{"line_number":1331,"context_line":"            if canary_flow \u003d\u003d \u0027\u0027:"},{"line_number":1332,"context_line":"                LOG.debug(_(\"OVS is restarted. Reset bridges and \""},{"line_number":1333,"context_line":"                            \"recover ports.\"))"},{"line_number":1334,"context_line":"                return True"},{"line_number":1335,"context_line":"            elif canary_flow is None:"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_49488987","line":1332,"in_reply_to":"1abeadc6_8a7ec9ad","updated":"2014-09-10 07:35:13.000000000","message":"Thanks for the detailed coach, Maru. Will modify it ASAP.","commit_id":"aea5bf63ce33cf52f3960a977856dcc924c9bb23"}]}
