)]}'
{"neutron/agent/linux/ovsdb_monitor.py":[{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"4f8769454f0a4cf6ba3ca48053b7eaae9590f752","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        super(OvsdbMonitor, self).__init__(cmd, run_as_root\u003drun_as_root,"},{"line_number":73,"context_line":"                                           respawn_interval\u003drespawn_interval,"},{"line_number":74,"context_line":"                                           log_output\u003dTrue,"},{"line_number":75,"context_line":"                                           die_on_error\u003dFalse)"},{"line_number":76,"context_line":"        self.new_events \u003d {\u0027added\u0027: [], \u0027removed\u0027: []}"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def get_events(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_b104271a","line":75,"range":{"start_line":75,"start_character":56,"end_line":75,"end_character":61},"updated":"2018-08-28 20:20:35.000000000","message":"My concern of this change is that it might break backward-compatibility. In particular, perhaps there are some cases that the process should die, but after this change, the process won\u0027t die?\n\nIs it acceptable to make this value configurable?","commit_id":"efb4f15ac9747d0239d8899fdabed208df64a8d9"},{"author":{"_account_id":21798,"name":"Bernard Cafarelli","email":"bcafarel@redhat.com","username":"bcafarel"},"change_message_id":"944d0d6faca75f51cf2a184996057f40eb5105a9","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        super(OvsdbMonitor, self).__init__(cmd, run_as_root\u003drun_as_root,"},{"line_number":73,"context_line":"                                           respawn_interval\u003drespawn_interval,"},{"line_number":74,"context_line":"                                           log_output\u003dTrue,"},{"line_number":75,"context_line":"                                           die_on_error\u003dFalse)"},{"line_number":76,"context_line":"        self.new_events \u003d {\u0027added\u0027: [], \u0027removed\u0027: []}"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def get_events(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_1b016d3a","line":75,"range":{"start_line":75,"start_character":56,"end_line":75,"end_character":61},"in_reply_to":"3f79a3b5_6fb8eae4","updated":"2018-08-29 10:12:05.000000000","message":"I need to check through ovsdb-client code here, this would mean the process outputs an error/warning, does not quit immediately by itself (which should happen for real errors), and generates invalid output. Not sure this can happen, has normal behaviour is:\n* on startup dump an \"initial\" json\n* keep running without output when no changes\n* output a line for new event new/deleted.\n* we could check the lines when events appear, but not sure it would catch errors.\nI will check the code (and maybe ask Terry) on it, would the change be fine if it confirms there is no case when the process has warnings but does not quit by itself?","commit_id":"efb4f15ac9747d0239d8899fdabed208df64a8d9"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"0d1f06dad58c657e8bb91e97814ed7e681c90afd","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        super(OvsdbMonitor, self).__init__(cmd, run_as_root\u003drun_as_root,"},{"line_number":73,"context_line":"                                           respawn_interval\u003drespawn_interval,"},{"line_number":74,"context_line":"                                           log_output\u003dTrue,"},{"line_number":75,"context_line":"                                           die_on_error\u003dFalse)"},{"line_number":76,"context_line":"        self.new_events \u003d {\u0027added\u0027: [], \u0027removed\u0027: []}"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def get_events(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_6fb8eae4","line":75,"range":{"start_line":75,"start_character":56,"end_line":75,"end_character":61},"in_reply_to":"3f79a3b5_b104271a","updated":"2018-08-28 21:38:12.000000000","message":"Actually, I saw the bug mentioned that if some extra library is missing, ovsdb-client will print some warnings to stderr together with the proper output in stdout? Then, how about making OvsdbMonitor verify the stdout as well.\n\nIn particular, I imagine the logic can be:\n\n* if any stderr ouput is found, proceed to verify the output of stdout\n* if stdout has the expected data, keep the OvsdbMonitor running\n* otherwise, make the OvsdbMonitor die","commit_id":"efb4f15ac9747d0239d8899fdabed208df64a8d9"},{"author":{"_account_id":21798,"name":"Bernard Cafarelli","email":"bcafarel@redhat.com","username":"bcafarel"},"change_message_id":"944d0d6faca75f51cf2a184996057f40eb5105a9","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        super(OvsdbMonitor, self).__init__(cmd, run_as_root\u003drun_as_root,"},{"line_number":73,"context_line":"                                           respawn_interval\u003drespawn_interval,"},{"line_number":74,"context_line":"                                           log_output\u003dTrue,"},{"line_number":75,"context_line":"                                           die_on_error\u003dFalse)"},{"line_number":76,"context_line":"        self.new_events \u003d {\u0027added\u0027: [], \u0027removed\u0027: []}"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def get_events(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_fbbfd1a7","line":75,"range":{"start_line":75,"start_character":56,"end_line":75,"end_character":61},"in_reply_to":"3f79a3b5_b104271a","updated":"2018-08-29 10:12:05.000000000","message":"I guess Terry can help on the \"do we have cases where ovsdb-monitor should be killed when writing xxx on stderr?\"\n\nMaking it configurable is possible, but does not feel like a robust fix (\"if your agent loops and fills logs, manually check ovsdb-client output and disable this option\")","commit_id":"efb4f15ac9747d0239d8899fdabed208df64a8d9"}]}
