)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"2f08f7934b715b03d87fa69882ebb9d45a41b625","unresolved":false,"context_lines":[{"line_number":15,"context_line":"in the main agent loop when polling minimization is enabled, which it is by"},{"line_number":16,"context_line":"default. If this restart is detected, the agent will run through the setup"},{"line_number":17,"context_line":"of the bridges on the host and reprogram flows for all the ports connected."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: If9e07465c43115838de23e12a4e0087c9218cea2"},{"line_number":20,"context_line":"Closes-Bug: #1290486"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7adec928_aeeaeea9","line":18,"updated":"2014-05-23 03:40:07.000000000","message":"ovs-vswitchd and ovsdb-server can be restarted independently.\nthis change seems to monitor the latter, while what you really care is the former.\nit\u0027s better to install a canary flow and monitor its lost.","commit_id":"22d7716b923d2ce834341cfc551d2f9f84875438"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"f2b0d276e328e8cf75cc31891b51147114255652","unresolved":false,"context_lines":[{"line_number":15,"context_line":"in the main agent loop when polling minimization is enabled, which it is by"},{"line_number":16,"context_line":"default. If this restart is detected, the agent will run through the setup"},{"line_number":17,"context_line":"of the bridges on the host and reprogram flows for all the ports connected."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: If9e07465c43115838de23e12a4e0087c9218cea2"},{"line_number":20,"context_line":"Closes-Bug: #1290486"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7adec928_b4ab141d","line":18,"in_reply_to":"7adec928_aeeaeea9","updated":"2014-05-23 13:20:38.000000000","message":"That\u0027s a good point, let me refactor this a bit more.","commit_id":"22d7716b923d2ce834341cfc551d2f9f84875438"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"51b01bb3a46b5e6911751eb131840e791937313d","unresolved":false,"context_lines":[{"line_number":16,"context_line":"the agent will run through the setup of the bridges on the host and reprogram"},{"line_number":17,"context_line":"flows for all the ports connected."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"DocImpact"},{"line_number":20,"context_line":"This changes adds a new table (table 23) to the integration bridge, with a"},{"line_number":21,"context_line":"single \u0027drop\u0027 flow. This is used to monitor OVS restarts and to reprogram"},{"line_number":22,"context_line":"flows from the agent."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"3ae8d1ca_afc4b392","line":19,"updated":"2014-05-28 22:19:47.000000000","message":"Not sure if this applies here and if it is important at all as from the code that processes the DocImpact, it seems the whole commit message gets copied in the bug that gets created and there is no special treatment of the comment on the DocImpact \"line\" but for what it\u0027s worth, note that the GIT Commit Good Practice page (https://wiki.openstack.org/wiki/GitCommitMessages) reads: \"The DocImpact line contains the string DocImpact, and a comment about why the change impacts documentation.\"","commit_id":"5b1f1a22b4d219b47d0d589cda6ac360ba819102"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"efddfb22b163d07fdb98f9444315d34d341106d7","unresolved":false,"context_lines":[{"line_number":16,"context_line":"the agent will run through the setup of the bridges on the host and reprogram"},{"line_number":17,"context_line":"flows for all the ports connected."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"DocImpact"},{"line_number":20,"context_line":"This changes adds a new table (table 23) to the integration bridge, with a"},{"line_number":21,"context_line":"single \u0027drop\u0027 flow. This is used to monitor OVS restarts and to reprogram"},{"line_number":22,"context_line":"flows from the agent."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"3ae8d1ca_b54fa0bd","line":19,"in_reply_to":"3ae8d1ca_afc4b392","updated":"2014-05-28 23:57:28.000000000","message":"I\u0027ll address this with the other pedant comment Mohammad.\n\n:)","commit_id":"5b1f1a22b4d219b47d0d589cda6ac360ba819102"}],"neutron/agent/linux/ovsdb_monitor.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"e44e6d31af190f52a86dc62d67c9f3bd437f2290","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        \"\"\""},{"line_number":90,"context_line":"        return bool(list(self.iter_stdout())) or not self.is_active"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def check_and_clear_restarted_flag(self):"},{"line_number":93,"context_line":"        restarted \u003d False"},{"line_number":94,"context_line":"        if self._restarted:"},{"line_number":95,"context_line":"            restarted \u003d self._restarted"}],"source_content_type":"text/x-python","patch_set":4,"id":"5adbc538_c0abe0d4","line":92,"updated":"2014-05-23 23:53:22.000000000","message":"restarted \u003d self._restarted\n\nself._restarted \u003d False\n\nreturn restarted","commit_id":"bf202108b17647294af26170816db268566482c0"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"74a8b7717195b1d5b8588b981f8816127300b2e8","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        \"\"\""},{"line_number":90,"context_line":"        return bool(list(self.iter_stdout())) or not self.is_active"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def check_and_clear_restarted_flag(self):"},{"line_number":93,"context_line":"        restarted \u003d False"},{"line_number":94,"context_line":"        if self._restarted:"},{"line_number":95,"context_line":"            restarted \u003d self._restarted"}],"source_content_type":"text/x-python","patch_set":4,"id":"5adbc538_d292d29e","line":92,"in_reply_to":"5adbc538_c0abe0d4","updated":"2014-05-25 01:50:44.000000000","message":"Done","commit_id":"bf202108b17647294af26170816db268566482c0"}],"neutron/agent/linux/polling.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"e44e6d31af190f52a86dc62d67c9f3bd437f2290","unresolved":false,"context_lines":[{"line_number":92,"context_line":"class AlwaysPoll(BasePollingManager):"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    @property"},{"line_number":95,"context_line":"    def is_polling_required(self):"},{"line_number":96,"context_line":"        return True"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":4,"id":"5adbc538_805f1872","line":95,"updated":"2014-05-23 23:53:22.000000000","message":"If it\u0027s static, why not just set it as an actual property?\n\nis_polling_required \u003d True","commit_id":"bf202108b17647294af26170816db268566482c0"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"74a8b7717195b1d5b8588b981f8816127300b2e8","unresolved":false,"context_lines":[{"line_number":92,"context_line":"class AlwaysPoll(BasePollingManager):"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    @property"},{"line_number":95,"context_line":"    def is_polling_required(self):"},{"line_number":96,"context_line":"        return True"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":4,"id":"5adbc538_128d1a7c","line":95,"in_reply_to":"5adbc538_805f1872","updated":"2014-05-25 01:50:44.000000000","message":"Changing that here would not be related to this bug, so I\u0027ll leave it here and perhaps submit a follow on patch for this location.","commit_id":"bf202108b17647294af26170816db268566482c0"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"e44e6d31af190f52a86dc62d67c9f3bd437f2290","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    @property"},{"line_number":99,"context_line":"    def service_restarted(self):"},{"line_number":100,"context_line":"        return False"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"class InterfacePollingMinimizer(BasePollingManager):"}],"source_content_type":"text/x-python","patch_set":4,"id":"5adbc538_605a0c85","line":100,"updated":"2014-05-23 23:53:22.000000000","message":"ditto","commit_id":"bf202108b17647294af26170816db268566482c0"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"74a8b7717195b1d5b8588b981f8816127300b2e8","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    @property"},{"line_number":99,"context_line":"    def service_restarted(self):"},{"line_number":100,"context_line":"        return False"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"class InterfacePollingMinimizer(BasePollingManager):"}],"source_content_type":"text/x-python","patch_set":4,"id":"5adbc538_32e9361b","line":100,"in_reply_to":"5adbc538_605a0c85","updated":"2014-05-25 01:50:44.000000000","message":"Done","commit_id":"bf202108b17647294af26170816db268566482c0"}],"neutron/agent/linux/utils.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ddc358957239112923ce3658e4e6603ed9d6de0c","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":"def get_pid(name):"},{"line_number":87,"context_line":"    \"\"\"Return a list of pids for the named process.\"\"\""},{"line_number":88,"context_line":"    process \u003d subprocess.Popen([\u0027pidof\u0027, name],"},{"line_number":89,"context_line":"                               stdout\u003dsubprocess.PIPE)"},{"line_number":90,"context_line":"    result \u003d process.communicate()[0].rstrip()"},{"line_number":91,"context_line":"    return result"}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_d51f1708","line":88,"range":{"start_line":88,"start_character":33,"end_line":88,"end_character":38},"updated":"2014-05-26 03:05:02.000000000","message":"is this \u0027pidof\u0027 command ubiquitous?","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"89dd8e323898c19bec30e0b304878360b50bf3f2","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":"def get_pid(name):"},{"line_number":87,"context_line":"    \"\"\"Return a list of pids for the named process.\"\"\""},{"line_number":88,"context_line":"    process \u003d subprocess.Popen([\u0027pidof\u0027, name],"},{"line_number":89,"context_line":"                               stdout\u003dsubprocess.PIPE)"},{"line_number":90,"context_line":"    result \u003d process.communicate()[0].rstrip()"},{"line_number":91,"context_line":"    return result"}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_f578932d","line":88,"in_reply_to":"5adbc538_d51f1708","updated":"2014-05-26 03:11:48.000000000","message":"Yes, even on my CentOS 6.5 run I have it, though it appears I may need a devstack change to ensure sysvinit-tools is installed on some CentOS systems. Having trouble figuring out the python26 failure.","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"432b6860a9f5edae3e4350001a59bb416e336cba","unresolved":false,"context_lines":[{"line_number":86,"context_line":"def get_pid(name):"},{"line_number":87,"context_line":"    \"\"\"Return a list of pids for the named process.\"\"\""},{"line_number":88,"context_line":"    process \u003d subprocess.Popen([\u0027pidof\u0027, name],"},{"line_number":89,"context_line":"                               stdout\u003dsubprocess.PIPE)"},{"line_number":90,"context_line":"    result \u003d process.communicate()[0].rstrip()"},{"line_number":91,"context_line":"    return result"},{"line_number":92,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_2ef2a59a","line":89,"updated":"2014-05-26 07:54:21.000000000","message":"In the py26 unit tests that are failing, do you think it might be because some environmental variables aren\u0027t set?\n\nMaybe instead of calling subprocess directly, leverage the existing \u0027execute\u0027 method so the environment setup comes for free?\n\ndef get_pid(name):\n    \"\"\"Return a list of pids for the named process.\"\"\"\n    return utils.execute([\u0027pidof\u0027, name]).split(\u0027\\n\u0027)[0].rstrip()","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"10e8bee10f798102cfaafbba2da70f0898544f14","unresolved":false,"context_lines":[{"line_number":86,"context_line":"def get_pid(name):"},{"line_number":87,"context_line":"    \"\"\"Return a list of pids for the named process.\"\"\""},{"line_number":88,"context_line":"    process \u003d subprocess.Popen([\u0027pidof\u0027, name],"},{"line_number":89,"context_line":"                               stdout\u003dsubprocess.PIPE)"},{"line_number":90,"context_line":"    result \u003d process.communicate()[0].rstrip()"},{"line_number":91,"context_line":"    return result"},{"line_number":92,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_2789daeb","line":89,"in_reply_to":"5adbc538_2ef2a59a","updated":"2014-05-26 20:48:08.000000000","message":"Thanks Kevin, I think this is it. I\u0027m going to push one more patch with the current process monitoring to verify it for my own sanity. I will likely later move to the \"canary flow\" method advocated for by YAMAMOTO Takashi later tonight.","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"e44e6d31af190f52a86dc62d67c9f3bd437f2290","unresolved":false,"context_lines":[{"line_number":1319,"context_line":"        ovsdb_restarted \u003d polling_manager.service_restarted"},{"line_number":1320,"context_line":"        # Check for ovs-vswitchd restart"},{"line_number":1321,"context_line":"        ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":1322,"context_line":"        if (ovs_pids !\u003d self.ovs_pids):"},{"line_number":1323,"context_line":"            self.ovs_pids \u003d ovs_pids"},{"line_number":1324,"context_line":"            ovsvswitchd_restarted \u003d True"},{"line_number":1325,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":4,"id":"5adbc538_60d12ccd","line":1322,"updated":"2014-05-23 23:53:22.000000000","message":"replace 1322-1326 with\n\novsvswitchd_restarted \u003d (ovs_pids !\u003d self.ovs_pids)\nself.ovs_pids \u003d ovs_pids","commit_id":"bf202108b17647294af26170816db268566482c0"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"74a8b7717195b1d5b8588b981f8816127300b2e8","unresolved":false,"context_lines":[{"line_number":1319,"context_line":"        ovsdb_restarted \u003d polling_manager.service_restarted"},{"line_number":1320,"context_line":"        # Check for ovs-vswitchd restart"},{"line_number":1321,"context_line":"        ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":1322,"context_line":"        if (ovs_pids !\u003d self.ovs_pids):"},{"line_number":1323,"context_line":"            self.ovs_pids \u003d ovs_pids"},{"line_number":1324,"context_line":"            ovsvswitchd_restarted \u003d True"},{"line_number":1325,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":4,"id":"5adbc538_f28fce73","line":1322,"in_reply_to":"5adbc538_60d12ccd","updated":"2014-05-25 01:50:44.000000000","message":"Done","commit_id":"bf202108b17647294af26170816db268566482c0"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ddc358957239112923ce3658e4e6603ed9d6de0c","unresolved":false,"context_lines":[{"line_number":221,"context_line":""},{"line_number":222,"context_line":"        # Get the pids for all ovs-vswitch processes, used to monitor it for"},{"line_number":223,"context_line":"        # restarts."},{"line_number":224,"context_line":"        self.ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        if tunnel_types:"},{"line_number":227,"context_line":"            self.enable_tunneling \u003d True"}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_75d80354","line":224,"updated":"2014-05-26 03:05:02.000000000","message":"looking up processes by name is fragile.\nbesides that, checking worker processes can cause false-positives.\nit\u0027s better to monitor a canary flow instead.","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"89dd8e323898c19bec30e0b304878360b50bf3f2","unresolved":false,"context_lines":[{"line_number":221,"context_line":""},{"line_number":222,"context_line":"        # Get the pids for all ovs-vswitch processes, used to monitor it for"},{"line_number":223,"context_line":"        # restarts."},{"line_number":224,"context_line":"        self.ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        if tunnel_types:"},{"line_number":227,"context_line":"            self.enable_tunneling \u003d True"}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_95990f71","line":224,"in_reply_to":"5adbc538_75d80354","updated":"2014-05-26 03:11:48.000000000","message":"pidof returns a list of PIDs for anything matching the name passed to it. We\u0027re simply matching for that here. That said, I could install a canary flow as well. Do you have a suggestion for a valid canary flow to monitor?","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"9ff56357818a640de2a8d13ac8677718096f3dc7","unresolved":false,"context_lines":[{"line_number":221,"context_line":""},{"line_number":222,"context_line":"        # Get the pids for all ovs-vswitch processes, used to monitor it for"},{"line_number":223,"context_line":"        # restarts."},{"line_number":224,"context_line":"        self.ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        if tunnel_types:"},{"line_number":227,"context_line":"            self.enable_tunneling \u003d True"}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_b017f950","line":224,"in_reply_to":"5adbc538_95990f71","updated":"2014-05-26 05:42:55.000000000","message":"my concern is false positives.\novs is free to create/destroy its workers.  it\u0027s better not to rely on such implementation details.\n\nfor a canary, an arbitrary flow in an unused table should be good enough.","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"52f1d2d3ecbb20a38be706ea4fe204050923d276","unresolved":false,"context_lines":[{"line_number":221,"context_line":""},{"line_number":222,"context_line":"        # Get the pids for all ovs-vswitch processes, used to monitor it for"},{"line_number":223,"context_line":"        # restarts."},{"line_number":224,"context_line":"        self.ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        if tunnel_types:"},{"line_number":227,"context_line":"            self.enable_tunneling \u003d True"}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_cba2149a","line":224,"in_reply_to":"5adbc538_b017f950","updated":"2014-05-26 06:19:56.000000000","message":"besides that, get_pid needs rootwrap for xen.","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ddc358957239112923ce3658e4e6603ed9d6de0c","unresolved":false,"context_lines":[{"line_number":1316,"context_line":""},{"line_number":1317,"context_line":"    def check_ovs_and_ovsdb_restart(self, polling_manager):"},{"line_number":1318,"context_line":"        # Verify if OVSDB was restarted"},{"line_number":1319,"context_line":"        ovsdb_restarted \u003d polling_manager.service_restarted"},{"line_number":1320,"context_line":"        # Check for ovs-vswitchd restart"},{"line_number":1321,"context_line":"        ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":1322,"context_line":"        ovsvswitchd_restarted \u003d (ovs_pids !\u003d self.ovs_pids)"}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_f5e33303","line":1319,"updated":"2014-05-26 03:05:02.000000000","message":"what\u0027s the point to monitor ovsdb restart?","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"882ac77a4a1ce1b7b012f7c1c083ad955a8b5227","unresolved":false,"context_lines":[{"line_number":1316,"context_line":""},{"line_number":1317,"context_line":"    def check_ovs_and_ovsdb_restart(self, polling_manager):"},{"line_number":1318,"context_line":"        # Verify if OVSDB was restarted"},{"line_number":1319,"context_line":"        ovsdb_restarted \u003d polling_manager.service_restarted"},{"line_number":1320,"context_line":"        # Check for ovs-vswitchd restart"},{"line_number":1321,"context_line":"        ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":1322,"context_line":"        ovsvswitchd_restarted \u003d (ovs_pids !\u003d self.ovs_pids)"}],"source_content_type":"text/x-python","patch_set":7,"id":"3ae8d1ca_dbf3a871","line":1319,"in_reply_to":"3ae8d1ca_b88d1434","updated":"2014-05-28 03:11:41.000000000","message":"Chuck, can you explain a bit more?\ni can\u0027t imagine how it can be solved within OVS.","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"9ff56357818a640de2a8d13ac8677718096f3dc7","unresolved":false,"context_lines":[{"line_number":1316,"context_line":""},{"line_number":1317,"context_line":"    def check_ovs_and_ovsdb_restart(self, polling_manager):"},{"line_number":1318,"context_line":"        # Verify if OVSDB was restarted"},{"line_number":1319,"context_line":"        ovsdb_restarted \u003d polling_manager.service_restarted"},{"line_number":1320,"context_line":"        # Check for ovs-vswitchd restart"},{"line_number":1321,"context_line":"        ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":1322,"context_line":"        ovsvswitchd_restarted \u003d (ovs_pids !\u003d self.ovs_pids)"}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_4b2604bc","line":1319,"in_reply_to":"5adbc538_3573db4e","updated":"2014-05-26 05:42:55.000000000","message":"the report seems saying \"service openvswitch-switch restart\" which i believe to restart ovs-vswitched as well and it drops flows.\ni\u0027m not aware of the case ovsdb restart drops flows.\nit\u0027s better to avoid false positives here as far as possible because unnecessary reprogramming of the switch affects running VMs.","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":9453,"name":"James Polley","email":"jp@jamezpolley.com","username":"tchaypo"},"change_message_id":"8fbd6b3c0d46f6b4248e7893d14b53321fdbbef9","unresolved":false,"context_lines":[{"line_number":1316,"context_line":""},{"line_number":1317,"context_line":"    def check_ovs_and_ovsdb_restart(self, polling_manager):"},{"line_number":1318,"context_line":"        # Verify if OVSDB was restarted"},{"line_number":1319,"context_line":"        ovsdb_restarted \u003d polling_manager.service_restarted"},{"line_number":1320,"context_line":"        # Check for ovs-vswitchd restart"},{"line_number":1321,"context_line":"        ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":1322,"context_line":"        ovsvswitchd_restarted \u003d (ovs_pids !\u003d self.ovs_pids)"}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_ebd99084","line":1319,"in_reply_to":"5adbc538_4b2604bc","updated":"2014-05-26 06:02:32.000000000","message":"When looking to recreate the problem, we found that \"service openvswitch-switch restart\" was the simplest and most reliable way to recreate it. However, we originally saw the problem manifest after ovsdb restarted. I found that I could reliably cause the problem by killing ovsdb-server. I believe Kyle wasn\u0027t able to replicate this, but I also believe that at the time he was testing it he wasn\u0027t able to reproduce the problem at all (at this point, Kyle hadn\u0027t realised that some types of flow were being recreated and some weren\u0027t)\n\nI\u0027d prefer to handle both situations, but it makes sense to avoid false positives. If we don\u0027t have a reliable reproduction of the bug in the case where ovsdb-server restarts, I would understand if we wanted to only handle the situation we\u0027ve all been able to reproduce for now, and revisit this to add ovsdb back in later if it proves necessary.","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":9093,"name":"Chuck Carlino","email":"chuckjcarlino@gmail.com","username":"ChuckC"},"change_message_id":"aa0e5a722e1a3b1e52f135fea33aa3537691c582","unresolved":false,"context_lines":[{"line_number":1316,"context_line":""},{"line_number":1317,"context_line":"    def check_ovs_and_ovsdb_restart(self, polling_manager):"},{"line_number":1318,"context_line":"        # Verify if OVSDB was restarted"},{"line_number":1319,"context_line":"        ovsdb_restarted \u003d polling_manager.service_restarted"},{"line_number":1320,"context_line":"        # Check for ovs-vswitchd restart"},{"line_number":1321,"context_line":"        ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":1322,"context_line":"        ovsvswitchd_restarted \u003d (ovs_pids !\u003d self.ovs_pids)"}],"source_content_type":"text/x-python","patch_set":7,"id":"3ae8d1ca_b88d1434","line":1319,"in_reply_to":"5adbc538_ebd99084","updated":"2014-05-27 16:03:21.000000000","message":"Seems like the false positives issue might be best solved within ovs.  For the long term, would it be worth it to begin a conversation there?","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"89dd8e323898c19bec30e0b304878360b50bf3f2","unresolved":false,"context_lines":[{"line_number":1316,"context_line":""},{"line_number":1317,"context_line":"    def check_ovs_and_ovsdb_restart(self, polling_manager):"},{"line_number":1318,"context_line":"        # Verify if OVSDB was restarted"},{"line_number":1319,"context_line":"        ovsdb_restarted \u003d polling_manager.service_restarted"},{"line_number":1320,"context_line":"        # Check for ovs-vswitchd restart"},{"line_number":1321,"context_line":"        ovs_pids \u003d utils.get_pid(OVS_VSWITCHD)"},{"line_number":1322,"context_line":"        ovsvswitchd_restarted \u003d (ovs_pids !\u003d self.ovs_pids)"}],"source_content_type":"text/x-python","patch_set":7,"id":"5adbc538_3573db4e","line":1319,"in_reply_to":"5adbc538_f5e33303","updated":"2014-05-26 03:11:48.000000000","message":"The original bug report from tripleo indicated an OVSDB restart was the cause of their problems, thus the monitoring of OVSDB.","commit_id":"889a27761d44900ea0731f0569e8ad18a88d7389"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"83e7c5605f5d0c6d3d4f1e690a6b8e9102f67418","unresolved":false,"context_lines":[{"line_number":48,"context_line":"# A placeholder for dead vlans."},{"line_number":49,"context_line":"DEAD_VLAN_TAG \u003d str(q_const.MAX_VLAN_TAG + 1)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"# The name of the ovs-vswitchd process to monitor"},{"line_number":52,"context_line":"OVS_VSWITCHD \u003d \u0027ovs-vswitchd\u0027"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3ae8d1ca_a0d8761e","line":51,"updated":"2014-05-27 19:16:39.000000000","message":"Just noticed this cruft leftover, will remove in the next patch revision, pending comments from others.","commit_id":"0725015e243f470b5eb297c0f87fd1a206a8c4be"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"b82c5fa96cd21a54b142467340e9626e8e8a71bb","unresolved":false,"context_lines":[{"line_number":1314,"context_line":"                port_info.get(\u0027updated\u0027))"},{"line_number":1315,"context_line":""},{"line_number":1316,"context_line":"    def check_ovs_and_ovsdb_restart(self, polling_manager):"},{"line_number":1317,"context_line":"        # Verify if OVSDB was restarted"},{"line_number":1318,"context_line":"        ovsdb_restarted \u003d polling_manager.service_restarted"},{"line_number":1319,"context_line":"        # Check for the canary flow"},{"line_number":1320,"context_line":"        canary_flow \u003d self.int_br.dump_flows_for_table(constants.CANARY_TABLE)"},{"line_number":1321,"context_line":"        return ovsdb_restarted or not canary_flow"}],"source_content_type":"text/x-python","patch_set":8,"id":"3ae8d1ca_b674319d","line":1318,"range":{"start_line":1317,"start_character":0,"end_line":1318,"end_character":0},"updated":"2014-05-28 03:23:43.000000000","message":"i still don\u0027t understand why you want to monitor ovsdb restart in addition to a canary flow.\ncan you add a comment to explain what kind of failure it\u0027s supposed to detect and how re-setup of bridges and flows is supposed to improve the situation in that case?","commit_id":"0725015e243f470b5eb297c0f87fd1a206a8c4be"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"31b20e0f3a157f53e7d3d13ddca4d3a5adcd8e26","unresolved":false,"context_lines":[{"line_number":1315,"context_line":""},{"line_number":1316,"context_line":"    def check_ovs_and_ovsdb_restart(self, polling_manager):"},{"line_number":1317,"context_line":"        # Verify if OVSDB was restarted"},{"line_number":1318,"context_line":"        ovsdb_restarted \u003d polling_manager.service_restarted"},{"line_number":1319,"context_line":"        # Check for the canary flow"},{"line_number":1320,"context_line":"        canary_flow \u003d self.int_br.dump_flows_for_table(constants.CANARY_TABLE)"},{"line_number":1321,"context_line":"        return ovsdb_restarted or not canary_flow"}],"source_content_type":"text/x-python","patch_set":8,"id":"3ae8d1ca_63549b54","line":1318,"in_reply_to":"3ae8d1ca_b674319d","updated":"2014-05-28 13:18:19.000000000","message":"You are correct YAMAMOTO, it\u0027s the restart of ovs-vswitchd which is triggering the loss of flows. I will submit a new patch which only monitors that.","commit_id":"0725015e243f470b5eb297c0f87fd1a206a8c4be"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"812589e3f721c91e4e361d249c4c72ecd8e92749","unresolved":false,"context_lines":[{"line_number":702,"context_line":"        :param net_uuid: the net_uuid this port is to be associated with."},{"line_number":703,"context_line":"        :param network_type: the network type (\u0027gre\u0027, \u0027vlan\u0027, \u0027flat\u0027, \u0027local\u0027)"},{"line_number":704,"context_line":"        :param physical_network: the physical network for \u0027vlan\u0027 or \u0027flat\u0027"},{"line_number":705,"context_line":"        :param segmentation_id: the VID for \u0027vlan\u0027 or tunnel ID for \u0027tunnel\u0027"},{"line_number":706,"context_line":"        \u0027\u0027\u0027"},{"line_number":707,"context_line":"        if net_uuid not in self.local_vlan_map or ovs_restarted:"},{"line_number":708,"context_line":"            self.provision_local_vlan(net_uuid, network_type,"}],"source_content_type":"text/x-python","patch_set":11,"id":"3ae8d1ca_2078b72a","line":705,"updated":"2014-05-28 21:10:35.000000000","message":"shall we add the new param to the docstring?","commit_id":"4d36a689190975f9d64bfd47886fa315e8812dd0"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"2b7d072243802d1e3dc8a700ae5ca12d067ec7d8","unresolved":false,"context_lines":[{"line_number":702,"context_line":"        :param net_uuid: the net_uuid this port is to be associated with."},{"line_number":703,"context_line":"        :param network_type: the network type (\u0027gre\u0027, \u0027vlan\u0027, \u0027flat\u0027, \u0027local\u0027)"},{"line_number":704,"context_line":"        :param physical_network: the physical network for \u0027vlan\u0027 or \u0027flat\u0027"},{"line_number":705,"context_line":"        :param segmentation_id: the VID for \u0027vlan\u0027 or tunnel ID for \u0027tunnel\u0027"},{"line_number":706,"context_line":"        \u0027\u0027\u0027"},{"line_number":707,"context_line":"        if net_uuid not in self.local_vlan_map or ovs_restarted:"},{"line_number":708,"context_line":"            self.provision_local_vlan(net_uuid, network_type,"}],"source_content_type":"text/x-python","patch_set":11,"id":"3ae8d1ca_2c27d1b7","line":705,"in_reply_to":"3ae8d1ca_2078b72a","updated":"2014-05-28 21:33:54.000000000","message":"Done","commit_id":"4d36a689190975f9d64bfd47886fa315e8812dd0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"812589e3f721c91e4e361d249c4c72ecd8e92749","unresolved":false,"context_lines":[{"line_number":1353,"context_line":"                self.setup_integration_br()"},{"line_number":1354,"context_line":"                self.setup_physical_bridges(self.bridge_mappings)"},{"line_number":1355,"context_line":"                if self.enable_tunneling:"},{"line_number":1356,"context_line":"                    self.setup_tunnel_br(None)"},{"line_number":1357,"context_line":"            if self._agent_has_updates(polling_manager) or ovs_restarted:"},{"line_number":1358,"context_line":"                try:"},{"line_number":1359,"context_line":"                    LOG.debug(_(\"Agent rpc_loop - iteration:%(iter_num)d - \""}],"source_content_type":"text/x-python","patch_set":11,"id":"3ae8d1ca_6942ab11","line":1356,"updated":"2014-05-28 21:10:35.000000000","message":"IMO passing a br-tun that is explicitly set to None to avoid its creation is a bit unclear and I fear it makes the code slightly unreadable.","commit_id":"4d36a689190975f9d64bfd47886fa315e8812dd0"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"2b7d072243802d1e3dc8a700ae5ca12d067ec7d8","unresolved":false,"context_lines":[{"line_number":1353,"context_line":"                self.setup_integration_br()"},{"line_number":1354,"context_line":"                self.setup_physical_bridges(self.bridge_mappings)"},{"line_number":1355,"context_line":"                if self.enable_tunneling:"},{"line_number":1356,"context_line":"                    self.setup_tunnel_br(None)"},{"line_number":1357,"context_line":"            if self._agent_has_updates(polling_manager) or ovs_restarted:"},{"line_number":1358,"context_line":"                try:"},{"line_number":1359,"context_line":"                    LOG.debug(_(\"Agent rpc_loop - iteration:%(iter_num)d - \""}],"source_content_type":"text/x-python","patch_set":11,"id":"3ae8d1ca_ac6841bb","line":1356,"in_reply_to":"3ae8d1ca_6942ab11","updated":"2014-05-28 21:33:54.000000000","message":"Agreed, will add a specific parameter to setup_tunnel_br().","commit_id":"4d36a689190975f9d64bfd47886fa315e8812dd0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"aeaf982284fc153e8ea641c9c884a91100530356","unresolved":false,"context_lines":[{"line_number":805,"context_line":"        :param tun_br: the name of the tunnel bridge."},{"line_number":806,"context_line":"        :param tun_br_exists: indicates if the tun_br already exists."},{"line_number":807,"context_line":"        \u0027\u0027\u0027"},{"line_number":808,"context_line":"        if not tun_br_exists:"},{"line_number":809,"context_line":"            self.tun_br \u003d ovs_lib.OVSBridge(tun_br, self.root_helper)"},{"line_number":810,"context_line":""},{"line_number":811,"context_line":"        self.tun_br.reset_bridge()"}],"source_content_type":"text/x-python","patch_set":12,"id":"3ae8d1ca_0fa68753","line":808,"updated":"2014-05-28 22:36:45.000000000","message":"I don\u0027t want to sound too pedantic here, but bear with me: have you considered determining whether the bridge needs to be created by checking whether it exists? This way you don\u0027t need to change this method\u0027s signature at all. Sorry my level of pedantry didn\u0027t kick in the previous review :)","commit_id":"5b1f1a22b4d219b47d0d589cda6ac360ba819102"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"efddfb22b163d07fdb98f9444315d34d341106d7","unresolved":false,"context_lines":[{"line_number":805,"context_line":"        :param tun_br: the name of the tunnel bridge."},{"line_number":806,"context_line":"        :param tun_br_exists: indicates if the tun_br already exists."},{"line_number":807,"context_line":"        \u0027\u0027\u0027"},{"line_number":808,"context_line":"        if not tun_br_exists:"},{"line_number":809,"context_line":"            self.tun_br \u003d ovs_lib.OVSBridge(tun_br, self.root_helper)"},{"line_number":810,"context_line":""},{"line_number":811,"context_line":"        self.tun_br.reset_bridge()"}],"source_content_type":"text/x-python","patch_set":12,"id":"3ae8d1ca_35647048","line":808,"in_reply_to":"3ae8d1ca_0fa68753","updated":"2014-05-28 23:57:28.000000000","message":"You are wearing salv-orlando\u0027s pedant hat here. :)\n\nI will respin with that check, apparently in trying to spin the last one before leaving for my son\u0027s t-ball game I didn\u0027t look close enough.","commit_id":"5b1f1a22b4d219b47d0d589cda6ac360ba819102"}],"neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py":[{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"53968271fb4a8b8ae9774bc75c99e1c308332f03","unresolved":false,"context_lines":[{"line_number":284,"context_line":"            mock.patch.object(self.agent.int_br, \u0027get_vif_port_by_id\u0027,"},{"line_number":285,"context_line":"                              return_value\u003dmock.Mock())):"},{"line_number":286,"context_line":"            self.assertTrue(self.agent.treat_devices_added_or_updated([{}],"},{"line_number":287,"context_line":"                                                                      False))"},{"line_number":288,"context_line":""},{"line_number":289,"context_line":"    def _mock_treat_devices_added_updated(self, details, port, func_name):"},{"line_number":290,"context_line":"        \"\"\"Mock treat devices added or updated."}],"source_content_type":"text/x-python","patch_set":8,"id":"3ae8d1ca_09b79587","line":287,"updated":"2014-05-27 21:00:22.000000000","message":"I think we need to add unit test for the case we get OVS restarted","commit_id":"0725015e243f470b5eb297c0f87fd1a206a8c4be"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"987a05a2ee79458d48b9760c0715f7e7423e9628","unresolved":false,"context_lines":[{"line_number":284,"context_line":"            mock.patch.object(self.agent.int_br, \u0027get_vif_port_by_id\u0027,"},{"line_number":285,"context_line":"                              return_value\u003dmock.Mock())):"},{"line_number":286,"context_line":"            self.assertTrue(self.agent.treat_devices_added_or_updated([{}],"},{"line_number":287,"context_line":"                                                                      False))"},{"line_number":288,"context_line":""},{"line_number":289,"context_line":"    def _mock_treat_devices_added_updated(self, details, port, func_name):"},{"line_number":290,"context_line":"        \"\"\"Mock treat devices added or updated."}],"source_content_type":"text/x-python","patch_set":8,"id":"3ae8d1ca_1421689f","line":287,"in_reply_to":"3ae8d1ca_09b79587","updated":"2014-05-27 21:05:31.000000000","message":"Fair point, I\u0027ll work on that tomorrow and push a new version of this patch with that included.","commit_id":"0725015e243f470b5eb297c0f87fd1a206a8c4be"}]}
