)]}'
{"neutron/agent/linux/keepalived.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ebb07cac3bb611bd025273da9c19641e6470b9cf","unresolved":false,"context_lines":[{"line_number":31,"context_line":"HA_DEFAULT_PRIORITY \u003d 50"},{"line_number":32,"context_line":"PRIMARY_VIP_RANGE_SIZE \u003d 24"},{"line_number":33,"context_line":"# TODO(amuller): Use L3 agent constant when new constants module is introduced."},{"line_number":34,"context_line":"FIP_LL_SUBNET \u003d \u0027169.254.30.0/23\u0027"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"LOG \u003d logging.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_c8c7ec10","line":34,"updated":"2015-01-06 03:07:18.000000000","message":"What does LL stand for?","commit_id":"808a9d2679bbc42fe00c35c35fff178290f8308f"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"41a4b85c3c8063fc9881ca699493cba9dc4185b8","unresolved":false,"context_lines":[{"line_number":31,"context_line":"HA_DEFAULT_PRIORITY \u003d 50"},{"line_number":32,"context_line":"PRIMARY_VIP_RANGE_SIZE \u003d 24"},{"line_number":33,"context_line":"# TODO(amuller): Use L3 agent constant when new constants module is introduced."},{"line_number":34,"context_line":"FIP_LL_SUBNET \u003d \u0027169.254.30.0/23\u0027"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"LOG \u003d logging.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_83c77e44","line":34,"in_reply_to":"3a961159_c8c7ec10","updated":"2015-01-07 11:56:26.000000000","message":"Link local. I copy/pasted this from the DVR const. This is temporary anyway until the L3 agents constants patch merges.","commit_id":"808a9d2679bbc42fe00c35c35fff178290f8308f"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ebb07cac3bb611bd025273da9c19641e6470b9cf","unresolved":false,"context_lines":[{"line_number":37,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"def get_free_range(parent_range, excluded_ranges, size\u003d24):"},{"line_number":41,"context_line":"    \"\"\"Get a free IP range, from parent_range, of the specified size."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    :param parent_range: String representing an IP range. E.g: \u0027169.254.0.0/16\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_08ce542d","line":40,"updated":"2015-01-06 03:07:18.000000000","message":"Should PRIMARY_VIP_RANGE_SIZE be used here instead of 24?  Or, does size even need to be a parameter, given that this function is called only once (outside of the tests) and that constant is supplied (YAGNI)?","commit_id":"808a9d2679bbc42fe00c35c35fff178290f8308f"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"41a4b85c3c8063fc9881ca699493cba9dc4185b8","unresolved":false,"context_lines":[{"line_number":37,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"def get_free_range(parent_range, excluded_ranges, size\u003d24):"},{"line_number":41,"context_line":"    \"\"\"Get a free IP range, from parent_range, of the specified size."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    :param parent_range: String representing an IP range. E.g: \u0027169.254.0.0/16\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_03e38ed9","line":40,"in_reply_to":"3a961159_08ce542d","updated":"2015-01-07 11:56:26.000000000","message":"It doesn\u0027t matter to me if we keep the size parameter or not, but I think it\u0027s nice from a function purity standpoint... This way the function receives everything it needs and doesn\u0027t rely on a module level const. It helps testing as a side effect. It should be the const instead of the number 24 though, definitely. I think I added the const later and forgot to use it here.","commit_id":"808a9d2679bbc42fe00c35c35fff178290f8308f"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ebb07cac3bb611bd025273da9c19641e6470b9cf","unresolved":false,"context_lines":[{"line_number":199,"context_line":"        return netaddr.IPNetwork(\u0027%s/%s\u0027 % (ip, PRIMARY_VIP_RANGE_SIZE))"},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"    def _build_vips_config(self):"},{"line_number":202,"context_line":"        # NOTE(amuller): The primary VIP must be consistent in order to avoid"},{"line_number":203,"context_line":"        # keepalived bugs."},{"line_number":204,"context_line":"        # We cannot use any router interface or IP because those can come"},{"line_number":205,"context_line":"        # and go as a result of API calls. The only interface known to exist"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_ee82f150","line":202,"updated":"2015-01-06 03:07:18.000000000","message":"I think I\u0027d rather see this section rewritten slightly to remove reference to the bug and simply state the design requirement.  Shouldn\u0027t that and the tests be enough to ensure against regression?","commit_id":"808a9d2679bbc42fe00c35c35fff178290f8308f"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"41a4b85c3c8063fc9881ca699493cba9dc4185b8","unresolved":false,"context_lines":[{"line_number":199,"context_line":"        return netaddr.IPNetwork(\u0027%s/%s\u0027 % (ip, PRIMARY_VIP_RANGE_SIZE))"},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"    def _build_vips_config(self):"},{"line_number":202,"context_line":"        # NOTE(amuller): The primary VIP must be consistent in order to avoid"},{"line_number":203,"context_line":"        # keepalived bugs."},{"line_number":204,"context_line":"        # We cannot use any router interface or IP because those can come"},{"line_number":205,"context_line":"        # and go as a result of API calls. The only interface known to exist"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_0ddab877","line":202,"in_reply_to":"3a961159_ee82f150","updated":"2015-01-07 11:56:26.000000000","message":"Changed.\n\nYou\u0027re going to have to explain to me your dislike of bug references in the code.","commit_id":"808a9d2679bbc42fe00c35c35fff178290f8308f"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ebb07cac3bb611bd025273da9c19641e6470b9cf","unresolved":false,"context_lines":[{"line_number":203,"context_line":"        # keepalived bugs."},{"line_number":204,"context_line":"        # We cannot use any router interface or IP because those can come"},{"line_number":205,"context_line":"        # and go as a result of API calls. The only interface known to exist"},{"line_number":206,"context_line":"        # for HA routers is the HA interface (self.interface). We fabricate"},{"line_number":207,"context_line":"        # an IP on that device and use it as the primary VIP. The other VIPs"},{"line_number":208,"context_line":"        # (Internal interfaces IPs, the external interface IP and floating IPs)"},{"line_number":209,"context_line":"        # are placed in the virtual_ipaddress_excluded section."}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_e89ae812","line":206,"updated":"2015-01-06 03:07:18.000000000","message":"(No action required) What does \u0027fabricate\u0027 imply in this instance?  The term is somewhat ambiguous to me.","commit_id":"808a9d2679bbc42fe00c35c35fff178290f8308f"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"41a4b85c3c8063fc9881ca699493cba9dc4185b8","unresolved":false,"context_lines":[{"line_number":203,"context_line":"        # keepalived bugs."},{"line_number":204,"context_line":"        # We cannot use any router interface or IP because those can come"},{"line_number":205,"context_line":"        # and go as a result of API calls. The only interface known to exist"},{"line_number":206,"context_line":"        # for HA routers is the HA interface (self.interface). We fabricate"},{"line_number":207,"context_line":"        # an IP on that device and use it as the primary VIP. The other VIPs"},{"line_number":208,"context_line":"        # (Internal interfaces IPs, the external interface IP and floating IPs)"},{"line_number":209,"context_line":"        # are placed in the virtual_ipaddress_excluded section."}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_a9929854","line":206,"in_reply_to":"3a961159_e89ae812","updated":"2015-01-07 11:56:26.000000000","message":"What I tried to say is \u0027make up\u0027, maybe \u0027generate\u0027. Conjure up an IP on the HA interface that is used solely for the purposes of consistent ordering, and for no other use. I\u0027ll try to rephrase it and if you come up with something better go ahead.","commit_id":"808a9d2679bbc42fe00c35c35fff178290f8308f"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"efc5ecdf98c1d9caeddc775663ab1b8fdbba3071","unresolved":false,"context_lines":[{"line_number":151,"context_line":"        self.vips \u003d []"},{"line_number":152,"context_line":"        self.virtual_routes \u003d []"},{"line_number":153,"context_line":"        self.authentication \u003d tuple()"},{"line_number":154,"context_line":"        metadata_cidr \u003d \u0027169.254.169.254/32\u0027"},{"line_number":155,"context_line":"        self.primary_vip_range \u003d get_free_range("},{"line_number":156,"context_line":"            parent_range\u003d\u0027169.254.0.0/16\u0027,"},{"line_number":157,"context_line":"            excluded_ranges\u003d[metadata_cidr,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_57b1a68d","line":154,"updated":"2015-01-07 15:50:18.000000000","message":"(No action required) +1 for named constants in place of magic strings!  The fact that this string is repeated constantly in the code rather than being defined once is pretty silly.","commit_id":"ea587e113a838f74efed9a04c78c0ff3d860d04b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"e8d924601d546ddd1ed634d89e329cad4e11f83c","unresolved":false,"context_lines":[{"line_number":151,"context_line":"        self.vips \u003d []"},{"line_number":152,"context_line":"        self.virtual_routes \u003d []"},{"line_number":153,"context_line":"        self.authentication \u003d tuple()"},{"line_number":154,"context_line":"        metadata_cidr \u003d \u0027169.254.169.254/32\u0027"},{"line_number":155,"context_line":"        self.primary_vip_range \u003d get_free_range("},{"line_number":156,"context_line":"            parent_range\u003d\u0027169.254.0.0/16\u0027,"},{"line_number":157,"context_line":"            excluded_ranges\u003d[metadata_cidr,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_99fc9f74","line":154,"in_reply_to":"3a961159_57b1a68d","updated":"2015-01-13 05:23:09.000000000","message":"Why is this one a local variable and FIP_LL_SUBNET is defined at the top of the module.","commit_id":"ea587e113a838f74efed9a04c78c0ff3d860d04b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"e8d924601d546ddd1ed634d89e329cad4e11f83c","unresolved":false,"context_lines":[{"line_number":155,"context_line":"        self.primary_vip_range \u003d get_free_range("},{"line_number":156,"context_line":"            parent_range\u003d\u0027169.254.0.0/16\u0027,"},{"line_number":157,"context_line":"            excluded_ranges\u003d[metadata_cidr,"},{"line_number":158,"context_line":"                             FIP_LL_SUBNET,"},{"line_number":159,"context_line":"                             ha_cidr],"},{"line_number":160,"context_line":"            size\u003dPRIMARY_VIP_RANGE_SIZE)"},{"line_number":161,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_39a64bac","line":158,"updated":"2015-01-13 05:23:09.000000000","message":"What happens when the next guy needs to find an portion of LL address space that no one else is using?  It seems it is getting more and more difficult.","commit_id":"ea587e113a838f74efed9a04c78c0ff3d860d04b"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"efc5ecdf98c1d9caeddc775663ab1b8fdbba3071","unresolved":false,"context_lines":[{"line_number":157,"context_line":"            excluded_ranges\u003d[metadata_cidr,"},{"line_number":158,"context_line":"                             FIP_LL_SUBNET,"},{"line_number":159,"context_line":"                             ha_cidr],"},{"line_number":160,"context_line":"            size\u003dPRIMARY_VIP_RANGE_SIZE)"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"    def set_authentication(self, auth_type, password):"},{"line_number":163,"context_line":"        if auth_type not in VALID_AUTH_TYPES:"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_1d249f5e","line":160,"updated":"2015-01-07 15:50:18.000000000","message":"I don\u0027t think it should be necessary to supply the default for an optional parameter.","commit_id":"ea587e113a838f74efed9a04c78c0ff3d860d04b"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"efc5ecdf98c1d9caeddc775663ab1b8fdbba3071","unresolved":false,"context_lines":[{"line_number":200,"context_line":"        return netaddr.IPNetwork(\u0027%s/%s\u0027 % (ip, PRIMARY_VIP_RANGE_SIZE))"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    def _build_vips_config(self):"},{"line_number":203,"context_line":"        # NOTE(amuller): The primary VIP must be consistent in order to avoid"},{"line_number":204,"context_line":"        # keepalived bugs. Changing the VIP in the \u0027virtual_ipaddress\u0027 and"},{"line_number":205,"context_line":"        # SIGHUP\u0027ing keepalived can remove virtual routers, including the"},{"line_number":206,"context_line":"        # router\u0027s default gateway."}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_570d263d","line":203,"updated":"2015-01-07 15:50:18.000000000","message":"(No action required) I\u0027m not going to block on this, but for future I think a docstring would be preferable to a comment block, and attributing authorship for functional requirements seems unnecessary to me.","commit_id":"ea587e113a838f74efed9a04c78c0ff3d860d04b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"2a4445985beac89f937a60b3ec584017bab07b27","unresolved":false,"context_lines":[{"line_number":223,"context_line":"                itertools.chain([\u0027    virtual_ipaddress_excluded {\u0027],"},{"line_number":224,"context_line":"                                (\u0027        %s\u0027 % vip.build_config()"},{"line_number":225,"context_line":"                                 for vip in"},{"line_number":226,"context_line":"                                 sorted(self.vips,"},{"line_number":227,"context_line":"                                        key\u003dlambda vip: vip.ip_address)),"},{"line_number":228,"context_line":"                                [\u0027    }\u0027]))"},{"line_number":229,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_bc9614ee","line":226,"updated":"2015-01-08 10:48:47.000000000","message":"A dumb question: why do we sort them at all?","commit_id":"ea587e113a838f74efed9a04c78c0ff3d860d04b"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"215d561e21fb687fd35cc99cece96ca4494305ac","unresolved":false,"context_lines":[{"line_number":223,"context_line":"                itertools.chain([\u0027    virtual_ipaddress_excluded {\u0027],"},{"line_number":224,"context_line":"                                (\u0027        %s\u0027 % vip.build_config()"},{"line_number":225,"context_line":"                                 for vip in"},{"line_number":226,"context_line":"                                 sorted(self.vips,"},{"line_number":227,"context_line":"                                        key\u003dlambda vip: vip.ip_address)),"},{"line_number":228,"context_line":"                                [\u0027    }\u0027]))"},{"line_number":229,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_37695dbe","line":226,"in_reply_to":"3a961159_bc9614ee","updated":"2015-01-08 10:51:23.000000000","message":"If order changes keepalived does unexpected things. It will expect the VRRP advertisement with VIPs on the same order.\n\nI believe keepalived should be doing the ordering itself internally before advertisement, but that\u0027s going to take some time if ever to happen.","commit_id":"ea587e113a838f74efed9a04c78c0ff3d860d04b"}],"neutron/tests/unit/agent/linux/test_keepalived.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ebb07cac3bb611bd025273da9c19641e6470b9cf","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    def test_get_free_range_not_found(self):"},{"line_number":47,"context_line":"        tiny_parent_range \u003d \u0027192.168.1.0/24\u0027"},{"line_number":48,"context_line":"        huge_size \u003d 8"},{"line_number":49,"context_line":"        self.assertRaises(ValueError,"},{"line_number":50,"context_line":"                          keepalived.get_free_range,"},{"line_number":51,"context_line":"                          tiny_parent_range,"},{"line_number":52,"context_line":"                          [],"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_a828e097","line":49,"updated":"2015-01-06 03:07:18.000000000","message":"(No action required) Consider using the context manager form:\n\nwith testtools.ExpectedException(ValueError):\n ...","commit_id":"808a9d2679bbc42fe00c35c35fff178290f8308f"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"41a4b85c3c8063fc9881ca699493cba9dc4185b8","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    def test_get_free_range_not_found(self):"},{"line_number":47,"context_line":"        tiny_parent_range \u003d \u0027192.168.1.0/24\u0027"},{"line_number":48,"context_line":"        huge_size \u003d 8"},{"line_number":49,"context_line":"        self.assertRaises(ValueError,"},{"line_number":50,"context_line":"                          keepalived.get_free_range,"},{"line_number":51,"context_line":"                          tiny_parent_range,"},{"line_number":52,"context_line":"                          [],"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_6d8fbc23","line":49,"in_reply_to":"3a961159_a828e097","updated":"2015-01-07 11:56:26.000000000","message":"Yeah I like this a lot better.","commit_id":"808a9d2679bbc42fe00c35c35fff178290f8308f"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"efc5ecdf98c1d9caeddc775663ab1b8fdbba3071","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class KeepalivedGetFreeRangeTestCase(base.BaseTestCase):"},{"line_number":25,"context_line":"    def test_get_free_range(self):"},{"line_number":26,"context_line":"        free_range \u003d keepalived.get_free_range("},{"line_number":27,"context_line":"            parent_range\u003d\u0027169.254.0.0/16\u0027,"},{"line_number":28,"context_line":"            excluded_ranges\u003d[\u0027169.254.0.0/24\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_7a50495e","line":25,"updated":"2015-01-07 15:50:18.000000000","message":"(No action required) Ideally all test methods would describe what they\u0027re testing even if only \u0027_succeeds\u0027.","commit_id":"ea587e113a838f74efed9a04c78c0ff3d860d04b"}]}
