)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"bdcf4a330f6bc31b61a52ad7f97361452d7169b7","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-12-22 15:36:30 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Configure IPv6 LLADDR only on master L3 HA instance"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Closes-Bug: #1403860"},{"line_number":10,"context_line":"Change-Id: Ia5071552239c9444c5105a150b268fb0437e4b85"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_9e324c5c","line":8,"updated":"2014-12-22 14:40:20.000000000","message":"Just a nit, but may be more description here could be interesting.\n\nBug + title could be ok, btw.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-12-22 15:36:30 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Configure IPv6 LLADDR only on master L3 HA instance"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Closes-Bug: #1403860"},{"line_number":10,"context_line":"Change-Id: Ia5071552239c9444c5105a150b268fb0437e4b85"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_d85929fe","line":8,"in_reply_to":"3a961159_08c0df4e","updated":"2014-12-23 23:01:52.000000000","message":"+1 to Miguel\u0027s comment.   I think there should be more detail in the commit message, a tl;dr; for the \u0027why\u0027 of the patch.  It shouldn\u0027t be necessary to look at the bug report to understand the high-level motivation behind a given changeset.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f9a7748d97877b041828767430d421f8cbdf85fa","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-12-22 15:36:30 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Configure IPv6 LLADDR only on master L3 HA instance"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Closes-Bug: #1403860"},{"line_number":10,"context_line":"Change-Id: Ia5071552239c9444c5105a150b268fb0437e4b85"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_e87633a3","line":8,"in_reply_to":"3a961159_9e324c5c","updated":"2014-12-22 16:10:44.000000000","message":"Yeah I thought a bit about this - Since the bug description is very comprehensive I think, what would you write in the commit message? I honestly don\u0027t know.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-12-22 15:36:30 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Configure IPv6 LLADDR only on master L3 HA instance"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Closes-Bug: #1403860"},{"line_number":10,"context_line":"Change-Id: Ia5071552239c9444c5105a150b268fb0437e4b85"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_598d2930","line":8,"in_reply_to":"3a961159_d85929fe","updated":"2014-12-24 10:35:13.000000000","message":"Done","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cf22587559fcb743219e23eacdda7591c281c9a9","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-12-22 15:36:30 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Configure IPv6 LLADDR only on master L3 HA instance"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Closes-Bug: #1403860"},{"line_number":10,"context_line":"Change-Id: Ia5071552239c9444c5105a150b268fb0437e4b85"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_08c0df4e","line":8,"in_reply_to":"3a961159_e87633a3","updated":"2014-12-22 16:19:30.000000000","message":"I suppose both approaches work, it just seemed weird as we don\u0027t have empty message commits (just with title, but for the Merge messages..)","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"9a331f6cc53e9dc078c1390da33cfbf374f3a3c0","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Configure IPv6 LLADDR only on master L3 HA instance"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"HA routers standbys must never transmit traffic from"},{"line_number":10,"context_line":"any of their ports. This is because we use allocate the same"},{"line_number":11,"context_line":"port on all agents. For example, for a given external interface,"},{"line_number":12,"context_line":"we place the same port with the same IP/MAC on every agent"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_98312b5c","line":9,"updated":"2015-01-19 22:37:43.000000000","message":"HA routers standbys -\u003e HA standby routers ?","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"289274792c2ca8650e7604c02102430e67471bee","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Configure IPv6 LLADDR only on master L3 HA instance"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"HA routers standbys must never transmit traffic from"},{"line_number":10,"context_line":"any of their ports. This is because we use allocate the same"},{"line_number":11,"context_line":"port on all agents. For example, for a given external interface,"},{"line_number":12,"context_line":"we place the same port with the same IP/MAC on every agent"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_c5b2eb95","line":9,"in_reply_to":"3a961159_98312b5c","updated":"2015-01-20 14:59:42.000000000","message":"Done","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"9a331f6cc53e9dc078c1390da33cfbf374f3a3c0","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Configure IPv6 LLADDR only on master L3 HA instance"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"HA routers standbys must never transmit traffic from"},{"line_number":10,"context_line":"any of their ports. This is because we use allocate the same"},{"line_number":11,"context_line":"port on all agents. For example, for a given external interface,"},{"line_number":12,"context_line":"we place the same port with the same IP/MAC on every agent"},{"line_number":13,"context_line":"the HA router is scheduled on. Thus, if a standby router"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_d83ad334","line":10,"updated":"2015-01-19 22:37:43.000000000","message":"use allocate -\u003e use / allocate ?\n\nor pick one or the other ?","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"289274792c2ca8650e7604c02102430e67471bee","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Configure IPv6 LLADDR only on master L3 HA instance"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"HA routers standbys must never transmit traffic from"},{"line_number":10,"context_line":"any of their ports. This is because we use allocate the same"},{"line_number":11,"context_line":"port on all agents. For example, for a given external interface,"},{"line_number":12,"context_line":"we place the same port with the same IP/MAC on every agent"},{"line_number":13,"context_line":"the HA router is scheduled on. Thus, if a standby router"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_05acf335","line":10,"in_reply_to":"3a961159_d83ad334","updated":"2015-01-20 14:59:42.000000000","message":"Done","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"9a331f6cc53e9dc078c1390da33cfbf374f3a3c0","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Keepalived manages addresses on the router interfaces, and makes"},{"line_number":22,"context_line":"sure that these addresses only live on the master. However, we"},{"line_number":23,"context_line":"forgot about IPv6 link local addresses: These are generated"},{"line_number":24,"context_line":"from the MAC address of the interface, thus are identical on"},{"line_number":25,"context_line":"all agents."},{"line_number":26,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_9322ec52","line":23,"updated":"2015-01-19 22:37:43.000000000","message":"addresses: These -\u003e addresses.  They","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"289274792c2ca8650e7604c02102430e67471bee","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Keepalived manages addresses on the router interfaces, and makes"},{"line_number":22,"context_line":"sure that these addresses only live on the master. However, we"},{"line_number":23,"context_line":"forgot about IPv6 link local addresses: These are generated"},{"line_number":24,"context_line":"from the MAC address of the interface, thus are identical on"},{"line_number":25,"context_line":"all agents."},{"line_number":26,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_855f034d","line":23,"in_reply_to":"3a961159_9322ec52","updated":"2015-01-20 14:59:42.000000000","message":"Isn\u0027t there some rule about not starting a sentence with a \u0027they\u0027 or \u0027the\u0027? Well, who am I to argue.","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"9a331f6cc53e9dc078c1390da33cfbf374f3a3c0","unresolved":false,"context_lines":[{"line_number":21,"context_line":"Keepalived manages addresses on the router interfaces, and makes"},{"line_number":22,"context_line":"sure that these addresses only live on the master. However, we"},{"line_number":23,"context_line":"forgot about IPv6 link local addresses: These are generated"},{"line_number":24,"context_line":"from the MAC address of the interface, thus are identical on"},{"line_number":25,"context_line":"all agents."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"This patch tries to treat IPv6 link local addresses the same"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_b327e862","line":24,"updated":"2015-01-19 22:37:43.000000000","message":"thus -\u003e and thus","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"289274792c2ca8650e7604c02102430e67471bee","unresolved":false,"context_lines":[{"line_number":21,"context_line":"Keepalived manages addresses on the router interfaces, and makes"},{"line_number":22,"context_line":"sure that these addresses only live on the master. However, we"},{"line_number":23,"context_line":"forgot about IPv6 link local addresses: These are generated"},{"line_number":24,"context_line":"from the MAC address of the interface, thus are identical on"},{"line_number":25,"context_line":"all agents."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"This patch tries to treat IPv6 link local addresses the same"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_25700fda","line":24,"in_reply_to":"3a961159_b327e862","updated":"2015-01-20 14:59:42.000000000","message":"Done","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"9a331f6cc53e9dc078c1390da33cfbf374f3a3c0","unresolved":false,"context_lines":[{"line_number":25,"context_line":"all agents."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"This patch tries to treat IPv6 link local addresses the same"},{"line_number":28,"context_line":"as IPv4 addresses: Define them as VIPs and let keepalived"},{"line_number":29,"context_line":"move them around."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Closes-Bug: #1403860"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_3313f802","line":28,"updated":"2015-01-19 22:37:43.000000000","message":"addresses: Define -\u003e addresses - define","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"289274792c2ca8650e7604c02102430e67471bee","unresolved":false,"context_lines":[{"line_number":25,"context_line":"all agents."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"This patch tries to treat IPv6 link local addresses the same"},{"line_number":28,"context_line":"as IPv4 addresses: Define them as VIPs and let keepalived"},{"line_number":29,"context_line":"move them around."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Closes-Bug: #1403860"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_057313e9","line":28,"in_reply_to":"3a961159_3313f802","updated":"2015-01-20 14:59:42.000000000","message":"Done","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"}],"neutron/agent/l3/agent.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b730d9ca429ecf3962f1b2879a6c5766f77e0307","unresolved":false,"context_lines":[{"line_number":1064,"context_line":""},{"line_number":1065,"context_line":"        if ri.is_ha:"},{"line_number":1066,"context_line":"            self._ha_external_gateway_added(ri, ex_gw_port, interface_name)"},{"line_number":1067,"context_line":"            self._ha_process_ipv6_lladdr(ri, interface_name)"},{"line_number":1068,"context_line":""},{"line_number":1069,"context_line":"    def external_gateway_updated(self, ri, ex_gw_port, interface_name):"},{"line_number":1070,"context_line":"        preserve_ips \u003d []"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_5111ab02","line":1067,"updated":"2014-12-22 20:17:39.000000000","message":"I think I\u0027d rather see something else here.  You could work on the name but the point is that lladdr is an implementation detail and what this is really doing is disabling non-active interfaces so that they don\u0027t spew traffic.  A suggested starting point:\n\n - self._ha_disable_interface_if_not_active","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":1064,"context_line":""},{"line_number":1065,"context_line":"        if ri.is_ha:"},{"line_number":1066,"context_line":"            self._ha_external_gateway_added(ri, ex_gw_port, interface_name)"},{"line_number":1067,"context_line":"            self._ha_process_ipv6_lladdr(ri, interface_name)"},{"line_number":1068,"context_line":""},{"line_number":1069,"context_line":"    def external_gateway_updated(self, ri, ex_gw_port, interface_name):"},{"line_number":1070,"context_line":"        preserve_ips \u003d []"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_924cd89f","line":1067,"in_reply_to":"3a961159_5111ab02","updated":"2014-12-23 23:01:52.000000000","message":"+1, \u0027process\u0027 isn\u0027t very descriptive.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":1064,"context_line":""},{"line_number":1065,"context_line":"        if ri.is_ha:"},{"line_number":1066,"context_line":"            self._ha_external_gateway_added(ri, ex_gw_port, interface_name)"},{"line_number":1067,"context_line":"            self._ha_process_ipv6_lladdr(ri, interface_name)"},{"line_number":1068,"context_line":""},{"line_number":1069,"context_line":"    def external_gateway_updated(self, ri, ex_gw_port, interface_name):"},{"line_number":1070,"context_line":"        preserve_ips \u003d []"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_d99f594e","line":1067,"in_reply_to":"3a961159_924cd89f","updated":"2014-12-24 10:35:13.000000000","message":"I gave it a shot, please share your thoughts.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"77350a2d79f644b3cb8fdd721362c500bfbe8d74","unresolved":false,"context_lines":[{"line_number":1254,"context_line":"                                     ri.is_ha)"},{"line_number":1255,"context_line":""},{"line_number":1256,"context_line":"        if ri.is_ha:"},{"line_number":1257,"context_line":"            self._ha_disable_addressing_on_interface(ri, interface_name)"},{"line_number":1258,"context_line":"            self._add_vip(ri, internal_cidr, interface_name)"},{"line_number":1259,"context_line":""},{"line_number":1260,"context_line":"        ex_gw_port \u003d self._get_ex_gw_port(ri)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_1f42a1aa","line":1257,"updated":"2014-12-24 11:40:41.000000000","message":"out of interest why is this called before and in line 1066 it is called after?\n\nnot really understanding the code i would say the line on 1067 should be called first","commit_id":"3598dc7832560ac6392352d26f364f83e72cbcd4"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5330f51d2bdebd53ed80a0c18bbca7eedae8ff6a","unresolved":false,"context_lines":[{"line_number":1254,"context_line":"                                     ri.is_ha)"},{"line_number":1255,"context_line":""},{"line_number":1256,"context_line":"        if ri.is_ha:"},{"line_number":1257,"context_line":"            self._ha_disable_addressing_on_interface(ri, interface_name)"},{"line_number":1258,"context_line":"            self._add_vip(ri, internal_cidr, interface_name)"},{"line_number":1259,"context_line":""},{"line_number":1260,"context_line":"        ex_gw_port \u003d self._get_ex_gw_port(ri)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_e7462bbf","line":1257,"in_reply_to":"3a961159_1f42a1aa","updated":"2014-12-24 14:12:31.000000000","message":"You need to call _ha_disable_addressing_on_interface after the interface exists and is up (So that the IPv6 link local address will be there). So here it needs to happen after _internal_network_added, and in line 1067 it needs to happen after self._ha_external_gateway_added.\n\nHere I can change the order between lines 1257 and 1258, it doesn\u0027t matter.","commit_id":"3598dc7832560ac6392352d26f364f83e72cbcd4"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"537b5e9ad39644eeba55f0f50a468553e35cf2c5","unresolved":false,"context_lines":[{"line_number":1064,"context_line":""},{"line_number":1065,"context_line":"        if ri.is_ha:"},{"line_number":1066,"context_line":"            self._ha_external_gateway_added(ri, ex_gw_port, interface_name)"},{"line_number":1067,"context_line":"            self._ha_disable_addressing_on_interface(ri, interface_name)"},{"line_number":1068,"context_line":""},{"line_number":1069,"context_line":"    def external_gateway_updated(self, ri, ex_gw_port, interface_name):"},{"line_number":1070,"context_line":"        preserve_ips \u003d []"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a961159_4c0abf7a","line":1067,"updated":"2014-12-24 21:33:08.000000000","message":"Looks good.","commit_id":"d37e61be9acdf226865f6ac95b66fb8ddd046bfc"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"c310c92ca7dda4b3df211933a533f16b97745f15","unresolved":false,"context_lines":[{"line_number":1062,"context_line":""},{"line_number":1063,"context_line":"        if ri.is_ha:"},{"line_number":1064,"context_line":"            self._ha_external_gateway_added(ri, ex_gw_port, interface_name)"},{"line_number":1065,"context_line":"            self._ha_disable_addressing_on_interface(ri, interface_name)"},{"line_number":1066,"context_line":""},{"line_number":1067,"context_line":"    def external_gateway_updated(self, ri, ex_gw_port, interface_name):"},{"line_number":1068,"context_line":"        preserve_ips \u003d []"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_48aca79f","line":1065,"updated":"2015-01-07 17:10:53.000000000","message":"+1 I think this more descriptive name is an improvement.","commit_id":"6e942c9f854c1d71a389a8c0911c2c7feb57dff6"}],"neutron/agent/l3/ha.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"7b9a5dce312621063659a45d69eb7660910ce014","unresolved":false,"context_lines":[{"line_number":216,"context_line":"        device.set_log_fail_as_error(False)"},{"line_number":217,"context_line":"        ipv6_lladdr \u003d self._get_ipv6_lladdr(device)"},{"line_number":218,"context_line":"        try:"},{"line_number":219,"context_line":"            device.addr.delete(6, ipv6_lladdr)"},{"line_number":220,"context_line":"        except RuntimeError:"},{"line_number":221,"context_line":"            pass"},{"line_number":222,"context_line":"        self._remove_vip(ri, ipv6_lladdr)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_4275a6c9","line":219,"updated":"2014-12-18 21:38:56.000000000","message":"The other thing you can do here is disable IPv6 on the interface, which will remove the link-local:\n\n# sysctl net.ipv6.conf.${device}.disable_ipv6\u003d1\n\nBut if you still wanted to keep any global/ULA there it wouldn\u0027t work.","commit_id":"19abae9b4f5c017d85f19125f9fe364dae2b70f0"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"15c9f87afbc2b1c8f2d2c1746b4d0b67bfe4fb9d","unresolved":false,"context_lines":[{"line_number":216,"context_line":"        device.set_log_fail_as_error(False)"},{"line_number":217,"context_line":"        ipv6_lladdr \u003d self._get_ipv6_lladdr(device)"},{"line_number":218,"context_line":"        try:"},{"line_number":219,"context_line":"            device.addr.delete(6, ipv6_lladdr)"},{"line_number":220,"context_line":"        except RuntimeError:"},{"line_number":221,"context_line":"            pass"},{"line_number":222,"context_line":"        self._remove_vip(ri, ipv6_lladdr)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_4dcf8e7f","line":219,"in_reply_to":"3a961159_4275a6c9","updated":"2014-12-19 07:30:42.000000000","message":"I don\u0027t want to disable IPv6 on the master instance though, just on the standbys.","commit_id":"19abae9b4f5c017d85f19125f9fe364dae2b70f0"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        # it as a VIP (IE: Let keepalived move it around). Thus, the address"},{"line_number":223,"context_line":"        # should be deleted if it is not already managed by keepalived:"},{"line_number":224,"context_line":"        # If keepalived is not running, or if it is but the VIP is not present."},{"line_number":225,"context_line":"        # Please see bug 1403860."},{"line_number":226,"context_line":"        process \u003d keepalived.KeepalivedManager.get_process("},{"line_number":227,"context_line":"            self.conf,"},{"line_number":228,"context_line":"            ri.router_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_322244b9","line":225,"updated":"2014-12-23 23:01:52.000000000","message":"I always cringe when I see bug references in code.  Where they do appear, I think their usage should be temporary.  If extra-code explanation  is required, I think it should appear in devref.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        # it as a VIP (IE: Let keepalived move it around). Thus, the address"},{"line_number":223,"context_line":"        # should be deleted if it is not already managed by keepalived:"},{"line_number":224,"context_line":"        # If keepalived is not running, or if it is but the VIP is not present."},{"line_number":225,"context_line":"        # Please see bug 1403860."},{"line_number":226,"context_line":"        process \u003d keepalived.KeepalivedManager.get_process("},{"line_number":227,"context_line":"            self.conf,"},{"line_number":228,"context_line":"            ri.router_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_847ac874","line":225,"in_reply_to":"3a961159_322244b9","updated":"2014-12-24 10:35:13.000000000","message":"I think that if I feel the need to explain some bit of code because it\u0027s voodooish, the explanation should be where the code is, not in devref. Devref should be for high level explanations, flows, examples, not to explain why a function exists or how it\u0027s implemented. Placing something like this in devref wouldn\u0027t be effective because new devs would look here, yell WTF, and not think to look in devref. You look in devref when you\u0027re in the research phase and you want to get an overview of things.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"1dac614b329ef60e6bcca6f67b2fc9d86a3d15e4","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        # it as a VIP (IE: Let keepalived move it around). Thus, the address"},{"line_number":223,"context_line":"        # should be deleted if it is not already managed by keepalived:"},{"line_number":224,"context_line":"        # If keepalived is not running, or if it is but the VIP is not present."},{"line_number":225,"context_line":"        # Please see bug 1403860."},{"line_number":226,"context_line":"        process \u003d keepalived.KeepalivedManager.get_process("},{"line_number":227,"context_line":"            self.conf,"},{"line_number":228,"context_line":"            ri.router_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_cc1dcfc0","line":225,"in_reply_to":"3a961159_847ac874","updated":"2014-12-24 21:32:15.000000000","message":"I wasn\u0027t really referring to specifics like \u0027why is this fixed this way\u0027.  I meant that the rational behind the high-level orchestration around HA should be in devref so that the code can be considered in a wider context.  Does this already exist somewhere?","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"e3e2473f0624b06c56b92a7ffcfece97f48f8ecc","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        # it as a VIP (IE: Let keepalived move it around). Thus, the address"},{"line_number":223,"context_line":"        # should be deleted if it is not already managed by keepalived:"},{"line_number":224,"context_line":"        # If keepalived is not running, or if it is but the VIP is not present."},{"line_number":225,"context_line":"        # Please see bug 1403860."},{"line_number":226,"context_line":"        process \u003d keepalived.KeepalivedManager.get_process("},{"line_number":227,"context_line":"            self.conf,"},{"line_number":228,"context_line":"            ri.router_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_6f3377f6","line":225,"in_reply_to":"3a961159_cc1dcfc0","updated":"2015-01-05 12:47:34.000000000","message":"Absolutely not...","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"bdcf4a330f6bc31b61a52ad7f97361452d7169b7","unresolved":false,"context_lines":[{"line_number":234,"context_line":"            conf \u003d manager.get_conf_on_disk()"},{"line_number":235,"context_line":"            if conf:"},{"line_number":236,"context_line":"                if ipv6_lladdr in conf:"},{"line_number":237,"context_line":"                    return False"},{"line_number":238,"context_line":"        return True"},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"    def _ha_process_ipv6_lladdr(self, ri, interface_name):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_f49a9012","line":237,"updated":"2014-12-22 14:40:20.000000000","message":"you can just do \n\nif conf and ipv6_lladr in conf:\n    return False","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":234,"context_line":"            conf \u003d manager.get_conf_on_disk()"},{"line_number":235,"context_line":"            if conf:"},{"line_number":236,"context_line":"                if ipv6_lladdr in conf:"},{"line_number":237,"context_line":"                    return False"},{"line_number":238,"context_line":"        return True"},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"    def _ha_process_ipv6_lladdr(self, ri, interface_name):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_990dd191","line":237,"in_reply_to":"3a961159_c8b25748","updated":"2014-12-24 10:35:13.000000000","message":"Done","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f9a7748d97877b041828767430d421f8cbdf85fa","unresolved":false,"context_lines":[{"line_number":234,"context_line":"            conf \u003d manager.get_conf_on_disk()"},{"line_number":235,"context_line":"            if conf:"},{"line_number":236,"context_line":"                if ipv6_lladdr in conf:"},{"line_number":237,"context_line":"                    return False"},{"line_number":238,"context_line":"        return True"},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"    def _ha_process_ipv6_lladdr(self, ri, interface_name):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_c8b25748","line":237,"in_reply_to":"3a961159_f49a9012","updated":"2014-12-22 16:10:44.000000000","message":"True.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b730d9ca429ecf3962f1b2879a6c5766f77e0307","unresolved":false,"context_lines":[{"line_number":237,"context_line":"                    return False"},{"line_number":238,"context_line":"        return True"},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"    def _ha_process_ipv6_lladdr(self, ri, interface_name):"},{"line_number":241,"context_line":"        device \u003d ip_lib.IPDevice(interface_name, self.root_helper, ri.ns_name)"},{"line_number":242,"context_line":"        ipv6_lladdr \u003d self._get_ipv6_lladdr(device)"},{"line_number":243,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_91acf3ee","line":240,"updated":"2014-12-22 20:17:39.000000000","message":"If I were reading this code without the benefit of your bug report, I wouldn\u0027t have a clue what this method is really trying to accomplish.  It would take me a bit of head scratching to figure out why on Earth you\u0027d want to delete the link local address from the device when RFC 4291 says it must there.\n\nI\u0027d see that this method basically follows these steps:\n\n - delete LL address\n - remove vip\n - add vip\n\n... and I think I\u0027d be really confused.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":237,"context_line":"                    return False"},{"line_number":238,"context_line":"        return True"},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"    def _ha_process_ipv6_lladdr(self, ri, interface_name):"},{"line_number":241,"context_line":"        device \u003d ip_lib.IPDevice(interface_name, self.root_helper, ri.ns_name)"},{"line_number":242,"context_line":"        ipv6_lladdr \u003d self._get_ipv6_lladdr(device)"},{"line_number":243,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_1919e1d0","line":240,"in_reply_to":"3a961159_91acf3ee","updated":"2014-12-24 10:35:13.000000000","message":"I changed the name of the method and added a docstring.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":245,"context_line":"            device.set_log_fail_as_error(False)"},{"line_number":246,"context_line":"            try:"},{"line_number":247,"context_line":"                device.addr.delete(6, ipv6_lladdr)"},{"line_number":248,"context_line":"            except RuntimeError:"},{"line_number":249,"context_line":"                pass"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"        self._remove_vip(ri, ipv6_lladdr)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_8d011d07","line":248,"updated":"2014-12-23 23:01:52.000000000","message":"I\u0027m not sure it\u0027s safe to ignore RunTimeError without any detail as to the nature of the problem.  Is there a way of narrowing the clause, e.g. by looking for a specific error message?","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":245,"context_line":"            device.set_log_fail_as_error(False)"},{"line_number":246,"context_line":"            try:"},{"line_number":247,"context_line":"                device.addr.delete(6, ipv6_lladdr)"},{"line_number":248,"context_line":"            except RuntimeError:"},{"line_number":249,"context_line":"                pass"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"        self._remove_vip(ri, ipv6_lladdr)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_a46fc4c2","line":248,"in_reply_to":"3a961159_8d011d07","updated":"2014-12-24 10:35:13.000000000","message":"I simplified lines 245 to 248 with device.addr.flush().","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b730d9ca429ecf3962f1b2879a6c5766f77e0307","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        self._add_vip(ri, ipv6_lladdr, interface_name, scope\u003d\u0027link\u0027)"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"    def _get_ipv6_lladdr(self, device):"},{"line_number":255,"context_line":"        return \u0027%s/64\u0027 % netaddr.EUI(device.link.address).ipv6_link_local()"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def _ha_external_gateway_removed(self, ri, interface_name):"},{"line_number":258,"context_line":"        self._clear_vips(ri, interface_name)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_9e3c0231","line":255,"updated":"2014-12-22 20:17:39.000000000","message":"aside:  We\u0027ve always got to resort to string manipulation at some point don\u0027t we?  Why doesn\u0027t the EUI class give us an IPNetwork object instead of just the IPAddress.  :(","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"1dac614b329ef60e6bcca6f67b2fc9d86a3d15e4","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        self._add_vip(ri, ipv6_lladdr, interface_name, scope\u003d\u0027link\u0027)"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"    def _get_ipv6_lladdr(self, device):"},{"line_number":255,"context_line":"        return \u0027%s/64\u0027 % netaddr.EUI(device.link.address).ipv6_link_local()"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def _ha_external_gateway_removed(self, ri, interface_name):"},{"line_number":258,"context_line":"        self._clear_vips(ri, interface_name)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_ec71ab0d","line":255,"in_reply_to":"3a961159_245bd422","updated":"2014-12-24 21:32:15.000000000","message":"I think option 1 is preferable - encapsulation ftw.  We shouldn\u0027t have to see the same string interpolation everywhere and have to internalize what is correct or not.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        self._add_vip(ri, ipv6_lladdr, interface_name, scope\u003d\u0027link\u0027)"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"    def _get_ipv6_lladdr(self, device):"},{"line_number":255,"context_line":"        return \u0027%s/64\u0027 % netaddr.EUI(device.link.address).ipv6_link_local()"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def _ha_external_gateway_removed(self, ri, interface_name):"},{"line_number":258,"context_line":"        self._clear_vips(ri, interface_name)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_245bd422","line":255,"in_reply_to":"3a961159_4d1bb572","updated":"2014-12-24 10:35:13.000000000","message":"ip_lib.get_cidr(address, prefix)\n\nVS:\n\n\u0027%s/%s\u0027 % (address, prefix)\n\nI don\u0027t know...","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        self._add_vip(ri, ipv6_lladdr, interface_name, scope\u003d\u0027link\u0027)"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"    def _get_ipv6_lladdr(self, device):"},{"line_number":255,"context_line":"        return \u0027%s/64\u0027 % netaddr.EUI(device.link.address).ipv6_link_local()"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def _ha_external_gateway_removed(self, ri, interface_name):"},{"line_number":258,"context_line":"        self._clear_vips(ri, interface_name)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_4d1bb572","line":255,"in_reply_to":"3a961159_9e3c0231","updated":"2014-12-23 23:01:52.000000000","message":"Maybe it makes sense to write a utility function to do what you\u0027re describing?","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"e3e2473f0624b06c56b92a7ffcfece97f48f8ecc","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        self._add_vip(ri, ipv6_lladdr, interface_name, scope\u003d\u0027link\u0027)"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"    def _get_ipv6_lladdr(self, device):"},{"line_number":255,"context_line":"        return \u0027%s/64\u0027 % netaddr.EUI(device.link.address).ipv6_link_local()"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def _ha_external_gateway_removed(self, ri, interface_name):"},{"line_number":258,"context_line":"        self._clear_vips(ri, interface_name)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_8f450345","line":255,"in_reply_to":"3a961159_ec71ab0d","updated":"2015-01-05 12:47:34.000000000","message":"This was attempted by Cedric here:\n\nhttps://review.openstack.org/#/c/143869/\n\nAnd was shot down by Armando.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"c310c92ca7dda4b3df211933a533f16b97745f15","unresolved":false,"context_lines":[{"line_number":219,"context_line":"        # or when the node restarts and reconfigures all routers. It should"},{"line_number":220,"context_line":"        # not be deleted if the agent is restarted, or if the device is"},{"line_number":221,"context_line":"        # updated. The idea is to delete the address initially then add"},{"line_number":222,"context_line":"        # it as a VIP (IE: Let keepalived move it around). Thus, the address"},{"line_number":223,"context_line":"        # should be deleted if it is not already managed by keepalived:"},{"line_number":224,"context_line":"        # If keepalived is not running, or if it is but the VIP is not present."},{"line_number":225,"context_line":"        # Please see bug 1403860."}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_c36eb863","line":222,"updated":"2015-01-07 17:10:53.000000000","message":"IE: -\u003e i.e.\n\nAlso, the sentence starting with \u0027Thus\u0027 is duplicating what appears in code and tests - please remove.  If you think this explanation is necessary, I would encourage you to refactor lines 232-237 until that is no longer the case, because comments duplicating code is an anti-pattern.","commit_id":"6e942c9f854c1d71a389a8c0911c2c7feb57dff6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"1d718844f6ec731f68940e490e5bf17efe044fa7","unresolved":false,"context_lines":[{"line_number":219,"context_line":"        # or when the node restarts and reconfigures all routers. It should"},{"line_number":220,"context_line":"        # not be deleted if the agent is restarted, or if the device is"},{"line_number":221,"context_line":"        # updated. The idea is to delete the address initially then add"},{"line_number":222,"context_line":"        # it as a VIP (IE: Let keepalived move it around). Thus, the address"},{"line_number":223,"context_line":"        # should be deleted if it is not already managed by keepalived:"},{"line_number":224,"context_line":"        # If keepalived is not running, or if it is but the VIP is not present."},{"line_number":225,"context_line":"        # Please see bug 1403860."}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_e7f3729e","line":222,"in_reply_to":"3a961159_c36eb863","updated":"2015-01-19 22:50:45.000000000","message":"Done","commit_id":"6e942c9f854c1d71a389a8c0911c2c7feb57dff6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"c310c92ca7dda4b3df211933a533f16b97745f15","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        # it as a VIP (IE: Let keepalived move it around). Thus, the address"},{"line_number":223,"context_line":"        # should be deleted if it is not already managed by keepalived:"},{"line_number":224,"context_line":"        # If keepalived is not running, or if it is but the VIP is not present."},{"line_number":225,"context_line":"        # Please see bug 1403860."},{"line_number":226,"context_line":"        process \u003d keepalived.KeepalivedManager.get_process("},{"line_number":227,"context_line":"            self.conf,"},{"line_number":228,"context_line":"            ri.router_id,"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_280afb78","line":225,"updated":"2015-01-07 17:10:53.000000000","message":"Again with the bug references  :/\n\nThe reason I don\u0027t like bug references is that I think code should be able to be understandable without having to know how and why it has evolved.  Otherwise it\u0027s more difficult to onboard new contributors and the cost of maintenance is increased.","commit_id":"6e942c9f854c1d71a389a8c0911c2c7feb57dff6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"1d718844f6ec731f68940e490e5bf17efe044fa7","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        # it as a VIP (IE: Let keepalived move it around). Thus, the address"},{"line_number":223,"context_line":"        # should be deleted if it is not already managed by keepalived:"},{"line_number":224,"context_line":"        # If keepalived is not running, or if it is but the VIP is not present."},{"line_number":225,"context_line":"        # Please see bug 1403860."},{"line_number":226,"context_line":"        process \u003d keepalived.KeepalivedManager.get_process("},{"line_number":227,"context_line":"            self.conf,"},{"line_number":228,"context_line":"            ri.router_id,"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_c7367651","line":225,"in_reply_to":"3a961159_280afb78","updated":"2015-01-19 22:50:45.000000000","message":"I consider linking a bug additional documentation, which I think is a good thing. However, I think it\u0027s easy enough to explain what\u0027s going on here with more readable code and concise comments.","commit_id":"6e942c9f854c1d71a389a8c0911c2c7feb57dff6"}],"neutron/agent/linux/keepalived.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"c1851a7480fade0b5a322514f2c1978229f11bbf","unresolved":false,"context_lines":[{"line_number":345,"context_line":"                   \u0027-p\u0027, pid_file,"},{"line_number":346,"context_line":"                   \u0027-r\u0027, \u0027%s-vrrp\u0027 % pid_file]"},{"line_number":347,"context_line":"            return cmd"},{"line_number":348,"context_line":""},{"line_number":349,"context_line":"        self.process.enable(callback, reload_cfg\u003dTrue)"},{"line_number":350,"context_line":""},{"line_number":351,"context_line":"        self.spawned \u003d True"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_c6d1adce","line":348,"updated":"2014-12-18 20:03:10.000000000","message":"This means that if keepalived is up and the agent is restarted, the agent sends keepalived SIGHUP. This is important in an upgrade path, thus to this patch (It will be backported). I should probably add a comment here.","commit_id":"19abae9b4f5c017d85f19125f9fe364dae2b70f0"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        self.scope \u003d scope"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def build_config(self):"},{"line_number":62,"context_line":"        result \u003d \u0027%s dev %s\u0027 % (self.ip_address, self.interface_name)"},{"line_number":63,"context_line":"        if self.scope:"},{"line_number":64,"context_line":"            result +\u003d \u0027 scope %s\u0027 % self.scope"},{"line_number":65,"context_line":"        return result"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_b59a9b5f","line":62,"updated":"2014-12-23 23:01:52.000000000","message":"(No action required) pointless refactor\n\nvalues \u003d [self.ip_address, \u0027dev\u0027, self.interface_name]\nif self.scope:\n values +\u003d [scope, self.scope]\nreturn \u0027 \u0027.join(values)","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        self.scope \u003d scope"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def build_config(self):"},{"line_number":62,"context_line":"        result \u003d \u0027%s dev %s\u0027 % (self.ip_address, self.interface_name)"},{"line_number":63,"context_line":"        if self.scope:"},{"line_number":64,"context_line":"            result +\u003d \u0027 scope %s\u0027 % self.scope"},{"line_number":65,"context_line":"        return result"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_44eb8012","line":62,"in_reply_to":"3a961159_b59a9b5f","updated":"2014-12-24 10:35:13.000000000","message":"The way I have it now is consistent with how it\u0027s implemented in VirtualRoute, and changing it both here and in VirtualRoute would belong in a different patch, and to be brutally honest I don\u0027t see that happening in the next few weeks.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":332,"context_line":"    def get_conf_on_disk(self):"},{"line_number":333,"context_line":"        config_path \u003d self._get_full_config_file_path(\u0027keepalived.conf\u0027)"},{"line_number":334,"context_line":"        try:"},{"line_number":335,"context_line":"            with open(config_path, \u0027r\u0027) as conf:"},{"line_number":336,"context_line":"                return conf.read()"},{"line_number":337,"context_line":"        except Exception:"},{"line_number":338,"context_line":"            return None"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_95ae7f7f","line":335,"updated":"2014-12-23 23:01:52.000000000","message":"(No action required) \u0027r\u0027 is the default and can be omitted.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":332,"context_line":"    def get_conf_on_disk(self):"},{"line_number":333,"context_line":"        config_path \u003d self._get_full_config_file_path(\u0027keepalived.conf\u0027)"},{"line_number":334,"context_line":"        try:"},{"line_number":335,"context_line":"            with open(config_path, \u0027r\u0027) as conf:"},{"line_number":336,"context_line":"                return conf.read()"},{"line_number":337,"context_line":"        except Exception:"},{"line_number":338,"context_line":"            return None"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_04bc1805","line":335,"in_reply_to":"3a961159_95ae7f7f","updated":"2014-12-24 10:35:13.000000000","message":"Done","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":334,"context_line":"        try:"},{"line_number":335,"context_line":"            with open(config_path, \u0027r\u0027) as conf:"},{"line_number":336,"context_line":"                return conf.read()"},{"line_number":337,"context_line":"        except Exception:"},{"line_number":338,"context_line":"            return None"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def spawn(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_8d4f5d6a","line":337,"updated":"2014-12-23 23:01:52.000000000","message":"Please look for a more specific error to avoid masking unexpected errors that should propogate and/or be logged to aid in troubleshooting.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":334,"context_line":"        try:"},{"line_number":335,"context_line":"            with open(config_path, \u0027r\u0027) as conf:"},{"line_number":336,"context_line":"                return conf.read()"},{"line_number":337,"context_line":"        except Exception:"},{"line_number":338,"context_line":"            return None"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def spawn(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_e4f54ccb","line":337,"in_reply_to":"3a961159_8d4f5d6a","updated":"2014-12-24 10:35:13.000000000","message":"I don\u0027t know what I can do here, or in what cases I\u0027d like to log.\n\n* If the file is not there, I would not like to log anything, and I would like to return None.\n* If the file is there but we don\u0027t have privileges or we hit an SELinux issue, the entire thing will crap out in other places as well... You\u0027ll know, in a lot of red text.\n* I can\u0027t think of another failure type. Maybe the file is corrupt? Again, I want to handle it by not logging anything and returning None. Hopefully later when the keepalived manager writes the conf file again it\u0027ll fix the issue.\n\nPlease share any thoughts.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            with open(config_path, \u0027r\u0027) as conf:"},{"line_number":336,"context_line":"                return conf.read()"},{"line_number":337,"context_line":"        except Exception:"},{"line_number":338,"context_line":"            return None"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def spawn(self):"},{"line_number":341,"context_line":"        config_path \u003d self._output_config_file()"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_f5cd035e","line":338,"updated":"2014-12-23 23:01:52.000000000","message":"(No action required) \u0027pass\u0027 would also work, since None is always returned in the absence of an explicit statement.  What can I say, I\u0027m in an implicit mood today.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"1dac614b329ef60e6bcca6f67b2fc9d86a3d15e4","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            with open(config_path, \u0027r\u0027) as conf:"},{"line_number":336,"context_line":"                return conf.read()"},{"line_number":337,"context_line":"        except Exception:"},{"line_number":338,"context_line":"            return None"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def spawn(self):"},{"line_number":341,"context_line":"        config_path \u003d self._output_config_file()"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_ac4ec3c0","line":338,"in_reply_to":"3a961159_44d2a05c","updated":"2014-12-24 21:32:15.000000000","message":"Hence \u0027no action required\u0027.  When I tag comments with that, I don\u0027t expect or require any change, it\u0027s just food for thought in case you care and there is no need to justify why you don\u0027t want to address such a comment.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            with open(config_path, \u0027r\u0027) as conf:"},{"line_number":336,"context_line":"                return conf.read()"},{"line_number":337,"context_line":"        except Exception:"},{"line_number":338,"context_line":"            return None"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def spawn(self):"},{"line_number":341,"context_line":"        config_path \u003d self._output_config_file()"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_44d2a05c","line":338,"in_reply_to":"3a961159_f5cd035e","updated":"2014-12-24 10:35:13.000000000","message":"I think that return None is more obvious / readable but it\u0027s pretty low in my list of things I care about \u003dD","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"77350a2d79f644b3cb8fdd721362c500bfbe8d74","unresolved":false,"context_lines":[{"line_number":334,"context_line":"        try:"},{"line_number":335,"context_line":"            with open(config_path) as conf:"},{"line_number":336,"context_line":"                return conf.read()"},{"line_number":337,"context_line":"        except Exception:"},{"line_number":338,"context_line":"            pass"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def spawn(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_ff1dd5be","line":337,"updated":"2014-12-24 11:40:41.000000000","message":"can we catch a specific exception here - that is, if the file is not found?","commit_id":"3598dc7832560ac6392352d26f364f83e72cbcd4"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5330f51d2bdebd53ed80a0c18bbca7eedae8ff6a","unresolved":false,"context_lines":[{"line_number":334,"context_line":"        try:"},{"line_number":335,"context_line":"            with open(config_path) as conf:"},{"line_number":336,"context_line":"                return conf.read()"},{"line_number":337,"context_line":"        except Exception:"},{"line_number":338,"context_line":"            pass"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def spawn(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_8a0ace1d","line":337,"in_reply_to":"3a961159_ff1dd5be","updated":"2014-12-24 14:12:31.000000000","message":"Done","commit_id":"3598dc7832560ac6392352d26f364f83e72cbcd4"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"c310c92ca7dda4b3df211933a533f16b97745f15","unresolved":false,"context_lines":[{"line_number":335,"context_line":"        try:"},{"line_number":336,"context_line":"            with open(config_path) as conf:"},{"line_number":337,"context_line":"                return conf.read()"},{"line_number":338,"context_line":"        except (OSError, IOError) as e:"},{"line_number":339,"context_line":"            if e.errno !\u003d errno.ENOENT:"},{"line_number":340,"context_line":"                raise"},{"line_number":341,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_43ff2866","line":338,"updated":"2015-01-07 17:10:53.000000000","message":"Much better.","commit_id":"6e942c9f854c1d71a389a8c0911c2c7feb57dff6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"c310c92ca7dda4b3df211933a533f16b97745f15","unresolved":false,"context_lines":[{"line_number":342,"context_line":"    def spawn(self):"},{"line_number":343,"context_line":"        config_path \u003d self._output_config_file()"},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"        self.process \u003d self.get_process(self.conf,"},{"line_number":346,"context_line":"                                        self.resource_id,"},{"line_number":347,"context_line":"                                        self.root_helper,"},{"line_number":348,"context_line":"                                        self.namespace,"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_236bfcf1","line":345,"updated":"2015-01-07 17:10:53.000000000","message":"I can\u0027t see the point of adding classmethod instead of calling ProcessManager directly, and it would seem unrelated to the intent of this change.  What am I missing?","commit_id":"6e942c9f854c1d71a389a8c0911c2c7feb57dff6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"1d718844f6ec731f68940e490e5bf17efe044fa7","unresolved":false,"context_lines":[{"line_number":342,"context_line":"    def spawn(self):"},{"line_number":343,"context_line":"        config_path \u003d self._output_config_file()"},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"        self.process \u003d self.get_process(self.conf,"},{"line_number":346,"context_line":"                                        self.resource_id,"},{"line_number":347,"context_line":"                                        self.root_helper,"},{"line_number":348,"context_line":"                                        self.namespace,"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_3813d702","line":345,"in_reply_to":"3a961159_236bfcf1","updated":"2015-01-19 22:50:45.000000000","message":"get_process is now also used by the L3 agent. I just didn\u0027t want two different classes / places in the code to instantiate the ProcessManager directly. It\u0027s not entirely trivial to instantiate the PM directly so I wanted to do it in exactly one place.","commit_id":"6e942c9f854c1d71a389a8c0911c2c7feb57dff6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"1039db6c2ed2d82b11a35c42cfc53bd617656700","unresolved":false,"context_lines":[{"line_number":355,"context_line":"                   \u0027-r\u0027, \u0027%s-vrrp\u0027 % pid_file]"},{"line_number":356,"context_line":"            return cmd"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"        self.process.enable(callback, reload_cfg\u003dTrue)"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"        self.spawned \u003d True"},{"line_number":361,"context_line":"        LOG.debug(\u0027Keepalived spawned with config %s\u0027, config_path)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_d74e5995","line":358,"updated":"2015-01-08 11:23:22.000000000","message":"Hm. Why do we need to poke keepalived with SIGHUP here? I thought \u0027spawn\u0027 call is invoked only when there is no process to poke.","commit_id":"6e942c9f854c1d71a389a8c0911c2c7feb57dff6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"771bb983c47e0c8395aa473b499396f315d3bdb7","unresolved":false,"context_lines":[{"line_number":355,"context_line":"                   \u0027-r\u0027, \u0027%s-vrrp\u0027 % pid_file]"},{"line_number":356,"context_line":"            return cmd"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"        self.process.enable(callback, reload_cfg\u003dTrue)"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"        self.spawned \u003d True"},{"line_number":361,"context_line":"        LOG.debug(\u0027Keepalived spawned with config %s\u0027, config_path)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_f2e523a4","line":358,"in_reply_to":"3a961159_d74e5995","updated":"2015-01-08 12:04:17.000000000","message":"OK, got it. That\u0027s to make process manager to SIGHUP process running on agent restart. That\u0027s fine but does not belong to this patch and this bug.","commit_id":"6e942c9f854c1d71a389a8c0911c2c7feb57dff6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"1d718844f6ec731f68940e490e5bf17efe044fa7","unresolved":false,"context_lines":[{"line_number":355,"context_line":"                   \u0027-r\u0027, \u0027%s-vrrp\u0027 % pid_file]"},{"line_number":356,"context_line":"            return cmd"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"        self.process.enable(callback, reload_cfg\u003dTrue)"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"        self.spawned \u003d True"},{"line_number":361,"context_line":"        LOG.debug(\u0027Keepalived spawned with config %s\u0027, config_path)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_78063fcf","line":358,"in_reply_to":"3a961159_f2e523a4","updated":"2015-01-19 22:50:45.000000000","message":"Done, I split this off into the preceding patch, and separate bug.","commit_id":"6e942c9f854c1d71a389a8c0911c2c7feb57dff6"}],"neutron/tests/functional/agent/test_l3_agent.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        ha_device_name \u003d self.agent.get_ha_device_name(router.ha_port[\u0027id\u0027])"},{"line_number":144,"context_line":"        ha_device_cidr \u003d router.ha_port[\u0027ip_cidr\u0027]"},{"line_number":145,"context_line":"        external_port \u003d self.agent._get_ex_gw_port(router)"},{"line_number":146,"context_line":"        ex_port_ipv6 \u003d \u0027%s/64\u0027 % netaddr.EUI("},{"line_number":147,"context_line":"            external_port[\u0027mac_address\u0027]).ipv6_link_local()"},{"line_number":148,"context_line":"        external_device_name \u003d self.agent.get_external_device_name("},{"line_number":149,"context_line":"            external_port[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_f5e34302","line":146,"updated":"2014-12-23 23:01:52.000000000","message":"Again with the helper method.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"9a331f6cc53e9dc078c1390da33cfbf374f3a3c0","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        ha_device_name \u003d self.agent.get_ha_device_name(router.ha_port[\u0027id\u0027])"},{"line_number":145,"context_line":"        ha_device_cidr \u003d router.ha_port[\u0027ip_cidr\u0027]"},{"line_number":146,"context_line":"        external_port \u003d self.agent._get_ex_gw_port(router)"},{"line_number":147,"context_line":"        ex_port_ipv6 \u003d \u0027%s/64\u0027 % netaddr.EUI("},{"line_number":148,"context_line":"            external_port[\u0027mac_address\u0027]).ipv6_link_local()"},{"line_number":149,"context_line":"        external_device_name \u003d self.agent.get_external_device_name("},{"line_number":150,"context_line":"            external_port[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a961159_45c0bb2b","line":147,"updated":"2015-01-19 22:37:43.000000000","message":"(No action required) Consider changing the _get_ipv6_lladdr() helper to accept a mac address instead of a device so it can be reused here.","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"289274792c2ca8650e7604c02102430e67471bee","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        ha_device_name \u003d self.agent.get_ha_device_name(router.ha_port[\u0027id\u0027])"},{"line_number":145,"context_line":"        ha_device_cidr \u003d router.ha_port[\u0027ip_cidr\u0027]"},{"line_number":146,"context_line":"        external_port \u003d self.agent._get_ex_gw_port(router)"},{"line_number":147,"context_line":"        ex_port_ipv6 \u003d \u0027%s/64\u0027 % netaddr.EUI("},{"line_number":148,"context_line":"            external_port[\u0027mac_address\u0027]).ipv6_link_local()"},{"line_number":149,"context_line":"        external_device_name \u003d self.agent.get_external_device_name("},{"line_number":150,"context_line":"            external_port[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a961159_fc420a0e","line":147,"in_reply_to":"3a961159_45c0bb2b","updated":"2015-01-20 14:59:42.000000000","message":"Done. Also a bit more efficient in the non-test usage.","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"6532b040c345b50c76646a10458f7ec4bd81b807","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        ha_device_name \u003d self.agent.get_ha_device_name(router.ha_port[\u0027id\u0027])"},{"line_number":145,"context_line":"        ha_device_cidr \u003d router.ha_port[\u0027ip_cidr\u0027]"},{"line_number":146,"context_line":"        external_port \u003d self.agent._get_ex_gw_port(router)"},{"line_number":147,"context_line":"        ex_port_ipv6 \u003d \u0027%s/64\u0027 % netaddr.EUI("},{"line_number":148,"context_line":"            external_port[\u0027mac_address\u0027]).ipv6_link_local()"},{"line_number":149,"context_line":"        external_device_name \u003d self.agent.get_external_device_name("},{"line_number":150,"context_line":"            external_port[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a961159_05c4da0c","line":147,"in_reply_to":"3a961159_fc420a0e","updated":"2015-01-20 15:02:33.000000000","message":"Oops, no it\u0027s not, nevermind.","commit_id":"0d8d45bdf1850e49ac9e18a4e6c0d80ee7369064"}],"neutron/tests/unit/agent/linux/test_keepalived.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":230,"context_line":""},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"class KeepalivedVipAddressTestCase(base.BaseTestCase):"},{"line_number":233,"context_line":"    def test_vip_without_scope(self):"},{"line_number":234,"context_line":"        vip \u003d keepalived.KeepalivedVipAddress(\u002710.0.0.1/24\u0027, \u0027eth0\u0027)"},{"line_number":235,"context_line":"        self.assertEqual(\u002710.0.0.1/24 dev eth0\u0027, vip.build_config())"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_f5918352","line":233,"updated":"2014-12-23 23:01:52.000000000","message":"I\u0027m don\u0027t think this test is necessary.  In a whitebox test, if you can cover everything with a single test, do it.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"1dac614b329ef60e6bcca6f67b2fc9d86a3d15e4","unresolved":false,"context_lines":[{"line_number":230,"context_line":""},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"class KeepalivedVipAddressTestCase(base.BaseTestCase):"},{"line_number":233,"context_line":"    def test_vip_without_scope(self):"},{"line_number":234,"context_line":"        vip \u003d keepalived.KeepalivedVipAddress(\u002710.0.0.1/24\u0027, \u0027eth0\u0027)"},{"line_number":235,"context_line":"        self.assertEqual(\u002710.0.0.1/24 dev eth0\u0027, vip.build_config())"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_cce22fa0","line":233,"in_reply_to":"3a961159_a4dee43b","updated":"2014-12-24 21:32:15.000000000","message":"You\u0027re testing every code path in the method by including the scope, so testing without the scope is not necessary.  Please remove.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"e3e2473f0624b06c56b92a7ffcfece97f48f8ecc","unresolved":false,"context_lines":[{"line_number":230,"context_line":""},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"class KeepalivedVipAddressTestCase(base.BaseTestCase):"},{"line_number":233,"context_line":"    def test_vip_without_scope(self):"},{"line_number":234,"context_line":"        vip \u003d keepalived.KeepalivedVipAddress(\u002710.0.0.1/24\u0027, \u0027eth0\u0027)"},{"line_number":235,"context_line":"        self.assertEqual(\u002710.0.0.1/24 dev eth0\u0027, vip.build_config())"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_8fb3434c","line":233,"in_reply_to":"3a961159_cce22fa0","updated":"2015-01-05 12:47:34.000000000","message":"I see what you mean, removed.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ffe1fe1df71aee13c5d395ebd0df620c59a84df7","unresolved":false,"context_lines":[{"line_number":230,"context_line":""},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"class KeepalivedVipAddressTestCase(base.BaseTestCase):"},{"line_number":233,"context_line":"    def test_vip_without_scope(self):"},{"line_number":234,"context_line":"        vip \u003d keepalived.KeepalivedVipAddress(\u002710.0.0.1/24\u0027, \u0027eth0\u0027)"},{"line_number":235,"context_line":"        self.assertEqual(\u002710.0.0.1/24 dev eth0\u0027, vip.build_config())"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_a4dee43b","line":233,"in_reply_to":"3a961159_f5918352","updated":"2014-12-24 10:35:13.000000000","message":"I don\u0027t think I understand what you mean here precisely. Can you expand? The idea of these two tests is to test every branch (There\u0027s one) in KeepalivedVipAddress.build_config.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"bdcf4a330f6bc31b61a52ad7f97361452d7169b7","unresolved":false,"context_lines":[{"line_number":241,"context_line":"        self.assertEqual(\u0027fe80::3e97:eff:fe26:3bfa/64 dev eth1 scope link\u0027,"},{"line_number":242,"context_line":"                         vip.build_config())"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"class KeepalivedVirtualRouteTestCase(base.BaseTestCase):"},{"line_number":246,"context_line":"    def test_virtual_route_with_dev(self):"},{"line_number":247,"context_line":"        route \u003d keepalived.KeepalivedVirtualRoute(\u00270.0.0.0/0\u0027, \u00271.2.3.4\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_5460c400","line":244,"updated":"2014-12-22 14:40:20.000000000","message":"I supose we need tests to make sure other nodes remove the LLA, right?","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f9a7748d97877b041828767430d421f8cbdf85fa","unresolved":false,"context_lines":[{"line_number":241,"context_line":"        self.assertEqual(\u0027fe80::3e97:eff:fe26:3bfa/64 dev eth1 scope link\u0027,"},{"line_number":242,"context_line":"                         vip.build_config())"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"class KeepalivedVirtualRouteTestCase(base.BaseTestCase):"},{"line_number":246,"context_line":"    def test_virtual_route_with_dev(self):"},{"line_number":247,"context_line":"        route \u003d keepalived.KeepalivedVirtualRoute(\u00270.0.0.0/0\u0027, \u00271.2.3.4\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_a8e50b39","line":244,"in_reply_to":"3a961159_5460c400","updated":"2014-12-22 16:10:44.000000000","message":"The functional test was enhanced in this patch so that when it configures the router and it\u0027s still in standby, it asserts that there\u0027s no addresses on the interface (Including the LLA). If you have any ideas of how to test this more comprehensively I\u0027d appreciate it.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cf22587559fcb743219e23eacdda7591c281c9a9","unresolved":false,"context_lines":[{"line_number":241,"context_line":"        self.assertEqual(\u0027fe80::3e97:eff:fe26:3bfa/64 dev eth1 scope link\u0027,"},{"line_number":242,"context_line":"                         vip.build_config())"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"class KeepalivedVirtualRouteTestCase(base.BaseTestCase):"},{"line_number":246,"context_line":"    def test_virtual_route_with_dev(self):"},{"line_number":247,"context_line":"        route \u003d keepalived.KeepalivedVirtualRoute(\u00270.0.0.0/0\u0027, \u00271.2.3.4\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_08953f32","line":244,"in_reply_to":"3a961159_a8e50b39","updated":"2014-12-22 16:19:30.000000000","message":"Ahh, correct, there it is, somehow I missed that file during review.\n\nAll correct then, I believe we don\u0027t need to check anything more than that.","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"44f7c63e70f6ce61ec4492941b12b55f32d72f99","unresolved":false,"context_lines":[{"line_number":249,"context_line":"        self.assertEqual(\u00270.0.0.0/0 via 1.2.3.4 dev eth0\u0027,"},{"line_number":250,"context_line":"                         route.build_config())"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"    def test_virtual_route_without_dev(self):"},{"line_number":253,"context_line":"        route \u003d keepalived.KeepalivedVirtualRoute(\u002750.0.0.0/8\u0027, \u00271.2.3.4\u0027)"},{"line_number":254,"context_line":"        self.assertEqual(\u002750.0.0.0/8 via 1.2.3.4\u0027, route.build_config())"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_15744f34","line":252,"updated":"2014-12-23 23:01:52.000000000","message":"This test is also unnecessary (but that\u0027s unrelated).","commit_id":"17131eaf66ad114045bf95544b4404d2670c473a"}],"neutron/tests/unit/test_l3_agent.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"c1851a7480fade0b5a322514f2c1978229f11bbf","unresolved":false,"context_lines":[{"line_number":888,"context_line":"                         distributed)"},{"line_number":889,"context_line":"        self.assertEqual(agent.process_router_floating_ip_nat_rules.called,"},{"line_number":890,"context_line":"                         distributed)"},{"line_number":891,"context_line":""},{"line_number":892,"context_line":"    def test_ha_router_keepalived_config(self):"},{"line_number":893,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":894,"context_line":"        router \u003d prepare_router_data(enable_ha\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_26fd113c","side":"PARENT","line":891,"updated":"2014-12-18 20:03:10.000000000","message":"There\u0027s a lot of patches up for review right now that remove this test as it has long been superseded by a functional test. Hopefully one of them will be merged soon :)","commit_id":"5dc5329e02c24d629dc1cfa64fba24773a09eca9"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"bdcf4a330f6bc31b61a52ad7f97361452d7169b7","unresolved":false,"context_lines":[{"line_number":941,"context_line":"    }"},{"line_number":942,"context_line":"}\"\"\" % {\u0027ha_iface\u0027: ha_iface, \u0027ex_iface\u0027: ex_iface, \u0027int_iface\u0027: int_iface}"},{"line_number":943,"context_line":""},{"line_number":944,"context_line":"            self.assertEqual(expected, config.get_config_str())"},{"line_number":945,"context_line":""},{"line_number":946,"context_line":"    @mock.patch(\u0027neutron.agent.linux.ip_lib.IPDevice\u0027)"},{"line_number":947,"context_line":"    def _test_process_router_floating_ip_addresses_add(self, ri,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_d433d411","side":"PARENT","line":944,"updated":"2014-12-22 14:40:20.000000000","message":"I\u0027ve seen your PS1 comments, so removing my question here.","commit_id":"5dc5329e02c24d629dc1cfa64fba24773a09eca9"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"83b491cb9f3154f9f108531440f9c3d9b48c88aa","unresolved":false,"context_lines":[{"line_number":889,"context_line":"        self.assertEqual(agent.process_router_floating_ip_nat_rules.called,"},{"line_number":890,"context_line":"                         distributed)"},{"line_number":891,"context_line":""},{"line_number":892,"context_line":"    def test_ha_router_keepalived_config(self):"},{"line_number":893,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":894,"context_line":"        router \u003d prepare_router_data(enable_ha\u003dTrue)"},{"line_number":895,"context_line":"        router[\u0027routes\u0027] \u003d ["}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_7e757d96","side":"PARENT","line":892,"updated":"2015-01-08 13:42:24.000000000","message":"Why is this test removed?","commit_id":"5de1d2ed67e00a010f23c5f9055556745a55957a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"1d718844f6ec731f68940e490e5bf17efe044fa7","unresolved":false,"context_lines":[{"line_number":889,"context_line":"        self.assertEqual(agent.process_router_floating_ip_nat_rules.called,"},{"line_number":890,"context_line":"                         distributed)"},{"line_number":891,"context_line":""},{"line_number":892,"context_line":"    def test_ha_router_keepalived_config(self):"},{"line_number":893,"context_line":"        agent \u003d l3_agent.L3NATAgent(HOSTNAME, self.conf)"},{"line_number":894,"context_line":"        router \u003d prepare_router_data(enable_ha\u003dTrue)"},{"line_number":895,"context_line":"        router[\u0027routes\u0027] \u003d ["}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_d8e2d301","side":"PARENT","line":892,"in_reply_to":"3a961159_7e757d96","updated":"2015-01-19 22:50:45.000000000","message":"It\u0027s already been removed by another patch so it\u0027s a moot point, but, well, it\u0027s a dumb test that\u0027s been preceded by a similar functional test and I was tired of maintaining this one.","commit_id":"5de1d2ed67e00a010f23c5f9055556745a55957a"}]}
