)]}'
{"neutron/db/db_base_plugin_v2.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"0d0a41f1527d43fec3ad0fd587645a39053a504b","unresolved":false,"context_lines":[{"line_number":720,"context_line":"                                \u0027subnet_id\u0027: result[\u0027subnet_id\u0027]})"},{"line_number":721,"context_line":"        return ips"},{"line_number":722,"context_line":""},{"line_number":723,"context_line":"    def _validate_subnet_cidr(self, context, network, new_subnet_cidr):"},{"line_number":724,"context_line":"        \"\"\"Validate the CIDR for a subnet."},{"line_number":725,"context_line":""},{"line_number":726,"context_line":"        Verifies two things:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bm%2BM%3D","line":723,"updated":"2014-01-23 22:19:24.000000000","message":"One more question.  Does this method need to work for IPv6 subnets?  If so, checking the prefixlen might not quite work.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"d5970f890da0eb642b71077f872fa0c582a38b3b","unresolved":false,"context_lines":[{"line_number":720,"context_line":"                                \u0027subnet_id\u0027: result[\u0027subnet_id\u0027]})"},{"line_number":721,"context_line":"        return ips"},{"line_number":722,"context_line":""},{"line_number":723,"context_line":"    def _validate_subnet_cidr(self, context, network, new_subnet_cidr):"},{"line_number":724,"context_line":"        \"\"\"Validate the CIDR for a subnet."},{"line_number":725,"context_line":""},{"line_number":726,"context_line":"        Verifies two things:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bm7c%3D","line":723,"in_reply_to":"AAAAUH%2F%2Bm%2BM%3D","updated":"2014-01-23 22:42:14.000000000","message":"Yes it does, my next changeset is going to use if netaddr.IPNetwork(new_subnet_cidr).size \u003c 3 instead.  This covers v4 and v6.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":3217,"name":"Ian Wells","username":"ijw-ubuntu"},"change_message_id":"40562b539c69300a2585582a15543e251f5a3bde","unresolved":false,"context_lines":[{"line_number":726,"context_line":"        Verifies two things:"},{"line_number":727,"context_line":"            1) The subnet has more than one IP address in it.  ie, the prefix"},{"line_number":728,"context_line":"               size is less than /32"},{"line_number":729,"context_line":"            2) The specified CIDR does not overlap with the ones defined for"},{"line_number":730,"context_line":"               the other subnets specified for this network, or with any other"},{"line_number":731,"context_line":"               CIDR if overlapping IPs are disabled."},{"line_number":732,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bnuk%3D","line":729,"updated":"2014-01-23 20:08:28.000000000","message":"A /31 does not meet your requirements if \u0027has more than one IP address in it\u0027 as the 1 address is the net broadcast.  I think /30 is minimum.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d0093d071a24d66b151dbb21c1085f9a4e29c20c","unresolved":false,"context_lines":[{"line_number":726,"context_line":"        Verifies two things:"},{"line_number":727,"context_line":"            1) The subnet has more than one IP address in it.  ie, the prefix"},{"line_number":728,"context_line":"               size is less than /32"},{"line_number":729,"context_line":"            2) The specified CIDR does not overlap with the ones defined for"},{"line_number":730,"context_line":"               the other subnets specified for this network, or with any other"},{"line_number":731,"context_line":"               CIDR if overlapping IPs are disabled."},{"line_number":732,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BnMY%3D","line":729,"in_reply_to":"AAAAUH%2F%2Bnuk%3D","updated":"2014-01-23 22:13:32.000000000","message":"Right, /31 cannot be used.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"d5970f890da0eb642b71077f872fa0c582a38b3b","unresolved":false,"context_lines":[{"line_number":726,"context_line":"        Verifies two things:"},{"line_number":727,"context_line":"            1) The subnet has more than one IP address in it.  ie, the prefix"},{"line_number":728,"context_line":"               size is less than /32"},{"line_number":729,"context_line":"            2) The specified CIDR does not overlap with the ones defined for"},{"line_number":730,"context_line":"               the other subnets specified for this network, or with any other"},{"line_number":731,"context_line":"               CIDR if overlapping IPs are disabled."},{"line_number":732,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bm7Y%3D","line":729,"in_reply_to":"AAAAUH%2F%2Bnuk%3D","updated":"2014-01-23 22:42:14.000000000","message":"You are right, and I have changed it per my response above.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d0093d071a24d66b151dbb21c1085f9a4e29c20c","unresolved":false,"context_lines":[{"line_number":730,"context_line":"               the other subnets specified for this network, or with any other"},{"line_number":731,"context_line":"               CIDR if overlapping IPs are disabled."},{"line_number":732,"context_line":"        \"\"\""},{"line_number":733,"context_line":"        # Do not allow single IP networks"},{"line_number":734,"context_line":"        net_range \u003d netaddr.IPNetwork(new_subnet_cidr)"},{"line_number":735,"context_line":"        if net_range.first \u003d\u003d net_range.last:"},{"line_number":736,"context_line":"            err_msg \u003d (_(\"Requested subnet with cidr %(cidr)s for network \""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BnIA%3D","line":733,"updated":"2014-01-23 22:13:32.000000000","message":"It isn\u0027t actually accurate that this is a \"single ip network\".  A /32 is never useable as a subnet on top of an L2 network because the first ip address is reserved as the network address, the last address is reserved as the broadcast address.  That is why a /31 won\u0027t work, there are 0 usable addresses in a /31.\n\nA /30 is questionable because it has two usable addresses and neutron network typically have a gateway and a dns server.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"d5970f890da0eb642b71077f872fa0c582a38b3b","unresolved":false,"context_lines":[{"line_number":730,"context_line":"               the other subnets specified for this network, or with any other"},{"line_number":731,"context_line":"               CIDR if overlapping IPs are disabled."},{"line_number":732,"context_line":"        \"\"\""},{"line_number":733,"context_line":"        # Do not allow single IP networks"},{"line_number":734,"context_line":"        net_range \u003d netaddr.IPNetwork(new_subnet_cidr)"},{"line_number":735,"context_line":"        if net_range.first \u003d\u003d net_range.last:"},{"line_number":736,"context_line":"            err_msg \u003d (_(\"Requested subnet with cidr %(cidr)s for network \""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bm6c%3D","line":733,"in_reply_to":"AAAAUH%2F%2BnIA%3D","updated":"2014-01-23 22:42:14.000000000","message":"I\u0027ve removed the comment altogether as the code (along with exception message) is pretty self explanatory.\n\nI\u0027ve also allowed /30 in the next changeset per Paul Carver\u0027s email response that it can sometimes be used in the situation where you are just connecting two routers together.  While /31 and /32 have hard reasons they are not usable at all, /30 isn\u0027t quite that cut and dried.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d0093d071a24d66b151dbb21c1085f9a4e29c20c","unresolved":false,"context_lines":[{"line_number":732,"context_line":"        \"\"\""},{"line_number":733,"context_line":"        # Do not allow single IP networks"},{"line_number":734,"context_line":"        net_range \u003d netaddr.IPNetwork(new_subnet_cidr)"},{"line_number":735,"context_line":"        if net_range.first \u003d\u003d net_range.last:"},{"line_number":736,"context_line":"            err_msg \u003d (_(\"Requested subnet with cidr %(cidr)s for network \""},{"line_number":737,"context_line":"                         \"%(network_name)s only contains a single valid IP. \""},{"line_number":738,"context_line":"                         \"Please specify a larger subnet range\") %"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BnMc%3D","line":735,"updated":"2014-01-23 22:13:32.000000000","message":"I\u0027d prefer you check the prefix length as Edgar suggested in your email thread.  For example,\n\nif 30 \u003c net_range.prefixlen:","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d0093d071a24d66b151dbb21c1085f9a4e29c20c","unresolved":false,"context_lines":[{"line_number":733,"context_line":"        # Do not allow single IP networks"},{"line_number":734,"context_line":"        net_range \u003d netaddr.IPNetwork(new_subnet_cidr)"},{"line_number":735,"context_line":"        if net_range.first \u003d\u003d net_range.last:"},{"line_number":736,"context_line":"            err_msg \u003d (_(\"Requested subnet with cidr %(cidr)s for network \""},{"line_number":737,"context_line":"                         \"%(network_name)s only contains a single valid IP. \""},{"line_number":738,"context_line":"                         \"Please specify a larger subnet range\") %"},{"line_number":739,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BnKQ%3D","line":736,"updated":"2014-01-23 22:13:32.000000000","message":"nit:  This is called msg rather than err_msg almost everywhere else.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"d5970f890da0eb642b71077f872fa0c582a38b3b","unresolved":false,"context_lines":[{"line_number":733,"context_line":"        # Do not allow single IP networks"},{"line_number":734,"context_line":"        net_range \u003d netaddr.IPNetwork(new_subnet_cidr)"},{"line_number":735,"context_line":"        if net_range.first \u003d\u003d net_range.last:"},{"line_number":736,"context_line":"            err_msg \u003d (_(\"Requested subnet with cidr %(cidr)s for network \""},{"line_number":737,"context_line":"                         \"%(network_name)s only contains a single valid IP. \""},{"line_number":738,"context_line":"                         \"Please specify a larger subnet range\") %"},{"line_number":739,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bm5Q%3D","line":736,"in_reply_to":"AAAAUH%2F%2BnKQ%3D","updated":"2014-01-23 22:42:14.000000000","message":"There seems to be a fairly even mix of msg vs err_msg throughout the file.  This method already was using err_msg, so I stuck with that.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d0093d071a24d66b151dbb21c1085f9a4e29c20c","unresolved":false,"context_lines":[{"line_number":734,"context_line":"        net_range \u003d netaddr.IPNetwork(new_subnet_cidr)"},{"line_number":735,"context_line":"        if net_range.first \u003d\u003d net_range.last:"},{"line_number":736,"context_line":"            err_msg \u003d (_(\"Requested subnet with cidr %(cidr)s for network \""},{"line_number":737,"context_line":"                         \"%(network_name)s only contains a single valid IP. \""},{"line_number":738,"context_line":"                         \"Please specify a larger subnet range\") %"},{"line_number":739,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":740,"context_line":"                        \u0027network_name\u0027: network.name})"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BnK8%3D","line":737,"updated":"2014-01-23 22:13:32.000000000","message":"This is confusing to me.  I would like to see the error message worded in terms of prefix length, (e.g. \"... prefix length must be \u003c\u003d 30, you requested ...\"","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"d5970f890da0eb642b71077f872fa0c582a38b3b","unresolved":false,"context_lines":[{"line_number":734,"context_line":"        net_range \u003d netaddr.IPNetwork(new_subnet_cidr)"},{"line_number":735,"context_line":"        if net_range.first \u003d\u003d net_range.last:"},{"line_number":736,"context_line":"            err_msg \u003d (_(\"Requested subnet with cidr %(cidr)s for network \""},{"line_number":737,"context_line":"                         \"%(network_name)s only contains a single valid IP. \""},{"line_number":738,"context_line":"                         \"Please specify a larger subnet range\") %"},{"line_number":739,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":740,"context_line":"                        \u0027network_name\u0027: network.name})"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bm58%3D","line":737,"in_reply_to":"AAAAUH%2F%2BnK8%3D","updated":"2014-01-23 22:42:14.000000000","message":"My next changeset reworded this to be more consistent with the message you\u0027d get in horizon when you specify a /32 prefix.  However, if you still think that\u0027s not clear, I will make a third changeset to tweak it.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d0093d071a24d66b151dbb21c1085f9a4e29c20c","unresolved":false,"context_lines":[{"line_number":738,"context_line":"                         \"Please specify a larger subnet range\") %"},{"line_number":739,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":740,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":741,"context_line":"            LOG.error(_(\"Validation for cidr %s failed - subnet only \""},{"line_number":742,"context_line":"                        \"contains one valid IP address.\") % new_subnet_cidr)"},{"line_number":743,"context_line":"            raise q_exc.InvalidInput(error_message\u003derr_msg)"},{"line_number":744,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BnHM%3D","line":741,"updated":"2014-01-23 22:13:32.000000000","message":"Shouldn\u0027t be logged at the error level.  There is no problem with the neutron system here.  This is the user\u0027s problem.  LOG.debug at most but I\u0027d prefer you just not log anything.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"d5970f890da0eb642b71077f872fa0c582a38b3b","unresolved":false,"context_lines":[{"line_number":738,"context_line":"                         \"Please specify a larger subnet range\") %"},{"line_number":739,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":740,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":741,"context_line":"            LOG.error(_(\"Validation for cidr %s failed - subnet only \""},{"line_number":742,"context_line":"                        \"contains one valid IP address.\") % new_subnet_cidr)"},{"line_number":743,"context_line":"            raise q_exc.InvalidInput(error_message\u003derr_msg)"},{"line_number":744,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bm48%3D","line":741,"in_reply_to":"AAAAUH%2F%2BnHM%3D","updated":"2014-01-23 22:42:14.000000000","message":"The LOG that was already in this method used error, but I see your point.  I will change mine to debug.  Should I change the other one to debug as well?  Again, it\u0027s not a system error, just invalid user input.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d0093d071a24d66b151dbb21c1085f9a4e29c20c","unresolved":false,"context_lines":[{"line_number":739,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":740,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":741,"context_line":"            LOG.error(_(\"Validation for cidr %s failed - subnet only \""},{"line_number":742,"context_line":"                        \"contains one valid IP address.\") % new_subnet_cidr)"},{"line_number":743,"context_line":"            raise q_exc.InvalidInput(error_message\u003derr_msg)"},{"line_number":744,"context_line":""},{"line_number":745,"context_line":"        new_subnet_ipset \u003d netaddr.IPSet([new_subnet_cidr])"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BnKg%3D","line":742,"updated":"2014-01-23 22:13:32.000000000","message":"nit:  I think LOG.error(_(...), argument) is prefered over LOG.error(_(...) % argument)\n\nAlso, don\u0027t talk in terms of how many useable addresses the subnet has.  Speak in terms of maximum prefix length.  They had to provide a prefix length to begin with, they\u0027ll get it.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"d5970f890da0eb642b71077f872fa0c582a38b3b","unresolved":false,"context_lines":[{"line_number":739,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":740,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":741,"context_line":"            LOG.error(_(\"Validation for cidr %s failed - subnet only \""},{"line_number":742,"context_line":"                        \"contains one valid IP address.\") % new_subnet_cidr)"},{"line_number":743,"context_line":"            raise q_exc.InvalidInput(error_message\u003derr_msg)"},{"line_number":744,"context_line":""},{"line_number":745,"context_line":"        new_subnet_ipset \u003d netaddr.IPSet([new_subnet_cidr])"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bm4E%3D","line":742,"in_reply_to":"AAAAUH%2F%2BnKg%3D","updated":"2014-01-23 22:42:14.000000000","message":"Reworded messages for the next changeset.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"119386a7598764f4828b8570480d2c75c7778f8d","unresolved":false,"context_lines":[{"line_number":724,"context_line":"        \"\"\"Validate the CIDR for a subnet."},{"line_number":725,"context_line":""},{"line_number":726,"context_line":"        Verifies two things:"},{"line_number":727,"context_line":"            1) The subnet has more than two IP addresses in it."},{"line_number":728,"context_line":"            2) The specified CIDR does not overlap with the ones defined for"},{"line_number":729,"context_line":"               the other subnets specified for this network, or with any other"},{"line_number":730,"context_line":"               CIDR if overlapping IPs are disabled."}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2Bjps%3D","line":727,"updated":"2014-01-24 12:26:37.000000000","message":"So, is this in-line with what Horizon checks now (or should Horizon be updated)?","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"e264677071b3453668ee8a03e87d5648916ae186","unresolved":false,"context_lines":[{"line_number":724,"context_line":"        \"\"\"Validate the CIDR for a subnet."},{"line_number":725,"context_line":""},{"line_number":726,"context_line":"        Verifies two things:"},{"line_number":727,"context_line":"            1) The subnet has more than two IP addresses in it."},{"line_number":728,"context_line":"            2) The specified CIDR does not overlap with the ones defined for"},{"line_number":729,"context_line":"               the other subnets specified for this network, or with any other"},{"line_number":730,"context_line":"               CIDR if overlapping IPs are disabled."}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2Bi4g%3D","line":727,"in_reply_to":"AAAAUH%2F%2Bjps%3D","updated":"2014-01-24 15:13:03.000000000","message":"No, Horizon currently only prohibits /32.  I believe it should be changed to also prohibit /31.","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"ee73ef3555f62125882726cec392286e77d6ae48","unresolved":false,"context_lines":[{"line_number":731,"context_line":"        \"\"\""},{"line_number":732,"context_line":"        if netaddr.IPNetwork(new_subnet_cidr).size \u003c 3:"},{"line_number":733,"context_line":"            err_msg \u003d (_(\"The prefix on %(cidr)s for network %(network_name)s \""},{"line_number":734,"context_line":"                         \"is too large. Please specify a smaller prefix\") %"},{"line_number":735,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":736,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":737,"context_line":"            LOG.debug(_(\"Validation for cidr %s failed - prefix length is \""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2BkvM%3D","line":734,"updated":"2014-01-24 09:08:22.000000000","message":"nit: IMO \u0027prefix is too large\u0027 is not quite clear, may consider smth like not enough available ips on the specified subnet.","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"524535c8263177bae2cbcd9c8bbe0ba8305b2480","unresolved":false,"context_lines":[{"line_number":731,"context_line":"        \"\"\""},{"line_number":732,"context_line":"        if netaddr.IPNetwork(new_subnet_cidr).size \u003c 3:"},{"line_number":733,"context_line":"            err_msg \u003d (_(\"The prefix on %(cidr)s for network %(network_name)s \""},{"line_number":734,"context_line":"                         \"is too large. Please specify a smaller prefix\") %"},{"line_number":735,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":736,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":737,"context_line":"            LOG.debug(_(\"Validation for cidr %s failed - prefix length is \""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2Bivo%3D","line":734,"in_reply_to":"AAAAUH%2F%2Bi3o%3D","updated":"2014-01-24 15:30:14.000000000","message":"Ok, then maybe add an explanation of why it is too large, too large for what? Just saying too large looks a bit misleading (probably for me only).","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"5671a95d9e7c1e47d9a3286f6b6c55e152d495fb","unresolved":false,"context_lines":[{"line_number":731,"context_line":"        \"\"\""},{"line_number":732,"context_line":"        if netaddr.IPNetwork(new_subnet_cidr).size \u003c 3:"},{"line_number":733,"context_line":"            err_msg \u003d (_(\"The prefix on %(cidr)s for network %(network_name)s \""},{"line_number":734,"context_line":"                         \"is too large. Please specify a smaller prefix\") %"},{"line_number":735,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":736,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":737,"context_line":"            LOG.debug(_(\"Validation for cidr %s failed - prefix length is \""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2Bgp8%3D","line":734,"in_reply_to":"AAAAUH%2F%2Bivo%3D","updated":"2014-01-24 22:33:21.000000000","message":"Agreed, this message isn\u0027t quite right either.  I think it should be more specific about what is allowed.","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"e264677071b3453668ee8a03e87d5648916ae186","unresolved":false,"context_lines":[{"line_number":731,"context_line":"        \"\"\""},{"line_number":732,"context_line":"        if netaddr.IPNetwork(new_subnet_cidr).size \u003c 3:"},{"line_number":733,"context_line":"            err_msg \u003d (_(\"The prefix on %(cidr)s for network %(network_name)s \""},{"line_number":734,"context_line":"                         \"is too large. Please specify a smaller prefix\") %"},{"line_number":735,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":736,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":737,"context_line":"            LOG.debug(_(\"Validation for cidr %s failed - prefix length is \""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2Bi3o%3D","line":734,"in_reply_to":"AAAAUH%2F%2BkvM%3D","updated":"2014-01-24 15:13:03.000000000","message":"I originally worded this to talk about subnet size, but see patch set 1 comment from Carl where he said it seemed more appropriate to talk about prefix length.","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"ee73ef3555f62125882726cec392286e77d6ae48","unresolved":false,"context_lines":[{"line_number":734,"context_line":"                         \"is too large. Please specify a smaller prefix\") %"},{"line_number":735,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":736,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":737,"context_line":"            LOG.debug(_(\"Validation for cidr %s failed - prefix length is \""},{"line_number":738,"context_line":"                        \"too large.\"), new_subnet_cidr)"},{"line_number":739,"context_line":"            raise q_exc.InvalidInput(error_message\u003derr_msg)"},{"line_number":740,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2Bkuc%3D","line":737,"updated":"2014-01-24 09:08:22.000000000","message":"should it be error log level?","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"fc9505e97f76790bdce82344a8db2ecefcee14bb","unresolved":false,"context_lines":[{"line_number":734,"context_line":"                         \"is too large. Please specify a smaller prefix\") %"},{"line_number":735,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":736,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":737,"context_line":"            LOG.debug(_(\"Validation for cidr %s failed - prefix length is \""},{"line_number":738,"context_line":"                        \"too large.\"), new_subnet_cidr)"},{"line_number":739,"context_line":"            raise q_exc.InvalidInput(error_message\u003derr_msg)"},{"line_number":740,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2BOn4%3D","line":737,"in_reply_to":"AAAAUH%2F%2BURM%3D","updated":"2014-01-28 21:47:22.000000000","message":"Somehow, I managed to miss the rest of this thread.  I wonder if I fat-fingered the mute button in my reader.  Anyway, I tend to agree with you.  Maybe this check isn\u0027t worth adding.","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"ce71a5ed037e311d87c076c65e15f57e2f288a2c","unresolved":false,"context_lines":[{"line_number":734,"context_line":"                         \"is too large. Please specify a smaller prefix\") %"},{"line_number":735,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":736,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":737,"context_line":"            LOG.debug(_(\"Validation for cidr %s failed - prefix length is \""},{"line_number":738,"context_line":"                        \"too large.\"), new_subnet_cidr)"},{"line_number":739,"context_line":"            raise q_exc.InvalidInput(error_message\u003derr_msg)"},{"line_number":740,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2BURM%3D","line":737,"in_reply_to":"AAAAUH%2F%2BgmY%3D","updated":"2014-01-28 02:21:46.000000000","message":"Thanks for your input Carl.  I\u0027m actually considering abandoning this change for the reasons we\u0027ve discussed on the openstack-dev list.\n\nhttp://lists.openstack.org/pipermail/openstack-dev/2014-January/025314.html\nhttp://lists.openstack.org/pipermail/openstack-dev/2014-January/025385.html\n\nCare to join the discussion and throw in your vote?","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"4285e3137381c6efe7d2845121470a6fdcfd01af","unresolved":false,"context_lines":[{"line_number":734,"context_line":"                         \"is too large. Please specify a smaller prefix\") %"},{"line_number":735,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":736,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":737,"context_line":"            LOG.debug(_(\"Validation for cidr %s failed - prefix length is \""},{"line_number":738,"context_line":"                        \"too large.\"), new_subnet_cidr)"},{"line_number":739,"context_line":"            raise q_exc.InvalidInput(error_message\u003derr_msg)"},{"line_number":740,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2BgmY%3D","line":737,"in_reply_to":"AAAAUH%2F%2Bgqk%3D","updated":"2014-01-27 21:34:18.000000000","message":"I floated this review to address this.  Paul, go ahead and change this back to error and I\u0027ll be okay with that.\n\nhttps://review.openstack.org/69037","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"524535c8263177bae2cbcd9c8bbe0ba8305b2480","unresolved":false,"context_lines":[{"line_number":734,"context_line":"                         \"is too large. Please specify a smaller prefix\") %"},{"line_number":735,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":736,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":737,"context_line":"            LOG.debug(_(\"Validation for cidr %s failed - prefix length is \""},{"line_number":738,"context_line":"                        \"too large.\"), new_subnet_cidr)"},{"line_number":739,"context_line":"            raise q_exc.InvalidInput(error_message\u003derr_msg)"},{"line_number":740,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2BixI%3D","line":737,"in_reply_to":"AAAAUH%2F%2Bi3Y%3D","updated":"2014-01-24 15:30:14.000000000","message":"yeah, but now it is inconsistent with #754 and _validate_allocation_pools() method. I\u0027d set error level here for consistency and file a separate bug to fix error level in both these methods","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"5671a95d9e7c1e47d9a3286f6b6c55e152d495fb","unresolved":false,"context_lines":[{"line_number":734,"context_line":"                         \"is too large. Please specify a smaller prefix\") %"},{"line_number":735,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":736,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":737,"context_line":"            LOG.debug(_(\"Validation for cidr %s failed - prefix length is \""},{"line_number":738,"context_line":"                        \"too large.\"), new_subnet_cidr)"},{"line_number":739,"context_line":"            raise q_exc.InvalidInput(error_message\u003derr_msg)"},{"line_number":740,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2Bgqk%3D","line":737,"in_reply_to":"AAAAUH%2F%2BixI%3D","updated":"2014-01-24 22:33:21.000000000","message":"What Oleg suggests is fine with me.  I didn\u0027t spot the inconsistency.  I\u0027ll file a bug and fix it up since I made the original comment.","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"e264677071b3453668ee8a03e87d5648916ae186","unresolved":false,"context_lines":[{"line_number":734,"context_line":"                         \"is too large. Please specify a smaller prefix\") %"},{"line_number":735,"context_line":"                       {\u0027cidr\u0027: new_subnet_cidr,"},{"line_number":736,"context_line":"                        \u0027network_name\u0027: network.name})"},{"line_number":737,"context_line":"            LOG.debug(_(\"Validation for cidr %s failed - prefix length is \""},{"line_number":738,"context_line":"                        \"too large.\"), new_subnet_cidr)"},{"line_number":739,"context_line":"            raise q_exc.InvalidInput(error_message\u003derr_msg)"},{"line_number":740,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2Bi3Y%3D","line":737,"in_reply_to":"AAAAUH%2F%2Bkuc%3D","updated":"2014-01-24 15:13:03.000000000","message":"Also in patch set 1, it was deemed that error should be reserved for things that are wrong in the code, not things that are failing because of bad user input.","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"}],"neutron/tests/unit/test_db_plugin.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d0093d071a24d66b151dbb21c1085f9a4e29c20c","unresolved":false,"context_lines":[{"line_number":1157,"context_line":"                                 data[\u0027port\u0027][\u0027fixed_ips\u0027])"},{"line_number":1158,"context_line":""},{"line_number":1159,"context_line":"    def test_no_more_port_exception(self):"},{"line_number":1160,"context_line":"        with self.subnet(cidr\u003d\u002710.0.0.0/31\u0027) as subnet:"},{"line_number":1161,"context_line":"            id \u003d subnet[\u0027subnet\u0027][\u0027network_id\u0027]"},{"line_number":1162,"context_line":"            res \u003d self._create_port(self.fmt, id)"},{"line_number":1163,"context_line":"            data \u003d self.deserialize(self.fmt, res)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BnBs%3D","line":1160,"updated":"2014-01-23 22:13:32.000000000","message":"Since you shouldn\u0027t allow a /31 either, this test won\u0027t work anymore the way it is written.  You\u0027ll have to use a /30 and a port creation will work.  You might have to run 2-3 port creates to get the IpAddressGenerationFailure.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"d5970f890da0eb642b71077f872fa0c582a38b3b","unresolved":false,"context_lines":[{"line_number":1157,"context_line":"                                 data[\u0027port\u0027][\u0027fixed_ips\u0027])"},{"line_number":1158,"context_line":""},{"line_number":1159,"context_line":"    def test_no_more_port_exception(self):"},{"line_number":1160,"context_line":"        with self.subnet(cidr\u003d\u002710.0.0.0/31\u0027) as subnet:"},{"line_number":1161,"context_line":"            id \u003d subnet[\u0027subnet\u0027][\u0027network_id\u0027]"},{"line_number":1162,"context_line":"            res \u003d self._create_port(self.fmt, id)"},{"line_number":1163,"context_line":"            data \u003d self.deserialize(self.fmt, res)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bm3g%3D","line":1160,"in_reply_to":"AAAAUH%2F%2BnBs%3D","updated":"2014-01-23 22:42:14.000000000","message":"Working on that now, thanks!","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"59c9d89ab0bab27056647edfcd8b0e3ea574ce4b","unresolved":false,"context_lines":[{"line_number":1183,"context_line":"                       \u0027net1 only contains a single valid IP. Please specify \u0027"},{"line_number":1184,"context_line":"                       \u0027a larger subnet range\u0027)"},{"line_number":1185,"context_line":"            msg \u003d str(q_exc.InvalidInput(error_message\u003derr_msg))"},{"line_number":1186,"context_line":"            self.assertEqual(msg, data[\u0027NeutronError\u0027][\u0027message\u0027])"},{"line_number":1187,"context_line":"            self.assertEqual(webob.exc.HTTPBadRequest.code, res.status_int)"},{"line_number":1188,"context_line":""},{"line_number":1189,"context_line":"    def test_update_port_update_ip(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BnQs%3D","line":1186,"updated":"2014-01-23 21:31:31.000000000","message":"Concerned about the brittleness of the test, depending on the message syntax.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"d5970f890da0eb642b71077f872fa0c582a38b3b","unresolved":false,"context_lines":[{"line_number":1183,"context_line":"                       \u0027net1 only contains a single valid IP. Please specify \u0027"},{"line_number":1184,"context_line":"                       \u0027a larger subnet range\u0027)"},{"line_number":1185,"context_line":"            msg \u003d str(q_exc.InvalidInput(error_message\u003derr_msg))"},{"line_number":1186,"context_line":"            self.assertEqual(msg, data[\u0027NeutronError\u0027][\u0027message\u0027])"},{"line_number":1187,"context_line":"            self.assertEqual(webob.exc.HTTPBadRequest.code, res.status_int)"},{"line_number":1188,"context_line":""},{"line_number":1189,"context_line":"    def test_update_port_update_ip(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bm3k%3D","line":1186,"in_reply_to":"AAAAUH%2F%2BnFQ%3D","updated":"2014-01-23 22:42:14.000000000","message":"In the next changeset, I\u0027m just asserting the exception name is InvalidInput.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d0093d071a24d66b151dbb21c1085f9a4e29c20c","unresolved":false,"context_lines":[{"line_number":1183,"context_line":"                       \u0027net1 only contains a single valid IP. Please specify \u0027"},{"line_number":1184,"context_line":"                       \u0027a larger subnet range\u0027)"},{"line_number":1185,"context_line":"            msg \u003d str(q_exc.InvalidInput(error_message\u003derr_msg))"},{"line_number":1186,"context_line":"            self.assertEqual(msg, data[\u0027NeutronError\u0027][\u0027message\u0027])"},{"line_number":1187,"context_line":"            self.assertEqual(webob.exc.HTTPBadRequest.code, res.status_int)"},{"line_number":1188,"context_line":""},{"line_number":1189,"context_line":"    def test_update_port_update_ip(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BnFQ%3D","line":1186,"in_reply_to":"AAAAUH%2F%2BnQs%3D","updated":"2014-01-23 22:13:32.000000000","message":"I question the value of this assert at all thought since you\u0027re not hard-coding the message it shouldn\u0027t be brittle.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"d5970f890da0eb642b71077f872fa0c582a38b3b","unresolved":false,"context_lines":[{"line_number":1183,"context_line":"                       \u0027net1 only contains a single valid IP. Please specify \u0027"},{"line_number":1184,"context_line":"                       \u0027a larger subnet range\u0027)"},{"line_number":1185,"context_line":"            msg \u003d str(q_exc.InvalidInput(error_message\u003derr_msg))"},{"line_number":1186,"context_line":"            self.assertEqual(msg, data[\u0027NeutronError\u0027][\u0027message\u0027])"},{"line_number":1187,"context_line":"            self.assertEqual(webob.exc.HTTPBadRequest.code, res.status_int)"},{"line_number":1188,"context_line":""},{"line_number":1189,"context_line":"    def test_update_port_update_ip(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2Bm3s%3D","line":1186,"in_reply_to":"AAAAUH%2F%2BnQs%3D","updated":"2014-01-23 22:42:14.000000000","message":"I\u0027ve made this more robust for the next changeset.","commit_id":"98a39ab67aa61d19e401bd03ade37a100fa7431b"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"ee73ef3555f62125882726cec392286e77d6ae48","unresolved":false,"context_lines":[{"line_number":1177,"context_line":"                                      cidr\u003d\u002710.0.0.0/31\u0027,"},{"line_number":1178,"context_line":"                                      gateway_ip\u003dATTR_NOT_SPECIFIED,"},{"line_number":1179,"context_line":"                                      tenant_id\u003dnet[\u0027network\u0027][\u0027tenant_id\u0027],"},{"line_number":1180,"context_line":"                                      allocation_pools\u003dNone,"},{"line_number":1181,"context_line":"                                      ip_version\u003d4,"},{"line_number":1182,"context_line":"                                      enable_dhcp\u003dTrue,"},{"line_number":1183,"context_line":"                                      dns_nameservers\u003dNone,"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2BkqQ%3D","line":1180,"updated":"2014-01-24 09:08:22.000000000","message":"Do you really need to specify these None arguments?","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"},{"author":{"_account_id":9623,"name":"Paul Ward","email":"wpward@linux.vnet.ibm.com","username":"wpward"},"change_message_id":"e264677071b3453668ee8a03e87d5648916ae186","unresolved":false,"context_lines":[{"line_number":1177,"context_line":"                                      cidr\u003d\u002710.0.0.0/31\u0027,"},{"line_number":1178,"context_line":"                                      gateway_ip\u003dATTR_NOT_SPECIFIED,"},{"line_number":1179,"context_line":"                                      tenant_id\u003dnet[\u0027network\u0027][\u0027tenant_id\u0027],"},{"line_number":1180,"context_line":"                                      allocation_pools\u003dNone,"},{"line_number":1181,"context_line":"                                      ip_version\u003d4,"},{"line_number":1182,"context_line":"                                      enable_dhcp\u003dTrue,"},{"line_number":1183,"context_line":"                                      dns_nameservers\u003dNone,"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAUH%2F%2Bi3E%3D","line":1180,"in_reply_to":"AAAAUH%2F%2BkqQ%3D","updated":"2014-01-24 15:13:03.000000000","message":"Probably not.  I will remove these in the next patch set, which I\u0027ll need to do for some jenkins failures.","commit_id":"13d16ed0c68aa4d3c18bd323e87c1a51cfbae78f"}]}
