)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9820,"name":"Liping Mao","email":"limao@cisco.com","username":"LipingMao"},"change_message_id":"a2d66f17e12f0f3af416c5019d68adc1f433e55f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Yong Sheng Gong \u003cgongysh@unitedstack.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-07-07 16:58:24 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Deletes floatinip related connection states"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When a floatingip is dissociated with a port, the current"},{"line_number":10,"context_line":"connection with the floatingip is still working. This patch"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"baada198_65bd0668","line":7,"updated":"2014-07-14 01:05:26.000000000","message":"\"floating ip\"","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"a5810782433ec834661ea3444ad803d14fd0b431","unresolved":false,"context_lines":[{"line_number":12,"context_line":"immediately."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Since conntrack -D will return 1, which is not an error code,"},{"line_number":15,"context_line":"so add extra_codes argument to excute methods."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: Ia9bd7ae243a0859dcb97e2fa939f7d16f9c2456c"},{"line_number":18,"context_line":"Closes-Bug: 1334926"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":21,"id":"fa98f980_bc307ce9","line":15,"updated":"2014-09-09 04:53:26.000000000","message":"nit: *execute","commit_id":"e537c31d4c3a5722772d7b29627267d0679a8a4f"}],"etc/neutron/rootwrap.d/l3.filters":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"2de08d372a01fa7b3f3ac073b727ed41cdec8bfd","unresolved":false,"context_lines":[{"line_number":39,"context_line":"iptables-restore: CommandFilter, iptables-restore, root"},{"line_number":40,"context_line":"ip6tables-save: CommandFilter, ip6tables-save, root"},{"line_number":41,"context_line":"ip6tables-restore: CommandFilter, ip6tables-restore, root"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"#l3 agent to tear off floatingip"},{"line_number":44,"context_line":"conntrack: CommandFilter, conntrack, root"}],"source_content_type":"application/octet-stream","patch_set":6,"id":"baada198_2b84f5af","line":42,"updated":"2014-07-31 20:47:56.000000000","message":"Space after #","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f3041a850bbfd6ac3a557ca8aae3a21325d76574","unresolved":false,"context_lines":[{"line_number":39,"context_line":"iptables-restore: CommandFilter, iptables-restore, root"},{"line_number":40,"context_line":"ip6tables-save: CommandFilter, ip6tables-save, root"},{"line_number":41,"context_line":"ip6tables-restore: CommandFilter, ip6tables-restore, root"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"#l3 agent to tear off floatingip"},{"line_number":44,"context_line":"conntrack: CommandFilter, conntrack, root"}],"source_content_type":"application/octet-stream","patch_set":6,"id":"baada198_fb632ba9","line":42,"in_reply_to":"baada198_2b84f5af","updated":"2014-08-05 09:34:21.000000000","message":"Done","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"a1c35881c46d07d870f17305661e264c2a6edf19","unresolved":false,"context_lines":[{"line_number":43,"context_line":"ip6tables-save: CommandFilter, ip6tables-save, root"},{"line_number":44,"context_line":"ip6tables-restore: CommandFilter, ip6tables-restore, root"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"# l3 agent to tear off floatingip"},{"line_number":47,"context_line":"conntrack: CommandFilter, conntrack, root"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"baada198_832b3294","line":46,"updated":"2014-08-08 03:14:14.000000000","message":"l3 agent to delete conntrack state state","commit_id":"ced17c3b801ca0ca9d7248eeec26f6b880647260"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"a99a278fc0b6b6c713a6df23beac48fe8f4e9d2e","unresolved":false,"context_lines":[{"line_number":43,"context_line":"ip6tables-save: CommandFilter, ip6tables-save, root"},{"line_number":44,"context_line":"ip6tables-restore: CommandFilter, ip6tables-restore, root"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"# l3 agent to tear off floatingip"},{"line_number":47,"context_line":"conntrack: CommandFilter, conntrack, root"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"7ac7a964_f31c1c16","line":46,"in_reply_to":"baada198_832b3294","updated":"2014-08-14 09:13:51.000000000","message":"Done","commit_id":"ced17c3b801ca0ca9d7248eeec26f6b880647260"}],"neutron/agent/l3_agent.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"3fc798c6ce2c12b0487addc941386df6689319bf","unresolved":false,"context_lines":[{"line_number":614,"context_line":"                    # NOTE(gongysh) delete conntrack state"},{"line_number":615,"context_line":"                    # for outside into the floatingip"},{"line_number":616,"context_line":"                    conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":617,"context_line":"                                     \"-d\", ip_cidr.split(\"/\")[0]]"},{"line_number":618,"context_line":"                    ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper,"},{"line_number":619,"context_line":"                                                  namespace\u003dri.ns_name)"},{"line_number":620,"context_line":"                    ip_wrapper.netns.execute(conntrack_cmd,"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_604bcdb0","line":617,"updated":"2014-07-01 08:02:30.000000000","message":"net.ip instead of ip_cidr.split(\"/\")[0] ?","commit_id":"9a5208f112690212d30e9559d088ed46b5981f23"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"04c230c2b9306e479ff534766bcbc181e0ca127a","unresolved":false,"context_lines":[{"line_number":614,"context_line":"                    # NOTE(gongysh) delete conntrack state"},{"line_number":615,"context_line":"                    # for outside into the floatingip"},{"line_number":616,"context_line":"                    conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":617,"context_line":"                                     \"-d\", ip_cidr.split(\"/\")[0]]"},{"line_number":618,"context_line":"                    ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper,"},{"line_number":619,"context_line":"                                                  namespace\u003dri.ns_name)"},{"line_number":620,"context_line":"                    ip_wrapper.netns.execute(conntrack_cmd,"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_a5971e39","line":617,"in_reply_to":"baada198_604bcdb0","updated":"2014-07-04 15:08:11.000000000","message":"Done","commit_id":"9a5208f112690212d30e9559d088ed46b5981f23"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"3fc798c6ce2c12b0487addc941386df6689319bf","unresolved":false,"context_lines":[{"line_number":622,"context_line":"                    # NOTE(gongysh) delete the conntrack state"},{"line_number":623,"context_line":"                    # for inside to the public network"},{"line_number":624,"context_line":"                    conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":625,"context_line":"                                     \"-q\", ip_cidr.split(\"/\")[0]]"},{"line_number":626,"context_line":"                    ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper,"},{"line_number":627,"context_line":"                                                  namespace\u003dri.ns_name)"},{"line_number":628,"context_line":"                    ip_wrapper.netns.execute(conntrack_cmd,"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_60f90d4d","line":625,"updated":"2014-07-01 08:02:30.000000000","message":"ditto","commit_id":"9a5208f112690212d30e9559d088ed46b5981f23"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"04c230c2b9306e479ff534766bcbc181e0ca127a","unresolved":false,"context_lines":[{"line_number":622,"context_line":"                    # NOTE(gongysh) delete the conntrack state"},{"line_number":623,"context_line":"                    # for inside to the public network"},{"line_number":624,"context_line":"                    conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":625,"context_line":"                                     \"-q\", ip_cidr.split(\"/\")[0]]"},{"line_number":626,"context_line":"                    ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper,"},{"line_number":627,"context_line":"                                                  namespace\u003dri.ns_name)"},{"line_number":628,"context_line":"                    ip_wrapper.netns.execute(conntrack_cmd,"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_45a80277","line":625,"in_reply_to":"baada198_60f90d4d","updated":"2014-07-04 15:08:11.000000000","message":"Done","commit_id":"9a5208f112690212d30e9559d088ed46b5981f23"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"3fc798c6ce2c12b0487addc941386df6689319bf","unresolved":false,"context_lines":[{"line_number":623,"context_line":"                    # for inside to the public network"},{"line_number":624,"context_line":"                    conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":625,"context_line":"                                     \"-q\", ip_cidr.split(\"/\")[0]]"},{"line_number":626,"context_line":"                    ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper,"},{"line_number":627,"context_line":"                                                  namespace\u003dri.ns_name)"},{"line_number":628,"context_line":"                    ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":629,"context_line":"                                             check_exit_code\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_a0f32572","line":626,"updated":"2014-07-01 08:02:30.000000000","message":"no need to create new ip_wrapper","commit_id":"9a5208f112690212d30e9559d088ed46b5981f23"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"04c230c2b9306e479ff534766bcbc181e0ca127a","unresolved":false,"context_lines":[{"line_number":623,"context_line":"                    # for inside to the public network"},{"line_number":624,"context_line":"                    conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":625,"context_line":"                                     \"-q\", ip_cidr.split(\"/\")[0]]"},{"line_number":626,"context_line":"                    ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper,"},{"line_number":627,"context_line":"                                                  namespace\u003dri.ns_name)"},{"line_number":628,"context_line":"                    ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":629,"context_line":"                                             check_exit_code\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_05a28a98","line":626,"in_reply_to":"baada198_a0f32572","updated":"2014-07-04 15:08:11.000000000","message":"Done","commit_id":"9a5208f112690212d30e9559d088ed46b5981f23"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"0ac6bd7bc553eb66f16e5959e05f8984572e590a","unresolved":false,"context_lines":[{"line_number":586,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":587,"context_line":"                                     check_exit_code\u003dFalse)"},{"line_number":588,"context_line":"        except RuntimeError as e:"},{"line_number":589,"context_line":"            LOG.error(_(\"Failed tearing off connection state of\""},{"line_number":590,"context_line":"                        \" floatingip %(fip)s: %(e)s\"),"},{"line_number":591,"context_line":"                      {\"fip\": ip_cidr,"},{"line_number":592,"context_line":"                       \"e\": str(e)})"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_e2aad083","line":589,"updated":"2014-07-07 08:22:10.000000000","message":"Using LOG.exception seems cleaner than LOG.error + str(e)","commit_id":"d94006e2661b8fb9bf4f598398289d2a11cff527"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"11ffc7a6c5cd00fbb52e52164c51e7c67b0cbba5","unresolved":false,"context_lines":[{"line_number":586,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":587,"context_line":"                                     check_exit_code\u003dFalse)"},{"line_number":588,"context_line":"        except RuntimeError as e:"},{"line_number":589,"context_line":"            LOG.error(_(\"Failed tearing off connection state of\""},{"line_number":590,"context_line":"                        \" floatingip %(fip)s: %(e)s\"),"},{"line_number":591,"context_line":"                      {\"fip\": ip_cidr,"},{"line_number":592,"context_line":"                       \"e\": str(e)})"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_059c2e5c","line":589,"in_reply_to":"baada198_e2aad083","updated":"2014-07-07 08:58:58.000000000","message":"Done","commit_id":"d94006e2661b8fb9bf4f598398289d2a11cff527"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"8f63fe6d7f77d53264dde5611aebf6b0705bc89f","unresolved":false,"context_lines":[{"line_number":565,"context_line":""},{"line_number":566,"context_line":"        ri.iptables_manager.apply()"},{"line_number":567,"context_line":""},{"line_number":568,"context_line":"    @staticmethod"},{"line_number":569,"context_line":"    def _deal_with_conntrack_state(root_helper, ns_name, ip_cidr):"},{"line_number":570,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":571,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_798eb8d2","line":568,"updated":"2014-07-24 19:39:56.000000000","message":"Why @staticmethod?  Doesn\u0027t seem that useful here, can\u0027t you just use remove it and use self.root_helper below?","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f3041a850bbfd6ac3a557ca8aae3a21325d76574","unresolved":false,"context_lines":[{"line_number":565,"context_line":""},{"line_number":566,"context_line":"        ri.iptables_manager.apply()"},{"line_number":567,"context_line":""},{"line_number":568,"context_line":"    @staticmethod"},{"line_number":569,"context_line":"    def _deal_with_conntrack_state(root_helper, ns_name, ip_cidr):"},{"line_number":570,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":571,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_7b0f1be1","line":568,"in_reply_to":"baada198_798eb8d2","updated":"2014-08-05 09:34:21.000000000","message":"forget to remove it after changing solution to the problem. Done","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9cb37fb36f0c764eac79d6ae362c0a6b804ff2dc","unresolved":false,"context_lines":[{"line_number":566,"context_line":"        ri.iptables_manager.apply()"},{"line_number":567,"context_line":""},{"line_number":568,"context_line":"    @staticmethod"},{"line_number":569,"context_line":"    def _deal_with_conntrack_state(root_helper, ns_name, ip_cidr):"},{"line_number":570,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":571,"context_line":"        try:"},{"line_number":572,"context_line":"            # NOTE(gongysh) delete conntrack state"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_5e5dd37b","line":569,"updated":"2014-07-22 14:17:08.000000000","message":"I prefer \"teardown\" or similar name rather than \"deal with\" because \"deal with\" is a bit ambiguous and more clear name is better.","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f3041a850bbfd6ac3a557ca8aae3a21325d76574","unresolved":false,"context_lines":[{"line_number":566,"context_line":"        ri.iptables_manager.apply()"},{"line_number":567,"context_line":""},{"line_number":568,"context_line":"    @staticmethod"},{"line_number":569,"context_line":"    def _deal_with_conntrack_state(root_helper, ns_name, ip_cidr):"},{"line_number":570,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":571,"context_line":"        try:"},{"line_number":572,"context_line":"            # NOTE(gongysh) delete conntrack state"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_5ba6d7c1","line":569,"in_reply_to":"baada198_19b77c86","updated":"2014-08-05 09:34:21.000000000","message":"Done","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f3041a850bbfd6ac3a557ca8aae3a21325d76574","unresolved":false,"context_lines":[{"line_number":566,"context_line":"        ri.iptables_manager.apply()"},{"line_number":567,"context_line":""},{"line_number":568,"context_line":"    @staticmethod"},{"line_number":569,"context_line":"    def _deal_with_conntrack_state(root_helper, ns_name, ip_cidr):"},{"line_number":570,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":571,"context_line":"        try:"},{"line_number":572,"context_line":"            # NOTE(gongysh) delete conntrack state"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_7bab9b88","line":569,"in_reply_to":"baada198_5e5dd37b","updated":"2014-08-05 09:34:21.000000000","message":"Done","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"8f63fe6d7f77d53264dde5611aebf6b0705bc89f","unresolved":false,"context_lines":[{"line_number":566,"context_line":"        ri.iptables_manager.apply()"},{"line_number":567,"context_line":""},{"line_number":568,"context_line":"    @staticmethod"},{"line_number":569,"context_line":"    def _deal_with_conntrack_state(root_helper, ns_name, ip_cidr):"},{"line_number":570,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":571,"context_line":"        try:"},{"line_number":572,"context_line":"            # NOTE(gongysh) delete conntrack state"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_19b77c86","line":569,"in_reply_to":"baada198_5e5dd37b","updated":"2014-07-24 19:39:56.000000000","message":"Or even \"delete\" since that\u0027s what the conntrack man page uses.","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"2de08d372a01fa7b3f3ac073b727ed41cdec8bfd","unresolved":false,"context_lines":[{"line_number":568,"context_line":"    @staticmethod"},{"line_number":569,"context_line":"    def _deal_with_conntrack_state(root_helper, ns_name, ip_cidr):"},{"line_number":570,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":571,"context_line":"        try:"},{"line_number":572,"context_line":"            # NOTE(gongysh) delete conntrack state"},{"line_number":573,"context_line":"            # for outside into the floatingip"},{"line_number":574,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_4ba4c94b","line":571,"updated":"2014-07-31 20:47:56.000000000","message":"\"Delete conntrack state for ingress traffic\"","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f3041a850bbfd6ac3a557ca8aae3a21325d76574","unresolved":false,"context_lines":[{"line_number":568,"context_line":"    @staticmethod"},{"line_number":569,"context_line":"    def _deal_with_conntrack_state(root_helper, ns_name, ip_cidr):"},{"line_number":570,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":571,"context_line":"        try:"},{"line_number":572,"context_line":"            # NOTE(gongysh) delete conntrack state"},{"line_number":573,"context_line":"            # for outside into the floatingip"},{"line_number":574,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_fb96cb48","line":571,"in_reply_to":"baada198_4ba4c94b","updated":"2014-08-05 09:34:21.000000000","message":"Done","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"8f63fe6d7f77d53264dde5611aebf6b0705bc89f","unresolved":false,"context_lines":[{"line_number":572,"context_line":"            # NOTE(gongysh) delete conntrack state"},{"line_number":573,"context_line":"            # for outside into the floatingip"},{"line_number":574,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":575,"context_line":"                             \"-d\", ip]"},{"line_number":576,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(root_helper,"},{"line_number":577,"context_line":"                                          namespace\u003dns_name)"},{"line_number":578,"context_line":"            # NOTE(gongys) if 0 flow entries have been deleted"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_f93f28dd","line":575,"updated":"2014-07-24 19:39:56.000000000","message":"No reason to wrap this as it will fit on one line.","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f3041a850bbfd6ac3a557ca8aae3a21325d76574","unresolved":false,"context_lines":[{"line_number":572,"context_line":"            # NOTE(gongysh) delete conntrack state"},{"line_number":573,"context_line":"            # for outside into the floatingip"},{"line_number":574,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":575,"context_line":"                             \"-d\", ip]"},{"line_number":576,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(root_helper,"},{"line_number":577,"context_line":"                                          namespace\u003dns_name)"},{"line_number":578,"context_line":"            # NOTE(gongys) if 0 flow entries have been deleted"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_1bb1bfe3","line":575,"in_reply_to":"baada198_f93f28dd","updated":"2014-08-05 09:34:21.000000000","message":"Done","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"8f63fe6d7f77d53264dde5611aebf6b0705bc89f","unresolved":false,"context_lines":[{"line_number":574,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":575,"context_line":"                             \"-d\", ip]"},{"line_number":576,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(root_helper,"},{"line_number":577,"context_line":"                                          namespace\u003dns_name)"},{"line_number":578,"context_line":"            # NOTE(gongys) if 0 flow entries have been deleted"},{"line_number":579,"context_line":"            # conntrack -D will return 1"},{"line_number":580,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_390b602c","line":577,"updated":"2014-07-24 19:39:56.000000000","message":"Don\u0027t need to wrap this either.","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f3041a850bbfd6ac3a557ca8aae3a21325d76574","unresolved":false,"context_lines":[{"line_number":574,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":575,"context_line":"                             \"-d\", ip]"},{"line_number":576,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(root_helper,"},{"line_number":577,"context_line":"                                          namespace\u003dns_name)"},{"line_number":578,"context_line":"            # NOTE(gongys) if 0 flow entries have been deleted"},{"line_number":579,"context_line":"            # conntrack -D will return 1"},{"line_number":580,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_3bdda314","line":577,"in_reply_to":"baada198_390b602c","updated":"2014-08-05 09:34:21.000000000","message":"Done","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"2de08d372a01fa7b3f3ac073b727ed41cdec8bfd","unresolved":false,"context_lines":[{"line_number":578,"context_line":"            # NOTE(gongys) if 0 flow entries have been deleted"},{"line_number":579,"context_line":"            # conntrack -D will return 1"},{"line_number":580,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":581,"context_line":"                                     check_exit_code\u003dFalse)"},{"line_number":582,"context_line":"            # NOTE(gongysh) delete the conntrack state"},{"line_number":583,"context_line":"            # for inside to the public network"},{"line_number":584,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_ab664527","line":581,"updated":"2014-07-31 20:47:56.000000000","message":"\"Delete conntrack state for egress traffic\"","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9cb37fb36f0c764eac79d6ae362c0a6b804ff2dc","unresolved":false,"context_lines":[{"line_number":578,"context_line":"            # NOTE(gongys) if 0 flow entries have been deleted"},{"line_number":579,"context_line":"            # conntrack -D will return 1"},{"line_number":580,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":581,"context_line":"                                     check_exit_code\u003dFalse)"},{"line_number":582,"context_line":"            # NOTE(gongysh) delete the conntrack state"},{"line_number":583,"context_line":"            # for inside to the public network"},{"line_number":584,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_592ecdac","line":581,"updated":"2014-07-22 14:17:08.000000000","message":"RuntimeError is caught below, so I think we need to set check_exit_code\u003dTrue. If False, when is RuntimeError raised?","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f3041a850bbfd6ac3a557ca8aae3a21325d76574","unresolved":false,"context_lines":[{"line_number":578,"context_line":"            # NOTE(gongys) if 0 flow entries have been deleted"},{"line_number":579,"context_line":"            # conntrack -D will return 1"},{"line_number":580,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":581,"context_line":"                                     check_exit_code\u003dFalse)"},{"line_number":582,"context_line":"            # NOTE(gongysh) delete the conntrack state"},{"line_number":583,"context_line":"            # for inside to the public network"},{"line_number":584,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_9b394f43","line":581,"in_reply_to":"baada198_ab664527","updated":"2014-08-05 09:34:21.000000000","message":"Done","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"8f63fe6d7f77d53264dde5611aebf6b0705bc89f","unresolved":false,"context_lines":[{"line_number":582,"context_line":"            # NOTE(gongysh) delete the conntrack state"},{"line_number":583,"context_line":"            # for inside to the public network"},{"line_number":584,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":585,"context_line":"                             \"-q\", ip]"},{"line_number":586,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":587,"context_line":"                                     check_exit_code\u003dFalse)"},{"line_number":588,"context_line":"        except RuntimeError:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_1945bc6e","line":585,"updated":"2014-07-24 19:39:56.000000000","message":"No reason to wrap this as it will fit on one line.","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":8646,"name":"yangxurong","email":"yangxurong@huawei.com","username":"yangxurong"},"change_message_id":"7de6c1408db499cfb1f857bdc04bb39480739349","unresolved":false,"context_lines":[{"line_number":582,"context_line":"            # NOTE(gongysh) delete the conntrack state"},{"line_number":583,"context_line":"            # for inside to the public network"},{"line_number":584,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":585,"context_line":"                             \"-q\", ip]"},{"line_number":586,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":587,"context_line":"                                     check_exit_code\u003dFalse)"},{"line_number":588,"context_line":"        except RuntimeError:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_8919e524","line":585,"updated":"2014-07-09 08:41:59.000000000","message":"i have do some test in suse system, ssh connection is still alive.","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f3041a850bbfd6ac3a557ca8aae3a21325d76574","unresolved":false,"context_lines":[{"line_number":582,"context_line":"            # NOTE(gongysh) delete the conntrack state"},{"line_number":583,"context_line":"            # for inside to the public network"},{"line_number":584,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":585,"context_line":"                             \"-q\", ip]"},{"line_number":586,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":587,"context_line":"                                     check_exit_code\u003dFalse)"},{"line_number":588,"context_line":"        except RuntimeError:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_bb36134e","line":585,"in_reply_to":"baada198_1945bc6e","updated":"2014-08-05 09:34:21.000000000","message":"Done","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"8f63fe6d7f77d53264dde5611aebf6b0705bc89f","unresolved":false,"context_lines":[{"line_number":584,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":585,"context_line":"                             \"-q\", ip]"},{"line_number":586,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":587,"context_line":"                                     check_exit_code\u003dFalse)"},{"line_number":588,"context_line":"        except RuntimeError:"},{"line_number":589,"context_line":"            LOG.exception(_(\"Failed tearing off connection state of\""},{"line_number":590,"context_line":"                            \" floatingip %s\"), ip_cidr)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_f90d6841","line":587,"updated":"2014-07-24 19:39:56.000000000","message":"Don\u0027t need to wrap this either.","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f3041a850bbfd6ac3a557ca8aae3a21325d76574","unresolved":false,"context_lines":[{"line_number":584,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\","},{"line_number":585,"context_line":"                             \"-q\", ip]"},{"line_number":586,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd,"},{"line_number":587,"context_line":"                                     check_exit_code\u003dFalse)"},{"line_number":588,"context_line":"        except RuntimeError:"},{"line_number":589,"context_line":"            LOG.exception(_(\"Failed tearing off connection state of\""},{"line_number":590,"context_line":"                            \" floatingip %s\"), ip_cidr)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_db43c7ae","line":587,"in_reply_to":"baada198_f90d6841","updated":"2014-08-05 09:34:21.000000000","message":"Done","commit_id":"6876e14be1f04b26309019823aa8d347c7a00d77"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"ee0755cb74507e586deebf4ae15d9a215e467354","unresolved":false,"context_lines":[{"line_number":905,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, namespace\u003dns_name)"},{"line_number":906,"context_line":"            # NOTE(gongys) If 0 flow entries have been deleted"},{"line_number":907,"context_line":"            # conntrack -D will return 1, so check_exit_code\u003dFalse"},{"line_number":908,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dFalse)"},{"line_number":909,"context_line":"            # NOTE(gongysh) Delete conntrack state for egress traffic"},{"line_number":910,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-q\", ip]"},{"line_number":911,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_84048315","line":908,"updated":"2014-08-05 15:38:35.000000000","message":"I would be more secure to ensure that the 2nd conntrack command is call even if the first one fails","commit_id":"869340c525712f72850b6ceb7700fd48d3df6faf"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"4485794b632a45f079a024753a8d8df993bed38f","unresolved":false,"context_lines":[{"line_number":908,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dFalse)"},{"line_number":909,"context_line":"            # NOTE(gongysh) Delete conntrack state for egress traffic"},{"line_number":910,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-q\", ip]"},{"line_number":911,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dFalse)"},{"line_number":912,"context_line":"        except RuntimeError:"},{"line_number":913,"context_line":"            LOG.exception(_(\"Failed tearing off connection state of\""},{"line_number":914,"context_line":"                            \" floatingip %s\"), ip_cidr)"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_7f046014","line":911,"updated":"2014-08-05 12:48:18.000000000","message":"If the command to tear down egress filters fails, will the system be left in a quasi-unstable state here since the ingress filters will have been removed?","commit_id":"869340c525712f72850b6ceb7700fd48d3df6faf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"a1c35881c46d07d870f17305661e264c2a6edf19","unresolved":false,"context_lines":[{"line_number":906,"context_line":"    def _delete_conntrack_state(self, ns_name, ip_cidr):"},{"line_number":907,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":908,"context_line":"        try:"},{"line_number":909,"context_line":"            # NOTE(gongysh) Delete conntrack state for ingress traffic"},{"line_number":910,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-d\", ip]"},{"line_number":911,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, namespace\u003dns_name)"},{"line_number":912,"context_line":"            # NOTE(gongys) If 0 flow entries have been deleted"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_43859aac","line":909,"updated":"2014-08-08 03:14:14.000000000","message":"Don\u0027t think you need the \"NOTE (gongysh)\", this is just a regular comment.","commit_id":"ced17c3b801ca0ca9d7248eeec26f6b880647260"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"a99a278fc0b6b6c713a6df23beac48fe8f4e9d2e","unresolved":false,"context_lines":[{"line_number":906,"context_line":"    def _delete_conntrack_state(self, ns_name, ip_cidr):"},{"line_number":907,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":908,"context_line":"        try:"},{"line_number":909,"context_line":"            # NOTE(gongysh) Delete conntrack state for ingress traffic"},{"line_number":910,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-d\", ip]"},{"line_number":911,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, namespace\u003dns_name)"},{"line_number":912,"context_line":"            # NOTE(gongys) If 0 flow entries have been deleted"}],"source_content_type":"text/x-python","patch_set":12,"id":"7ac7a964_930f68e1","line":909,"in_reply_to":"baada198_43859aac","updated":"2014-08-14 09:13:51.000000000","message":"cannot quite understand","commit_id":"ced17c3b801ca0ca9d7248eeec26f6b880647260"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"7045504adab1b9bc31f282746fb877b1f3c7c83d","unresolved":false,"context_lines":[{"line_number":922,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":923,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":924,"context_line":"        except RuntimeError:"},{"line_number":925,"context_line":"            LOG.exception(_(\"Failed tearing off connection state of\""},{"line_number":926,"context_line":"                            \" floatingip %s\"), ip_cidr)"},{"line_number":927,"context_line":""},{"line_number":928,"context_line":"    def process_router_floating_ip_addresses(self, ri, ex_gw_port):"}],"source_content_type":"text/x-python","patch_set":13,"id":"7ac7a964_ab9bf2c7","line":925,"updated":"2014-08-14 18:35:36.000000000","message":"s/tearing off/deleting/","commit_id":"308e6d59fec927db5803b75688f93c2ebba64113"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"7045504adab1b9bc31f282746fb877b1f3c7c83d","unresolved":false,"context_lines":[{"line_number":923,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":924,"context_line":"        except RuntimeError:"},{"line_number":925,"context_line":"            LOG.exception(_(\"Failed tearing off connection state of\""},{"line_number":926,"context_line":"                            \" floatingip %s\"), ip_cidr)"},{"line_number":927,"context_line":""},{"line_number":928,"context_line":"    def process_router_floating_ip_addresses(self, ri, ex_gw_port):"},{"line_number":929,"context_line":"        \"\"\"Configure IP addresses on router\u0027s external gateway interface."}],"source_content_type":"text/x-python","patch_set":13,"id":"7ac7a964_2b960295","line":926,"updated":"2014-08-14 18:35:36.000000000","message":"Nit: this should be \u0027ip\u0027 instead of \u0027ip_cidr\u0027","commit_id":"308e6d59fec927db5803b75688f93c2ebba64113"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"b37fb0820e1132946eb319eb7744e51796a99e2b","unresolved":false,"context_lines":[{"line_number":908,"context_line":"        ri.iptables_manager.apply()"},{"line_number":909,"context_line":""},{"line_number":910,"context_line":"    def _delete_conntrack_state(self, ns_name, ip_cidr):"},{"line_number":911,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":912,"context_line":"        try:"},{"line_number":913,"context_line":"            # Delete conntrack state for ingress traffic"},{"line_number":914,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-d\", ip]"}],"source_content_type":"text/x-python","patch_set":14,"id":"1abeadc6_58fad943","line":911,"updated":"2014-08-20 16:01:19.000000000","message":"why not using netaddr.IPAddress ?","commit_id":"37e5a202e865c58ca23d4f786fdb7e793546cd2d"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"8cf8b360ebb99d309e33b81f72f6830f86a17b64","unresolved":false,"context_lines":[{"line_number":908,"context_line":"        ri.iptables_manager.apply()"},{"line_number":909,"context_line":""},{"line_number":910,"context_line":"    def _delete_conntrack_state(self, ns_name, ip_cidr):"},{"line_number":911,"context_line":"        ip \u003d ip_cidr.split(\"/\")[0]"},{"line_number":912,"context_line":"        try:"},{"line_number":913,"context_line":"            # Delete conntrack state for ingress traffic"},{"line_number":914,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-d\", ip]"}],"source_content_type":"text/x-python","patch_set":14,"id":"1abeadc6_8ca51649","line":911,"in_reply_to":"1abeadc6_58fad943","updated":"2014-08-20 16:22:45.000000000","message":"can u give me some codes to show how to use it?","commit_id":"37e5a202e865c58ca23d4f786fdb7e793546cd2d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"05d5678fb49650e460b2166d1d2aa42514eaeaf7","unresolved":false,"context_lines":[{"line_number":1021,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, namespace\u003dns_name)"},{"line_number":1022,"context_line":"            # If 0 flow entries have been deleted"},{"line_number":1023,"context_line":"            # conntrack -D will return 1"},{"line_number":1024,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1025,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1026,"context_line":"            # Delete conntrack state for egress traffic"},{"line_number":1027,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-q\", ip]"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_be710b46","line":1024,"updated":"2014-08-20 21:10:21.000000000","message":"If the first execute fails, then the second one is never called.\n\nFor security purpose, should we ensure both executes are called even if the 1st one fails?","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"adbc0f2f2c112cb8ad839d25fc9355f6a9b8ca0a","unresolved":false,"context_lines":[{"line_number":1021,"context_line":"            ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, namespace\u003dns_name)"},{"line_number":1022,"context_line":"            # If 0 flow entries have been deleted"},{"line_number":1023,"context_line":"            # conntrack -D will return 1"},{"line_number":1024,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1025,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1026,"context_line":"            # Delete conntrack state for egress traffic"},{"line_number":1027,"context_line":"            conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-q\", ip]"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_347b577c","line":1024,"in_reply_to":"1abeadc6_be710b46","updated":"2014-08-21 01:09:13.000000000","message":"good idea. thanks","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"05d5678fb49650e460b2166d1d2aa42514eaeaf7","unresolved":false,"context_lines":[{"line_number":1028,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1029,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1030,"context_line":"        except RuntimeError:"},{"line_number":1031,"context_line":"            LOG.exception(_(\"Failed tearing off connection state of\""},{"line_number":1032,"context_line":"                            \" floatingip %s\"), ip_cidr)"},{"line_number":1033,"context_line":""},{"line_number":1034,"context_line":"    def process_router_floating_ip_addresses(self, ri, ex_gw_port):"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_fea8e38e","line":1031,"updated":"2014-08-20 21:10:21.000000000","message":"could you use _LE instead of _","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"06fee8d6a9114aee888ab121454d3bc0e280e892","unresolved":false,"context_lines":[{"line_number":1028,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1029,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1030,"context_line":"        except RuntimeError:"},{"line_number":1031,"context_line":"            LOG.exception(_(\"Failed tearing off connection state of\""},{"line_number":1032,"context_line":"                            \" floatingip %s\"), ip_cidr)"},{"line_number":1033,"context_line":""},{"line_number":1034,"context_line":"    def process_router_floating_ip_addresses(self, ri, ex_gw_port):"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_352a7e2c","line":1031,"updated":"2014-08-20 19:52:05.000000000","message":"s/tearing off/deleting/","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"adbc0f2f2c112cb8ad839d25fc9355f6a9b8ca0a","unresolved":false,"context_lines":[{"line_number":1028,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1029,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1030,"context_line":"        except RuntimeError:"},{"line_number":1031,"context_line":"            LOG.exception(_(\"Failed tearing off connection state of\""},{"line_number":1032,"context_line":"                            \" floatingip %s\"), ip_cidr)"},{"line_number":1033,"context_line":""},{"line_number":1034,"context_line":"    def process_router_floating_ip_addresses(self, ri, ex_gw_port):"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_f4847f5f","line":1031,"in_reply_to":"1abeadc6_352a7e2c","updated":"2014-08-21 01:09:13.000000000","message":"Done","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"adbc0f2f2c112cb8ad839d25fc9355f6a9b8ca0a","unresolved":false,"context_lines":[{"line_number":1028,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1029,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1030,"context_line":"        except RuntimeError:"},{"line_number":1031,"context_line":"            LOG.exception(_(\"Failed tearing off connection state of\""},{"line_number":1032,"context_line":"                            \" floatingip %s\"), ip_cidr)"},{"line_number":1033,"context_line":""},{"line_number":1034,"context_line":"    def process_router_floating_ip_addresses(self, ri, ex_gw_port):"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_d4b4e336","line":1031,"in_reply_to":"1abeadc6_fea8e38e","updated":"2014-08-21 01:09:13.000000000","message":"most of, if not all of, our neutron codes are using _ instead of _LE, so I think in order to keep consistency, we can just keep it for the time being.","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"06fee8d6a9114aee888ab121454d3bc0e280e892","unresolved":false,"context_lines":[{"line_number":1029,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1030,"context_line":"        except RuntimeError:"},{"line_number":1031,"context_line":"            LOG.exception(_(\"Failed tearing off connection state of\""},{"line_number":1032,"context_line":"                            \" floatingip %s\"), ip_cidr)"},{"line_number":1033,"context_line":""},{"line_number":1034,"context_line":"    def process_router_floating_ip_addresses(self, ri, ex_gw_port):"},{"line_number":1035,"context_line":"        \"\"\"Configure IP addresses on router\u0027s external gateway interface."}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_95a8b221","line":1032,"updated":"2014-08-20 19:52:05.000000000","message":"s/ip_cidr/ip/","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"adbc0f2f2c112cb8ad839d25fc9355f6a9b8ca0a","unresolved":false,"context_lines":[{"line_number":1029,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1030,"context_line":"        except RuntimeError:"},{"line_number":1031,"context_line":"            LOG.exception(_(\"Failed tearing off connection state of\""},{"line_number":1032,"context_line":"                            \" floatingip %s\"), ip_cidr)"},{"line_number":1033,"context_line":""},{"line_number":1034,"context_line":"    def process_router_floating_ip_addresses(self, ri, ex_gw_port):"},{"line_number":1035,"context_line":"        \"\"\"Configure IP addresses on router\u0027s external gateway interface."}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_34f27706","line":1032,"in_reply_to":"1abeadc6_95a8b221","updated":"2014-08-21 01:09:13.000000000","message":"ok","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"06fee8d6a9114aee888ab121454d3bc0e280e892","unresolved":false,"context_lines":[{"line_number":1102,"context_line":"                device.addr.delete(net.version, ip_cidr)"},{"line_number":1103,"context_line":"                if ri.router[\u0027distributed\u0027]:"},{"line_number":1104,"context_line":"                    self.floating_ip_removed_dist(ri, ip_cidr)"},{"line_number":1105,"context_line":"                self._delete_conntrack_state(ri.ns_name, ip_cidr)"},{"line_number":1106,"context_line":"        return fip_statuses"},{"line_number":1107,"context_line":""},{"line_number":1108,"context_line":"    def _get_ex_gw_port(self, ri):"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_55745a67","line":1105,"updated":"2014-08-20 19:52:05.000000000","message":"You can just pass \u0027str(net.ip)\u0027 here, which would be the textual representation of the IP address, and skip the strip() in the callee.","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"adbc0f2f2c112cb8ad839d25fc9355f6a9b8ca0a","unresolved":false,"context_lines":[{"line_number":1102,"context_line":"                device.addr.delete(net.version, ip_cidr)"},{"line_number":1103,"context_line":"                if ri.router[\u0027distributed\u0027]:"},{"line_number":1104,"context_line":"                    self.floating_ip_removed_dist(ri, ip_cidr)"},{"line_number":1105,"context_line":"                self._delete_conntrack_state(ri.ns_name, ip_cidr)"},{"line_number":1106,"context_line":"        return fip_statuses"},{"line_number":1107,"context_line":""},{"line_number":1108,"context_line":"    def _get_ex_gw_port(self, ri):"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_746a2fb4","line":1105,"in_reply_to":"1abeadc6_55745a67","updated":"2014-08-21 01:09:13.000000000","message":"I will have a look, thanks","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"a98f718253c5d6af3c4d39c4bf4f5da5d2164abf","unresolved":false,"context_lines":[{"line_number":1027,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1028,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1029,"context_line":"        except RuntimeError:"},{"line_number":1030,"context_line":"            LOG.exception(_(\"Failed deleting ingress connection state of\""},{"line_number":1031,"context_line":"                            \" floatingip %s\"), ip)"},{"line_number":1032,"context_line":"        # Delete conntrack state for egress traffic"},{"line_number":1033,"context_line":"        conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-q\", ip]"}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_4b1c3bc2","line":1030,"updated":"2014-08-25 12:24:01.000000000","message":"you should use _LE() instead of _()","commit_id":"82f225b49d4c3870fe6c3297bbcb6ce9491c677f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"0fdea646687917d6e6041275a46665ed6669a5c3","unresolved":false,"context_lines":[{"line_number":1027,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1028,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1029,"context_line":"        except RuntimeError:"},{"line_number":1030,"context_line":"            LOG.exception(_(\"Failed deleting ingress connection state of\""},{"line_number":1031,"context_line":"                            \" floatingip %s\"), ip)"},{"line_number":1032,"context_line":"        # Delete conntrack state for egress traffic"},{"line_number":1033,"context_line":"        conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-q\", ip]"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa98f980_ae94d037","line":1030,"in_reply_to":"1abeadc6_4b1c3bc2","updated":"2014-09-01 14:30:51.000000000","message":"Done","commit_id":"82f225b49d4c3870fe6c3297bbcb6ce9491c677f"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0ebc28fe08a630e522518955dafa6fe7cdb54f57","unresolved":false,"context_lines":[{"line_number":1113,"context_line":"                device.addr.delete(net.version, ip_cidr)"},{"line_number":1114,"context_line":"                if ri.router[\u0027distributed\u0027]:"},{"line_number":1115,"context_line":"                    self.floating_ip_removed_dist(ri, ip_cidr)"},{"line_number":1116,"context_line":"                self._delete_conntrack_state(ri.ns_name, str(net.ip))"},{"line_number":1117,"context_line":"        return fip_statuses"},{"line_number":1118,"context_line":""},{"line_number":1119,"context_line":"    def _get_ex_gw_port(self, ri):"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa98f980_707982c7","line":1116,"updated":"2014-09-03 09:12:13.000000000","message":"is the explicit coercion to string necessary?","commit_id":"96cc2463ceae420b3c8acc1b10fa308510cd8d9f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"804225a52d6046fb2824168ef9495e9692fdf59b","unresolved":false,"context_lines":[{"line_number":1113,"context_line":"                device.addr.delete(net.version, ip_cidr)"},{"line_number":1114,"context_line":"                if ri.router[\u0027distributed\u0027]:"},{"line_number":1115,"context_line":"                    self.floating_ip_removed_dist(ri, ip_cidr)"},{"line_number":1116,"context_line":"                self._delete_conntrack_state(ri.ns_name, str(net.ip))"},{"line_number":1117,"context_line":"        return fip_statuses"},{"line_number":1118,"context_line":""},{"line_number":1119,"context_line":"    def _get_ex_gw_port(self, ri):"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa98f980_562476ae","line":1116,"in_reply_to":"fa98f980_707982c7","updated":"2014-09-03 09:47:18.000000000","message":"net.ip is  an IPAddress obj, whose __str__ is returning the str rep. so if I don\u0027t call str(), somewhere other codes must call it before using it. I think to use str() is for the purpose of safety and make sure the _delete_conntrack_state\u0027s conntract interface is completely understood.","commit_id":"96cc2463ceae420b3c8acc1b10fa308510cd8d9f"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"0170a44268e3eb7519130a935b43fe840304df9f","unresolved":false,"context_lines":[{"line_number":1031,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1032,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1033,"context_line":"        except RuntimeError:"},{"line_number":1034,"context_line":"            LOG.exception(_(\"Failed deleting ingress connection state of\""},{"line_number":1035,"context_line":"                            \" floatingip %s\"), ip)"},{"line_number":1036,"context_line":"        # Delete conntrack state for egress traffic"},{"line_number":1037,"context_line":"        conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-q\", ip]"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa98f980_9af2ff04","line":1034,"updated":"2014-09-08 08:10:47.000000000","message":"nit: _LE","commit_id":"e537c31d4c3a5722772d7b29627267d0679a8a4f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"006071adb1fbd5169eb7792d0b4131e5f06d99fc","unresolved":false,"context_lines":[{"line_number":1031,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1032,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1033,"context_line":"        except RuntimeError:"},{"line_number":1034,"context_line":"            LOG.exception(_(\"Failed deleting ingress connection state of\""},{"line_number":1035,"context_line":"                            \" floatingip %s\"), ip)"},{"line_number":1036,"context_line":"        # Delete conntrack state for egress traffic"},{"line_number":1037,"context_line":"        conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-q\", ip]"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa98f980_6353d36c","line":1034,"in_reply_to":"fa98f980_9af2ff04","updated":"2014-09-09 02:06:51.000000000","message":"Done","commit_id":"e537c31d4c3a5722772d7b29627267d0679a8a4f"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"0170a44268e3eb7519130a935b43fe840304df9f","unresolved":false,"context_lines":[{"line_number":1039,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1040,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1041,"context_line":"        except RuntimeError:"},{"line_number":1042,"context_line":"            LOG.exception(_(\"Failed deleting egress connection state of\""},{"line_number":1043,"context_line":"                            \" floatingip %s\"), ip)"},{"line_number":1044,"context_line":""},{"line_number":1045,"context_line":"    def process_router_floating_ip_addresses(self, ri, ex_gw_port):"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa98f980_baf7c3f4","line":1042,"updated":"2014-09-08 08:10:47.000000000","message":"ditto","commit_id":"e537c31d4c3a5722772d7b29627267d0679a8a4f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"006071adb1fbd5169eb7792d0b4131e5f06d99fc","unresolved":false,"context_lines":[{"line_number":1039,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"},{"line_number":1040,"context_line":"                                     extra_codes\u003d[1])"},{"line_number":1041,"context_line":"        except RuntimeError:"},{"line_number":1042,"context_line":"            LOG.exception(_(\"Failed deleting egress connection state of\""},{"line_number":1043,"context_line":"                            \" floatingip %s\"), ip)"},{"line_number":1044,"context_line":""},{"line_number":1045,"context_line":"    def process_router_floating_ip_addresses(self, ri, ex_gw_port):"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa98f980_8350b75f","line":1042,"in_reply_to":"fa98f980_baf7c3f4","updated":"2014-09-09 02:06:51.000000000","message":"Done","commit_id":"e537c31d4c3a5722772d7b29627267d0679a8a4f"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"3dc3dac36c515da8d1092485c766b57f0f268781","unresolved":false,"context_lines":[{"line_number":1026,"context_line":"        # Delete conntrack state for ingress traffic"},{"line_number":1027,"context_line":"        conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-d\", ip]"},{"line_number":1028,"context_line":"        ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, namespace\u003dns_name)"},{"line_number":1029,"context_line":"        try:"},{"line_number":1030,"context_line":"            # If 0 flow entries have been deleted"},{"line_number":1031,"context_line":"            # conntrack -D will return 1"},{"line_number":1032,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":22,"id":"da9df570_86e2b801","line":1029,"updated":"2014-09-20 07:39:49.000000000","message":"this is also used in line 1040, consider put it in a method","commit_id":"388ac5c89651e63fe768373d065c87b1cc0f9adb"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"15269be7de2fb3754ccd7bf86ea027b5712a436b","unresolved":false,"context_lines":[{"line_number":1026,"context_line":"        # Delete conntrack state for ingress traffic"},{"line_number":1027,"context_line":"        conntrack_cmd \u003d [\"conntrack\", \"-D\", \"-d\", ip]"},{"line_number":1028,"context_line":"        ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, namespace\u003dns_name)"},{"line_number":1029,"context_line":"        try:"},{"line_number":1030,"context_line":"            # If 0 flow entries have been deleted"},{"line_number":1031,"context_line":"            # conntrack -D will return 1"},{"line_number":1032,"context_line":"            ip_wrapper.netns.execute(conntrack_cmd, check_exit_code\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":22,"id":"da9df570_6ca75250","line":1029,"in_reply_to":"da9df570_86e2b801","updated":"2014-09-22 21:17:08.000000000","message":"Let\u0027s not get too carried away.  There are only two occurrences and it is only one line long.  I probably wouldn\u0027t methodize this quite yet.","commit_id":"388ac5c89651e63fe768373d065c87b1cc0f9adb"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b914f7144ba2c35b1aff0b9c8fd49e51090a889c","unresolved":false,"context_lines":[{"line_number":1109,"context_line":""},{"line_number":1110,"context_line":"        # Clean up addresses that no longer belong on the gateway interface."},{"line_number":1111,"context_line":"        for ip_cidr in existing_cidrs - new_cidrs:"},{"line_number":1112,"context_line":"            if ip_cidr.endswith(FLOATING_IP_CIDR_SUFFIX):"},{"line_number":1113,"context_line":"                net \u003d netaddr.IPNetwork(ip_cidr)"},{"line_number":1114,"context_line":"                device.addr.delete(net.version, ip_cidr)"},{"line_number":1115,"context_line":"                if ri.router[\u0027distributed\u0027]:"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa98f980_472d42fd","line":1112,"updated":"2014-09-15 20:51:24.000000000","message":"(no action requested) Note:  Code already uses suffix to identify floating ips.","commit_id":"388ac5c89651e63fe768373d065c87b1cc0f9adb"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b5b6eaeabbe3715cdeef4de0118e31cc85a573fc","unresolved":false,"context_lines":[{"line_number":1123,"context_line":"                                              namespace\u003dri.ns_name,"},{"line_number":1124,"context_line":"                                              ip\u003dip_cidr)"},{"line_number":1125,"context_line":"            except RuntimeError:"},{"line_number":1126,"context_line":"                LOG.exception(_LE(\"Failed deleting connection state of\""},{"line_number":1127,"context_line":"                                  \" floatingip %s\"), ip_cidr)"},{"line_number":1128,"context_line":""},{"line_number":1129,"context_line":"    def process_router_floating_ip_addresses(self, ri, ex_gw_port):"}],"source_content_type":"text/x-python","patch_set":24,"id":"da9df570_9dd2cbd0","line":1126,"updated":"2014-09-23 14:21:19.000000000","message":"I nearly forgot about string freeze.","commit_id":"c3ed329009b8623f47ce96e3eda6e9b4680875e3"}],"neutron/agent/linux/interface.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"ee0755cb74507e586deebf4ae15d9a215e467354","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        for ip_cidr, ip_version in previous.items():"},{"line_number":104,"context_line":"            if ip_cidr not in preserve_ips:"},{"line_number":105,"context_line":"                # NOTE(gongys) leave the fips to delete later"},{"line_number":106,"context_line":"                if (fip_suffix and ip_cidr.endswith(fip_suffix)):"},{"line_number":107,"context_line":"                    continue"},{"line_number":108,"context_line":"                device.addr.delete(ip_version, ip_cidr)"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_c43bdbc7","line":106,"updated":"2014-08-05 15:38:35.000000000","message":"the parenthesis are not required","commit_id":"869340c525712f72850b6ceb7700fd48d3df6faf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"a1c35881c46d07d870f17305661e264c2a6edf19","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        # clean up any old addresses"},{"line_number":103,"context_line":"        for ip_cidr, ip_version in previous.items():"},{"line_number":104,"context_line":"            if ip_cidr not in preserve_ips:"},{"line_number":105,"context_line":"                # NOTE(gongys) leave the fips to delete later"},{"line_number":106,"context_line":"                if (fip_suffix and ip_cidr.endswith(fip_suffix)):"},{"line_number":107,"context_line":"                    continue"},{"line_number":108,"context_line":"                device.addr.delete(ip_version, ip_cidr)"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_a3fd960b","line":105,"updated":"2014-08-08 03:14:14.000000000","message":"Here too","commit_id":"ced17c3b801ca0ca9d7248eeec26f6b880647260"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"a99a278fc0b6b6c713a6df23beac48fe8f4e9d2e","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        # clean up any old addresses"},{"line_number":103,"context_line":"        for ip_cidr, ip_version in previous.items():"},{"line_number":104,"context_line":"            if ip_cidr not in preserve_ips:"},{"line_number":105,"context_line":"                # NOTE(gongys) leave the fips to delete later"},{"line_number":106,"context_line":"                if (fip_suffix and ip_cidr.endswith(fip_suffix)):"},{"line_number":107,"context_line":"                    continue"},{"line_number":108,"context_line":"                device.addr.delete(ip_version, ip_cidr)"}],"source_content_type":"text/x-python","patch_set":12,"id":"7ac7a964_d3f800c7","line":105,"in_reply_to":"baada198_a3fd960b","updated":"2014-08-14 09:13:51.000000000","message":"Done","commit_id":"ced17c3b801ca0ca9d7248eeec26f6b880647260"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"a98f718253c5d6af3c4d39c4bf4f5da5d2164abf","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        for ip_cidr, ip_version in previous.items():"},{"line_number":104,"context_line":"            if ip_cidr not in preserve_ips:"},{"line_number":105,"context_line":"                # leave the fips to delete later"},{"line_number":106,"context_line":"                if (fip_suffix and ip_cidr.endswith(fip_suffix)):"},{"line_number":107,"context_line":"                    continue"},{"line_number":108,"context_line":"                device.addr.delete(ip_version, ip_cidr)"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_eb6b471d","line":106,"updated":"2014-08-25 12:24:01.000000000","message":"() are not required","commit_id":"82f225b49d4c3870fe6c3297bbcb6ce9491c677f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"0fdea646687917d6e6041275a46665ed6669a5c3","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        for ip_cidr, ip_version in previous.items():"},{"line_number":104,"context_line":"            if ip_cidr not in preserve_ips:"},{"line_number":105,"context_line":"                # leave the fips to delete later"},{"line_number":106,"context_line":"                if (fip_suffix and ip_cidr.endswith(fip_suffix)):"},{"line_number":107,"context_line":"                    continue"},{"line_number":108,"context_line":"                device.addr.delete(ip_version, ip_cidr)"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"fa98f980_0ecebc83","line":106,"in_reply_to":"1abeadc6_eb6b471d","updated":"2014-09-01 14:30:51.000000000","message":"Done","commit_id":"82f225b49d4c3870fe6c3297bbcb6ce9491c677f"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"dc420c51cc9296c85d6739c0a276b3fdc0a2497d","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        for ip_cidr, ip_version in previous.items():"},{"line_number":104,"context_line":"            if ip_cidr not in preserve_ips:"},{"line_number":105,"context_line":"                # leave the fips to delete later"},{"line_number":106,"context_line":"                if (fip_suffix and ip_cidr.endswith(fip_suffix)):"},{"line_number":107,"context_line":"                    continue"},{"line_number":108,"context_line":"                device.addr.delete(ip_version, ip_cidr)"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"fa98f980_4478718f","line":106,"updated":"2014-09-02 08:56:41.000000000","message":"() are not required","commit_id":"96cc2463ceae420b3c8acc1b10fa308510cd8d9f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"804225a52d6046fb2824168ef9495e9692fdf59b","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        for ip_cidr, ip_version in previous.items():"},{"line_number":104,"context_line":"            if ip_cidr not in preserve_ips:"},{"line_number":105,"context_line":"                # leave the fips to delete later"},{"line_number":106,"context_line":"                if (fip_suffix and ip_cidr.endswith(fip_suffix)):"},{"line_number":107,"context_line":"                    continue"},{"line_number":108,"context_line":"                device.addr.delete(ip_version, ip_cidr)"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"fa98f980_d62f8686","line":106,"in_reply_to":"fa98f980_4478718f","updated":"2014-09-03 09:47:18.000000000","message":"Done","commit_id":"96cc2463ceae420b3c8acc1b10fa308510cd8d9f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"a5810782433ec834661ea3444ad803d14fd0b431","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def init_l3(self, device_name, ip_cidrs, namespace\u003dNone,"},{"line_number":73,"context_line":"                preserve_ips\u003d[], gateway\u003dNone, extra_subnets\u003d[],"},{"line_number":74,"context_line":"                fip_suffix\u003dNone):"},{"line_number":75,"context_line":"        \"\"\"Set the L3 settings for the interface using data from the port."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        ip_cidrs: list of \u0027X.X.X.X/YY\u0027 strings"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa98f980_9cc3b837","line":74,"updated":"2014-09-09 04:53:26.000000000","message":"It is not intuitive to me that pass in a fip_suffix will have the effect of skipping the deletion of floating ips.  At the least, we need a description in the docstring below.  But, is there another way?","commit_id":"e537c31d4c3a5722772d7b29627267d0679a8a4f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"6332d045470064509e4b63c4fc97621d46a1b002","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def init_l3(self, device_name, ip_cidrs, namespace\u003dNone,"},{"line_number":73,"context_line":"                preserve_ips\u003d[], gateway\u003dNone, extra_subnets\u003d[],"},{"line_number":74,"context_line":"                fip_suffix\u003dNone):"},{"line_number":75,"context_line":"        \"\"\"Set the L3 settings for the interface using data from the port."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        ip_cidrs: list of \u0027X.X.X.X/YY\u0027 strings"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa98f980_645e6eeb","line":74,"in_reply_to":"fa98f980_9cc3b837","updated":"2014-09-09 12:18:41.000000000","message":"Done","commit_id":"e537c31d4c3a5722772d7b29627267d0679a8a4f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b914f7144ba2c35b1aff0b9c8fd49e51090a889c","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        # clean up any old addresses"},{"line_number":105,"context_line":"        for ip_cidr, ip_version in previous.items():"},{"line_number":106,"context_line":"            if ip_cidr not in preserve_ips:"},{"line_number":107,"context_line":"                # leave the fips to delete later"},{"line_number":108,"context_line":"                if fip_suffix and ip_cidr.endswith(fip_suffix):"},{"line_number":109,"context_line":"                    continue"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa98f980_87cf2a28","line":106,"updated":"2014-09-15 20:51:24.000000000","message":"I just noticed something.  This preserve_ips check is here so that the caller can pass the list of current floating ips to this method so that they will not be deleted.\n\nL108 would skip all of the ips that this line skips and more because it skips floating ips that need to be deleted.","commit_id":"388ac5c89651e63fe768373d065c87b1cc0f9adb"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b914f7144ba2c35b1aff0b9c8fd49e51090a889c","unresolved":false,"context_lines":[{"line_number":107,"context_line":"                # leave the fips to delete later"},{"line_number":108,"context_line":"                if fip_suffix and ip_cidr.endswith(fip_suffix):"},{"line_number":109,"context_line":"                    continue"},{"line_number":110,"context_line":"                device.addr.delete(ip_version, ip_cidr)"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"        if gateway:"},{"line_number":113,"context_line":"            device.route.add_gateway(gateway)"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa98f980_47f0e266","line":110,"updated":"2014-09-15 20:51:24.000000000","message":"You could call _delete_conntrack_state directly here too.  You\u0027d need to move that method in to this class from l3_agent.py.  It would avoid adding the fip_suffix parameter to this method which complicates how this method is called a little bit.  It would also avoid the question that Kevin asks.\n\nLet me know what you think.","commit_id":"388ac5c89651e63fe768373d065c87b1cc0f9adb"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"c4cd0c3636bbaaff23561f31d0121fff7dc6f917","unresolved":false,"context_lines":[{"line_number":112,"context_line":"            if ip_cidr not in preserve_ips:"},{"line_number":113,"context_line":"                device.addr.delete(ip_version, ip_cidr)"},{"line_number":114,"context_line":"                try:"},{"line_number":115,"context_line":"                    ip_lib.delete_conntrack_state(root_helper\u003dself.root_helper,"},{"line_number":116,"context_line":"                                                  namespace\u003dnamespace,"},{"line_number":117,"context_line":"                                                  ip\u003dip_cidr)"},{"line_number":118,"context_line":"                except RuntimeError:"}],"source_content_type":"text/x-python","patch_set":24,"id":"da9df570_c4764e3e","line":115,"updated":"2014-09-23 02:07:37.000000000","message":"Why are we executing this here?","commit_id":"c3ed329009b8623f47ce96e3eda6e9b4680875e3"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b5b6eaeabbe3715cdeef4de0118e31cc85a573fc","unresolved":false,"context_lines":[{"line_number":112,"context_line":"            if ip_cidr not in preserve_ips:"},{"line_number":113,"context_line":"                device.addr.delete(ip_version, ip_cidr)"},{"line_number":114,"context_line":"                try:"},{"line_number":115,"context_line":"                    ip_lib.delete_conntrack_state(root_helper\u003dself.root_helper,"},{"line_number":116,"context_line":"                                                  namespace\u003dnamespace,"},{"line_number":117,"context_line":"                                                  ip\u003dip_cidr)"},{"line_number":118,"context_line":"                except RuntimeError:"}],"source_content_type":"text/x-python","patch_set":24,"id":"da9df570_fdfd973c","line":115,"in_reply_to":"da9df570_c4764e3e","updated":"2014-09-23 14:21:19.000000000","message":"An IP address which may have associated conntrack state has just been deleted.  It is exactly the right place to execute this.  Why do you think we should not execute this here?\n\nI think that if this code is going to delete IP addresses then it should also remove conntrack state.","commit_id":"c3ed329009b8623f47ce96e3eda6e9b4680875e3"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d78d7ce9cf96f0e2f8d5978af24e42f27ac2cde3","unresolved":false,"context_lines":[{"line_number":112,"context_line":"            if ip_cidr not in preserve_ips:"},{"line_number":113,"context_line":"                device.addr.delete(ip_version, ip_cidr)"},{"line_number":114,"context_line":"                try:"},{"line_number":115,"context_line":"                    ip_lib.delete_conntrack_state(root_helper\u003dself.root_helper,"},{"line_number":116,"context_line":"                                                  namespace\u003dnamespace,"},{"line_number":117,"context_line":"                                                  ip\u003dip_cidr)"},{"line_number":118,"context_line":"                except RuntimeError:"}],"source_content_type":"text/x-python","patch_set":24,"id":"da9df570_38ee4db5","line":115,"in_reply_to":"da9df570_fdfd973c","updated":"2014-09-23 14:30:39.000000000","message":"Maybe this needs to be executed in the device.addr.delete call?  I know it isn\u0027t an ip command but it is important that conntrack state be deleted along with the address.","commit_id":"c3ed329009b8623f47ce96e3eda6e9b4680875e3"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b5b6eaeabbe3715cdeef4de0118e31cc85a573fc","unresolved":false,"context_lines":[{"line_number":116,"context_line":"                                                  namespace\u003dnamespace,"},{"line_number":117,"context_line":"                                                  ip\u003dip_cidr)"},{"line_number":118,"context_line":"                except RuntimeError:"},{"line_number":119,"context_line":"                    LOG.exception(_LE(\"Failed deleting connection state of\""},{"line_number":120,"context_line":"                                      \" floatingip %s\"), ip_cidr)"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"        if gateway:"}],"source_content_type":"text/x-python","patch_set":24,"id":"da9df570_7d99a71e","line":119,"updated":"2014-09-23 14:21:19.000000000","message":"I nearly forgot about string freeze.","commit_id":"c3ed329009b8623f47ce96e3eda6e9b4680875e3"}],"neutron/agent/linux/ip_lib.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"05d5678fb49650e460b2166d1d2aa42514eaeaf7","unresolved":false,"context_lines":[{"line_number":523,"context_line":"    def delete(self, name):"},{"line_number":524,"context_line":"        self._as_root(\u0027delete\u0027, name, use_root_namespace\u003dTrue)"},{"line_number":525,"context_line":""},{"line_number":526,"context_line":"    def execute(self, cmds, addl_env\u003d{}, check_exit_code\u003dTrue,"},{"line_number":527,"context_line":"                extra_codes\u003d[]):"},{"line_number":528,"context_line":"        if not self._parent.root_helper:"},{"line_number":529,"context_line":"            raise exceptions.SudoRequired()"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_fec1c354","line":526,"updated":"2014-08-20 21:10:21.000000000","message":"we should avoid using [] and {} as argument default values","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"adbc0f2f2c112cb8ad839d25fc9355f6a9b8ca0a","unresolved":false,"context_lines":[{"line_number":523,"context_line":"    def delete(self, name):"},{"line_number":524,"context_line":"        self._as_root(\u0027delete\u0027, name, use_root_namespace\u003dTrue)"},{"line_number":525,"context_line":""},{"line_number":526,"context_line":"    def execute(self, cmds, addl_env\u003d{}, check_exit_code\u003dTrue,"},{"line_number":527,"context_line":"                extra_codes\u003d[]):"},{"line_number":528,"context_line":"        if not self._parent.root_helper:"},{"line_number":529,"context_line":"            raise exceptions.SudoRequired()"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_f428ff87","line":526,"in_reply_to":"1abeadc6_fec1c354","updated":"2014-08-21 01:09:13.000000000","message":"passing in [] instead of None is good for the later usage of \u0027if code in extra_codes\u0027. And you also can see the ddl_env\u003d{} here.","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"7291259198ce50ffb26f3e11093270dd86561705","unresolved":false,"context_lines":[{"line_number":524,"context_line":"        self._as_root(\u0027delete\u0027, name, use_root_namespace\u003dTrue)"},{"line_number":525,"context_line":""},{"line_number":526,"context_line":"    def execute(self, cmds, addl_env\u003d{}, check_exit_code\u003dTrue,"},{"line_number":527,"context_line":"                extra_codes\u003d[]):"},{"line_number":528,"context_line":"        if not self._parent.root_helper:"},{"line_number":529,"context_line":"            raise exceptions.SudoRequired()"},{"line_number":530,"context_line":"        ns_params \u003d []"}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_2b029fb4","line":527,"updated":"2014-08-25 12:13:24.000000000","message":"same remark","commit_id":"82f225b49d4c3870fe6c3297bbcb6ce9491c677f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"0fdea646687917d6e6041275a46665ed6669a5c3","unresolved":false,"context_lines":[{"line_number":524,"context_line":"        self._as_root(\u0027delete\u0027, name, use_root_namespace\u003dTrue)"},{"line_number":525,"context_line":""},{"line_number":526,"context_line":"    def execute(self, cmds, addl_env\u003d{}, check_exit_code\u003dTrue,"},{"line_number":527,"context_line":"                extra_codes\u003d[]):"},{"line_number":528,"context_line":"        if not self._parent.root_helper:"},{"line_number":529,"context_line":"            raise exceptions.SudoRequired()"},{"line_number":530,"context_line":"        ns_params \u003d []"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa98f980_eb17aa4f","line":527,"in_reply_to":"1abeadc6_2b029fb4","updated":"2014-09-01 14:30:51.000000000","message":"Done","commit_id":"82f225b49d4c3870fe6c3297bbcb6ce9491c677f"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0ebc28fe08a630e522518955dafa6fe7cdb54f57","unresolved":false,"context_lines":[{"line_number":526,"context_line":"    def execute(self, cmds, addl_env\u003d{}, check_exit_code\u003dTrue,"},{"line_number":527,"context_line":"                extra_codes\u003dNone):"},{"line_number":528,"context_line":"        if not self._parent.root_helper:"},{"line_number":529,"context_line":"            raise exceptions.SudoRequired()"},{"line_number":530,"context_line":"        ns_params \u003d []"},{"line_number":531,"context_line":"        if self._parent.namespace:"},{"line_number":532,"context_line":"            if not self._parent.root_helper:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa98f980_5071dede","line":529,"updated":"2014-09-03 09:12:13.000000000","message":"This was explicitly moved to 532 just recently. I5ab2f3f1daf4a5a080611dbcd3dbd43292f6766a\n\nWhy does it need to be here as well now?","commit_id":"96cc2463ceae420b3c8acc1b10fa308510cd8d9f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"804225a52d6046fb2824168ef9495e9692fdf59b","unresolved":false,"context_lines":[{"line_number":526,"context_line":"    def execute(self, cmds, addl_env\u003d{}, check_exit_code\u003dTrue,"},{"line_number":527,"context_line":"                extra_codes\u003dNone):"},{"line_number":528,"context_line":"        if not self._parent.root_helper:"},{"line_number":529,"context_line":"            raise exceptions.SudoRequired()"},{"line_number":530,"context_line":"        ns_params \u003d []"},{"line_number":531,"context_line":"        if self._parent.namespace:"},{"line_number":532,"context_line":"            if not self._parent.root_helper:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa98f980_96409e35","line":529,"in_reply_to":"fa98f980_5071dede","updated":"2014-09-03 09:47:18.000000000","message":"my fault!","commit_id":"96cc2463ceae420b3c8acc1b10fa308510cd8d9f"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"c4cd0c3636bbaaff23561f31d0121fff7dc6f917","unresolved":false,"context_lines":[{"line_number":605,"context_line":"    return any(arg in line for line in stderr.split(\u0027\\n\u0027))"},{"line_number":606,"context_line":""},{"line_number":607,"context_line":""},{"line_number":608,"context_line":"def delete_conntrack_state(root_helper, namespace, ip):"},{"line_number":609,"context_line":"    \"\"\"Delete conntrack state associated with an IP address."},{"line_number":610,"context_line":""},{"line_number":611,"context_line":"    This terminates any active connections through an IP.  Call this soon after"}],"source_content_type":"text/x-python","patch_set":24,"id":"da9df570_e4efd2ae","line":608,"updated":"2014-09-23 02:07:37.000000000","message":"Not sure this belongs in ip_lib since the method is a wrap for iproute(2).  Seems that this method is specific to the l3_agent.  It is not clear why this was moved here.","commit_id":"c3ed329009b8623f47ce96e3eda6e9b4680875e3"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"65cb2b2519c40f6fd30d3f396ede354f0d63c44e","unresolved":false,"context_lines":[{"line_number":605,"context_line":"    return any(arg in line for line in stderr.split(\u0027\\n\u0027))"},{"line_number":606,"context_line":""},{"line_number":607,"context_line":""},{"line_number":608,"context_line":"def delete_conntrack_state(root_helper, namespace, ip):"},{"line_number":609,"context_line":"    \"\"\"Delete conntrack state associated with an IP address."},{"line_number":610,"context_line":""},{"line_number":611,"context_line":"    This terminates any active connections through an IP.  Call this soon after"}],"source_content_type":"text/x-python","patch_set":24,"id":"da9df570_6362d3ae","line":608,"in_reply_to":"da9df570_b85b1d2d","updated":"2014-09-24 02:12:55.000000000","message":"interface.py feels more right","commit_id":"c3ed329009b8623f47ce96e3eda6e9b4680875e3"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b5b6eaeabbe3715cdeef4de0118e31cc85a573fc","unresolved":false,"context_lines":[{"line_number":605,"context_line":"    return any(arg in line for line in stderr.split(\u0027\\n\u0027))"},{"line_number":606,"context_line":""},{"line_number":607,"context_line":""},{"line_number":608,"context_line":"def delete_conntrack_state(root_helper, namespace, ip):"},{"line_number":609,"context_line":"    \"\"\"Delete conntrack state associated with an IP address."},{"line_number":610,"context_line":""},{"line_number":611,"context_line":"    This terminates any active connections through an IP.  Call this soon after"}],"source_content_type":"text/x-python","patch_set":24,"id":"da9df570_b85b1d2d","line":608,"in_reply_to":"da9df570_e4efd2ae","updated":"2014-09-23 14:21:19.000000000","message":"You\u0027re right.  This might not be exactly the right place for this.  On the other hand, I felt like the l3agent was the wrong place for it because I felt it was important for this to be called immediately after deleting IPs and interface.py should not import l3_agent for that.\n\nMaybe interface.py is a better place for it?","commit_id":"c3ed329009b8623f47ce96e3eda6e9b4680875e3"}],"neutron/agent/linux/utils.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"05d5678fb49650e460b2166d1d2aa42514eaeaf7","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":63,"context_line":"            check_exit_code\u003dTrue, return_stderr\u003dFalse, extra_codes\u003d[]):"},{"line_number":64,"context_line":"    try:"},{"line_number":65,"context_line":"        obj, cmd \u003d create_process(cmd, root_helper\u003droot_helper,"},{"line_number":66,"context_line":"                                  addl_env\u003daddl_env)"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_1e259f5b","line":63,"updated":"2014-08-20 21:10:21.000000000","message":"itto","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"adbc0f2f2c112cb8ad839d25fc9355f6a9b8ca0a","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":63,"context_line":"            check_exit_code\u003dTrue, return_stderr\u003dFalse, extra_codes\u003d[]):"},{"line_number":64,"context_line":"    try:"},{"line_number":65,"context_line":"        obj, cmd \u003d create_process(cmd, root_helper\u003droot_helper,"},{"line_number":66,"context_line":"                                  addl_env\u003daddl_env)"}],"source_content_type":"text/x-python","patch_set":15,"id":"1abeadc6_d446a34e","line":63,"in_reply_to":"1abeadc6_1e259f5b","updated":"2014-08-21 01:09:13.000000000","message":"to pass in the [] is good for line 74. Do u have any statements that  we should avoid such kind of usage?","commit_id":"71d3e4bf2f0ea840daa1857356677d184d3d9102"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"6fbe3a0b778364dbf23a04b3671f1f33f3f720cb","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":63,"context_line":"            check_exit_code\u003dTrue, return_stderr\u003dFalse, extra_codes\u003d[]):"},{"line_number":64,"context_line":"    try:"},{"line_number":65,"context_line":"        obj, cmd \u003d create_process(cmd, root_helper\u003droot_helper,"},{"line_number":66,"context_line":"                                  addl_env\u003daddl_env)"}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_b079d8c9","line":63,"updated":"2014-08-23 16:37:35.000000000","message":"default mutable objects have side effects, please refrain from using them:\n\nhttp://effbot.org/zone/default-values.htm","commit_id":"82f225b49d4c3870fe6c3297bbcb6ce9491c677f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"0fdea646687917d6e6041275a46665ed6669a5c3","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":63,"context_line":"            check_exit_code\u003dTrue, return_stderr\u003dFalse, extra_codes\u003d[]):"},{"line_number":64,"context_line":"    try:"},{"line_number":65,"context_line":"        obj, cmd \u003d create_process(cmd, root_helper\u003droot_helper,"},{"line_number":66,"context_line":"                                  addl_env\u003daddl_env)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa98f980_ab368201","line":63,"in_reply_to":"1abeadc6_b079d8c9","updated":"2014-09-01 14:30:51.000000000","message":"Done","commit_id":"82f225b49d4c3870fe6c3297bbcb6ce9491c677f"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0ebc28fe08a630e522518955dafa6fe7cdb54f57","unresolved":false,"context_lines":[{"line_number":72,"context_line":"              \"Stderr: %(stderr)r\") % {\u0027cmd\u0027: cmd, \u0027code\u0027: obj.returncode,"},{"line_number":73,"context_line":"                                       \u0027stdout\u0027: _stdout, \u0027stderr\u0027: _stderr}"},{"line_number":74,"context_line":"        if extra_codes is None:"},{"line_number":75,"context_line":"            extra_codes \u003d []"},{"line_number":76,"context_line":"        if obj.returncode and obj.returncode not in extra_codes:"},{"line_number":77,"context_line":"            LOG.error(m)"},{"line_number":78,"context_line":"            if check_exit_code:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa98f980_306c5a08","line":75,"updated":"2014-09-03 09:12:13.000000000","message":"extra_codes \u003d extra_codes or []","commit_id":"96cc2463ceae420b3c8acc1b10fa308510cd8d9f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"804225a52d6046fb2824168ef9495e9692fdf59b","unresolved":false,"context_lines":[{"line_number":72,"context_line":"              \"Stderr: %(stderr)r\") % {\u0027cmd\u0027: cmd, \u0027code\u0027: obj.returncode,"},{"line_number":73,"context_line":"                                       \u0027stdout\u0027: _stdout, \u0027stderr\u0027: _stderr}"},{"line_number":74,"context_line":"        if extra_codes is None:"},{"line_number":75,"context_line":"            extra_codes \u003d []"},{"line_number":76,"context_line":"        if obj.returncode and obj.returncode not in extra_codes:"},{"line_number":77,"context_line":"            LOG.error(m)"},{"line_number":78,"context_line":"            if check_exit_code:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa98f980_76989ac0","line":75,"in_reply_to":"fa98f980_306c5a08","updated":"2014-09-03 09:47:18.000000000","message":"Done","commit_id":"96cc2463ceae420b3c8acc1b10fa308510cd8d9f"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"83f95e57a076b89630b558c2e92c4dce2e231220","unresolved":false,"context_lines":[{"line_number":73,"context_line":"              \"Stderr: %(stderr)r\") % {\u0027cmd\u0027: cmd, \u0027code\u0027: obj.returncode,"},{"line_number":74,"context_line":"                                       \u0027stdout\u0027: _stdout, \u0027stderr\u0027: _stderr}"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        extra_codes \u003d extra_codes or []"},{"line_number":77,"context_line":"        if (obj.returncode and log_fail_as_error and"},{"line_number":78,"context_line":"            obj.returncode not in extra_codes):"},{"line_number":79,"context_line":"            LOG.error(m)"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa98f980_6167e44d","line":76,"updated":"2014-09-03 16:45:50.000000000","message":"I don\u0027t want to derail this at the last minute, but since we\u0027ve already put obj.returncode in the string above, we could just check extra_codes first and reset obj.returncode accordingly:\n\nif obj.returncode and obj.returncode in extra_codes:\n    obj.returncode \u003d None\n\nThat way none of the below needs to change.","commit_id":"7c6a8ba933fadd24ef102e71ab4b69152d674110"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"46e16f164a8d18ebcb0fc1f30722b3c309f795a5","unresolved":false,"context_lines":[{"line_number":73,"context_line":"              \"Stderr: %(stderr)r\") % {\u0027cmd\u0027: cmd, \u0027code\u0027: obj.returncode,"},{"line_number":74,"context_line":"                                       \u0027stdout\u0027: _stdout, \u0027stderr\u0027: _stderr}"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        extra_codes \u003d extra_codes or []"},{"line_number":77,"context_line":"        if (obj.returncode and log_fail_as_error and"},{"line_number":78,"context_line":"            obj.returncode not in extra_codes):"},{"line_number":79,"context_line":"            LOG.error(m)"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa98f980_00e30406","line":76,"in_reply_to":"fa98f980_6167e44d","updated":"2014-09-08 02:05:38.000000000","message":"Done","commit_id":"7c6a8ba933fadd24ef102e71ab4b69152d674110"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"a5810782433ec834661ea3444ad803d14fd0b431","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":63,"context_line":"            check_exit_code\u003dTrue, return_stderr\u003dFalse, log_fail_as_error\u003dTrue,"},{"line_number":64,"context_line":"            extra_codes\u003dNone):"},{"line_number":65,"context_line":"    try:"},{"line_number":66,"context_line":"        obj, cmd \u003d create_process(cmd, root_helper\u003droot_helper,"},{"line_number":67,"context_line":"                                  addl_env\u003daddl_env)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa98f980_5cdcf074","line":64,"updated":"2014-09-09 04:53:26.000000000","message":"The name extra_codes doesn\u0027t help me understand what this is for.  Maybe success_codes, acceptible_codes, or something along those lines.","commit_id":"e537c31d4c3a5722772d7b29627267d0679a8a4f"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"6332d045470064509e4b63c4fc97621d46a1b002","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":63,"context_line":"            check_exit_code\u003dTrue, return_stderr\u003dFalse, log_fail_as_error\u003dTrue,"},{"line_number":64,"context_line":"            extra_codes\u003dNone):"},{"line_number":65,"context_line":"    try:"},{"line_number":66,"context_line":"        obj, cmd \u003d create_process(cmd, root_helper\u003droot_helper,"},{"line_number":67,"context_line":"                                  addl_env\u003daddl_env)"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa98f980_44508ad4","line":64,"in_reply_to":"fa98f980_5cdcf074","updated":"2014-09-09 12:18:41.000000000","message":"Done","commit_id":"e537c31d4c3a5722772d7b29627267d0679a8a4f"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"64a2df671f8cb17bea041bbcded1a10cf8d9a450","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":63,"context_line":"            check_exit_code\u003dTrue, return_stderr\u003dFalse, log_fail_as_error\u003dTrue,"},{"line_number":64,"context_line":"            extra_ok_codes\u003dNone):"},{"line_number":65,"context_line":"    try:"},{"line_number":66,"context_line":"        obj, cmd \u003d create_process(cmd, root_helper\u003droot_helper,"},{"line_number":67,"context_line":"                                  addl_env\u003daddl_env)"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa98f980_bfd7cebd","line":64,"updated":"2014-09-16 07:18:43.000000000","message":"As extra_ok_codes is read only, I\u0027d like to change the default value to [] regardless of it\u0027s a mutable object, then we can remove L76(extra checking).\n\njust like: https://github.com/openstack/neutron/blob/master/neutron/agent/linux/interface.py#L73","commit_id":"388ac5c89651e63fe768373d065c87b1cc0f9adb"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"15269be7de2fb3754ccd7bf86ea027b5712a436b","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":63,"context_line":"            check_exit_code\u003dTrue, return_stderr\u003dFalse, log_fail_as_error\u003dTrue,"},{"line_number":64,"context_line":"            extra_ok_codes\u003dNone):"},{"line_number":65,"context_line":"    try:"},{"line_number":66,"context_line":"        obj, cmd \u003d create_process(cmd, root_helper\u003droot_helper,"},{"line_number":67,"context_line":"                                  addl_env\u003daddl_env)"}],"source_content_type":"text/x-python","patch_set":22,"id":"da9df570_6c7e72b0","line":64,"in_reply_to":"fa98f980_9d9e76b7","updated":"2014-09-22 21:17:08.000000000","message":"This is fine as it is IMO.","commit_id":"388ac5c89651e63fe768373d065c87b1cc0f9adb"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"5fa28a7227f60202115862eb07668b017e49a499","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":63,"context_line":"            check_exit_code\u003dTrue, return_stderr\u003dFalse, log_fail_as_error\u003dTrue,"},{"line_number":64,"context_line":"            extra_ok_codes\u003dNone):"},{"line_number":65,"context_line":"    try:"},{"line_number":66,"context_line":"        obj, cmd \u003d create_process(cmd, root_helper\u003droot_helper,"},{"line_number":67,"context_line":"                                  addl_env\u003daddl_env)"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa98f980_f8a4094d","line":64,"in_reply_to":"fa98f980_bfd7cebd","updated":"2014-09-16 11:52:32.000000000","message":"It\u0027s not recommended to use mutables as default values. Even for read only values ... because future changes can transform read-only values into read-write values.","commit_id":"388ac5c89651e63fe768373d065c87b1cc0f9adb"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"e88ab58373765afcc04a19a627e80db9d304f38d","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":63,"context_line":"            check_exit_code\u003dTrue, return_stderr\u003dFalse, log_fail_as_error\u003dTrue,"},{"line_number":64,"context_line":"            extra_ok_codes\u003dNone):"},{"line_number":65,"context_line":"    try:"},{"line_number":66,"context_line":"        obj, cmd \u003d create_process(cmd, root_helper\u003droot_helper,"},{"line_number":67,"context_line":"                                  addl_env\u003daddl_env)"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa98f980_9d9e76b7","line":64,"in_reply_to":"fa98f980_f8a4094d","updated":"2014-09-17 02:18:51.000000000","message":"if so, how about changing it to tuple instead of list, It\u0027s really not necessary to stick with a mutable value.","commit_id":"388ac5c89651e63fe768373d065c87b1cc0f9adb"},{"author":{"_account_id":13670,"name":"ANish","email":"anish2good@yahoo.co.in"},"change_message_id":"1f5109e08b2dffbc147ef002ae4a5542240ba238","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"def execute(cmd, root_helper\u003dNone, process_input\u003dNone, addl_env\u003dNone,"},{"line_number":61,"context_line":"            check_exit_code\u003dTrue, return_stderr\u003dFalse, log_fail_as_error\u003dTrue,"},{"line_number":62,"context_line":"            extra_ok_codes\u003dNone):"},{"line_number":63,"context_line":"    try:"},{"line_number":64,"context_line":"        obj, cmd \u003d create_process(cmd, root_helper\u003droot_helper,"},{"line_number":65,"context_line":"                                  addl_env\u003daddl_env)"}],"source_content_type":"text/x-python","patch_set":27,"id":"7a8c0949_f7123957","line":62,"updated":"2014-10-30 19:13:56.000000000","message":"does this extra_ok_codes new parameter only applicable for floating ip address exit code ?","commit_id":"966645538395079b5337b5ed30d597112279283c"}],"neutron/tests/unit/test_linux_dhcp.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"a1c35881c46d07d870f17305661e264c2a6edf19","unresolved":false,"context_lines":[{"line_number":753,"context_line":"                self.assertTrue(mocks[\u0027_output_opts_file\u0027].called)"},{"line_number":754,"context_line":"                self.execute.assert_called_once_with(expected,"},{"line_number":755,"context_line":"                                                     root_helper\u003d\u0027sudo\u0027,"},{"line_number":756,"context_line":"                                                     extra_codes\u003d[],"},{"line_number":757,"context_line":"                                                     check_exit_code\u003dTrue)"},{"line_number":758,"context_line":""},{"line_number":759,"context_line":"    def test_spawn(self):"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_233b46eb","line":756,"updated":"2014-08-08 03:14:14.000000000","message":"nit: you should put this new arg as the last one, as in test_linux_ip_lib.py","commit_id":"ced17c3b801ca0ca9d7248eeec26f6b880647260"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"a99a278fc0b6b6c713a6df23beac48fe8f4e9d2e","unresolved":false,"context_lines":[{"line_number":753,"context_line":"                self.assertTrue(mocks[\u0027_output_opts_file\u0027].called)"},{"line_number":754,"context_line":"                self.execute.assert_called_once_with(expected,"},{"line_number":755,"context_line":"                                                     root_helper\u003d\u0027sudo\u0027,"},{"line_number":756,"context_line":"                                                     extra_codes\u003d[],"},{"line_number":757,"context_line":"                                                     check_exit_code\u003dTrue)"},{"line_number":758,"context_line":""},{"line_number":759,"context_line":"    def test_spawn(self):"}],"source_content_type":"text/x-python","patch_set":12,"id":"7ac7a964_d31f2008","line":756,"in_reply_to":"baada198_233b46eb","updated":"2014-08-14 09:13:51.000000000","message":"Done","commit_id":"ced17c3b801ca0ca9d7248eeec26f6b880647260"}],"neutron/tests/unit/test_linux_external_process.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"a1c35881c46d07d870f17305661e264c2a6edf19","unresolved":false,"context_lines":[{"line_number":43,"context_line":"                name.assert_called_once_with(ensure_pids_dir\u003dTrue)"},{"line_number":44,"context_line":"                self.execute.assert_called_once_with([\u0027the\u0027, \u0027cmd\u0027],"},{"line_number":45,"context_line":"                                                     root_helper\u003d\u0027sudo\u0027,"},{"line_number":46,"context_line":"                                                     extra_codes\u003d[],"},{"line_number":47,"context_line":"                                                     check_exit_code\u003dTrue)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def test_enable_with_namespace(self):"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_43211ab4","line":46,"updated":"2014-08-08 03:14:14.000000000","message":"Here too","commit_id":"ced17c3b801ca0ca9d7248eeec26f6b880647260"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"a99a278fc0b6b6c713a6df23beac48fe8f4e9d2e","unresolved":false,"context_lines":[{"line_number":43,"context_line":"                name.assert_called_once_with(ensure_pids_dir\u003dTrue)"},{"line_number":44,"context_line":"                self.execute.assert_called_once_with([\u0027the\u0027, \u0027cmd\u0027],"},{"line_number":45,"context_line":"                                                     root_helper\u003d\u0027sudo\u0027,"},{"line_number":46,"context_line":"                                                     extra_codes\u003d[],"},{"line_number":47,"context_line":"                                                     check_exit_code\u003dTrue)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def test_enable_with_namespace(self):"}],"source_content_type":"text/x-python","patch_set":12,"id":"7ac7a964_93268867","line":46,"in_reply_to":"baada198_43211ab4","updated":"2014-08-14 09:13:51.000000000","message":"Done","commit_id":"ced17c3b801ca0ca9d7248eeec26f6b880647260"}],"neutron/tests/unit/test_linux_ip_lib.py":[{"author":{"_account_id":13670,"name":"ANish","email":"anish2good@yahoo.co.in"},"change_message_id":"1f5109e08b2dffbc147ef002ae4a5542240ba238","unresolved":false,"context_lines":[{"line_number":852,"context_line":"            execute.assert_called_once_with([\u0027test\u0027],"},{"line_number":853,"context_line":"                                            root_helper\u003dNone,"},{"line_number":854,"context_line":"                                            check_exit_code\u003dTrue,"},{"line_number":855,"context_line":"                                            extra_ok_codes\u003dNone)"},{"line_number":856,"context_line":""},{"line_number":857,"context_line":""},{"line_number":858,"context_line":"class TestDeviceExists(base.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":27,"id":"7a8c0949_376201d9","line":855,"updated":"2014-10-30 19:13:56.000000000","message":"test case for extra_ok_codes\u003d[1]  ?","commit_id":"966645538395079b5337b5ed30d597112279283c"}]}
