)]}'
{"neutron/tests/unit/db/test_db_base_plugin_v2.py":[{"author":{"_account_id":14615,"name":"Sergey Belous","email":"belous.py@gmail.com","username":"sbelous"},"change_message_id":"8088653cf8280532b8173a2e0439c1b3b7151b0d","unresolved":false,"context_lines":[{"line_number":3405,"context_line":"    def test_create_subnet_ipv6_pd_gw_values(self):"},{"line_number":3406,"context_line":"        cidr \u003d constants.PROVISIONAL_IPV6_PD_PREFIX"},{"line_number":3407,"context_line":"        # Gateway is last IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3408,"context_line":"        gateway \u003d \u0027::ffff:ffff:ffff:ffff\u0027"},{"line_number":3409,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: \u0027::1\u0027,"},{"line_number":3410,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:fffe\u0027}]"},{"line_number":3411,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_4851ab0d","line":3408,"updated":"2015-08-18 13:50:54.000000000","message":"Should we do the same here?","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":14615,"name":"Sergey Belous","email":"belous.py@gmail.com","username":"sbelous"},"change_message_id":"9288cf8555292a9ef8671384b300d287cdaf184f","unresolved":false,"context_lines":[{"line_number":3405,"context_line":"    def test_create_subnet_ipv6_pd_gw_values(self):"},{"line_number":3406,"context_line":"        cidr \u003d constants.PROVISIONAL_IPV6_PD_PREFIX"},{"line_number":3407,"context_line":"        # Gateway is last IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3408,"context_line":"        gateway \u003d \u0027::ffff:ffff:ffff:ffff\u0027"},{"line_number":3409,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: \u0027::1\u0027,"},{"line_number":3410,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:fffe\u0027}]"},{"line_number":3411,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_a8fac7bb","line":3408,"in_reply_to":"fa1b9901_4851ab0d","updated":"2015-08-18 13:55:08.000000000","message":"On line 3409, I mean :)","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fd92cd01ae13deb6c13026f5e39e2374855dbe5f","unresolved":false,"context_lines":[{"line_number":3405,"context_line":"    def test_create_subnet_ipv6_pd_gw_values(self):"},{"line_number":3406,"context_line":"        cidr \u003d constants.PROVISIONAL_IPV6_PD_PREFIX"},{"line_number":3407,"context_line":"        # Gateway is last IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3408,"context_line":"        gateway \u003d \u0027::ffff:ffff:ffff:ffff\u0027"},{"line_number":3409,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: \u0027::1\u0027,"},{"line_number":3410,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:fffe\u0027}]"},{"line_number":3411,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_1e4bd1b1","line":3408,"in_reply_to":"fa1b9901_a8fac7bb","updated":"2015-08-19 02:33:31.000000000","message":"::1 is rather special and i don\u0027t think there are platforms which treat it as an ipv4-compat address.  at least OSX doesn\u0027t.","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"7056a05a3c2b9290f62107d4ad75b0742ebdffe3","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_0e1c20c0","line":3420,"updated":"2015-08-14 16:43:43.000000000","message":"In this case ::2 is a partial IPv6 address and not a mapped address, so we don\u0027t want it treated that way.  Where is the code that\u0027s having trouble with this, I think that\u0027s where any fix should go, it might just need to specify the version to the netaddr calls ?","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"cb9c9a5877ae7768195b244d45a23ef5ad772225","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_b16f64fb","line":3420,"in_reply_to":"1a4dcd0f_0e1c20c0","updated":"2015-08-17 03:42:00.000000000","message":"it\u0027s about compat addresses, not mapped ones.\nsee RFC 4291 2.5.5.1.\nas it\u0027s deprecated, its treatment seems vary on platforms.","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"8d868bc2886cfa9ac17ec1a1230c9a1cb6fef765","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_57c4183f","line":3420,"in_reply_to":"1a4dcd0f_b16f64fb","updated":"2015-08-17 17:45:19.000000000","message":"Sorry, I don\u0027t know how I read mapped instead of compat.  But we don\u0027t want to pass \u0027::0.0.0.2\u0027 here either, right?  Isn\u0027t the bug on the server side of this and not the test?","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6635,"name":"John Davidge","email":"john.davidge@rackspace.com","username":"john-davidge"},"change_message_id":"02b65ee9458f28f73c9b3b7c3555b280b75ede45","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_8e91009c","line":3420,"in_reply_to":"fa1b9901_136e7b01","updated":"2015-08-18 17:50:14.000000000","message":"That would be great if you don\u0027t mind. I don\u0027t have a test environment setup on my mac.","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6635,"name":"John Davidge","email":"john.davidge@rackspace.com","username":"john-davidge"},"change_message_id":"f6c90d983acb45d80b396111b9e958673ec3b22e","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_73d7b723","line":3420,"in_reply_to":"fa1b9901_1858da31","updated":"2015-08-18 17:40:18.000000000","message":"Where exactly is the test failing? Do you have a stacktrace? I though I had squashed this bug here https://review.openstack.org/#/c/199176/","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6635,"name":"John Davidge","email":"john.davidge@rackspace.com","username":"john-davidge"},"change_message_id":"a4a2efe50c124690db9e79e1581bd696701b74b4","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_afc86223","line":3420,"in_reply_to":"fa1b9901_1ef9914d","updated":"2015-08-19 09:30:15.000000000","message":"Hmm, it\u0027s a shame that the ip_version option doesn\u0027t fix this across all platforms. I\u0027m not sure I\u0027m comfortable with this solution though. Do we want our API to behave differently depending on the system it\u0027s running on? I\u0027d prefer a step to convert the ipv4 compat addresses into ipv6 before they\u0027re returned.","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e14fdd1e7170d7b9d6be0930ea7ae956af9e5f5c","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_cbdb911a","line":3420,"in_reply_to":"fa1b9901_57c4183f","updated":"2015-08-18 02:07:49.000000000","message":"how is it a bug?  ::2 and ::0.0.0.2 are the same address.","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e645f26463f7adee455c431decb59503bf0ab4be","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_b8541c21","line":3420,"in_reply_to":"fa1b9901_611016a9","updated":"2015-08-19 14:57:35.000000000","message":"The ipaddr module seems to be better at this, same result on both Linux and OSX:\n\n\u003e\u003e\u003e import ipaddr\n\u003e\u003e\u003e ipaddr.IPAddress(\u0027::2\u0027)\nIPv6Address(\u0027::2\u0027)\n\u003e\u003e\u003e str(ipaddr.IPAddress(\u0027::2\u0027))\n\u0027::2\u0027\n\ninet_ntop() is a real pain on OSX, it *always* wants to use compat in this case :(","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"833632b2c01fde6c50e12b8fb92172c4f6c8c7d4","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_136e7b01","line":3420,"in_reply_to":"fa1b9901_73d7b723","updated":"2015-08-18 17:46:37.000000000","message":"John - title says it fails on OSX, I can boot my laptop and see if I can reproduce it.  I know there\u0027s differences in the netaddr library there as I\u0027ve fixed another bug in the past.","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"bdfbb7dce63b3bf60cf549a27e783d4ae27fbf16","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_e019847a","line":3420,"in_reply_to":"fa1b9901_75a3f84f","updated":"2015-08-19 11:14:07.000000000","message":"well, i don\u0027t follow.  is the api expected to handle ipv4-compat addresses in the first place?","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6635,"name":"John Davidge","email":"john.davidge@rackspace.com","username":"john-davidge"},"change_message_id":"c75d8495e25acab919cd5ca2acb7f48b003b471d","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_75a3f84f","line":3420,"in_reply_to":"fa1b9901_8c5fa9e4","updated":"2015-08-19 11:09:28.000000000","message":"It wouldn\u0027t have to be a big change, just a simple function that can take an ipv4 compat address and return an ipv6 address. I think that this test failure is telling us that something is wrong with the codebase when run on OSX, not that we should change our expectations of the API.","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0a0c58eaa289ecae0da978e3fdd84bb38c40e38a","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_f04dfa72","line":3420,"in_reply_to":"fa1b9901_8e91009c","updated":"2015-08-18 18:11:54.000000000","message":"It fails, this is a paste of the one from below.\n\n    testtools.matchers._impl.MismatchError: !\u003d:\n    reference \u003d [{u\u0027end\u0027: u\u0027::ffff:ffff:ffff:fffe\u0027, u\u0027start\u0027: u\u0027::0.0.0.2\u0027}]\n    actual    \u003d [{\u0027end\u0027: \u0027::ffff:ffff:ffff:fffe\u0027, \u0027start\u0027: \u0027::2\u0027}]\n\nHmm, so the server is returning ::2 ?","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f103ceb512dea7ef6bd08f139aa8a5c02a6423cb","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_8c5fa9e4","line":3420,"in_reply_to":"fa1b9901_afc86223","updated":"2015-08-19 10:00:55.000000000","message":"John,\n\nare you effectively suggesting to implement inet_ntop\nby ourselves?\ni don\u0027t think it\u0027s worth the trouble as the use of ipv4-compat addresses is not the point of these tests.","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fd92cd01ae13deb6c13026f5e39e2374855dbe5f","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_1ef9914d","line":3420,"in_reply_to":"fa1b9901_b0fe9736","updated":"2015-08-19 02:33:31.000000000","message":"Brian,\n\nthank you for confirming, it\u0027s same as what i saw here.\n\nwe can\u0027t control it as it\u0027s a property of inet_ntop in the underlying operating system.\n(unless we want to implement our own inet_ntop)","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"afbadbfe9468d6413b9ca96343f2a2ff1ec7b619","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_e68f5cca","line":3420,"in_reply_to":"fa1b9901_c691f89a","updated":"2015-08-19 12:16:38.000000000","message":"i don\u0027t see it an imporant difference because,\nafter all, it returns the same address.\n\ndo you prefer to prohibit the use of addresses in the range, so that the api will never returns them?","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"375aa638edf27b2c149cf8199b4769d846297967","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_1858da31","line":3420,"in_reply_to":"fa1b9901_cbdb911a","updated":"2015-08-18 17:09:45.000000000","message":"Let me try to explain, maybe I\u0027m wrong.\n\nThis test was added recently in https://review.openstack.org/#/c/158697 along with code in neutron/db/db_base_plugin_v2.py  This test is calling _update_allocation_pools() which is doing what you propose here:\n\nreturn [{\u0027start\u0027: str(netaddr.IPAddress(p.first,\t\n\t\t\t                                      subnet[\u0027ip_version\u0027])),\n\t\t\t       \u0027end\u0027: str(netaddr.IPAddress(p.last, subnet[\u0027ip_version\u0027]))}\n\nMy question is, is it the code in _update_allocation_pools() that is wrong?  Does it need to do this conversion and/or is there a way for it to force ::2 instead of ::0.0.0.2 ?\n\nI\u0027ll add John Davidge to the review as he did the IPv6 PD work and might have some insight.","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6635,"name":"John Davidge","email":"john.davidge@rackspace.com","username":"john-davidge"},"change_message_id":"eaa38cd441cc3906d14a907e89e4e967a75da7ea","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_c691f89a","line":3420,"in_reply_to":"fa1b9901_e019847a","updated":"2015-08-19 11:59:14.000000000","message":"I don\u0027t know if it handles receiving them, but in this case we\u0027re talking about returning them. If I understand correctly you\u0027re suggesting that we should update this test so that it doesn\u0027t matter whether the API returns an ipv4 compat address or an ipv6 address. I think we should have only one expected outcome for a given api call, regardless of the underlying system that the cloud is running on. This is to ensure cross compatibility of applications.","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":6635,"name":"John Davidge","email":"john.davidge@rackspace.com","username":"john-davidge"},"change_message_id":"15e424442a29cc63078f8d778e9e08c3b839f0e8","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_611016a9","line":3420,"in_reply_to":"fa1b9901_e68f5cca","updated":"2015-08-19 12:30:27.000000000","message":"No, we definitely shouldn\u0027t limit the address range. Although ::2 and ::0.0.0.2 are the same address they are formatted differently and could cause compatibility issues for applications that are expecting a purely ipv6 address. I don\u0027t think it would be a lot of work to have the api always return an ipv6 address in these situations, and I prefer that solution to a non-deterministic api.","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"3b1181e8f5b1a7dd85d611c9fe6c98513a041962","unresolved":false,"context_lines":[{"line_number":3417,"context_line":"                                 ipv6_address_mode\u003dconstants.DHCPV6_STATELESS)"},{"line_number":3418,"context_line":"        # Gateway is first IP in IPv6 DHCPv6 Stateless subnet"},{"line_number":3419,"context_line":"        gateway \u003d \u0027::1\u0027"},{"line_number":3420,"context_line":"        allocation_pools \u003d [{\u0027start\u0027: str(netaddr.IPAddress(\u0027::2\u0027)),"},{"line_number":3421,"context_line":"                             \u0027end\u0027: \u0027::ffff:ffff:ffff:ffff\u0027}]"},{"line_number":3422,"context_line":"        expected \u003d {\u0027gateway_ip\u0027: gateway,"},{"line_number":3423,"context_line":"                    \u0027cidr\u0027: cidr,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa1b9901_b0fe9736","line":3420,"in_reply_to":"fa1b9901_f04dfa72","updated":"2015-08-18 23:40:53.000000000","message":"I think I was wrong on my reference - it\u0027s not _update_allocation_pools(), but either way there doesn\u0027t seem to be a way to have the netaddr library always return \u0027::2\u0027 in this case as there is no flag to force it.  So in these edge cases we\u0027re stuck doing these test hacks.\n\nI\u0027ll wait for John to take a look tomorrow, but Yamamoto, thanks for being patient!","commit_id":"211589acad2f3e400cf4abddef981ac016eb8cc3"}]}
