)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"d24744a4e1df6d442bc98ecb3b4694f003bd005e","unresolved":false,"context_lines":[{"line_number":14,"context_line":"So we can point a major dns nameserver when create a subnet which"},{"line_number":15,"context_line":"has dns nameserver. We can also update major dnsnameserver if"},{"line_number":16,"context_line":"the major dns nameserver in old dns nameservers."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: Id937aea411397d39370368a4eb45be26c4eefa9e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ba3cc151_7fec8f92","line":17,"updated":"2015-07-10 15:01:20.000000000","message":"Missing Closes-Bug: #1218629","commit_id":"e59b6c53261fe11c5f4d7325b47112d45ea49e00"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"17ed71a10ee51f1c26937b6b7c7f7da3303b3333","unresolved":false,"context_lines":[{"line_number":13,"context_line":"Add a new column named \u0027order\u0027 in table \u0027dnsnameservers\u0027 and"},{"line_number":14,"context_line":"add nameserver into DB one by one."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Close-Bug: https://bugs.launchpad.net/neutron/+bug/1218629"},{"line_number":17,"context_line":"Change-Id: Id937aea411397d39370368a4eb45be26c4eefa9e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"9a41bdd9_962b5594","line":16,"updated":"2015-07-13 15:00:28.000000000","message":"Closes-Bug: #1218629","commit_id":"59fb816a5d03079356aea1e30a8fcee1e4f0e46d"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"f3c211ffd591e5d7c409a3ac16bc390b6b7d323f","unresolved":false,"context_lines":[{"line_number":13,"context_line":"Add a new column named \u0027order\u0027 in table \u0027dnsnameservers\u0027 and"},{"line_number":14,"context_line":"add nameserver into DB one by one."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Close-Bug: https://bugs.launchpad.net/neutron/+bug/1218629"},{"line_number":17,"context_line":"Change-Id: Id937aea411397d39370368a4eb45be26c4eefa9e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"9a41bdd9_b921aa4f","line":16,"in_reply_to":"9a41bdd9_962b5594","updated":"2015-07-13 15:11:24.000000000","message":"+1","commit_id":"59fb816a5d03079356aea1e30a8fcee1e4f0e46d"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"743ff647625c7374808222c606e628f494e2fbd3","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     changzhi \u003cchangzhi@unitedstack.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-14 13:54:56 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add dns server prioritization for subnet"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, there is no dns servers prioritization for subnets"},{"line_number":10,"context_line":"for Neutron. Generally speaking, it is useful that dns servers"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"9a41bdd9_f01ba519","line":7,"updated":"2015-07-14 06:34:13.000000000","message":"It seems the msg topic is outdated, \"Keep dns nameserver order consistency\" maybe better?","commit_id":"83d03dc256c8f1d57d7c3f9067539351d2033dcc"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5601a0932cb6160095d9fecfdda285ce6c8ea0db","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     changzhi \u003cchangzhi@unitedstack.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-14 13:54:56 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add dns server prioritization for subnet"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, there is no dns servers prioritization for subnets"},{"line_number":10,"context_line":"for Neutron. Generally speaking, it is useful that dns servers"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"9a41bdd9_508611ba","line":7,"in_reply_to":"9a41bdd9_f01ba519","updated":"2015-07-14 06:38:23.000000000","message":"Done","commit_id":"83d03dc256c8f1d57d7c3f9067539351d2033dcc"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"743ff647625c7374808222c606e628f494e2fbd3","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, there is no dns servers prioritization for subnets"},{"line_number":10,"context_line":"for Neutron. Generally speaking, it is useful that dns servers"},{"line_number":11,"context_line":"has prioritization."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Add a new column named \u0027order\u0027 in table \u0027dnsnameservers\u0027 and"},{"line_number":14,"context_line":"add nameserver into DB one by one."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"9a41bdd9_b0bbdde4","line":11,"updated":"2015-07-14 06:34:13.000000000","message":"same to the topic","commit_id":"83d03dc256c8f1d57d7c3f9067539351d2033dcc"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5601a0932cb6160095d9fecfdda285ce6c8ea0db","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, there is no dns servers prioritization for subnets"},{"line_number":10,"context_line":"for Neutron. Generally speaking, it is useful that dns servers"},{"line_number":11,"context_line":"has prioritization."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Add a new column named \u0027order\u0027 in table \u0027dnsnameservers\u0027 and"},{"line_number":14,"context_line":"add nameserver into DB one by one."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"9a41bdd9_f09405e3","line":11,"in_reply_to":"9a41bdd9_b0bbdde4","updated":"2015-07-14 06:38:23.000000000","message":"Done","commit_id":"83d03dc256c8f1d57d7c3f9067539351d2033dcc"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"65c8c9599ae2a2e77cfafba2753ac1db7a6b78df","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, there is no dns servers prioritization for subnets"},{"line_number":10,"context_line":"for Neutron. Generally speaking, it is useful that keep dns"},{"line_number":11,"context_line":"nameserver order consistency."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Add a new column named \u0027order\u0027 in table \u0027dnsnameservers\u0027 and"},{"line_number":14,"context_line":"add nameserver into DB one by one."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":20,"id":"9a41bdd9_46958830","line":11,"updated":"2015-07-16 02:13:28.000000000","message":"Since you have to update the patch, please consider making the above more readable:\nGenerally speaking, it is useful to keep the order of dns nameservers consistent.","commit_id":"56f37ffdacd2e06c71380b6983a472ca8a5d450e"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5c6784da4343913ba612e7489f972c263217e636","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, there is no dns servers prioritization for subnets"},{"line_number":10,"context_line":"for Neutron. Generally speaking, it is useful that keep dns"},{"line_number":11,"context_line":"nameserver order consistency."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Add a new column named \u0027order\u0027 in table \u0027dnsnameservers\u0027 and"},{"line_number":14,"context_line":"add nameserver into DB one by one."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":20,"id":"9a41bdd9_09a7910b","line":11,"in_reply_to":"9a41bdd9_46958830","updated":"2015-07-16 02:39:55.000000000","message":"Done","commit_id":"56f37ffdacd2e06c71380b6983a472ca8a5d450e"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ea6947a27eeb85f98bfd7abcaf9d23319cdc1a79","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Add a new column named \u0027order\u0027 in table \u0027dnsnameservers\u0027 and"},{"line_number":14,"context_line":"add nameserver into DB one by one."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1218629"},{"line_number":17,"context_line":"Change-Id: Id937aea411397d39370368a4eb45be26c4eefa9e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":20,"id":"9a41bdd9_fb4238ad","line":15,"updated":"2015-07-15 22:45:34.000000000","message":"I recommend changing neutron/db/db_base_plugin_common.DbBasePluginCommon._get_dns_by_subnet to sort by the new order column, or we might end up with very strange bugs in the future.","commit_id":"56f37ffdacd2e06c71380b6983a472ca8a5d450e"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5c6784da4343913ba612e7489f972c263217e636","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Add a new column named \u0027order\u0027 in table \u0027dnsnameservers\u0027 and"},{"line_number":14,"context_line":"add nameserver into DB one by one."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1218629"},{"line_number":17,"context_line":"Change-Id: Id937aea411397d39370368a4eb45be26c4eefa9e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":20,"id":"9a41bdd9_c9ad29ea","line":15,"in_reply_to":"9a41bdd9_fb4238ad","updated":"2015-07-16 02:39:55.000000000","message":"Done","commit_id":"56f37ffdacd2e06c71380b6983a472ca8a5d450e"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"72ca75653bb3b8a922a0f743e662012844037807","unresolved":false,"context_lines":[{"line_number":13,"context_line":"nameservers consistent. Add a new column named \u0027order\u0027 in table"},{"line_number":14,"context_line":"\u0027dnsnameservers\u0027 and add nameserver into DB one by one."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1218629"},{"line_number":17,"context_line":"Change-Id: Id937aea411397d39370368a4eb45be26c4eefa9e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":26,"id":"3a50d1a3_c8f655d7","line":16,"updated":"2015-07-20 08:04:15.000000000","message":"i think that we need a BP for this. It is not clear how the order is set. I think that is something that we need to discuss more.","commit_id":"2b133a3c9d01dbea91bf8f370d585ac5b452abe0"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"a86bf5fdac205c872451382c1b2ab2d914b29fa9","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1218629"},{"line_number":17,"context_line":"Change-Id: Id937aea411397d39370368a4eb45be26c4eefa9e"},{"line_number":18,"context_line":"Implements: bp/keep-dns-nameserver-orderconsistency"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":27,"id":"3a50d1a3_f5c1a581","line":18,"updated":"2015-07-20 09:20:49.000000000","message":"@Zhi Chang, it should be \n\"Implements: blueprint keep-dns-nameserver-orderconsistency\"\n\nAlso, it would be better to move the line above Change-Id (i.e., line number 15)","commit_id":"ae0db0351d95ad9c71e8b73298451d5b485ca98a"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"d396e3223f2da6acd7c540b942960bd774fffa4b","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1218629"},{"line_number":17,"context_line":"Change-Id: Id937aea411397d39370368a4eb45be26c4eefa9e"},{"line_number":18,"context_line":"Implements: bp/keep-dns-nameserver-orderconsistency"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":27,"id":"3a50d1a3_0b12f462","line":18,"in_reply_to":"3a50d1a3_d8c4e093","updated":"2015-07-20 09:53:44.000000000","message":"Done","commit_id":"ae0db0351d95ad9c71e8b73298451d5b485ca98a"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"d396e3223f2da6acd7c540b942960bd774fffa4b","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1218629"},{"line_number":17,"context_line":"Change-Id: Id937aea411397d39370368a4eb45be26c4eefa9e"},{"line_number":18,"context_line":"Implements: bp/keep-dns-nameserver-orderconsistency"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":27,"id":"3a50d1a3_4b18fc84","line":18,"in_reply_to":"3a50d1a3_f5c1a581","updated":"2015-07-20 09:53:44.000000000","message":"Done","commit_id":"ae0db0351d95ad9c71e8b73298451d5b485ca98a"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"1f6c5d95c91792fe81755dd6d3cfd10e4c2a4a2d","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1218629"},{"line_number":17,"context_line":"Change-Id: Id937aea411397d39370368a4eb45be26c4eefa9e"},{"line_number":18,"context_line":"Implements: bp/keep-dns-nameserver-orderconsistency"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":27,"id":"3a50d1a3_d8c4e093","line":18,"in_reply_to":"3a50d1a3_f5c1a581","updated":"2015-07-20 09:25:21.000000000","message":"You can have a look at the following page for more details - http://docs.openstack.org/infra/manual/developers.html#committing-a-change","commit_id":"ae0db0351d95ad9c71e8b73298451d5b485ca98a"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"13d9f072012d1e737ed4f6525220d049d8005f53","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Currently, there is no dns servers prioritization for subnets"},{"line_number":10,"context_line":"for Neutron."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Generally speaking, it is useful to keep the order of dns"},{"line_number":13,"context_line":"nameservers consistent. Add a new column named \u0027order\u0027 in table"},{"line_number":14,"context_line":"\u0027dnsnameservers\u0027 and add nameserver into DB one by one."},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":47,"id":"3a50d1a3_2f71caa8","line":12,"updated":"2015-07-26 01:25:07.000000000","message":"Can we elaborate or provide some link/s which explains why the order could be useful?","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"}],"doc/source/devref/dns_order.rst":[{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"234e4d195165b58c7b9a31d8e8e26412a4b061e0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Keep DNS nameserver order consistency in Neutron"},{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"This page discusses the order of DNS nameservers for subnet in Neutron."}],"source_content_type":"text/x-rst","patch_set":29,"id":"3a50d1a3_1de8e87b","line":1,"updated":"2015-07-20 14:52:08.000000000","message":"In general, I\u0027d prefer that rather than document the current behavior (e.g. no ordering), this file should document the behavior you\u0027re modifying. In other words, please change this to talk about how once this patch lands, you are introducing ordering here.","commit_id":"3ba93d80810cfc62657e58d54a09816efd38ac7e"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"234e4d195165b58c7b9a31d8e8e26412a4b061e0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Keep DNS nameserver order consistency in Neutron"},{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"This page discusses the order of DNS nameservers for subnet in Neutron."},{"line_number":5,"context_line":"Currently, there is no dns servers prioritization for subnets."},{"line_number":6,"context_line":"Generally speaking, it is very useful to keep the order of dns nameservers consistent."},{"line_number":7,"context_line":""}],"source_content_type":"text/x-rst","patch_set":29,"id":"3a50d1a3_bd7454fd","line":4,"updated":"2015-07-20 14:52:08.000000000","message":"Replace \"subnet\" with \"subnets\".","commit_id":"3ba93d80810cfc62657e58d54a09816efd38ac7e"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"234e4d195165b58c7b9a31d8e8e26412a4b061e0","unresolved":false,"context_lines":[{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"This page discusses the order of DNS nameservers for subnet in Neutron."},{"line_number":5,"context_line":"Currently, there is no dns servers prioritization for subnets."},{"line_number":6,"context_line":"Generally speaking, it is very useful to keep the order of dns nameservers consistent."},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"Get subnet details info"}],"source_content_type":"text/x-rst","patch_set":29,"id":"3a50d1a3_3d5fe473","line":5,"updated":"2015-07-20 14:52:08.000000000","message":"Capitalize DNS.","commit_id":"3ba93d80810cfc62657e58d54a09816efd38ac7e"},{"author":{"_account_id":17096,"name":"Aditi Rajagopal","email":"arajagopal@us.ibm.com","username":"aditirajagopal"},"change_message_id":"c9b8a571abf172a2c7373c4b6a2c6ed2f3b5cbd5","unresolved":false,"context_lines":[{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"This page discusses the order of DNS nameservers for subnet in Neutron."},{"line_number":5,"context_line":"Currently, there is no dns servers prioritization for subnets."},{"line_number":6,"context_line":"Generally speaking, it is very useful to keep the order of dns nameservers consistent."},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"Get subnet details info"}],"source_content_type":"text/x-rst","patch_set":29,"id":"3a50d1a3_80eecf20","line":5,"in_reply_to":"3a50d1a3_3d5fe473","updated":"2015-07-20 15:01:28.000000000","message":"Echoing Kyle\u0027s comment - be sure to be consistent with your case use. Either use all lowercase, or all uppercase for DNS.","commit_id":"3ba93d80810cfc62657e58d54a09816efd38ac7e"},{"author":{"_account_id":17096,"name":"Aditi Rajagopal","email":"arajagopal@us.ibm.com","username":"aditirajagopal"},"change_message_id":"c9b8a571abf172a2c7373c4b6a2c6ed2f3b5cbd5","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"This page discusses the order of DNS nameservers for subnet in Neutron."},{"line_number":5,"context_line":"Currently, there is no dns servers prioritization for subnets."},{"line_number":6,"context_line":"Generally speaking, it is very useful to keep the order of dns nameservers consistent."},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"Get subnet details info"},{"line_number":9,"context_line":"-----------------------"}],"source_content_type":"text/x-rst","patch_set":29,"id":"3a50d1a3_a0be6bfd","line":6,"updated":"2015-07-20 15:01:28.000000000","message":"nit: this may seem obvious to everyone else, but it isn\u0027t clear to me why this is \"useful.\" Since this is a .rst, it would be worthwhile to flesh this out a bit more.","commit_id":"3ba93d80810cfc62657e58d54a09816efd38ac7e"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"234e4d195165b58c7b9a31d8e8e26412a4b061e0","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        | tenant_id        | 3868290ab10f417390acbb754160dbb2           |"},{"line_number":36,"context_line":"        +------------------+--------------------------------------------+"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Update subnet DNS nameservers "},{"line_number":39,"context_line":"-----------------------------"},{"line_number":40,"context_line":"::"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-rst","patch_set":29,"id":"3a50d1a3_fd517c63","line":38,"updated":"2015-07-20 14:52:08.000000000","message":"Whitespace at end of line 38, please remove.","commit_id":"3ba93d80810cfc62657e58d54a09816efd38ac7e"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"6af1ce6b294102220e8d8bd6a4702d9f8082c2d6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Keep DNS nameserver order consistency in Neutron"},{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"This page discusses the order of DNS nameservers for subnets in Neutron."}],"source_content_type":"text/x-rst","patch_set":34,"id":"3a50d1a3_ea5e4d11","line":1,"updated":"2015-07-21 16:12:45.000000000","message":"Nit: Capitalize each word in this title sequence.","commit_id":"34a67e849cee00a526dcf47afd658981300ec356"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"33186ea847b1270ea141c00b30191de443840788","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Keep DNS nameserver order consistency in Neutron"},{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"This page discusses the order of DNS nameservers for subnets in Neutron."}],"source_content_type":"text/x-rst","patch_set":34,"id":"3a50d1a3_eaededef","line":1,"in_reply_to":"3a50d1a3_ea5e4d11","updated":"2015-07-21 16:18:33.000000000","message":"Done","commit_id":"34a67e849cee00a526dcf47afd658981300ec356"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"6af1ce6b294102220e8d8bd6a4702d9f8082c2d6","unresolved":false,"context_lines":[{"line_number":4,"context_line":"This page discusses the order of DNS nameservers for subnets in Neutron."},{"line_number":5,"context_line":"Add DNS nameservers prioritization for subnets. The priority will be changed"},{"line_number":6,"context_line":"when we updated DNS nameservers for subnets, and the first DNS nameserver will"},{"line_number":7,"context_line":"have the highest priority, the last DNS nameserver will have the lowest priority."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Get subnet details info"},{"line_number":10,"context_line":"-----------------------"}],"source_content_type":"text/x-rst","patch_set":34,"id":"3a50d1a3_0a6a99b3","line":7,"updated":"2015-07-21 16:12:45.000000000","message":"Lets change lines 4-7 to read as follows:\n\n\"In Neutron subnets, DNS nameservers are given priority when created or updated. This means if you create a subnet with multiple DNS servers, the order will be retained and guests will receive the DNS servers in the order you created them in when the subnet was created. The same thing applies for update operations on subnets to add, remove, or update DNS servers.\"","commit_id":"34a67e849cee00a526dcf47afd658981300ec356"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"33186ea847b1270ea141c00b30191de443840788","unresolved":false,"context_lines":[{"line_number":4,"context_line":"This page discusses the order of DNS nameservers for subnets in Neutron."},{"line_number":5,"context_line":"Add DNS nameservers prioritization for subnets. The priority will be changed"},{"line_number":6,"context_line":"when we updated DNS nameservers for subnets, and the first DNS nameserver will"},{"line_number":7,"context_line":"have the highest priority, the last DNS nameserver will have the lowest priority."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Get subnet details info"},{"line_number":10,"context_line":"-----------------------"}],"source_content_type":"text/x-rst","patch_set":34,"id":"3a50d1a3_caf271d2","line":7,"in_reply_to":"3a50d1a3_0a6a99b3","updated":"2015-07-21 16:18:33.000000000","message":"Done","commit_id":"34a67e849cee00a526dcf47afd658981300ec356"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"6af1ce6b294102220e8d8bd6a4702d9f8082c2d6","unresolved":false,"context_lines":[{"line_number":6,"context_line":"when we updated DNS nameservers for subnets, and the first DNS nameserver will"},{"line_number":7,"context_line":"have the highest priority, the last DNS nameserver will have the lowest priority."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Get subnet details info"},{"line_number":10,"context_line":"-----------------------"},{"line_number":11,"context_line":"::"},{"line_number":12,"context_line":""}],"source_content_type":"text/x-rst","patch_set":34,"id":"3a50d1a3_aa9fe5b2","line":9,"updated":"2015-07-21 16:12:45.000000000","message":"Nit: Capitalize each word in this title sequence.","commit_id":"34a67e849cee00a526dcf47afd658981300ec356"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"33186ea847b1270ea141c00b30191de443840788","unresolved":false,"context_lines":[{"line_number":6,"context_line":"when we updated DNS nameservers for subnets, and the first DNS nameserver will"},{"line_number":7,"context_line":"have the highest priority, the last DNS nameserver will have the lowest priority."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Get subnet details info"},{"line_number":10,"context_line":"-----------------------"},{"line_number":11,"context_line":"::"},{"line_number":12,"context_line":""}],"source_content_type":"text/x-rst","patch_set":34,"id":"3a50d1a3_aabe05d2","line":9,"in_reply_to":"3a50d1a3_aa9fe5b2","updated":"2015-07-21 16:18:33.000000000","message":"Done","commit_id":"34a67e849cee00a526dcf47afd658981300ec356"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"6af1ce6b294102220e8d8bd6a4702d9f8082c2d6","unresolved":false,"context_lines":[{"line_number":37,"context_line":"        +------------------+--------------------------------------------+"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Update subnet DNS nameservers"},{"line_number":40,"context_line":"-----------------------------"},{"line_number":41,"context_line":"::"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    neutron subnet-update 1a2d261b-b233-3ab9-902e-88576a82afa6 \\"}],"source_content_type":"text/x-rst","patch_set":34,"id":"3a50d1a3_caba7123","line":40,"updated":"2015-07-21 16:12:45.000000000","message":"Nit: Capitalize each word in this title sequence.","commit_id":"34a67e849cee00a526dcf47afd658981300ec356"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"33186ea847b1270ea141c00b30191de443840788","unresolved":false,"context_lines":[{"line_number":37,"context_line":"        +------------------+--------------------------------------------+"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Update subnet DNS nameservers"},{"line_number":40,"context_line":"-----------------------------"},{"line_number":41,"context_line":"::"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    neutron subnet-update 1a2d261b-b233-3ab9-902e-88576a82afa6 \\"}],"source_content_type":"text/x-rst","patch_set":34,"id":"3a50d1a3_0ad0591e","line":40,"in_reply_to":"3a50d1a3_caba7123","updated":"2015-07-21 16:18:33.000000000","message":"Done","commit_id":"34a67e849cee00a526dcf47afd658981300ec356"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"80b715a69c1deb500bcc39b1a82a8cf5c930ad33","unresolved":false,"context_lines":[{"line_number":41,"context_line":"::"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    neutron subnet-update 1a2d261b-b233-3ab9-902e-88576a82afa6 \\"},{"line_number":44,"context_line":"    --dns_nameservers list\u003dtrue 3.3.3.3 2.2.2.2 1.1.1.1"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"The priority of DNS nameservers will be changed. The DNS nameserver \u00273.3.3.3\u0027 is the highest priority."},{"line_number":47,"context_line":"\u00272.2.2.2\u0027 is the secondly and \u00271.1.1.1\u0027 is more lower."}],"source_content_type":"text/x-rst","patch_set":35,"id":"3a50d1a3_6cc9e025","line":44,"updated":"2015-07-22 04:24:23.000000000","message":"Include the neutron subnet-show output showing the results of the subnet-update command.","commit_id":"1e2b6a60a4361c5a8b97377bb2efa55a26ef4cfe"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"6f50b6471eb7dd0b98447acc2de76e795b180e1d","unresolved":false,"context_lines":[{"line_number":41,"context_line":"::"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    neutron subnet-update 1a2d261b-b233-3ab9-902e-88576a82afa6 \\"},{"line_number":44,"context_line":"    --dns_nameservers list\u003dtrue 3.3.3.3 2.2.2.2 1.1.1.1"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"The priority of DNS nameservers will be changed. The DNS nameserver \u00273.3.3.3\u0027 is the highest priority."},{"line_number":47,"context_line":"\u00272.2.2.2\u0027 is the secondly and \u00271.1.1.1\u0027 is more lower."}],"source_content_type":"text/x-rst","patch_set":35,"id":"3a50d1a3_b8539ee1","line":44,"in_reply_to":"3a50d1a3_6cc9e025","updated":"2015-07-22 06:02:05.000000000","message":"Done","commit_id":"1e2b6a60a4361c5a8b97377bb2efa55a26ef4cfe"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"80b715a69c1deb500bcc39b1a82a8cf5c930ad33","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    --dns_nameservers list\u003dtrue 3.3.3.3 2.2.2.2 1.1.1.1"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"The priority of DNS nameservers will be changed. The DNS nameserver \u00273.3.3.3\u0027 is the highest priority."},{"line_number":47,"context_line":"\u00272.2.2.2\u0027 is the secondly and \u00271.1.1.1\u0027 is more lower."}],"source_content_type":"text/x-rst","patch_set":35,"id":"3a50d1a3_c7324df2","line":47,"updated":"2015-07-22 04:24:23.000000000","message":"Update lines 46-47 to be:\n\n\"As shown in above output, the order of the DNS nameservers has been updated. \n\nNew virtual machines deployed to this subnet will receive the DNS nameservers in this new priority order.\n\nExisting virtual machines that have already been deployed will not be immediately affected by changing the DNS nameserver order on the neutron subnet.\nVirtual machines that are configured to get their IP address via DHCP will detect the DNS nameserver order change when their DHCP lease expires or when the virtual machine is restarted.  \nExisting virtual machines configured with a static IP address will never detect the updated DNS nameserver order.\"","commit_id":"1e2b6a60a4361c5a8b97377bb2efa55a26ef4cfe"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"6f50b6471eb7dd0b98447acc2de76e795b180e1d","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    --dns_nameservers list\u003dtrue 3.3.3.3 2.2.2.2 1.1.1.1"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"The priority of DNS nameservers will be changed. The DNS nameserver \u00273.3.3.3\u0027 is the highest priority."},{"line_number":47,"context_line":"\u00272.2.2.2\u0027 is the secondly and \u00271.1.1.1\u0027 is more lower."}],"source_content_type":"text/x-rst","patch_set":35,"id":"3a50d1a3_d850ead6","line":47,"in_reply_to":"3a50d1a3_c7324df2","updated":"2015-07-22 06:02:05.000000000","message":"Done","commit_id":"1e2b6a60a4361c5a8b97377bb2efa55a26ef4cfe"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"0b8efb1c5b242f143fb107a56fada553e8a34941","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"In Neutron subnets, DNS nameservers are given priority when created or updated."},{"line_number":5,"context_line":"This means if you create a subnet with multiple DNS servers, the order will be retained"},{"line_number":6,"context_line":"and guests will receive the DNS servers in the order you created them in when the subnet was created."},{"line_number":7,"context_line":"The same thing applies for update operations on subnets to add, remove, or update DNS servers."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Get Subnet Details Info"}],"source_content_type":"text/x-rst","patch_set":38,"id":"3a50d1a3_4dfac276","line":6,"updated":"2015-07-22 14:29:38.000000000","message":"Wrap this line at 79 characters please.","commit_id":"39efd8a010dab8a460a2cf4a61532aa16a07c92c"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"2327160e6d3027f30a6fb7fab1c85cfd5cb1acba","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"In Neutron subnets, DNS nameservers are given priority when created or updated."},{"line_number":5,"context_line":"This means if you create a subnet with multiple DNS servers, the order will be retained"},{"line_number":6,"context_line":"and guests will receive the DNS servers in the order you created them in when the subnet was created."},{"line_number":7,"context_line":"The same thing applies for update operations on subnets to add, remove, or update DNS servers."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Get Subnet Details Info"}],"source_content_type":"text/x-rst","patch_set":38,"id":"3a50d1a3_b085d9cf","line":6,"in_reply_to":"3a50d1a3_4dfac276","updated":"2015-07-22 14:40:22.000000000","message":"Done","commit_id":"39efd8a010dab8a460a2cf4a61532aa16a07c92c"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"0b8efb1c5b242f143fb107a56fada553e8a34941","unresolved":false,"context_lines":[{"line_number":62,"context_line":"    | tenant_id        | 3868290ab10f417390acbb754160dbb2           |"},{"line_number":63,"context_line":"    +------------------+--------------------------------------------+"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"As shown in above output, the order of the DNS nameservers has been updated."},{"line_number":66,"context_line":"New virtual machines deployed to this subnet will receive the DNS nameservers in this new priority order."},{"line_number":67,"context_line":"Existing virtual machines that have already been deployed will not be immediately affected"},{"line_number":68,"context_line":"by changing the DNS nameserver order on the neutron subnet. Virtual machines that are configured to get their IP address"}],"source_content_type":"text/x-rst","patch_set":38,"id":"3a50d1a3_0d1efaba","line":65,"updated":"2015-07-22 14:29:38.000000000","message":"Please line wrap lines 65-70 at 79 characters.","commit_id":"39efd8a010dab8a460a2cf4a61532aa16a07c92c"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"2327160e6d3027f30a6fb7fab1c85cfd5cb1acba","unresolved":false,"context_lines":[{"line_number":62,"context_line":"    | tenant_id        | 3868290ab10f417390acbb754160dbb2           |"},{"line_number":63,"context_line":"    +------------------+--------------------------------------------+"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"As shown in above output, the order of the DNS nameservers has been updated."},{"line_number":66,"context_line":"New virtual machines deployed to this subnet will receive the DNS nameservers in this new priority order."},{"line_number":67,"context_line":"Existing virtual machines that have already been deployed will not be immediately affected"},{"line_number":68,"context_line":"by changing the DNS nameserver order on the neutron subnet. Virtual machines that are configured to get their IP address"}],"source_content_type":"text/x-rst","patch_set":38,"id":"3a50d1a3_f07fe1dd","line":65,"in_reply_to":"3a50d1a3_0d1efaba","updated":"2015-07-22 14:40:22.000000000","message":"Done","commit_id":"39efd8a010dab8a460a2cf4a61532aa16a07c92c"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"13d9f072012d1e737ed4f6525220d049d8005f53","unresolved":false,"context_lines":[{"line_number":4,"context_line":"In Neutron subnets, DNS nameservers are given priority when created or updated."},{"line_number":5,"context_line":"This means if you create a subnet with multiple DNS servers, the order will"},{"line_number":6,"context_line":"be retained and guests will receive the DNS servers in the order you"},{"line_number":7,"context_line":"created them in when the subnet was created. The same thing applies for update"},{"line_number":8,"context_line":"operations on subnets to add, remove, or update DNS servers."},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"Get Subnet Details Info"}],"source_content_type":"text/x-rst","patch_set":47,"id":"3a50d1a3_0fa5ee02","line":7,"updated":"2015-07-26 01:25:07.000000000","message":"Why the order is important? What benefit it brings to the end user?","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"}],"neutron/db/ipam_backend_mixin.py":[{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"f3c211ffd591e5d7c409a3ac16bc390b6b7d323f","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        for dns in old_dns_list:"},{"line_number":128,"context_line":"            context.session.delete(dns)"},{"line_number":129,"context_line":"        i \u003d 0"},{"line_number":130,"context_line":"        for new_dns in s[\"dns_nameservers\"]:"},{"line_number":131,"context_line":"            dns \u003d models_v2.DNSNameServer("},{"line_number":132,"context_line":"                address\u003dnew_dns,"},{"line_number":133,"context_line":"                order\u003di,"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_d93b4e37","line":130,"updated":"2015-07-13 15:11:24.000000000","message":"this looks like c code, maybe following is better:\n\nfor order in range(len(s[\"dns_nameservers\"])):\n    dns \u003d models_v2.DNSNameServer(address\u003dnew_dns,\n        order\u003dorder, subnet_id\u003did)","commit_id":"59fb816a5d03079356aea1e30a8fcee1e4f0e46d"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"a6daa7c4ce075753d58fc785ec8fdfcaac8bea9f","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        for dns in old_dns_list:"},{"line_number":128,"context_line":"            context.session.delete(dns)"},{"line_number":129,"context_line":"        for order in range(len(s[\"dns_nameservers\"])):"},{"line_number":130,"context_line":"            dns \u003d models_v2.DNSNameServer(address\u003dnew_dns,"},{"line_number":131,"context_line":"                order\u003dorder, subnet_id\u003did)"},{"line_number":132,"context_line":"            context.session.add(dns)"},{"line_number":133,"context_line":"        del s[\"dns_nameservers\"]"}],"source_content_type":"text/x-python","patch_set":9,"id":"9a41bdd9_a2eb9caf","line":130,"updated":"2015-07-14 01:52:46.000000000","message":"new_dns variable never defined","commit_id":"e2a2769b2ee235ae2ef0c3d8b746c8731c20eeb4"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"a6daa7c4ce075753d58fc785ec8fdfcaac8bea9f","unresolved":false,"context_lines":[{"line_number":387,"context_line":"        context.session.add(subnet)"},{"line_number":388,"context_line":"        if attributes.is_attr_set(dns_nameservers):"},{"line_number":389,"context_line":"            for order in range(len(dns_nameservers)):"},{"line_number":390,"context_line":"                dns \u003d models_v2.DNSNameServer(address\u003dnew_dns,"},{"line_number":391,"context_line":"                    order\u003dorder, subnet_id\u003did)"},{"line_number":392,"context_line":"                context.session.add(dns)"},{"line_number":393,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"9a41bdd9_42d3b004","line":390,"updated":"2015-07-14 01:52:46.000000000","message":"new_dns variable never defined","commit_id":"e2a2769b2ee235ae2ef0c3d8b746c8731c20eeb4"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"b84250f37205867168891aad8fd42f9861cde771","unresolved":false,"context_lines":[{"line_number":121,"context_line":"    def _update_subnet_dns_nameservers(self, context, id, s):"},{"line_number":122,"context_line":"        old_dns_list \u003d self._get_dns_by_subnet(context, id)"},{"line_number":123,"context_line":"        new_dns_addr_set \u003d set(s[\"dns_nameservers\"])"},{"line_number":124,"context_line":"        new_dns_list \u003d list(new_dns_addr_set)"},{"line_number":125,"context_line":"        # NOTE(changzhi) delete all dns nameservers from db"},{"line_number":126,"context_line":"        # and store dns nameservers one by one."},{"line_number":127,"context_line":"        for dns in old_dns_list:"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_1f15fa3e","line":124,"updated":"2015-07-14 04:00:52.000000000","message":"Are new_dns_addr_set and new_dns_list variables needed anymore ?","commit_id":"54782985fecbf30072a274579f8c9f075a5c6d02"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"b84250f37205867168891aad8fd42f9861cde771","unresolved":false,"context_lines":[{"line_number":133,"context_line":"                subnet_id\u003did)"},{"line_number":134,"context_line":"            context.session.add(dns)"},{"line_number":135,"context_line":"        del s[\"dns_nameservers\"]"},{"line_number":136,"context_line":"        return new_dns_list"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    def _update_subnet_allocation_pools(self, context, subnet_id, s):"},{"line_number":139,"context_line":"        context.session.query(models_v2.IPAllocationPool).filter_by("}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_9f002a03","line":136,"updated":"2015-07-14 04:00:52.000000000","message":"couldn\u0027t this be replaced with:\n\n     return s[\"dns_nameservers\"]","commit_id":"54782985fecbf30072a274579f8c9f075a5c6d02"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5a0e7e4529f32a78ce6ee65c1dc2ca1c59bca3c9","unresolved":false,"context_lines":[{"line_number":133,"context_line":"                subnet_id\u003did)"},{"line_number":134,"context_line":"            context.session.add(dns)"},{"line_number":135,"context_line":"        del s[\"dns_nameservers\"]"},{"line_number":136,"context_line":"        return new_dns_list"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    def _update_subnet_allocation_pools(self, context, subnet_id, s):"},{"line_number":139,"context_line":"        context.session.query(models_v2.IPAllocationPool).filter_by("}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_92d4a120","line":136,"in_reply_to":"9a41bdd9_9f002a03","updated":"2015-07-14 05:56:23.000000000","message":"There will be del s[\"dns_nameservers\"], so I create a new list named new_dns_addr_list.","commit_id":"54782985fecbf30072a274579f8c9f075a5c6d02"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"dc2073254074a74587de74d716395f205ccbe650","unresolved":false,"context_lines":[{"line_number":388,"context_line":"        subnet \u003d models_v2.Subnet(**subnet_args)"},{"line_number":389,"context_line":"        context.session.add(subnet)"},{"line_number":390,"context_line":"        if attributes.is_attr_set(dns_nameservers):"},{"line_number":391,"context_line":"            for order in range(len(dns_nameservers)):"},{"line_number":392,"context_line":"                dns \u003d models_v2.DNSNameServer("},{"line_number":393,"context_line":"                    address\u003ddns_nameservers[order],"},{"line_number":394,"context_line":"                    order\u003dorder,"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_5f9aa264","line":391,"updated":"2015-07-14 04:23:32.000000000","message":"you want enumerate here.\n\nfor order, server in enumerate(dns_nameservers):\n    dns \u003d models_v2.DNSNameServer(\n        address\u003dserver, order\u003dorder, subnet_id\u003did)\n    context.session.add(dns)","commit_id":"54782985fecbf30072a274579f8c9f075a5c6d02"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5a0e7e4529f32a78ce6ee65c1dc2ca1c59bca3c9","unresolved":false,"context_lines":[{"line_number":388,"context_line":"        subnet \u003d models_v2.Subnet(**subnet_args)"},{"line_number":389,"context_line":"        context.session.add(subnet)"},{"line_number":390,"context_line":"        if attributes.is_attr_set(dns_nameservers):"},{"line_number":391,"context_line":"            for order in range(len(dns_nameservers)):"},{"line_number":392,"context_line":"                dns \u003d models_v2.DNSNameServer("},{"line_number":393,"context_line":"                    address\u003ddns_nameservers[order],"},{"line_number":394,"context_line":"                    order\u003dorder,"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_f2ff2da8","line":391,"in_reply_to":"9a41bdd9_5f9aa264","updated":"2015-07-14 05:56:23.000000000","message":"Done","commit_id":"54782985fecbf30072a274579f8c9f075a5c6d02"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c9df44e72583ee37b1e9980ddbbc921af00af755","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        # NOTE(changzhi) delete all dns nameservers from db"},{"line_number":126,"context_line":"        # when update subnet\u0027s DNS nameservers. And store new"},{"line_number":127,"context_line":"        # nameservers with order one by one."},{"line_number":128,"context_line":"        for dns in old_dns_list:"},{"line_number":129,"context_line":"            context.session.delete(dns)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        for order, server in enumerate(new_dns_addr_list):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_45ac10a0","line":128,"updated":"2015-07-14 08:31:28.000000000","message":"delete + add Is this already within a transaction? (I haven\u0027t checked if the upper callers open a transaction) -could you check?-\n\nIt\u0027s different as before, where you added the new ones, and removed the old ones in two steps.\n\nIn this case it will blink all the nameservers for a while, being potentially racy (2 api calls):\n\nAPI CALL 1: delete\nAPI CALL 2: delete\nAPI CALL 1: add\nAPI CALL 2: add\n\nyou end up with twice entries than expected.","commit_id":"dc0dc6880284f56da9e0be877e883ebb90b4aa0d"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"2b962d104aff8107cc54f2a29fce00de7a8ba189","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        # NOTE(changzhi) delete all dns nameservers from db"},{"line_number":126,"context_line":"        # when update subnet\u0027s DNS nameservers. And store new"},{"line_number":127,"context_line":"        # nameservers with order one by one."},{"line_number":128,"context_line":"        for dns in old_dns_list:"},{"line_number":129,"context_line":"            context.session.delete(dns)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        for order, server in enumerate(new_dns_addr_list):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_2586acb9","line":128,"in_reply_to":"9a41bdd9_45ac10a0","updated":"2015-07-14 08:38:42.000000000","message":"The steps are: with subtransactions\u003dTrue\n-\u003e _update_db_subnet -\u003e _update_subnet_dns_nameservers.\nSo it is within transaction.","commit_id":"dc0dc6880284f56da9e0be877e883ebb90b4aa0d"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"6398a01195f5bb9ba17aafae8fc7c80d758dad33","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        for dns in old_dns_list:"},{"line_number":129,"context_line":"            context.session.delete(dns)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        for order, server in enumerate(new_dns_addr_list):"},{"line_number":132,"context_line":"            dns \u003d models_v2.DNSNameServer("},{"line_number":133,"context_line":"                address\u003dserver,"},{"line_number":134,"context_line":"                order\u003dorder,"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a41bdd9_de04594b","line":131,"updated":"2015-07-14 15:17:07.000000000","message":"can we be sure that the order in new_dns_addr_list is the same as user specified it in CLI/Horizon?","commit_id":"fc0decc3e4db46f092f7f1638a006b99525b7146"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"05633cd4db24133a6c30b1a08801a0d0e396383e","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        for dns in old_dns_list:"},{"line_number":129,"context_line":"            context.session.delete(dns)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        for order, server in enumerate(new_dns_addr_list):"},{"line_number":132,"context_line":"            dns \u003d models_v2.DNSNameServer("},{"line_number":133,"context_line":"                address\u003dserver,"},{"line_number":134,"context_line":"                order\u003dorder,"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a41bdd9_982d8497","line":131,"in_reply_to":"9a41bdd9_de04594b","updated":"2015-07-14 15:52:42.000000000","message":"Yes. The nameservers is a list when create/update subnet. The column \u0027order\u0027 record nameservers orders.","commit_id":"fc0decc3e4db46f092f7f1638a006b99525b7146"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"23697dcf047957c8e17a330ba63377dafd756b91","unresolved":false,"context_lines":[{"line_number":396,"context_line":"                dns \u003d models_v2.DNSNameServer("},{"line_number":397,"context_line":"                    address\u003dserver,"},{"line_number":398,"context_line":"                    order\u003dorder,"},{"line_number":399,"context_line":"                    subnet_id\u003dsubnet_args[\u0027id\u0027])"},{"line_number":400,"context_line":"                context.session.add(dns)"},{"line_number":401,"context_line":""},{"line_number":402,"context_line":"        if attributes.is_attr_set(host_routes):"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a41bdd9_eea2b3ad","line":399,"updated":"2015-07-15 01:28:52.000000000","message":"Why was subnet_id value changed form:\n\n   subnet_id\u003dsubnet.id","commit_id":"fc0decc3e4db46f092f7f1638a006b99525b7146"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"44c10fd3eb7641cd5b91cfb019262ac22413a9fd","unresolved":false,"context_lines":[{"line_number":396,"context_line":"                dns \u003d models_v2.DNSNameServer("},{"line_number":397,"context_line":"                    address\u003dserver,"},{"line_number":398,"context_line":"                    order\u003dorder,"},{"line_number":399,"context_line":"                    subnet_id\u003dsubnet_args[\u0027id\u0027])"},{"line_number":400,"context_line":"                context.session.add(dns)"},{"line_number":401,"context_line":""},{"line_number":402,"context_line":"        if attributes.is_attr_set(host_routes):"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a41bdd9_d4597e36","line":399,"in_reply_to":"9a41bdd9_eea2b3ad","updated":"2015-07-15 02:04:27.000000000","message":"Ths for your advice, I will fix it.","commit_id":"fc0decc3e4db46f092f7f1638a006b99525b7146"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"13d9f072012d1e737ed4f6525220d049d8005f53","unresolved":false,"context_lines":[{"line_number":399,"context_line":"                    address\u003dserver,"},{"line_number":400,"context_line":"                    order\u003dorder,"},{"line_number":401,"context_line":"                    subnet_id\u003dsubnet.id)"},{"line_number":402,"context_line":"                context.session.add(dns)"},{"line_number":403,"context_line":""},{"line_number":404,"context_line":"        if attributes.is_attr_set(host_routes):"},{"line_number":405,"context_line":"            for rt in host_routes:"}],"source_content_type":"text/x-python","patch_set":47,"id":"3a50d1a3_4f9bf6c9","line":402,"updated":"2015-07-26 01:25:07.000000000","message":"I could find add is being called from multiple places. Can we define a common api and call instead.","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"}],"neutron/db/migration/alembic_migrations/versions/1c844d1677f7_dns_nameservers_order.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"dc2073254074a74587de74d716395f205ccbe650","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"              sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"              default\u003dFalse, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_5fb142e0","line":34,"updated":"2015-07-14 04:23:32.000000000","message":"How is this migration supposed to work without nullable or a default? I think a default of 1 should be okay. Even though servers share order it will just maintain compatibility with the current behavior.","commit_id":"54782985fecbf30072a274579f8c9f075a5c6d02"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"3dadeb435b39127a9c55e545df19fe1d90fe9edf","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"              sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"              default\u003d0, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":14,"id":"9a41bdd9_e663efda","line":35,"updated":"2015-07-14 07:28:34.000000000","message":"Pay attention to http://docs.openstack.org/developer/neutron/devref/db_layer.html#difference-between-default-and-server-default-parameters-for-columns default is useless in migration.","commit_id":"cbc4ba7cb02a3f3d9d3ce154be02f488a4eb847a"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"eae9652a07373d5dcf0dd15adfe241fb34f80b54","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"              sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"              default\u003d0, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":14,"id":"9a41bdd9_46741bce","line":35,"in_reply_to":"9a41bdd9_e663efda","updated":"2015-07-14 07:52:33.000000000","message":"Done","commit_id":"cbc4ba7cb02a3f3d9d3ce154be02f488a4eb847a"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"e335a87b7441203e1d0d4ab8e8b7ae798bca6691","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":"#"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"\"\"\"empty message"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Revision ID: 1c844d1677f7"},{"line_number":19,"context_line":"Revises: 599c6a226151"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_d9724549","line":16,"updated":"2015-07-14 10:20:19.000000000","message":"Please consider adding some description here.","commit_id":"dc0dc6880284f56da9e0be877e883ebb90b4aa0d"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"8f21c0be98d10db13d498f4b307333af49c138dd","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":"#"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"\"\"\"empty message"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Revision ID: 1c844d1677f7"},{"line_number":19,"context_line":"Revises: 599c6a226151"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_f46e302e","line":16,"in_reply_to":"9a41bdd9_d9724549","updated":"2015-07-14 10:34:07.000000000","message":"Done","commit_id":"dc0dc6880284f56da9e0be877e883ebb90b4aa0d"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"e335a87b7441203e1d0d4ab8e8b7ae798bca6691","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\"\"\"empty message"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Revision ID: 1c844d1677f7"},{"line_number":19,"context_line":"Revises: 599c6a226151"},{"line_number":20,"context_line":"Create Date: 2015-07-06 21:52:15.716814"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"\"\"\""}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_99cb5d1e","line":19,"updated":"2015-07-14 10:20:19.000000000","message":"Its a comment, but \"Revises\" should match with down_revision (L26).","commit_id":"dc0dc6880284f56da9e0be877e883ebb90b4aa0d"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"8f21c0be98d10db13d498f4b307333af49c138dd","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\"\"\"empty message"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Revision ID: 1c844d1677f7"},{"line_number":19,"context_line":"Revises: 599c6a226151"},{"line_number":20,"context_line":"Create Date: 2015-07-06 21:52:15.716814"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"\"\"\""}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_348498d2","line":19,"in_reply_to":"9a41bdd9_99cb5d1e","updated":"2015-07-14 10:34:07.000000000","message":"Done","commit_id":"dc0dc6880284f56da9e0be877e883ebb90b4aa0d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c9df44e72583ee37b1e9980ddbbc921af00af755","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_65a914df","line":34,"updated":"2015-07-14 08:31:28.000000000","message":"priority would have been a good name too.\n\nMay be order is more clear because it also implies going from 0 to N.","commit_id":"dc0dc6880284f56da9e0be877e883ebb90b4aa0d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6e203f4207ab62b953c4deb2fcb1696b8d8b20bc","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":20,"id":"9a41bdd9_902e82f9","updated":"2015-07-15 14:33:02.000000000","message":"you must move this file in liberty/expand folder because of https://review.openstack.org/194198","commit_id":"56f37ffdacd2e06c71380b6983a472ca8a5d450e"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5c6784da4343913ba612e7489f972c263217e636","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":20,"id":"9a41bdd9_69b89d2a","in_reply_to":"9a41bdd9_902e82f9","updated":"2015-07-16 02:39:55.000000000","message":"Done","commit_id":"56f37ffdacd2e06c71380b6983a472ca8a5d450e"}],"neutron/db/migration/alembic_migrations/versions/1c844d1677f7_major_dns_nameserver.py":[{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"f3c211ffd591e5d7c409a3ac16bc390b6b7d323f","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"              sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"              default\u003dFalse, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_39a27aaf","line":34,"updated":"2015-07-13 15:11:24.000000000","message":"rename filename to \"dns_nameservers_order.py\" since you changed the column\u0027s key.","commit_id":"59fb816a5d03079356aea1e30a8fcee1e4f0e46d"}],"neutron/db/migration/alembic_migrations/versions/HEAD":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6e203f4207ab62b953c4deb2fcb1696b8d8b20bc","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":20,"id":"9a41bdd9_b0a706bc","updated":"2015-07-15 14:33:02.000000000","message":"Now you must update HEADS instead of HEAD because of https://review.openstack.org/194198","commit_id":"56f37ffdacd2e06c71380b6983a472ca8a5d450e"}],"neutron/db/migration/alembic_migrations/versions/HEADS":[{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"bba2befd939535534ecf16a3327b3c6bce40c305","unresolved":false,"context_lines":[{"line_number":1,"context_line":"30018084ec99"},{"line_number":2,"context_line":"313373c0ffee"},{"line_number":3,"context_line":"kilo"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"9a41bdd9_104bee2c","line":3,"updated":"2015-07-17 07:16:43.000000000","message":"My db version is 1c844d1677f7. How to write there? @ajo","commit_id":"23db28ec4fc43cddedee125c87df2342d2f50a75"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"fa823c3e36c91816c87fdd1f142f20413c8404f6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"30018084ec99"},{"line_number":2,"context_line":"313373c0ffee"},{"line_number":3,"context_line":"kilo"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"9a41bdd9_e7da51e9","line":3,"in_reply_to":"9a41bdd9_045bb355","updated":"2015-07-17 08:17:13.000000000","message":"yes, like this. The order contract/expand does not matter.","commit_id":"23db28ec4fc43cddedee125c87df2342d2f50a75"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"23534f53d0a9ea6de2b0ef3e6c0067066305dc51","unresolved":false,"context_lines":[{"line_number":1,"context_line":"30018084ec99"},{"line_number":2,"context_line":"313373c0ffee"},{"line_number":3,"context_line":"kilo"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"9a41bdd9_c445cbb3","line":3,"in_reply_to":"9a41bdd9_104bee2c","updated":"2015-07-17 07:52:47.000000000","message":"The order does not matter here. The previous head should be changed for new one.","commit_id":"23db28ec4fc43cddedee125c87df2342d2f50a75"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"138f89fffd9b06ac08483abf7397626651dd3e74","unresolved":false,"context_lines":[{"line_number":1,"context_line":"30018084ec99"},{"line_number":2,"context_line":"313373c0ffee"},{"line_number":3,"context_line":"kilo"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"9a41bdd9_9d763205","line":3,"in_reply_to":"9a41bdd9_1d6d42cc","updated":"2015-07-17 08:54:01.000000000","message":"Ok. i have updated the new patch. please review it ;-)","commit_id":"23db28ec4fc43cddedee125c87df2342d2f50a75"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"d25b965e5e90a40d357e1e25af6249644b9a3730","unresolved":false,"context_lines":[{"line_number":1,"context_line":"30018084ec99"},{"line_number":2,"context_line":"313373c0ffee"},{"line_number":3,"context_line":"kilo"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"9a41bdd9_e739f1d9","line":3,"in_reply_to":"9a41bdd9_c445cbb3","updated":"2015-07-17 08:03:18.000000000","message":"Nope, the file must be ordered as proposed zhi","commit_id":"23db28ec4fc43cddedee125c87df2342d2f50a75"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"59c89f719529062d0d7133ad0fac215e34ad3f6e","unresolved":false,"context_lines":[{"line_number":1,"context_line":"30018084ec99"},{"line_number":2,"context_line":"313373c0ffee"},{"line_number":3,"context_line":"kilo"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"9a41bdd9_045bb355","line":3,"in_reply_to":"9a41bdd9_c445cbb3","updated":"2015-07-17 08:01:25.000000000","message":"like this?\n\n1c844d1677f7\n30018084ec99\nkilo","commit_id":"23db28ec4fc43cddedee125c87df2342d2f50a75"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5183e984e0afe5f5972d3db45b1c94a3a2791abf","unresolved":false,"context_lines":[{"line_number":1,"context_line":"30018084ec99"},{"line_number":2,"context_line":"313373c0ffee"},{"line_number":3,"context_line":"kilo"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"9a41bdd9_4739bd40","line":3,"in_reply_to":"9a41bdd9_e739f1d9","updated":"2015-07-17 08:18:30.000000000","message":"hmm....\nCould you give me a example? How do I write it?","commit_id":"23db28ec4fc43cddedee125c87df2342d2f50a75"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"b971e6159b4e22e85732e7b28035141bcc575814","unresolved":false,"context_lines":[{"line_number":1,"context_line":"30018084ec99"},{"line_number":2,"context_line":"313373c0ffee"},{"line_number":3,"context_line":"kilo"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"9a41bdd9_1d6d42cc","line":3,"in_reply_to":"9a41bdd9_e739f1d9","updated":"2015-07-17 08:50:48.000000000","message":"oups, as proposed BY zhi :)\n\n 1c844d1677f7\n 30018084ec99\n kilo","commit_id":"23db28ec4fc43cddedee125c87df2342d2f50a75"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5183e984e0afe5f5972d3db45b1c94a3a2791abf","unresolved":false,"context_lines":[{"line_number":1,"context_line":"30018084ec99"},{"line_number":2,"context_line":"313373c0ffee"},{"line_number":3,"context_line":"kilo"}],"source_content_type":"application/octet-stream","patch_set":23,"id":"9a41bdd9_c7a62d53","line":3,"in_reply_to":"9a41bdd9_e7da51e9","updated":"2015-07-17 08:18:30.000000000","message":"1c844d1677f7 \n\n30018084ec99 \n\nkilo\n\nI forget space ..","commit_id":"23db28ec4fc43cddedee125c87df2342d2f50a75"}],"neutron/db/migration/alembic_migrations/versions/liberty/contract/43b15e0c8ac_dns_nameservers_order.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91b4244f974ea024e07091fe35ca2e2a494623d","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":"#"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"\"\"\"empty message"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Revision ID: 43b15e0c8ac"},{"line_number":19,"context_line":"Revises: 4ffceebfada"}],"source_content_type":"text/x-python","patch_set":37,"id":"3a50d1a3_8a3c33c9","line":16,"updated":"2015-07-22 13:34:25.000000000","message":"??","commit_id":"1878657ad6338b014f05fb28374c0869a5281702"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ba16a72d1dce0e44907cfc254a96ab994bc80ecf","unresolved":false,"context_lines":[{"line_number":35,"context_line":"def upgrade():"},{"line_number":36,"context_line":"    # Get all the dns entries for each subnet, and apply an order"},{"line_number":37,"context_line":"    # to the new column"},{"line_number":38,"context_line":"    sql \u003d \u0027SELECT subnet_id,address FROM dnsnameservers\u0027"},{"line_number":39,"context_line":"    result \u003d op.get_bind().execute(sql).fetchall()"},{"line_number":40,"context_line":"    order \u003d 0"},{"line_number":41,"context_line":"    subnet_id \u003d None"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_31251d5b","line":38,"updated":"2015-07-23 09:46:57.000000000","message":"i think you need \"order by subnet_id\" in this query.\notherwise, the query result can be something like:\n\n  subnet A, address X\n  subnet B, address Y\n  subnet A, address Z\n\nand L42-50 would assign order\u003d0 to both of X and Z.","commit_id":"1b5e31990d61bf923bad57fd73572a46b2f03360"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"5c6563395d7075c01f029eed1bddbfce0bc9c0dd","unresolved":false,"context_lines":[{"line_number":39,"context_line":"    result \u003d op.get_bind().execute(sql).fetchall()"},{"line_number":40,"context_line":"    order \u003d 0"},{"line_number":41,"context_line":"    subnet_id \u003d None"},{"line_number":42,"context_line":"    for r in result:"},{"line_number":43,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":44,"context_line":"            order \u003d 0"},{"line_number":45,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET `order` \u003d \\\u0027%s\\\u0027\\"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_0c1faa08","line":42,"updated":"2015-07-23 10:04:23.000000000","message":"you can use itertools.group_by (it requires yamamoto ordering):\n\n  grouped \u003d itertools.groupby(result, operator.attrgetter(\u0027subnet_id\u0027)\n  for _, group in grouped:\n    for order, r in group:\n      ...","commit_id":"1b5e31990d61bf923bad57fd73572a46b2f03360"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"eb1c7cc343ab32b434df3f39892d15635ddf741f","unresolved":false,"context_lines":[{"line_number":39,"context_line":"    result \u003d op.get_bind().execute(sql).fetchall()"},{"line_number":40,"context_line":"    order \u003d 0"},{"line_number":41,"context_line":"    subnet_id \u003d None"},{"line_number":42,"context_line":"    for r in result:"},{"line_number":43,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":44,"context_line":"            order \u003d 0"},{"line_number":45,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET `order` \u003d \\\u0027%s\\\u0027\\"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_270b9f7e","line":42,"in_reply_to":"3a50d1a3_0c1faa08","updated":"2015-07-23 10:17:52.000000000","message":"Cedric,\ni think your example is missing enumerate.","commit_id":"1b5e31990d61bf923bad57fd73572a46b2f03360"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"06ae01526b794811716630e3936c65a949e19aac","unresolved":false,"context_lines":[{"line_number":39,"context_line":"    result \u003d op.get_bind().execute(sql).fetchall()"},{"line_number":40,"context_line":"    order \u003d 0"},{"line_number":41,"context_line":"    subnet_id \u003d None"},{"line_number":42,"context_line":"    for r in result:"},{"line_number":43,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":44,"context_line":"            order \u003d 0"},{"line_number":45,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET `order` \u003d \\\u0027%s\\\u0027\\"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_a7ac8f8c","line":42,"in_reply_to":"3a50d1a3_0c1faa08","updated":"2015-07-23 10:15:58.000000000","message":"could you give me some examples?","commit_id":"1b5e31990d61bf923bad57fd73572a46b2f03360"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"5c6563395d7075c01f029eed1bddbfce0bc9c0dd","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    for r in result:"},{"line_number":43,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":44,"context_line":"            order \u003d 0"},{"line_number":45,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET `order` \u003d \\\u0027%s\\\u0027\\"},{"line_number":46,"context_line":"                 where subnet_id\u003d\\\u0027%s\\\u0027 AND address\u003d\\\u0027%s\\\u0027\"\"\"\\"},{"line_number":47,"context_line":"                 % (order, r.subnet_id, r.address)"},{"line_number":48,"context_line":"        subnet_id \u003d r.subnet_id"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_4c005266","line":45,"updated":"2015-07-23 10:04:23.000000000","message":"Do we really need to escape \u0027 ?","commit_id":"1b5e31990d61bf923bad57fd73572a46b2f03360"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"5c6563395d7075c01f029eed1bddbfce0bc9c0dd","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            order \u003d 0"},{"line_number":45,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET `order` \u003d \\\u0027%s\\\u0027\\"},{"line_number":46,"context_line":"                 where subnet_id\u003d\\\u0027%s\\\u0027 AND address\u003d\\\u0027%s\\\u0027\"\"\"\\"},{"line_number":47,"context_line":"                 % (order, r.subnet_id, r.address)"},{"line_number":48,"context_line":"        subnet_id \u003d r.subnet_id"},{"line_number":49,"context_line":"        order \u003d order + 1"},{"line_number":50,"context_line":"        op.get_bind().execute(sql)"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_118821c4","line":47,"updated":"2015-07-23 10:04:23.000000000","message":"it\u0027s better to avoid \\ use:\n\n  sql \u003d (\"UPDATE dnsnameservers SET order \u003d\u0027%s\u0027 \" \n         \"WHERE ...\"\n         % (...))","commit_id":"1b5e31990d61bf923bad57fd73572a46b2f03360"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"06ae01526b794811716630e3936c65a949e19aac","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            order \u003d 0"},{"line_number":45,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET `order` \u003d \\\u0027%s\\\u0027\\"},{"line_number":46,"context_line":"                 where subnet_id\u003d\\\u0027%s\\\u0027 AND address\u003d\\\u0027%s\\\u0027\"\"\"\\"},{"line_number":47,"context_line":"                 % (order, r.subnet_id, r.address)"},{"line_number":48,"context_line":"        subnet_id \u003d r.subnet_id"},{"line_number":49,"context_line":"        order \u003d order + 1"},{"line_number":50,"context_line":"        op.get_bind().execute(sql)"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_a7756f32","line":47,"in_reply_to":"3a50d1a3_118821c4","updated":"2015-07-23 10:15:58.000000000","message":"hi, in sql, i must write this UPDATE dnsnameservers SET `order` \u003d\u00270\u0027 WHERE subnet_id\u003d\u00272671a84c-7807-4611-9e90-10a32d14770d\u0027 AND address\u003d\u00271.1.33.211\u0027;\n\nthe column order must be `order`","commit_id":"1b5e31990d61bf923bad57fd73572a46b2f03360"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3dc36b3cbb9c33f2ec430d1a71ad854753c3f5c1","unresolved":false,"context_lines":[{"line_number":35,"context_line":"def upgrade():"},{"line_number":36,"context_line":"    # Get all the dns entries for each subnet, and apply an order"},{"line_number":37,"context_line":"    # to the new column"},{"line_number":38,"context_line":"    sql \u003d \u0027SELECT subnet_id,address FROM dnsnameservers order by subnet_id\u0027"},{"line_number":39,"context_line":"    result \u003d op.get_bind().execute(sql).fetchall()"},{"line_number":40,"context_line":"    order \u003d 0"},{"line_number":41,"context_line":"    subnet_id \u003d None"}],"source_content_type":"text/x-python","patch_set":40,"id":"3a50d1a3_6c2f4e3f","line":38,"range":{"start_line":38,"start_character":56,"end_line":38,"end_character":64},"updated":"2015-07-23 10:00:35.000000000","message":"can you capitalize ORDER BY for consistency?","commit_id":"708d3e39b95d17c6d45c13c32566fa7752f19bb5"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"d12504e3efd61b48eeb44c1228079bd49f1b42a6","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    for r in result:"},{"line_number":43,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":44,"context_line":"            order \u003d 0"},{"line_number":45,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET `order` \u003d \\\u0027%s\\\u0027\\"},{"line_number":46,"context_line":"                 where subnet_id\u003d\\\u0027%s\\\u0027 AND address\u003d\\\u0027%s\\\u0027\"\"\"\\"},{"line_number":47,"context_line":"                 % (order, r.subnet_id, r.address)"},{"line_number":48,"context_line":"        subnet_id \u003d r.subnet_id"}],"source_content_type":"text/x-python","patch_set":41,"id":"3a50d1a3_62299589","line":45,"range":{"start_line":45,"start_character":53,"end_line":45,"end_character":59},"updated":"2015-07-23 10:24:47.000000000","message":"isn\u0027t order an integer?","commit_id":"698d5d003a387765f90e5d239e619f2af79b3b71"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"9f81df57f13d971ce1506af08cb690add9dfdaa7","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    for _, group in grouped:"},{"line_number":46,"context_line":"        for order, r in enumerate(group):"},{"line_number":47,"context_line":"            sql \u003d (\"UPDATE dnsnameservers SET `order` \u003d\u0027%s\u0027 \""},{"line_number":48,"context_line":"                   \"WHERE subnet_id\u003d\u0027%s\u0027 AND address \u003d\u0027%s\u0027\") \\"},{"line_number":49,"context_line":"                   % (order, r.subnet_id, r.address)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"            op.get_bind().execute(sql)"}],"source_content_type":"text/x-python","patch_set":45,"id":"3a50d1a3_c96c1439","line":48,"updated":"2015-07-24 10:10:10.000000000","message":"prefer to avoid \\ by doing: \n\n  sql \u003d (\"UPDATE dnsnameservers SET `order` \u003d\u0027%s\u0027 \"\n\t \"WHERE subnet_id\u003d\u0027%s\u0027 AND address \u003d\u0027%s\u0027\"\n         % (...))","commit_id":"e0c14b58c16f5da5aa80d081c88d74077f48e096"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"50894dad2a0999e06729e8d7c61212fc90ae18eb","unresolved":false,"context_lines":[{"line_number":27,"context_line":"depends_on \u003d (\u00271c844d1677f7\u0027,)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"TABLE_NAME \u003d \u0027dnsnameservers\u0027"},{"line_number":30,"context_line":"NAME \u003d \u0027uniq_dns0address0subnet_id0order\u0027"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"import itertools"},{"line_number":33,"context_line":"import operator"}],"source_content_type":"text/x-python","patch_set":46,"id":"3a50d1a3_a48f6dcb","line":30,"range":{"start_line":30,"start_character":8,"end_line":30,"end_character":40},"updated":"2015-07-24 10:29:17.000000000","message":"uniq_dnsnameservers0subnet_id0order","commit_id":"46fd10fe8207bed86486b27132b9073b0708547b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"50894dad2a0999e06729e8d7c61212fc90ae18eb","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    grouped \u003d itertools.groupby(result, operator.attrgetter(\u0027subnet_id\u0027))"},{"line_number":45,"context_line":"    for _, group in grouped:"},{"line_number":46,"context_line":"        for order, r in enumerate(group):"},{"line_number":47,"context_line":"            sql \u003d (\"UPDATE dnsnameservers SET `order` \u003d\u0027%s\u0027 \""},{"line_number":48,"context_line":"                   \"WHERE subnet_id\u003d\u0027%s\u0027 AND address \u003d\u0027%s\u0027\""},{"line_number":49,"context_line":"                   % (order, r.subnet_id, r.address))"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-python","patch_set":46,"id":"3a50d1a3_c48879c9","line":47,"range":{"start_line":47,"start_character":55,"end_line":47,"end_character":59},"updated":"2015-07-24 10:29:17.000000000","message":"is \u0027 \u0027 appropriate around an integer?","commit_id":"46fd10fe8207bed86486b27132b9073b0708547b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fddec05bf468b3ce1210dd77d0815181614bb802","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    for _, group in grouped:"},{"line_number":46,"context_line":"        for order, r in enumerate(group):"},{"line_number":47,"context_line":"            sql \u003d (\"UPDATE dnsnameservers SET `order` \u003d%s \""},{"line_number":48,"context_line":"                   \"WHERE subnet_id\u003d\u0027%s\u0027 AND address \u003d\u0027%s\u0027\""},{"line_number":49,"context_line":"                   % (order, r.subnet_id, r.address))"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"            op.get_bind().execute(sql)"}],"source_content_type":"text/x-python","patch_set":47,"id":"3a50d1a3_da781bfb","line":48,"updated":"2015-07-27 00:25:40.000000000","message":"nit: inconsist whitespaces around \u003d","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"57daa0fd4c41b549121ab463b8b8ca15e59e07c8","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    for _, group in grouped:"},{"line_number":46,"context_line":"        for order, r in enumerate(group):"},{"line_number":47,"context_line":"            sql \u003d (\"UPDATE dnsnameservers SET `order` \u003d%s \""},{"line_number":48,"context_line":"                   \"WHERE subnet_id\u003d\u0027%s\u0027 AND address \u003d\u0027%s\u0027\""},{"line_number":49,"context_line":"                   % (order, r.subnet_id, r.address))"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"            op.get_bind().execute(sql)"}],"source_content_type":"text/x-python","patch_set":47,"id":"3a50d1a3_f74c0578","line":48,"in_reply_to":"3a50d1a3_201d5066","updated":"2015-07-27 08:06:26.000000000","message":"yes","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5cc46efee84292a328353abd2e1d1aa24906c262","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    for _, group in grouped:"},{"line_number":46,"context_line":"        for order, r in enumerate(group):"},{"line_number":47,"context_line":"            sql \u003d (\"UPDATE dnsnameservers SET `order` \u003d%s \""},{"line_number":48,"context_line":"                   \"WHERE subnet_id\u003d\u0027%s\u0027 AND address \u003d\u0027%s\u0027\""},{"line_number":49,"context_line":"                   % (order, r.subnet_id, r.address))"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"            op.get_bind().execute(sql)"}],"source_content_type":"text/x-python","patch_set":47,"id":"3a50d1a3_201d5066","line":48,"in_reply_to":"3a50d1a3_da781bfb","updated":"2015-07-27 01:52:34.000000000","message":"did you mean i should do like this:\n`order` \u003d %s \naddress \u003d \u0027%s\u0027\"\n\njust add a whitespace before \u0027\u003d\u0027?","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"7be25d564d2996f6c8b363f15c33a8e2608e2155","unresolved":false,"context_lines":[{"line_number":35,"context_line":"from alembic import op"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def upgrade():"},{"line_number":39,"context_line":"    # Get all the dns entries for each subnet, and apply an order"},{"line_number":40,"context_line":"    # to the new column"},{"line_number":41,"context_line":"    sql \u003d \u0027SELECT subnet_id,address FROM dnsnameservers ORDER BY subnet_id\u0027"}],"source_content_type":"text/x-python","patch_set":55,"id":"3a50d1a3_bc6fcf5e","line":38,"updated":"2015-07-29 06:55:55.000000000","message":"I would prefer to not have this contraction phase at all. Remove the unique constraint and then leave them all at the server default of 0. Renumbering them here doesn\u0027t really look like it\u0027s gaining us anything because it\u0027s going to randomly pick the order.","commit_id":"bfb400585c16f7eabde806a7be949aeff16bfd1a"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"e15ee3f7cb8403325cb2db0543b8a8a934b21ac9","unresolved":false,"context_lines":[{"line_number":35,"context_line":"from alembic import op"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def upgrade():"},{"line_number":39,"context_line":"    # Get all the dns entries for each subnet, and apply an order"},{"line_number":40,"context_line":"    # to the new column"},{"line_number":41,"context_line":"    sql \u003d \u0027SELECT subnet_id,address FROM dnsnameservers ORDER BY subnet_id\u0027"}],"source_content_type":"text/x-python","patch_set":55,"id":"3a50d1a3_3ce89fb2","line":38,"in_reply_to":"3a50d1a3_bc6fcf5e","updated":"2015-07-29 06:57:18.000000000","message":"having no contraction is something nice because it means less downtime during upgrades.","commit_id":"bfb400585c16f7eabde806a7be949aeff16bfd1a"}],"neutron/db/migration/alembic_migrations/versions/liberty/expand/1c844d1677f7_dns_nameservers_order.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fe4862f9806398d480727b8364daf6d06965843c","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_d73f00b2","line":35,"updated":"2015-07-16 04:07:28.000000000","message":"how about assigning sequential values to exisiting entries\nso that their ordering is stable?","commit_id":"a9dfcac97b95f14847bda8fc6ceb487f4ce8cde2"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"28c0299d7ffdecde2512be2a3ddddf22d83ac89e","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_2f233507","line":35,"in_reply_to":"9a41bdd9_0f20b148","updated":"2015-07-17 06:00:07.000000000","message":"ah... The order is \u00270\u0027 by default. The order will be changed when we update a subnet\u0027s dns nameservers only. Otherwise, facing existing entries, they does not have \"correct\" orders. hm... How does we can have a fixed order?","commit_id":"a9dfcac97b95f14847bda8fc6ceb487f4ce8cde2"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1c315bbb754bdc1f83517a3c29d00ba9fbc42982","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_7645cd40","line":35,"in_reply_to":"9a41bdd9_32619aa9","updated":"2015-07-16 09:12:19.000000000","message":"I think inserting the sequential values in DB won\u0027t make a difference for existing entries, and the order will be regenerated on first change to the dns.\n\nAnd the order will be maintained by the same internal db ordering until you make the first change.\n\n@yamamoto, /others, ping me if you believe I could be wrong here.","commit_id":"a9dfcac97b95f14847bda8fc6ceb487f4ce8cde2"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"9d22f8f501fad43eee72ca78a7052d28fac8a244","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_6f45bd15","line":35,"in_reply_to":"9a41bdd9_4f6d59cb","updated":"2015-07-17 05:45:10.000000000","message":"Existing entries? Does your point was we should sort the already existing DNS entries ?","commit_id":"a9dfcac97b95f14847bda8fc6ceb487f4ce8cde2"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"10daf6599347e61677c36fcbadc5969992637253","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_8fe84118","line":35,"in_reply_to":"9a41bdd9_4f6d59cb","updated":"2015-07-17 05:43:29.000000000","message":"sure, i think it\u0027s better for migration to fix the existing entries,\nso that we can say that dns servers are always ordered stably.\n\ni don\u0027t think it\u0027s so important though.  (thus i voted +1)","commit_id":"a9dfcac97b95f14847bda8fc6ceb487f4ce8cde2"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"89467d64b41f644ecc735549e15a36447c95731b","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_0f20b148","line":35,"in_reply_to":"9a41bdd9_6f45bd15","updated":"2015-07-17 05:49:39.000000000","message":"yes.\n\nwhile there\u0027s no way to know the \"correct\" order,\nwe can have a fixed order at least.","commit_id":"a9dfcac97b95f14847bda8fc6ceb487f4ce8cde2"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f710ee068d476aaab2b0071125a88aa085876680","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_e4a6d452","line":35,"in_reply_to":"9a41bdd9_7645cd40","updated":"2015-07-17 05:28:16.000000000","message":"ajo,\ni agree the most of points but not sure about \"the order will be maintained by the same internal db ordering\".\nmy understanding is that it depends on implementation of the db.","commit_id":"a9dfcac97b95f14847bda8fc6ceb487f4ce8cde2"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"d3ffca7e2348117c18a7bedcfbed0110433e36a9","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_4f25595a","line":35,"in_reply_to":"9a41bdd9_8fe84118","updated":"2015-07-17 05:49:17.000000000","message":"Existing entries will be ordered when update subnet\u0027s DNS nameservers. So I think if someone want to fix existing entries, just update it. :-)","commit_id":"a9dfcac97b95f14847bda8fc6ceb487f4ce8cde2"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"24a52d2a099fe65b233203fbd1b512ab3a081016","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_32619aa9","line":35,"in_reply_to":"9a41bdd9_d73f00b2","updated":"2015-07-16 04:52:39.000000000","message":"Yes. This column \u0027order\u0027 is only used when create/update a subnet.","commit_id":"a9dfcac97b95f14847bda8fc6ceb487f4ce8cde2"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"7bbfed49c3b9393118f1fef153ab0e8d2a7d7b2e","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_4f6d59cb","line":35,"in_reply_to":"9a41bdd9_e4a6d452","updated":"2015-07-17 05:36:11.000000000","message":"Ah,  ok,  so your point is that some db implementations could return different orders across selects without changing the db itself? \n\nI think you\u0027re right,  we cannot guarantee it won\u0027t change.\nhttp://stackoverflow.com/questions/8746519/sql-what-is-the-default-order-by-of-queries\n\nCould we add a migration here to fix the DNS order of existing entries?","commit_id":"a9dfcac97b95f14847bda8fc6ceb487f4ce8cde2"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"ce1aa350520af219cbf035bd0d4e90122ceea9e4","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":24,"id":"9a41bdd9_21a7bc50","line":35,"updated":"2015-07-17 12:08:46.000000000","message":"check comments in PS22\n\nYou can add a migration that gets all the dns entries for each subnet, as the normal query would do, and apply an order value to the new column.","commit_id":"b3b0a740e79013ea53ebe606331ea05c7db78c12"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"d5f93ddbcb91b00926537fbbbc963da4a3020ed9","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":24,"id":"9a41bdd9_c130500a","line":35,"in_reply_to":"9a41bdd9_21a7bc50","updated":"2015-07-17 12:22:59.000000000","message":"ah...Could you give me a example? I have no idea how to write it :-(","commit_id":"b3b0a740e79013ea53ebe606331ea05c7db78c12"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"d02840a830a0b75036ebf9089cbf6275eb455dee","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":24,"id":"9a41bdd9_3d2eeffa","line":35,"in_reply_to":"9a41bdd9_c130500a","updated":"2015-07-17 17:07:34.000000000","message":"Eh if you think it is needed, maybe neutron.db.migration.migrate_to_ml2 is a good example","commit_id":"b3b0a740e79013ea53ebe606331ea05c7db78c12"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"4ffe55fa68d433f62462f2c62c082cda44a75905","unresolved":false,"context_lines":[{"line_number":32,"context_line":"def upgrade():"},{"line_number":33,"context_line":"    op.add_column(\u0027dnsnameservers\u0027,"},{"line_number":34,"context_line":"                  sa.Column(\u0027order\u0027, sa.Integer(),"},{"line_number":35,"context_line":"                            server_default\u003d\u00270\u0027, nullable\u003dFalse))"}],"source_content_type":"text/x-python","patch_set":24,"id":"9a41bdd9_6cbe0701","line":35,"in_reply_to":"9a41bdd9_c130500a","updated":"2015-07-17 17:14:53.000000000","message":"https://github.com/openstack/neutron/blob/feature/qos/neutron/db/migration/alembic_migrations/versions/16cdf118d31d_extra_dhcp_options_ipv6_support.py#L48\n\nhttps://github.com/openstack/neutron/blob/feature/qos/neutron/db/migration/alembic_migrations/versions/35a0f3365720_add_port_security_in_ml2.py#L36\n\nI guess you need to rely in sql, but may be there are other ways.","commit_id":"b3b0a740e79013ea53ebe606331ea05c7db78c12"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"3155ee5c96d7726be77b85a17dbef2369684fd44","unresolved":false,"context_lines":[{"line_number":29,"context_line":"import sqlalchemy as sa"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"TABLE_NAME \u003d \u0027dnsnameservers\u0027"},{"line_number":32,"context_line":"NAME \u003d \u0027uniq_dns0address0subnet_id0order\u0027"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"def upgrade():"}],"source_content_type":"text/x-python","patch_set":32,"id":"3a50d1a3_290463be","line":32,"updated":"2015-07-21 07:42:54.000000000","message":"Should be \u0027uniq_dnsnameservers0address0subnet_id0order\u0027","commit_id":"77dc62703bd36db4f2abc42d6ed144d30c828166"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6baac9c3f55ddd04429f7a6345fc7cf54d95dfaf","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    op.create_unique_constraint("},{"line_number":41,"context_line":"        name\u003dNAME,"},{"line_number":42,"context_line":"        source\u003dTABLE_NAME,"},{"line_number":43,"context_line":"        local_cols\u003d[\u0027address\u0027, \u0027subnet_id\u0027, \u0027order\u0027]"},{"line_number":44,"context_line":"    )"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    # Get all the dns entries for each subnet, and apply an order"}],"source_content_type":"text/x-python","patch_set":32,"id":"3a50d1a3_c95a9f2a","line":43,"updated":"2015-07-21 07:19:24.000000000","message":"you mean [\u0027subnet_id\u0027, \u0027order\u0027] ?","commit_id":"77dc62703bd36db4f2abc42d6ed144d30c828166"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"f234065fd94eddd66bd9bf6f4ab764e10d11cc86","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    op.create_unique_constraint("},{"line_number":41,"context_line":"        name\u003dNAME,"},{"line_number":42,"context_line":"        source\u003dTABLE_NAME,"},{"line_number":43,"context_line":"        local_cols\u003d[\u0027address\u0027, \u0027subnet_id\u0027, \u0027order\u0027]"},{"line_number":44,"context_line":"    )"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    # Get all the dns entries for each subnet, and apply an order"}],"source_content_type":"text/x-python","patch_set":32,"id":"3a50d1a3_49a9af7a","line":43,"in_reply_to":"3a50d1a3_c95a9f2a","updated":"2015-07-21 07:31:49.000000000","message":"Done","commit_id":"77dc62703bd36db4f2abc42d6ed144d30c828166"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6baac9c3f55ddd04429f7a6345fc7cf54d95dfaf","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        name\u003dNAME,"},{"line_number":42,"context_line":"        source\u003dTABLE_NAME,"},{"line_number":43,"context_line":"        local_cols\u003d[\u0027address\u0027, \u0027subnet_id\u0027, \u0027order\u0027]"},{"line_number":44,"context_line":"    )"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    # Get all the dns entries for each subnet, and apply an order"},{"line_number":47,"context_line":"    # to the new column"}],"source_content_type":"text/x-python","patch_set":32,"id":"3a50d1a3_c647ec75","line":44,"updated":"2015-07-21 07:19:24.000000000","message":"at this point these columns for the existing rows\nmight or might not be unique.\nadding unique constraint can\u0027t fail?","commit_id":"77dc62703bd36db4f2abc42d6ed144d30c828166"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"f234065fd94eddd66bd9bf6f4ab764e10d11cc86","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        name\u003dNAME,"},{"line_number":42,"context_line":"        source\u003dTABLE_NAME,"},{"line_number":43,"context_line":"        local_cols\u003d[\u0027address\u0027, \u0027subnet_id\u0027, \u0027order\u0027]"},{"line_number":44,"context_line":"    )"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    # Get all the dns entries for each subnet, and apply an order"},{"line_number":47,"context_line":"    # to the new column"}],"source_content_type":"text/x-python","patch_set":32,"id":"3a50d1a3_e9b67bdb","line":44,"in_reply_to":"3a50d1a3_c647ec75","updated":"2015-07-21 07:31:49.000000000","message":"Done","commit_id":"77dc62703bd36db4f2abc42d6ed144d30c828166"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6baac9c3f55ddd04429f7a6345fc7cf54d95dfaf","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    # Get all the dns entries for each subnet, and apply an order"},{"line_number":47,"context_line":"    # to the new column"},{"line_number":48,"context_line":"    sql \u003d \u0027SELECT subnet_id,address FROM dnsnameservers\u0027"},{"line_number":49,"context_line":"    result \u003d op.get_bind().execute(sql).fetchall()"},{"line_number":50,"context_line":"    order \u003d 0"},{"line_number":51,"context_line":"    subnet_id \u003d None"}],"source_content_type":"text/x-python","patch_set":32,"id":"3a50d1a3_c90cdf3d","line":48,"updated":"2015-07-21 07:19:24.000000000","message":"order by subnet_id?\n\nL52-60 seems to assume the order.","commit_id":"77dc62703bd36db4f2abc42d6ed144d30c828166"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"f234065fd94eddd66bd9bf6f4ab764e10d11cc86","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    # Get all the dns entries for each subnet, and apply an order"},{"line_number":47,"context_line":"    # to the new column"},{"line_number":48,"context_line":"    sql \u003d \u0027SELECT subnet_id,address FROM dnsnameservers\u0027"},{"line_number":49,"context_line":"    result \u003d op.get_bind().execute(sql).fetchall()"},{"line_number":50,"context_line":"    order \u003d 0"},{"line_number":51,"context_line":"    subnet_id \u003d None"}],"source_content_type":"text/x-python","patch_set":32,"id":"3a50d1a3_09bac7c0","line":48,"in_reply_to":"3a50d1a3_c90cdf3d","updated":"2015-07-21 07:31:49.000000000","message":"Done","commit_id":"77dc62703bd36db4f2abc42d6ed144d30c828166"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"3155ee5c96d7726be77b85a17dbef2369684fd44","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    for r in result:"},{"line_number":53,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":54,"context_line":"            order \u003d 0"},{"line_number":55,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET major \u003d \\\u0027%s\\\u0027"},{"line_number":56,"context_line":"                 where subnet_id\u003d\\\u0027%s\\\u0027 AND address\u003d\\\u0027%s\\\u0027\"\"\"\\"},{"line_number":57,"context_line":"                 % (order, r.subnet_id, r.address)"},{"line_number":58,"context_line":"        subnet_id \u003d r.subnet_id"}],"source_content_type":"text/x-python","patch_set":32,"id":"3a50d1a3_a9ab9388","line":55,"updated":"2015-07-21 07:42:54.000000000","message":"I\u0027m not sure that this update is allowed in expand mode.  We need to check this with @Ihar Hrachyshka","commit_id":"77dc62703bd36db4f2abc42d6ed144d30c828166"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6baac9c3f55ddd04429f7a6345fc7cf54d95dfaf","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    for r in result:"},{"line_number":53,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":54,"context_line":"            order \u003d 0"},{"line_number":55,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET major \u003d \\\u0027%s\\\u0027"},{"line_number":56,"context_line":"                 where subnet_id\u003d\\\u0027%s\\\u0027 AND address\u003d\\\u0027%s\\\u0027\"\"\"\\"},{"line_number":57,"context_line":"                 % (order, r.subnet_id, r.address)"},{"line_number":58,"context_line":"        subnet_id \u003d r.subnet_id"}],"source_content_type":"text/x-python","patch_set":32,"id":"3a50d1a3_693b4bd2","line":55,"range":{"start_line":55,"start_character":43,"end_line":55,"end_character":48},"updated":"2015-07-21 07:19:24.000000000","message":"major?","commit_id":"77dc62703bd36db4f2abc42d6ed144d30c828166"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"f234065fd94eddd66bd9bf6f4ab764e10d11cc86","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    for r in result:"},{"line_number":53,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":54,"context_line":"            order \u003d 0"},{"line_number":55,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET major \u003d \\\u0027%s\\\u0027"},{"line_number":56,"context_line":"                 where subnet_id\u003d\\\u0027%s\\\u0027 AND address\u003d\\\u0027%s\\\u0027\"\"\"\\"},{"line_number":57,"context_line":"                 % (order, r.subnet_id, r.address)"},{"line_number":58,"context_line":"        subnet_id \u003d r.subnet_id"}],"source_content_type":"text/x-python","patch_set":32,"id":"3a50d1a3_a9b073de","line":55,"in_reply_to":"3a50d1a3_693b4bd2","updated":"2015-07-21 07:31:49.000000000","message":"Done","commit_id":"77dc62703bd36db4f2abc42d6ed144d30c828166"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f3c41811315fe52ae466609b6f08ceb203e3bb86","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    for r in result:"},{"line_number":53,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":54,"context_line":"            order \u003d 0"},{"line_number":55,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET major \u003d \\\u0027%s\\\u0027"},{"line_number":56,"context_line":"                 where subnet_id\u003d\\\u0027%s\\\u0027 AND address\u003d\\\u0027%s\\\u0027\"\"\"\\"},{"line_number":57,"context_line":"                 % (order, r.subnet_id, r.address)"},{"line_number":58,"context_line":"        subnet_id \u003d r.subnet_id"}],"source_content_type":"text/x-python","patch_set":32,"id":"3a50d1a3_62458b6e","line":55,"in_reply_to":"3a50d1a3_a9ab9388","updated":"2015-07-21 14:29:47.000000000","message":"You are absolutely correct, Ann. It\u0027s not safe to execute. The author should split the migration into two phases - expand that only creates the new column, and contract for remaining work, and make sure contract phase depends on the expansion.","commit_id":"77dc62703bd36db4f2abc42d6ed144d30c828166"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"65391b875496e35550cedfa39c7ac0ffe4f3d702","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    for r in result:"},{"line_number":47,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":48,"context_line":"            order \u003d 0"},{"line_number":49,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET order \u003d \\\u0027%s\\\u0027"},{"line_number":50,"context_line":"                 where subnet_id\u003d\\\u0027%s\\\u0027 AND address\u003d\\\u0027%s\\\u0027\"\"\"\\"},{"line_number":51,"context_line":"                 % (order, r.subnet_id, r.address)"},{"line_number":52,"context_line":"        subnet_id \u003d r.subnet_id"}],"source_content_type":"text/x-python","patch_set":33,"id":"3a50d1a3_a2ef1386","line":49,"updated":"2015-07-21 14:27:54.000000000","message":"You do data migration. It always belongs to contract tree since you cannot guarantee that there won\u0027t be new requests later that would invalidate (some of) entries you\u0027ve updated here.","commit_id":"41b83dc1c410b93896bae1dba72ba0ddba4dc3be"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5ce9f9b6bb46cae7d3697f6db2d66a4d96686c6e","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    for r in result:"},{"line_number":47,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":48,"context_line":"            order \u003d 0"},{"line_number":49,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET order \u003d \\\u0027%s\\\u0027"},{"line_number":50,"context_line":"                 where subnet_id\u003d\\\u0027%s\\\u0027 AND address\u003d\\\u0027%s\\\u0027\"\"\"\\"},{"line_number":51,"context_line":"                 % (order, r.subnet_id, r.address)"},{"line_number":52,"context_line":"        subnet_id \u003d r.subnet_id"}],"source_content_type":"text/x-python","patch_set":33,"id":"3a50d1a3_c2357ff7","line":49,"in_reply_to":"3a50d1a3_a2ef1386","updated":"2015-07-21 14:31:03.000000000","message":"so, what should i do?","commit_id":"41b83dc1c410b93896bae1dba72ba0ddba4dc3be"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"29c922479cf77cfd96cc9ff0924bc3fd1f83a3ae","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    for r in result:"},{"line_number":47,"context_line":"        if r.subnet_id !\u003d subnet_id:"},{"line_number":48,"context_line":"            order \u003d 0"},{"line_number":49,"context_line":"        sql \u003d \"\"\"UPDATE dnsnameservers SET order \u003d \\\u0027%s\\\u0027"},{"line_number":50,"context_line":"                 where subnet_id\u003d\\\u0027%s\\\u0027 AND address\u003d\\\u0027%s\\\u0027\"\"\"\\"},{"line_number":51,"context_line":"                 % (order, r.subnet_id, r.address)"},{"line_number":52,"context_line":"        subnet_id \u003d r.subnet_id"}],"source_content_type":"text/x-python","patch_set":33,"id":"3a50d1a3_55104701","line":49,"in_reply_to":"3a50d1a3_c2357ff7","updated":"2015-07-21 14:35:41.000000000","message":"You should split your migration in two: one in expand directory, one in contact. For example, like it is done here: https://review.openstack.org/191707.","commit_id":"41b83dc1c410b93896bae1dba72ba0ddba4dc3be"}],"neutron/db/models_v2.py":[{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"69b20743fa15a77cd0da37820ae7a2fd28ad351d","unresolved":false,"context_lines":[{"line_number":177,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":178,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":179,"context_line":"                          primary_key\u003dTrue)"},{"line_number":180,"context_line":"    order \u003d sa.Column(sa.Integer(), nullable\u003dFalse, default\u003d0)"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":16,"id":"9a41bdd9_986029d1","line":180,"updated":"2015-07-14 14:36:35.000000000","message":"Please, add server_default here too for consistency with database.","commit_id":"1c56f621b209869d342ab38da3f9b3e0e97b8d86"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"fa18e6572f2bc0fbebad58638415bba15c05621a","unresolved":false,"context_lines":[{"line_number":177,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":178,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":179,"context_line":"                          primary_key\u003dTrue)"},{"line_number":180,"context_line":"    order \u003d sa.Column(sa.Integer(), nullable\u003dFalse, default\u003d0)"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":16,"id":"9a41bdd9_03258ebf","line":180,"in_reply_to":"9a41bdd9_986029d1","updated":"2015-07-14 15:05:38.000000000","message":"Done","commit_id":"1c56f621b209869d342ab38da3f9b3e0e97b8d86"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"45050b8f6c91a86e3cddcddac344426fb756ec42","unresolved":false,"context_lines":[{"line_number":177,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":178,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":179,"context_line":"                          primary_key\u003dTrue)"},{"line_number":180,"context_line":"    order \u003d sa.Column(sa.Integer, nullable\u003dFalse, server_default\u003d\u00270\u0027)"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":24,"id":"9a41bdd9_83722ce2","line":180,"updated":"2015-07-18 02:13:14.000000000","message":"how about add an unique index on subnet_id and order column?","commit_id":"b3b0a740e79013ea53ebe606331ea05c7db78c12"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"6c4c5e65450281c82211d4fbad4f278da750dd95","unresolved":false,"context_lines":[{"line_number":178,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":179,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":180,"context_line":"                          primary_key\u003dTrue)"},{"line_number":181,"context_line":"    order \u003d sa.Column(sa.Integer, nullable\u003dFalse, server_default\u003d\u00270\u0027)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_7bc9d877","line":181,"updated":"2015-07-21 02:26:39.000000000","message":"will we allow the same order for a subnet_id and address pair? if not we had better add an unique index on address, subnet_id and order, or just make three are primary key","commit_id":"06a6b49445bd35c46c4bc64a6a36e9020cab2b14"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"9f50f3c1513b86486140e00fba58e5edf3eec6bf","unresolved":false,"context_lines":[{"line_number":178,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":179,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":180,"context_line":"                          primary_key\u003dTrue)"},{"line_number":181,"context_line":"    order \u003d sa.Column(sa.Integer, nullable\u003dFalse, server_default\u003d\u00270\u0027)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_f16d0705","line":181,"in_reply_to":"3a50d1a3_3eb7bed9","updated":"2015-07-21 04:00:32.000000000","message":"Done","commit_id":"06a6b49445bd35c46c4bc64a6a36e9020cab2b14"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"9f50f3c1513b86486140e00fba58e5edf3eec6bf","unresolved":false,"context_lines":[{"line_number":178,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":179,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":180,"context_line":"                          primary_key\u003dTrue)"},{"line_number":181,"context_line":"    order \u003d sa.Column(sa.Integer, nullable\u003dFalse, server_default\u003d\u00270\u0027)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_117193e0","line":181,"in_reply_to":"3a50d1a3_5e516a0d","updated":"2015-07-21 04:00:32.000000000","message":"Done","commit_id":"06a6b49445bd35c46c4bc64a6a36e9020cab2b14"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"d94ef031aef50b7be61c849755ccefc2b6488729","unresolved":false,"context_lines":[{"line_number":178,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":179,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":180,"context_line":"                          primary_key\u003dTrue)"},{"line_number":181,"context_line":"    order \u003d sa.Column(sa.Integer, nullable\u003dFalse, server_default\u003d\u00270\u0027)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_9eb5b232","line":181,"in_reply_to":"3a50d1a3_5e516a0d","updated":"2015-07-21 02:53:50.000000000","message":"yes, one subnet_id, one address, one order","commit_id":"06a6b49445bd35c46c4bc64a6a36e9020cab2b14"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"76cab759946eb89ba0e66945de3f295f1a56c288","unresolved":false,"context_lines":[{"line_number":178,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":179,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":180,"context_line":"                          primary_key\u003dTrue)"},{"line_number":181,"context_line":"    order \u003d sa.Column(sa.Integer, nullable\u003dFalse, server_default\u003d\u00270\u0027)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_3eb7bed9","line":181,"in_reply_to":"3a50d1a3_5ebe4ad5","updated":"2015-07-21 03:08:50.000000000","message":"a sample:  \n  __table_args__ \u003d (sa.UniqueConstraint(\n        \u0027port_id\u0027,\n        \u0027opt_name\u0027,\n        \u0027ip_version\u0027,\n        name\u003d\u0027uniq_extradhcpopts0portid0optname0ipversion\u0027),\n                      model_base.BASEV2.__table_args__,)\nand don\u0027t forget the db migration script too.","commit_id":"06a6b49445bd35c46c4bc64a6a36e9020cab2b14"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f7514418bf5af42616aee97becede066effa27d5","unresolved":false,"context_lines":[{"line_number":178,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":179,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":180,"context_line":"                          primary_key\u003dTrue)"},{"line_number":181,"context_line":"    order \u003d sa.Column(sa.Integer, nullable\u003dFalse, server_default\u003d\u00270\u0027)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_5e516a0d","line":181,"in_reply_to":"3a50d1a3_7b4a38c7","updated":"2015-07-21 02:50:10.000000000","message":"strictly, the order should not be the same for two address on one subnet_id, right?","commit_id":"06a6b49445bd35c46c4bc64a6a36e9020cab2b14"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"9f50f3c1513b86486140e00fba58e5edf3eec6bf","unresolved":false,"context_lines":[{"line_number":178,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":179,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":180,"context_line":"                          primary_key\u003dTrue)"},{"line_number":181,"context_line":"    order \u003d sa.Column(sa.Integer, nullable\u003dFalse, server_default\u003d\u00270\u0027)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_b178dfc5","line":181,"in_reply_to":"3a50d1a3_7bc9d877","updated":"2015-07-21 04:00:32.000000000","message":"Done","commit_id":"06a6b49445bd35c46c4bc64a6a36e9020cab2b14"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"0e9a6e6d737fceff4c3f0cf6866375b5e4a117f0","unresolved":false,"context_lines":[{"line_number":178,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":179,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":180,"context_line":"                          primary_key\u003dTrue)"},{"line_number":181,"context_line":"    order \u003d sa.Column(sa.Integer, nullable\u003dFalse, server_default\u003d\u00270\u0027)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_7b4a38c7","line":181,"in_reply_to":"3a50d1a3_7bc9d877","updated":"2015-07-21 02:37:15.000000000","message":"hi, i think there is no use to treat \u0027order\u0027 column as a primary key. The \u0027order\u0027 is just a priority of address.","commit_id":"06a6b49445bd35c46c4bc64a6a36e9020cab2b14"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"3779650dbad56e1af0b94d8e534ef43b58e4611c","unresolved":false,"context_lines":[{"line_number":178,"context_line":"                          sa.ForeignKey(\u0027subnets.id\u0027,"},{"line_number":179,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":180,"context_line":"                          primary_key\u003dTrue)"},{"line_number":181,"context_line":"    order \u003d sa.Column(sa.Integer, nullable\u003dFalse, server_default\u003d\u00270\u0027)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"class Subnet(model_base.BASEV2, HasId, HasTenant):"}],"source_content_type":"text/x-python","patch_set":30,"id":"3a50d1a3_5ebe4ad5","line":181,"in_reply_to":"3a50d1a3_9eb5b232","updated":"2015-07-21 03:04:27.000000000","message":"like this:\n    op.create_unique_constraint(\n        name\u003d\u0027 dns_order \u0027,\n        source\u003d\u0027 dns_nameservers \u0027,\n        local_cols\u003d[\u0027address\u0027, \u0027subnet_id\u0027]\n    )\n\nright?","commit_id":"06a6b49445bd35c46c4bc64a6a36e9020cab2b14"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"50894dad2a0999e06729e8d7c61212fc90ae18eb","unresolved":false,"context_lines":[{"line_number":183,"context_line":"    __table_args__ \u003d ("},{"line_number":184,"context_line":"        sa.UniqueConstraint(\u0027subnet_id\u0027,"},{"line_number":185,"context_line":"                            \u0027order\u0027,"},{"line_number":186,"context_line":"                            name\u003d\u0027uniq_dns0address0subnet_id0order\u0027),"},{"line_number":187,"context_line":"        model_base.BASEV2.__table_args__"},{"line_number":188,"context_line":"    )"},{"line_number":189,"context_line":""}],"source_content_type":"text/x-python","patch_set":46,"id":"3a50d1a3_24ecbd8e","line":186,"range":{"start_line":186,"start_character":34,"end_line":186,"end_character":66},"updated":"2015-07-24 10:29:17.000000000","message":"uniq_dnsnameservers0subnet_id0order","commit_id":"46fd10fe8207bed86486b27132b9073b0708547b"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"7be25d564d2996f6c8b363f15c33a8e2608e2155","unresolved":false,"context_lines":[{"line_number":181,"context_line":"    order \u003d sa.Column(sa.Integer, nullable\u003dFalse, server_default\u003d\u00270\u0027)"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"    __table_args__ \u003d ("},{"line_number":184,"context_line":"        sa.UniqueConstraint(\u0027subnet_id\u0027,"},{"line_number":185,"context_line":"                            \u0027order\u0027,"},{"line_number":186,"context_line":"                            name\u003d\u0027uniq_dnsnameservers0subnet_id0order\u0027),"},{"line_number":187,"context_line":"        model_base.BASEV2.__table_args__"}],"source_content_type":"text/x-python","patch_set":55,"id":"3a50d1a3_7c94e735","line":184,"updated":"2015-07-29 06:55:55.000000000","message":"remove this uniqueconstraint. It doesn\u0027t really add any value and it\u0027s not consistent with the expansion phase because the new column defaults all orders to 0.","commit_id":"bfb400585c16f7eabde806a7be949aeff16bfd1a"}],"neutron/tests/unit/agent/dhcp/test_agent.py":[{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"f3c211ffd591e5d7c409a3ac16bc390b6b7d323f","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                              gateway_ip\u003d\u0027172.9.9.1\u0027, host_routes\u003d[],"},{"line_number":56,"context_line":"                              dns_nameservers\u003d[\u00271.2.3.4\u0027, \u00274.3.2.1\u0027],"},{"line_number":57,"context_line":"                              ip_version\u003d4,"},{"line_number":58,"context_line":"                              ipv6_ra_mode\u003dNone, ipv6_address_mode\u003dNone,"},{"line_number":59,"context_line":"                              allocation_pools\u003dfake_subnet1_allocation_pools))"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"fake_subnet2_allocation_pools \u003d dhcp.DictModel(dict(id\u003d\u0027\u0027, start\u003d\u0027172.9.8.2\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_19ec568e","line":58,"updated":"2015-07-13 15:11:24.000000000","message":"Is this is really testing the bug? Could you plz make a explain, sorry for my lazy.","commit_id":"59fb816a5d03079356aea1e30a8fcee1e4f0e46d"}],"neutron/tests/unit/agent/linux/test_dhcp.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"bc55430665fda169ebee9b9753c37b3972d2d5ac","unresolved":false,"context_lines":[{"line_number":306,"context_line":"    host_routes \u003d []"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":""},{"line_number":309,"context_line":"class FakeV4SubnetMultipleAgentsWithTwoDnsProvided(object):"},{"line_number":310,"context_line":"    id \u003d \u0027dddddddd-dddd-dddd-dddd-dddddddddddd\u0027"},{"line_number":311,"context_line":"    ip_version \u003d 4"},{"line_number":312,"context_line":"    cidr \u003d \u0027192.168.0.0/24\u0027"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a41bdd9_4e23b6a7","line":309,"updated":"2015-07-14 16:25:38.000000000","message":"MultipleAgents?","commit_id":"fc0decc3e4db46f092f7f1638a006b99525b7146"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"23697dcf047957c8e17a330ba63377dafd756b91","unresolved":false,"context_lines":[{"line_number":312,"context_line":"    cidr \u003d \u0027192.168.0.0/24\u0027"},{"line_number":313,"context_line":"    gateway_ip \u003d \u0027192.168.0.1\u0027"},{"line_number":314,"context_line":"    enable_dhcp \u003d True"},{"line_number":315,"context_line":"    dns_nameservers \u003d [\u00272.2.2.2\u0027, \u00271.1.1.1\u0027]"},{"line_number":316,"context_line":"    host_routes \u003d []"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"9a41bdd9_2e75fbf8","line":315,"updated":"2015-07-15 01:28:52.000000000","message":"I\u0027d like to see 2nd test were the above DNS entries are reversed (maybe even adding a 3rd and 4th DNS server to guarantee non-alphabetic order between the entries) on input and that same order is preserved on output.","commit_id":"fc0decc3e4db46f092f7f1638a006b99525b7146"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"cbc38f823c5318fd05e4dceb91f46cbfa6e1b9ed","unresolved":false,"context_lines":[{"line_number":1119,"context_line":"        self._test_output_opts_file(expected,"},{"line_number":1120,"context_line":"                                    FakeV4MultipleAgentsWithoutDnsProvided())"},{"line_number":1121,"context_line":""},{"line_number":1122,"context_line":"    def test_output_opts_file_multiple_agents_with_two_dns_provided(self):"},{"line_number":1123,"context_line":"        expected \u003d (\u0027tag:tag0,option:dns-server,2.2.2.2,1.1.1.1\\n\u0027"},{"line_number":1124,"context_line":"                    \u0027tag:tag0,option:classless-static-route,\u0027"},{"line_number":1125,"context_line":"                    \u0027169.254.169.254/32,192.168.0.1,0.0.0.0/0,192.168.0.1\\n\u0027"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a41bdd9_892d3d97","line":1122,"updated":"2015-07-14 15:20:02.000000000","message":"what does multiple_agents mean here?","commit_id":"fc0decc3e4db46f092f7f1638a006b99525b7146"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"bc55430665fda169ebee9b9753c37b3972d2d5ac","unresolved":false,"context_lines":[{"line_number":1119,"context_line":"        self._test_output_opts_file(expected,"},{"line_number":1120,"context_line":"                                    FakeV4MultipleAgentsWithoutDnsProvided())"},{"line_number":1121,"context_line":""},{"line_number":1122,"context_line":"    def test_output_opts_file_multiple_agents_with_two_dns_provided(self):"},{"line_number":1123,"context_line":"        expected \u003d (\u0027tag:tag0,option:dns-server,2.2.2.2,1.1.1.1\\n\u0027"},{"line_number":1124,"context_line":"                    \u0027tag:tag0,option:classless-static-route,\u0027"},{"line_number":1125,"context_line":"                    \u0027169.254.169.254/32,192.168.0.1,0.0.0.0/0,192.168.0.1\\n\u0027"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a41bdd9_ee15ea3f","line":1122,"in_reply_to":"9a41bdd9_6465801c","updated":"2015-07-14 16:25:38.000000000","message":"we shouldn\u0027t just follow, right :)? test names should clearly state what is tested, multiple_agents is confusing as I don\u0027t see multipe agents involved here","commit_id":"fc0decc3e4db46f092f7f1638a006b99525b7146"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"05633cd4db24133a6c30b1a08801a0d0e396383e","unresolved":false,"context_lines":[{"line_number":1119,"context_line":"        self._test_output_opts_file(expected,"},{"line_number":1120,"context_line":"                                    FakeV4MultipleAgentsWithoutDnsProvided())"},{"line_number":1121,"context_line":""},{"line_number":1122,"context_line":"    def test_output_opts_file_multiple_agents_with_two_dns_provided(self):"},{"line_number":1123,"context_line":"        expected \u003d (\u0027tag:tag0,option:dns-server,2.2.2.2,1.1.1.1\\n\u0027"},{"line_number":1124,"context_line":"                    \u0027tag:tag0,option:classless-static-route,\u0027"},{"line_number":1125,"context_line":"                    \u0027169.254.169.254/32,192.168.0.1,0.0.0.0/0,192.168.0.1\\n\u0027"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a41bdd9_6465801c","line":1122,"in_reply_to":"9a41bdd9_892d3d97","updated":"2015-07-14 15:52:42.000000000","message":"multiple_agents is just a function name here. I follow this test code by \u0027FakeV4SubnetMultipleAgentsWithDnsProvided\u0027","commit_id":"fc0decc3e4db46f092f7f1638a006b99525b7146"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"440755fbedb50db49a214e953272b494f68f419a","unresolved":false,"context_lines":[{"line_number":1119,"context_line":"        self._test_output_opts_file(expected,"},{"line_number":1120,"context_line":"                                    FakeV4MultipleAgentsWithoutDnsProvided())"},{"line_number":1121,"context_line":""},{"line_number":1122,"context_line":"    def test_output_opts_file_multiple_agents_with_two_dns_provided(self):"},{"line_number":1123,"context_line":"        expected \u003d (\u0027tag:tag0,option:dns-server,2.2.2.2,1.1.1.1\\n\u0027"},{"line_number":1124,"context_line":"                    \u0027tag:tag0,option:classless-static-route,\u0027"},{"line_number":1125,"context_line":"                    \u0027169.254.169.254/32,192.168.0.1,0.0.0.0/0,192.168.0.1\\n\u0027"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a41bdd9_2202033e","line":1122,"in_reply_to":"9a41bdd9_ee15ea3f","updated":"2015-07-14 17:50:27.000000000","message":"+1 to that","commit_id":"fc0decc3e4db46f092f7f1638a006b99525b7146"}],"neutron/tests/unit/db/test_db_base_plugin_v2.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ea6947a27eeb85f98bfd7abcaf9d23319cdc1a79","unresolved":false,"context_lines":[{"line_number":4452,"context_line":"            res \u003d self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4453,"context_line":"            self.assertEqual(res[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4454,"context_line":"                             data[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4455,"context_line":""},{"line_number":4456,"context_line":"    def test_update_subnet_dns_check_order(self):"},{"line_number":4457,"context_line":"        with self.subnet(dns_nameservers\u003d[\u00271.1.1.1\u0027, \u00272.2.2.2\u0027]) as subnet:"},{"line_number":4458,"context_line":"            data \u003d {\u0027subnet\u0027: {\u0027dns_nameservers\u0027: [\u00272.2.2.2\u0027, \u00271.1.1.1\u0027]}}"}],"source_content_type":"text/x-python","patch_set":20,"id":"9a41bdd9_3baf407e","line":4455,"updated":"2015-07-15 22:45:34.000000000","message":"I\u0027d prefer a higher level test, such as this:\nhttp://paste.openstack.org/show/378753/","commit_id":"56f37ffdacd2e06c71380b6983a472ca8a5d450e"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5c6784da4343913ba612e7489f972c263217e636","unresolved":false,"context_lines":[{"line_number":4452,"context_line":"            res \u003d self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4453,"context_line":"            self.assertEqual(res[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4454,"context_line":"                             data[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4455,"context_line":""},{"line_number":4456,"context_line":"    def test_update_subnet_dns_check_order(self):"},{"line_number":4457,"context_line":"        with self.subnet(dns_nameservers\u003d[\u00271.1.1.1\u0027, \u00272.2.2.2\u0027]) as subnet:"},{"line_number":4458,"context_line":"            data \u003d {\u0027subnet\u0027: {\u0027dns_nameservers\u0027: [\u00272.2.2.2\u0027, \u00271.1.1.1\u0027]}}"}],"source_content_type":"text/x-python","patch_set":20,"id":"9a41bdd9_89b3a14c","line":4455,"in_reply_to":"9a41bdd9_3baf407e","updated":"2015-07-16 02:39:55.000000000","message":"Done","commit_id":"56f37ffdacd2e06c71380b6983a472ca8a5d450e"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"a86bf5fdac205c872451382c1b2ab2d914b29fa9","unresolved":false,"context_lines":[{"line_number":4477,"context_line":"            dns_list \u003d (manager.NeutronManager.get_plugin()."},{"line_number":4478,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4479,"context_line":"                        [\u0027dns_nameservers\u0027])"},{"line_number":4480,"context_line":"            self.assertEqual([\u00272.2.2.2\u0027, \u00271.1.1.1\u0027], dns_list)"},{"line_number":4481,"context_line":""},{"line_number":4482,"context_line":"    def test_update_subnet_dns_to_None(self):"},{"line_number":4483,"context_line":"        with self.subnet(dns_nameservers\u003d[\u002711.0.0.1\u0027]) as subnet:"}],"source_content_type":"text/x-python","patch_set":27,"id":"3a50d1a3_b546bdbd","line":4480,"updated":"2015-07-20 09:20:49.000000000","message":"Similar to your previous patchset this testcase would fail. \n\nNormally I\u0027ve seen people using. \nself.assertEqual(sorted([\u00272.2.2.2\u0027, \u00271.1.1.1\u0027]), sorted(dns_list)) to fix the issue.\n\nBut since the order is important, I feel that you can compare element by element in a for loop.\ni.e., \ndns_list[0] \u003d\u003d \u00272.2.2.2\u0027 \ndns_list[1] \u003d\u003d \u00271.1.1.1\u0027\n\nSame thing at line number 4469","commit_id":"ae0db0351d95ad9c71e8b73298451d5b485ca98a"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"d396e3223f2da6acd7c540b942960bd774fffa4b","unresolved":false,"context_lines":[{"line_number":4477,"context_line":"            dns_list \u003d (manager.NeutronManager.get_plugin()."},{"line_number":4478,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4479,"context_line":"                        [\u0027dns_nameservers\u0027])"},{"line_number":4480,"context_line":"            self.assertEqual([\u00272.2.2.2\u0027, \u00271.1.1.1\u0027], dns_list)"},{"line_number":4481,"context_line":""},{"line_number":4482,"context_line":"    def test_update_subnet_dns_to_None(self):"},{"line_number":4483,"context_line":"        with self.subnet(dns_nameservers\u003d[\u002711.0.0.1\u0027]) as subnet:"}],"source_content_type":"text/x-python","patch_set":27,"id":"3a50d1a3_ab03c00e","line":4480,"in_reply_to":"3a50d1a3_b546bdbd","updated":"2015-07-20 09:53:44.000000000","message":"Done","commit_id":"ae0db0351d95ad9c71e8b73298451d5b485ca98a"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"9f81df57f13d971ce1506af08cb690add9dfdaa7","unresolved":false,"context_lines":[{"line_number":4467,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4468,"context_line":"                        [\u0027dns_nameservers\u0027])"},{"line_number":4469,"context_line":""},{"line_number":4470,"context_line":"            self.assertEqual(sorted([\u00272.2.2.2\u0027, \u00271.1.1.1\u0027]), sorted(dns_list))"},{"line_number":4471,"context_line":""},{"line_number":4472,"context_line":"            data \u003d {\u0027subnet\u0027: {\u0027dns_nameservers\u0027: [\u00272.2.2.2\u0027, \u00271.1.1.1\u0027]}}"},{"line_number":4473,"context_line":"            req \u003d self.new_update_request(\u0027subnets\u0027,"}],"source_content_type":"text/x-python","patch_set":45,"id":"3a50d1a3_444c6976","line":4470,"updated":"2015-07-24 10:10:10.000000000","message":"dns order is lost when dns are sorted so ordering is not checked","commit_id":"e0c14b58c16f5da5aa80d081c88d74077f48e096"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fddec05bf468b3ce1210dd77d0815181614bb802","unresolved":false,"context_lines":[{"line_number":3919,"context_line":"            self.assertEqual(sorted(res[\u0027subnet\u0027][\u0027host_routes\u0027]),"},{"line_number":3920,"context_line":"                             sorted(host_routes))"},{"line_number":3921,"context_line":"            self.assertEqual(sorted(res[\u0027subnet\u0027][\u0027dns_nameservers\u0027]),"},{"line_number":3922,"context_line":"                             sorted(dns_nameservers))"},{"line_number":3923,"context_line":""},{"line_number":3924,"context_line":"    def test_update_subnet_shared_returns_400(self):"},{"line_number":3925,"context_line":"        with self.network(shared\u003dTrue) as network:"}],"source_content_type":"text/x-python","patch_set":47,"id":"3a50d1a3_5a896bc9","line":3922,"updated":"2015-07-27 00:25:40.000000000","message":"can you remove these sorted?","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fddec05bf468b3ce1210dd77d0815181614bb802","unresolved":false,"context_lines":[{"line_number":4461,"context_line":"                             data[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4462,"context_line":""},{"line_number":4463,"context_line":"    def test_subnet_lifecycle_dns_retains_order(self):"},{"line_number":4464,"context_line":"        with self.subnet(dns_nameservers\u003d[\u00271.1.1.1\u0027, \u00272.2.2.2\u0027]) as subnet:"},{"line_number":4465,"context_line":"            ctx \u003d context.Context(\u0027\u0027, \u0027\u0027, is_admin\u003dTrue)"},{"line_number":4466,"context_line":"            dns_list \u003d (manager.NeutronManager.get_plugin()."},{"line_number":4467,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":47,"id":"3a50d1a3_3aa57f46","line":4464,"updated":"2015-07-27 00:25:40.000000000","message":"it\u0027s better to test with larger number of dns servers,\nwith max_dns_nameservers bumped.","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"57daa0fd4c41b549121ab463b8b8ca15e59e07c8","unresolved":false,"context_lines":[{"line_number":4461,"context_line":"                             data[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4462,"context_line":""},{"line_number":4463,"context_line":"    def test_subnet_lifecycle_dns_retains_order(self):"},{"line_number":4464,"context_line":"        with self.subnet(dns_nameservers\u003d[\u00271.1.1.1\u0027, \u00272.2.2.2\u0027]) as subnet:"},{"line_number":4465,"context_line":"            ctx \u003d context.Context(\u0027\u0027, \u0027\u0027, is_admin\u003dTrue)"},{"line_number":4466,"context_line":"            dns_list \u003d (manager.NeutronManager.get_plugin()."},{"line_number":4467,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":47,"id":"3a50d1a3_f7e88518","line":4464,"in_reply_to":"3a50d1a3_003a9498","updated":"2015-07-27 08:06:26.000000000","message":"why do you think so?","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"5cc46efee84292a328353abd2e1d1aa24906c262","unresolved":false,"context_lines":[{"line_number":4461,"context_line":"                             data[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4462,"context_line":""},{"line_number":4463,"context_line":"    def test_subnet_lifecycle_dns_retains_order(self):"},{"line_number":4464,"context_line":"        with self.subnet(dns_nameservers\u003d[\u00271.1.1.1\u0027, \u00272.2.2.2\u0027]) as subnet:"},{"line_number":4465,"context_line":"            ctx \u003d context.Context(\u0027\u0027, \u0027\u0027, is_admin\u003dTrue)"},{"line_number":4466,"context_line":"            dns_list \u003d (manager.NeutronManager.get_plugin()."},{"line_number":4467,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":47,"id":"3a50d1a3_7507981d","line":4464,"in_reply_to":"3a50d1a3_3aa57f46","updated":"2015-07-27 01:52:34.000000000","message":"could you give me a example? thx","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"6209f7a2b3fe3f63300c79089f12d2ca0a086596","unresolved":false,"context_lines":[{"line_number":4461,"context_line":"                             data[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4462,"context_line":""},{"line_number":4463,"context_line":"    def test_subnet_lifecycle_dns_retains_order(self):"},{"line_number":4464,"context_line":"        with self.subnet(dns_nameservers\u003d[\u00271.1.1.1\u0027, \u00272.2.2.2\u0027]) as subnet:"},{"line_number":4465,"context_line":"            ctx \u003d context.Context(\u0027\u0027, \u0027\u0027, is_admin\u003dTrue)"},{"line_number":4466,"context_line":"            dns_list \u003d (manager.NeutronManager.get_plugin()."},{"line_number":4467,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":47,"id":"3a50d1a3_003a9498","line":4464,"in_reply_to":"3a50d1a3_3aa57f46","updated":"2015-07-27 02:04:13.000000000","message":"hm... i think the \u0027max_dns_nameservers\u0027 does not have any effect, isn\u0027t it?","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fddec05bf468b3ce1210dd77d0815181614bb802","unresolved":false,"context_lines":[{"line_number":4480,"context_line":"                        [\u0027dns_nameservers\u0027])"},{"line_number":4481,"context_line":""},{"line_number":4482,"context_line":"            self.assertEqual(\u00272.2.2.2\u0027, dns_list[0])"},{"line_number":4483,"context_line":"            self.assertEqual(\u00271.1.1.1\u0027, dns_list[1])"},{"line_number":4484,"context_line":""},{"line_number":4485,"context_line":"    def test_update_subnet_dns_to_None(self):"},{"line_number":4486,"context_line":"        with self.subnet(dns_nameservers\u003d[\u002711.0.0.1\u0027]) as subnet:"}],"source_content_type":"text/x-python","patch_set":47,"id":"3a50d1a3_da5fbb73","line":4483,"updated":"2015-07-27 00:25:40.000000000","message":"why not:\n\nself.assertEqual([\u00272.2.2.2\u0027, \u00271.1.1.1\u0027], dns_list)","commit_id":"d75e4fef46415ba40f142c1a9a3f8880c7b32165"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"3a370b0f20fb11fef398e7c770e00ff1159466a4","unresolved":false,"context_lines":[{"line_number":4477,"context_line":"                                          data,"},{"line_number":4478,"context_line":"                                          subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4479,"context_line":"            self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4480,"context_line":""},{"line_number":4481,"context_line":"            dns_list \u003d (manager.NeutronManager.get_plugin()."},{"line_number":4482,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4483,"context_line":"                        [\u0027dns_nameservers\u0027])"}],"source_content_type":"text/x-python","patch_set":49,"id":"3a50d1a3_38401da5","line":4480,"updated":"2015-07-27 09:03:47.000000000","message":"Please make sure the update response has the correct order as well since you are deserializing here anyway.","commit_id":"882fdd08ebd1b3851694599de53f04b450971016"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"6abdcf60bdc03d76f9eea761f432e609a68f70a3","unresolved":false,"context_lines":[{"line_number":4477,"context_line":"                                          data,"},{"line_number":4478,"context_line":"                                          subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4479,"context_line":"            self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4480,"context_line":""},{"line_number":4481,"context_line":"            dns_list \u003d (manager.NeutronManager.get_plugin()."},{"line_number":4482,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4483,"context_line":"                        [\u0027dns_nameservers\u0027])"}],"source_content_type":"text/x-python","patch_set":49,"id":"3a50d1a3_b8318d0d","line":4480,"in_reply_to":"3a50d1a3_38401da5","updated":"2015-07-27 09:08:07.000000000","message":"em... could you give me a example?","commit_id":"882fdd08ebd1b3851694599de53f04b450971016"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"11612bd0f6eb061509a24910343e4466019034ca","unresolved":false,"context_lines":[{"line_number":4483,"context_line":"                        [\u0027dns_nameservers\u0027])"},{"line_number":4484,"context_line":""},{"line_number":4485,"context_line":"            self.assertEqual(res[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4486,"context_line":"                data[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4487,"context_line":""},{"line_number":4488,"context_line":"    def test_update_subnet_dns_to_None(self):"},{"line_number":4489,"context_line":"        with self.subnet(dns_nameservers\u003d[\u002711.0.0.1\u0027]) as subnet:"}],"source_content_type":"text/x-python","patch_set":51,"id":"3a50d1a3_b9589d57","line":4486,"updated":"2015-07-27 15:30:06.000000000","message":"(expected, observed)\n\nmove this to L4480 and restore dns_list assertion.","commit_id":"e0281619b06fe8e9a4ea4dcba92449637ba1bad9"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"52aea8e33ce2cab51642f4a69db1ef455bc0799a","unresolved":false,"context_lines":[{"line_number":4483,"context_line":"                        [\u0027dns_nameservers\u0027])"},{"line_number":4484,"context_line":""},{"line_number":4485,"context_line":"            self.assertEqual(res[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4486,"context_line":"                data[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4487,"context_line":""},{"line_number":4488,"context_line":"    def test_update_subnet_dns_to_None(self):"},{"line_number":4489,"context_line":"        with self.subnet(dns_nameservers\u003d[\u002711.0.0.1\u0027]) as subnet:"}],"source_content_type":"text/x-python","patch_set":51,"id":"3a50d1a3_e9d2c2ff","line":4486,"in_reply_to":"3a50d1a3_8066764f","updated":"2015-07-27 23:06:01.000000000","message":"like this?: http://paste.openstack.org/show/405983/","commit_id":"e0281619b06fe8e9a4ea4dcba92449637ba1bad9"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2e0b16d6cadbabf278b28f3dccaca1991fb71713","unresolved":false,"context_lines":[{"line_number":4483,"context_line":"                        [\u0027dns_nameservers\u0027])"},{"line_number":4484,"context_line":""},{"line_number":4485,"context_line":"            self.assertEqual(res[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4486,"context_line":"                data[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4487,"context_line":""},{"line_number":4488,"context_line":"    def test_update_subnet_dns_to_None(self):"},{"line_number":4489,"context_line":"        with self.subnet(dns_nameservers\u003d[\u002711.0.0.1\u0027]) as subnet:"}],"source_content_type":"text/x-python","patch_set":51,"id":"3a50d1a3_8066764f","line":4486,"in_reply_to":"3a50d1a3_b9589d57","updated":"2015-07-27 20:17:41.000000000","message":"+1, you got the update but now you aren\u0027t asserting a fresh listing. The reason it matters is that I\u0027ve encountered scenarios where the result returned from an update operation is not constructed properly.","commit_id":"e0281619b06fe8e9a4ea4dcba92449637ba1bad9"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"52aea8e33ce2cab51642f4a69db1ef455bc0799a","unresolved":false,"context_lines":[{"line_number":4483,"context_line":"                        [\u0027dns_nameservers\u0027])"},{"line_number":4484,"context_line":""},{"line_number":4485,"context_line":"            self.assertEqual(res[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4486,"context_line":"                data[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4487,"context_line":""},{"line_number":4488,"context_line":"    def test_update_subnet_dns_to_None(self):"},{"line_number":4489,"context_line":"        with self.subnet(dns_nameservers\u003d[\u002711.0.0.1\u0027]) as subnet:"}],"source_content_type":"text/x-python","patch_set":51,"id":"3a50d1a3_49e976b6","line":4486,"in_reply_to":"3a50d1a3_b9589d57","updated":"2015-07-27 23:06:01.000000000","message":"like this?: http://paste.openstack.org/show/405983/","commit_id":"e0281619b06fe8e9a4ea4dcba92449637ba1bad9"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"596c3bb76b6e6fb2029f50c823348847c0aadefc","unresolved":false,"context_lines":[{"line_number":4480,"context_line":"                                          data,"},{"line_number":4481,"context_line":"                                          subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4482,"context_line":"            res \u003d self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4483,"context_line":"            self.assertEqual(data[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4484,"context_line":"                             res[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4485,"context_line":""},{"line_number":4486,"context_line":"            new_dns_list \u003d (manager.NeutronManager.get_plugin()."}],"source_content_type":"text/x-python","patch_set":54,"id":"3a50d1a3_c4944b38","line":4483,"updated":"2015-07-29 03:32:13.000000000","message":"Here you assert that data[\u0027subnet\u0027][\u0027dns_nameservers\u0027] \u003d\u003d res[\u0027subnet\u0027][\u0027dns_nameservers\u0027], and all plugins are passing this assertion. Changing line 4490 from data to res won\u0027t change anything.","commit_id":"07708d4a10eb811bffe5cf0121f21abca7e37e14"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2a14f6fd6a81e9701a432150d26b792c092177ce","unresolved":false,"context_lines":[{"line_number":4480,"context_line":"                                          data,"},{"line_number":4481,"context_line":"                                          subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4482,"context_line":"            res \u003d self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4483,"context_line":"            self.assertEqual(data[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4484,"context_line":"                             res[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4485,"context_line":""},{"line_number":4486,"context_line":"            new_dns_list \u003d (manager.NeutronManager.get_plugin()."}],"source_content_type":"text/x-python","patch_set":54,"id":"3a50d1a3_56146a9e","line":4483,"in_reply_to":"3a50d1a3_359997c4","updated":"2015-07-29 06:04:12.000000000","message":"Yes, please return it to patchset 53. I think the random failures were uncovering a legitimate issue. I am working on tracking it down now.","commit_id":"07708d4a10eb811bffe5cf0121f21abca7e37e14"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"44abd265005b214b4345853df4f584b2ee1edc82","unresolved":false,"context_lines":[{"line_number":4480,"context_line":"                                          data,"},{"line_number":4481,"context_line":"                                          subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4482,"context_line":"            res \u003d self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4483,"context_line":"            self.assertEqual(data[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4484,"context_line":"                             res[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4485,"context_line":""},{"line_number":4486,"context_line":"            new_dns_list \u003d (manager.NeutronManager.get_plugin()."}],"source_content_type":"text/x-python","patch_set":54,"id":"3a50d1a3_b6a36e42","line":4483,"in_reply_to":"3a50d1a3_56146a9e","updated":"2015-07-29 06:07:57.000000000","message":"Done","commit_id":"07708d4a10eb811bffe5cf0121f21abca7e37e14"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f7f9c4040309ffdc2782888aa8cb0e1160ff37f0","unresolved":false,"context_lines":[{"line_number":4480,"context_line":"                                          data,"},{"line_number":4481,"context_line":"                                          subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4482,"context_line":"            res \u003d self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4483,"context_line":"            self.assertEqual(data[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4484,"context_line":"                             res[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4485,"context_line":""},{"line_number":4486,"context_line":"            new_dns_list \u003d (manager.NeutronManager.get_plugin()."}],"source_content_type":"text/x-python","patch_set":54,"id":"3a50d1a3_c4c1abe5","line":4483,"in_reply_to":"3a50d1a3_c4944b38","updated":"2015-07-29 03:48:30.000000000","message":"PS54 doesn\u0027t make sense because it\u0027s same as PS53.\n\ni think it\u0027s what Assaf meant too.","commit_id":"07708d4a10eb811bffe5cf0121f21abca7e37e14"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"352be27b3e61f62be0e6de62ee8b532da89709e0","unresolved":false,"context_lines":[{"line_number":4480,"context_line":"                                          data,"},{"line_number":4481,"context_line":"                                          subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4482,"context_line":"            res \u003d self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4483,"context_line":"            self.assertEqual(data[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4484,"context_line":"                             res[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4485,"context_line":""},{"line_number":4486,"context_line":"            new_dns_list \u003d (manager.NeutronManager.get_plugin()."}],"source_content_type":"text/x-python","patch_set":54,"id":"3a50d1a3_0471d30b","line":4483,"in_reply_to":"3a50d1a3_c4944b38","updated":"2015-07-29 03:36:23.000000000","message":"did you mean that i shoud remove the line 4490?","commit_id":"07708d4a10eb811bffe5cf0121f21abca7e37e14"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"2e589fb8a498adc58e135f0afe360bca6d5de701","unresolved":false,"context_lines":[{"line_number":4480,"context_line":"                                          data,"},{"line_number":4481,"context_line":"                                          subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4482,"context_line":"            res \u003d self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4483,"context_line":"            self.assertEqual(data[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4484,"context_line":"                             res[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4485,"context_line":""},{"line_number":4486,"context_line":"            new_dns_list \u003d (manager.NeutronManager.get_plugin()."}],"source_content_type":"text/x-python","patch_set":54,"id":"3a50d1a3_fa7f9ea8","line":4483,"in_reply_to":"3a50d1a3_c4c1abe5","updated":"2015-07-29 04:43:19.000000000","message":"like this ?\nhttp://paste.openstack.org/show/406157/","commit_id":"07708d4a10eb811bffe5cf0121f21abca7e37e14"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"56d6a59e33e574ee1e8e1e702ec0e747c61a3bed","unresolved":false,"context_lines":[{"line_number":4480,"context_line":"                                          data,"},{"line_number":4481,"context_line":"                                          subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4482,"context_line":"            res \u003d self.deserialize(self.fmt, req.get_response(self.api))"},{"line_number":4483,"context_line":"            self.assertEqual(data[\u0027subnet\u0027][\u0027dns_nameservers\u0027],"},{"line_number":4484,"context_line":"                             res[\u0027subnet\u0027][\u0027dns_nameservers\u0027])"},{"line_number":4485,"context_line":""},{"line_number":4486,"context_line":"            new_dns_list \u003d (manager.NeutronManager.get_plugin()."}],"source_content_type":"text/x-python","patch_set":54,"id":"3a50d1a3_359997c4","line":4483,"in_reply_to":"3a50d1a3_fa7f9ea8","updated":"2015-07-29 04:52:29.000000000","message":"Zhi,\n\ni\u0027m not sure what you mean.\ni\u0027m not suggesting any change by the above comment.\n(except that i think PS53 was slightly better as it\u0027s\nmore straightforward)","commit_id":"07708d4a10eb811bffe5cf0121f21abca7e37e14"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"7be25d564d2996f6c8b363f15c33a8e2608e2155","unresolved":false,"context_lines":[{"line_number":4467,"context_line":"        cfg.CONF.set_override(\u0027max_dns_nameservers\u0027, 3)"},{"line_number":4468,"context_line":"        with self.subnet(dns_nameservers\u003d[\u00271.1.1.1\u0027, \u00272.2.2.2\u0027,"},{"line_number":4469,"context_line":"            \u00273.3.3.3\u0027]) as subnet:"},{"line_number":4470,"context_line":"            ctx \u003d context.Context(\u0027\u0027, \u0027\u0027, is_admin\u003dTrue)"},{"line_number":4471,"context_line":"            dns_list \u003d (manager.NeutronManager.get_plugin()."},{"line_number":4472,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4473,"context_line":"                        [\u0027dns_nameservers\u0027])"}],"source_content_type":"text/x-python","patch_set":55,"id":"3a50d1a3_1c8043f6","line":4470,"updated":"2015-07-29 06:55:55.000000000","message":"the issue is re-using this same context (i.e. the same db session) to read twice with an update in the middle that ends up using a different context.\n\ninstead of fetching the core plugin directly, please use the self._show method so new contexts are constructed and so the retrieval is consistent with the update","commit_id":"bfb400585c16f7eabde806a7be949aeff16bfd1a"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"d4a85cf93789853920f69f074e6ee9dbe040406d","unresolved":false,"context_lines":[{"line_number":4471,"context_line":""},{"line_number":4472,"context_line":"            dns_list \u003d (manager.NeutronManager.get_plugin()."},{"line_number":4473,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4474,"context_line":"                        [\u0027dns_nameservers\u0027])"},{"line_number":4475,"context_line":""},{"line_number":4476,"context_line":"            self.assertEqual([\u00271.1.1.1\u0027, \u00272.2.2.2\u0027, \u00273.3.3.3\u0027], dns_list)"},{"line_number":4477,"context_line":""}],"source_content_type":"text/x-python","patch_set":56,"id":"3a50d1a3_859156f3","line":4474,"updated":"2015-07-29 08:40:27.000000000","message":"use _show here as well","commit_id":"4c91fedc7a03638c5873820337d25538cc091180"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"60413d15e505a13bc92dfba2faded7586b419c3e","unresolved":false,"context_lines":[{"line_number":4471,"context_line":""},{"line_number":4472,"context_line":"            dns_list \u003d (manager.NeutronManager.get_plugin()."},{"line_number":4473,"context_line":"                        get_subnet(ctx, subnet[\u0027subnet\u0027][\u0027id\u0027])"},{"line_number":4474,"context_line":"                        [\u0027dns_nameservers\u0027])"},{"line_number":4475,"context_line":""},{"line_number":4476,"context_line":"            self.assertEqual([\u00271.1.1.1\u0027, \u00272.2.2.2\u0027, \u00273.3.3.3\u0027], dns_list)"},{"line_number":4477,"context_line":""}],"source_content_type":"text/x-python","patch_set":56,"id":"3a50d1a3_ebcb4b70","line":4474,"in_reply_to":"3a50d1a3_859156f3","updated":"2015-07-29 09:15:40.000000000","message":"Done","commit_id":"4c91fedc7a03638c5873820337d25538cc091180"}]}
