)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"2f32ea256dce7379292b37dc172c3c2e15c15680","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add availability_zone support for Scheduler"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds the availability_zone attribute to agents, networks"},{"line_number":10,"context_line":"and routers, so that users can specify where network services run."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"APIImpact"},{"line_number":13,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"da20952f_a63d9d2c","line":10,"updated":"2015-09-05 06:51:43.000000000","message":"I thinks the attrs are already added in API patch, this patch is to implment scheduler support.","commit_id":"b225de0d8bb08040c316a1962274d53ba7744c16"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"972f35124828cfeea1921c96ce6c78da09d0f41a","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add availability_zone support for Scheduler"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds the availability_zone attribute to agents, networks"},{"line_number":10,"context_line":"and routers, so that users can specify where network services run."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"APIImpact"},{"line_number":13,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"da20952f_0861dc04","line":10,"in_reply_to":"da20952f_a63d9d2c","updated":"2015-09-07 06:54:44.000000000","message":"Done","commit_id":"b225de0d8bb08040c316a1962274d53ba7744c16"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"82cc9bd584f8d4cd9db655de03c440a7818d0857","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add availability_zone support for network"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds the availability_zone support for network."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"APIImpact"},{"line_number":12,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":37,"id":"1a26ad4f_0ac34fee","line":9,"updated":"2015-11-02 14:42:55.000000000","message":"I think that you should break this into smaller pactes. That is, only have the network updates here and then all of the scheduling stuff in another patch","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"8ee4f0f5cf5dd3c442ac009fce46a6587f53db7d","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add availability_zone support for network"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds the availability_zone support for network."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"APIImpact"},{"line_number":12,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":37,"id":"fa80f949_ffce4459","line":9,"in_reply_to":"1a26ad4f_0ac34fee","updated":"2015-11-04 08:53:03.000000000","message":"Why do you want so? AZ patches are divided so that we can test each patch easily. How do we test a patch which has the network updates only?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"}],"etc/neutron.conf":[{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"dcbf0ad067abf29d214f3a65b2ad9ddf634e4225","unresolved":false,"context_lines":[{"line_number":217,"context_line":"#"},{"line_number":218,"context_line":"# Availability zone aware scheduler"},{"line_number":219,"context_line":"# Select scheduler for network_scheduler_driver/router_scheduler_driver as follows:"},{"line_number":220,"context_line":"# network_scheduler_driver \u003d neutron.scheduler.dhcp_agent_scheduler.AvailabilityZoneScheduler"},{"line_number":221,"context_line":"# router_scheduler_driver \u003d neutron.scheduler.l3_agent_scheduler.AvailabilityZoneScheduler"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted"}],"source_content_type":"text/plain","patch_set":9,"id":"fa1b9901_e5e788aa","line":220,"updated":"2015-08-24 14:13:34.000000000","message":"This setting was is already at L185, and that comment shows the default is ChanceScheduler (that used to be the convention, but I\u0027m not sure if it still is).\nMaybe this line should be moved just before L185 as an example.","commit_id":"db4e106244c608ad3d047795e4efe7b8e18a00a4"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"d1c7f93eab623db849c99a8dd1507fe80d84bb85","unresolved":false,"context_lines":[{"line_number":217,"context_line":"#"},{"line_number":218,"context_line":"# Availability zone aware scheduler"},{"line_number":219,"context_line":"# Select scheduler for network_scheduler_driver/router_scheduler_driver as follows:"},{"line_number":220,"context_line":"# network_scheduler_driver \u003d neutron.scheduler.dhcp_agent_scheduler.AvailabilityZoneScheduler"},{"line_number":221,"context_line":"# router_scheduler_driver \u003d neutron.scheduler.l3_agent_scheduler.AvailabilityZoneScheduler"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted"}],"source_content_type":"text/plain","patch_set":9,"id":"fa1b9901_9b2d4f00","line":220,"in_reply_to":"fa1b9901_e5e788aa","updated":"2015-08-26 15:59:39.000000000","message":"AvailabilityZoneScheduler is not instead of ChanceScheduler. Maybe this way of writing confuses you, indeed, it seems default value...\n\nI will update.","commit_id":"db4e106244c608ad3d047795e4efe7b8e18a00a4"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"dcbf0ad067abf29d214f3a65b2ad9ddf634e4225","unresolved":false,"context_lines":[{"line_number":218,"context_line":"# Availability zone aware scheduler"},{"line_number":219,"context_line":"# Select scheduler for network_scheduler_driver/router_scheduler_driver as follows:"},{"line_number":220,"context_line":"# network_scheduler_driver \u003d neutron.scheduler.dhcp_agent_scheduler.AvailabilityZoneScheduler"},{"line_number":221,"context_line":"# router_scheduler_driver \u003d neutron.scheduler.l3_agent_scheduler.AvailabilityZoneScheduler"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted"},{"line_number":224,"context_line":"# networks to first DHCP agent which sends get_active_networks message to"}],"source_content_type":"text/plain","patch_set":9,"id":"fa1b9901_4598b41b","line":221,"updated":"2015-08-24 14:13:34.000000000","message":"ditto but L187.","commit_id":"db4e106244c608ad3d047795e4efe7b8e18a00a4"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bee424ccdfab0b8cd2ff84c7c627c25b0f60964f","unresolved":false,"context_lines":[{"line_number":211,"context_line":"# Availability Zones support"},{"line_number":212,"context_line":"#"},{"line_number":213,"context_line":"# Availability zone of this node."},{"line_number":214,"context_line":"# availability_zone \u003d nova"},{"line_number":215,"context_line":"#"},{"line_number":216,"context_line":"# Default value for API calls when unspecified. The DHCP and router schedulers"},{"line_number":217,"context_line":"# use this when the resource\u0027s availability_zone_hints is empty."}],"source_content_type":"text/plain","patch_set":13,"id":"da20952f_8f49c962","line":214,"updated":"2015-08-29 14:59:48.000000000","message":"availability_zone is a config parameter for agent.\nIt should be added to each related agent conf.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"1f4e377a075b137994bed771a263cf2d4b5c5225","unresolved":false,"context_lines":[{"line_number":211,"context_line":"# Availability Zones support"},{"line_number":212,"context_line":"#"},{"line_number":213,"context_line":"# Availability zone of this node."},{"line_number":214,"context_line":"# availability_zone \u003d nova"},{"line_number":215,"context_line":"#"},{"line_number":216,"context_line":"# Default value for API calls when unspecified. The DHCP and router schedulers"},{"line_number":217,"context_line":"# use this when the resource\u0027s availability_zone_hints is empty."}],"source_content_type":"text/plain","patch_set":13,"id":"da20952f_4f346d49","line":214,"in_reply_to":"da20952f_8f49c962","updated":"2015-09-02 04:53:23.000000000","message":"I chose neutron.conf because this value applies to node. Deployers can overwrite the value in *.ini if they want to apply different AZ to each agents on the same node.\n\nAnyway, I moved the config to agent section.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":17096,"name":"Aditi Rajagopal","email":"arajagopal@us.ibm.com","username":"aditirajagopal"},"change_message_id":"5dc035ad4b6322b80398bc79bfd1e260251ed688","unresolved":false,"context_lines":[{"line_number":222,"context_line":"#"},{"line_number":223,"context_line":"# Make network scheduler availability_zone aware."},{"line_number":224,"context_line":"# If multiple availability_zones used, set this option True."},{"line_number":225,"context_line":"# Use network_schduler_driver, for selecting agent within an availability_zone."},{"line_number":226,"context_line":"# network_scheduler_availability_zone_aware \u003d False"},{"line_number":227,"context_line":"#"},{"line_number":228,"context_line":"# Make router scheduler availability_zone aware."}],"source_content_type":"text/plain","patch_set":22,"id":"ba15a1d1_c074c09d","line":225,"updated":"2015-09-14 21:27:18.000000000","message":"nit- network_schduler_driver --\u003e network_scheduler_driver","commit_id":"7ff29b2b4d0dc77a0c0debf7fbbbab1b67f83ab6"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"eb88dcd109564440c92703b6fc31da3f6db68255","unresolved":false,"context_lines":[{"line_number":222,"context_line":"#"},{"line_number":223,"context_line":"# Make network scheduler availability_zone aware."},{"line_number":224,"context_line":"# If multiple availability_zones used, set this option True."},{"line_number":225,"context_line":"# Use network_schduler_driver, for selecting agent within an availability_zone."},{"line_number":226,"context_line":"# network_scheduler_availability_zone_aware \u003d False"},{"line_number":227,"context_line":"#"},{"line_number":228,"context_line":"# Make router scheduler availability_zone aware."}],"source_content_type":"text/plain","patch_set":22,"id":"ba15a1d1_50a15b93","line":225,"in_reply_to":"ba15a1d1_c074c09d","updated":"2015-09-14 23:22:34.000000000","message":"Done","commit_id":"7ff29b2b4d0dc77a0c0debf7fbbbab1b67f83ab6"},{"author":{"_account_id":17096,"name":"Aditi Rajagopal","email":"arajagopal@us.ibm.com","username":"aditirajagopal"},"change_message_id":"5dc035ad4b6322b80398bc79bfd1e260251ed688","unresolved":false,"context_lines":[{"line_number":227,"context_line":"#"},{"line_number":228,"context_line":"# Make router scheduler availability_zone aware."},{"line_number":229,"context_line":"# If multiple availability_zones used, set this option True."},{"line_number":230,"context_line":"# Use router_schduler_driver, for selecting agent within an availability_zone."},{"line_number":231,"context_line":"# router_scheduler_availability_zone_aware \u003d False"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted"}],"source_content_type":"text/plain","patch_set":22,"id":"ba15a1d1_20b7bc3a","line":230,"updated":"2015-09-14 21:27:18.000000000","message":"nit - router_schduler_driver --\u003e router_scheduler_driver","commit_id":"7ff29b2b4d0dc77a0c0debf7fbbbab1b67f83ab6"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"eb88dcd109564440c92703b6fc31da3f6db68255","unresolved":false,"context_lines":[{"line_number":227,"context_line":"#"},{"line_number":228,"context_line":"# Make router scheduler availability_zone aware."},{"line_number":229,"context_line":"# If multiple availability_zones used, set this option True."},{"line_number":230,"context_line":"# Use router_schduler_driver, for selecting agent within an availability_zone."},{"line_number":231,"context_line":"# router_scheduler_availability_zone_aware \u003d False"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted"}],"source_content_type":"text/plain","patch_set":22,"id":"ba15a1d1_f0ad0f89","line":230,"in_reply_to":"ba15a1d1_20b7bc3a","updated":"2015-09-14 23:22:34.000000000","message":"Done","commit_id":"7ff29b2b4d0dc77a0c0debf7fbbbab1b67f83ab6"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"0a8ecd260110ee7059eafdb236ca7fa9645dec25","unresolved":false,"context_lines":[{"line_number":220,"context_line":"# Multiple availability_zones can be specified by a comma separated string."},{"line_number":221,"context_line":"# default_availability_zones \u003d"},{"line_number":222,"context_line":"#"},{"line_number":223,"context_line":"# Make network scheduler availability_zone aware."},{"line_number":224,"context_line":"# If multiple availability_zones used, set this option True."},{"line_number":225,"context_line":"# Use network_scheduler_driver, for selecting agent within an availability_zone."},{"line_number":226,"context_line":"# network_scheduler_availability_zone_aware \u003d False"}],"source_content_type":"text/plain","patch_set":32,"id":"9a1a9d01_f59f14b2","line":223,"updated":"2015-09-28 11:57:37.000000000","message":"I think it is better to remove the _ here.","commit_id":"32a3b21535c9b73141d1d46c1bfa18ae01645c39"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4d00e4267e7659935a563e6dfe40ad33e4511062","unresolved":false,"context_lines":[{"line_number":220,"context_line":"# Multiple availability_zones can be specified by a comma separated string."},{"line_number":221,"context_line":"# default_availability_zones \u003d"},{"line_number":222,"context_line":"#"},{"line_number":223,"context_line":"# Make network scheduler availability_zone aware."},{"line_number":224,"context_line":"# If multiple availability_zones used, set this option True."},{"line_number":225,"context_line":"# Use network_scheduler_driver, for selecting agent within an availability_zone."},{"line_number":226,"context_line":"# network_scheduler_availability_zone_aware \u003d False"}],"source_content_type":"text/plain","patch_set":32,"id":"9a1a9d01_ec32aea6","line":223,"in_reply_to":"9a1a9d01_f59f14b2","updated":"2015-09-29 16:23:44.000000000","message":"Done","commit_id":"32a3b21535c9b73141d1d46c1bfa18ae01645c39"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"0a8ecd260110ee7059eafdb236ca7fa9645dec25","unresolved":false,"context_lines":[{"line_number":221,"context_line":"# default_availability_zones \u003d"},{"line_number":222,"context_line":"#"},{"line_number":223,"context_line":"# Make network scheduler availability_zone aware."},{"line_number":224,"context_line":"# If multiple availability_zones used, set this option True."},{"line_number":225,"context_line":"# Use network_scheduler_driver, for selecting agent within an availability_zone."},{"line_number":226,"context_line":"# network_scheduler_availability_zone_aware \u003d False"},{"line_number":227,"context_line":""}],"source_content_type":"text/plain","patch_set":32,"id":"9a1a9d01_d583f054","line":224,"updated":"2015-09-28 11:57:37.000000000","message":"ditto, what is \"multiple availability_zones\", do u mean the default_availability_zones define multiple values?","commit_id":"32a3b21535c9b73141d1d46c1bfa18ae01645c39"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4d00e4267e7659935a563e6dfe40ad33e4511062","unresolved":false,"context_lines":[{"line_number":221,"context_line":"# default_availability_zones \u003d"},{"line_number":222,"context_line":"#"},{"line_number":223,"context_line":"# Make network scheduler availability_zone aware."},{"line_number":224,"context_line":"# If multiple availability_zones used, set this option True."},{"line_number":225,"context_line":"# Use network_scheduler_driver, for selecting agent within an availability_zone."},{"line_number":226,"context_line":"# network_scheduler_availability_zone_aware \u003d False"},{"line_number":227,"context_line":""}],"source_content_type":"text/plain","patch_set":32,"id":"9a1a9d01_0cc60268","line":224,"in_reply_to":"9a1a9d01_d583f054","updated":"2015-09-29 16:23:44.000000000","message":"Done. \"multiple availability zones\" means that there are some AZs. If just a AZ, we don\u0027t need to use this option.","commit_id":"32a3b21535c9b73141d1d46c1bfa18ae01645c39"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"0a8ecd260110ee7059eafdb236ca7fa9645dec25","unresolved":false,"context_lines":[{"line_number":222,"context_line":"#"},{"line_number":223,"context_line":"# Make network scheduler availability_zone aware."},{"line_number":224,"context_line":"# If multiple availability_zones used, set this option True."},{"line_number":225,"context_line":"# Use network_scheduler_driver, for selecting agent within an availability_zone."},{"line_number":226,"context_line":"# network_scheduler_availability_zone_aware \u003d False"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted"}],"source_content_type":"text/plain","patch_set":32,"id":"9a1a9d01_f5d4f447","line":225,"updated":"2015-09-28 11:57:37.000000000","message":"remove , ? for selecting -\u003e to select?","commit_id":"32a3b21535c9b73141d1d46c1bfa18ae01645c39"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4d00e4267e7659935a563e6dfe40ad33e4511062","unresolved":false,"context_lines":[{"line_number":222,"context_line":"#"},{"line_number":223,"context_line":"# Make network scheduler availability_zone aware."},{"line_number":224,"context_line":"# If multiple availability_zones used, set this option True."},{"line_number":225,"context_line":"# Use network_scheduler_driver, for selecting agent within an availability_zone."},{"line_number":226,"context_line":"# network_scheduler_availability_zone_aware \u003d False"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted"}],"source_content_type":"text/plain","patch_set":32,"id":"9a1a9d01_2cc3c658","line":225,"in_reply_to":"9a1a9d01_f5d4f447","updated":"2015-09-29 16:23:44.000000000","message":"Done","commit_id":"32a3b21535c9b73141d1d46c1bfa18ae01645c39"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"40563cc35aa9358e69810b28b99494ab6de6caeb","unresolved":false,"context_lines":[{"line_number":222,"context_line":"# default_availability_zones \u003d"},{"line_number":223,"context_line":"#"},{"line_number":224,"context_line":"# Make network scheduler availability zone aware."},{"line_number":225,"context_line":"# If multiple availability zones are used, set this option True."},{"line_number":226,"context_line":"# Use network_scheduler_driver to select agent within an availability zone."},{"line_number":227,"context_line":"# network_scheduler_availability_zone_aware \u003d False"},{"line_number":228,"context_line":""}],"source_content_type":"text/plain","patch_set":36,"id":"5a2ca52d_27f03490","line":225,"updated":"2015-10-14 05:47:44.000000000","message":"you mean in \u0027default_availability_zones\u0027? If I can infer the value of \u0027network_scheduler_availability_zone_aware\u0027 by \u0027default_availability_zones\u0027 what do I need this config for?\n\nI am confused by these two and reading the spec didn\u0027t help either. Can you elaborate?","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"154c6e58433c45bb44a803426857d458f8c3ca4d","unresolved":false,"context_lines":[{"line_number":222,"context_line":"# default_availability_zones \u003d"},{"line_number":223,"context_line":"#"},{"line_number":224,"context_line":"# Make network scheduler availability zone aware."},{"line_number":225,"context_line":"# If multiple availability zones are used, set this option True."},{"line_number":226,"context_line":"# Use network_scheduler_driver to select agent within an availability zone."},{"line_number":227,"context_line":"# network_scheduler_availability_zone_aware \u003d False"},{"line_number":228,"context_line":""}],"source_content_type":"text/plain","patch_set":36,"id":"3a29b11f_7ceb62dc","line":225,"in_reply_to":"5a2ca52d_27f03490","updated":"2015-10-23 04:12:18.000000000","message":"There is a case that default_availability_zones\u003dNone and network_scheduler_availability_zone_aware\u003dTrue. I updated this description.","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"82cc9bd584f8d4cd9db655de03c440a7818d0857","unresolved":false,"context_lines":[{"line_number":214,"context_line":"#   ports   -  number of ports associated with the networks hosted on the agent"},{"line_number":215,"context_line":"# dhcp_load_type \u003d networks"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"# Availability Zones support"},{"line_number":218,"context_line":"#"},{"line_number":219,"context_line":"# Default value of availability zone hints. The availability zone aware"},{"line_number":220,"context_line":"# schedulers use this when the resource\u0027s availability_zone_hints is empty."}],"source_content_type":"text/plain","patch_set":37,"id":"1a26ad4f_8aaf5f29","line":217,"updated":"2015-11-02 14:42:55.000000000","message":"Zones \u003d\u003e Zone","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":214,"context_line":"#   ports   -  number of ports associated with the networks hosted on the agent"},{"line_number":215,"context_line":"# dhcp_load_type \u003d networks"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"# Availability Zones support"},{"line_number":218,"context_line":"#"},{"line_number":219,"context_line":"# Default value of availability zone hints. The availability zone aware"},{"line_number":220,"context_line":"# schedulers use this when the resource\u0027s availability_zone_hints is empty."}],"source_content_type":"text/plain","patch_set":37,"id":"da85f559_29fbcf7a","line":217,"in_reply_to":"1a26ad4f_8aaf5f29","updated":"2015-11-11 07:59:20.000000000","message":"Done","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":14591,"name":"Lubosz Kosnik (diltram)","email":"lubosz.kosnik@intel.com","username":"diltram"},"change_message_id":"d7f67001b7318980f3cd3ebdc745ee1dc7b9d21e","unresolved":false,"context_lines":[{"line_number":217,"context_line":"# Availability Zones support"},{"line_number":218,"context_line":"#"},{"line_number":219,"context_line":"# Default value of availability zone hints. The availability zone aware"},{"line_number":220,"context_line":"# schedulers use this when the resource\u0027s availability_zone_hints is empty."},{"line_number":221,"context_line":"# Multiple availability zones can be specified by a comma separated string."},{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"}],"source_content_type":"text/plain","patch_set":37,"id":"1a26ad4f_691316b9","line":220,"updated":"2015-10-30 18:54:13.000000000","message":"resources","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":217,"context_line":"# Availability Zones support"},{"line_number":218,"context_line":"#"},{"line_number":219,"context_line":"# Default value of availability zone hints. The availability zone aware"},{"line_number":220,"context_line":"# schedulers use this when the resource\u0027s availability_zone_hints is empty."},{"line_number":221,"context_line":"# Multiple availability zones can be specified by a comma separated string."},{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"}],"source_content_type":"text/plain","patch_set":37,"id":"da85f559_49f8937b","line":220,"in_reply_to":"1a26ad4f_691316b9","updated":"2015-11-11 07:59:20.000000000","message":"Done","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"6fbe604ccb59da49baa988aa9182033ff8bb664c","unresolved":false,"context_lines":[{"line_number":219,"context_line":"# Default value of availability zone hints. The availability zone aware"},{"line_number":220,"context_line":"# schedulers use this when the resource\u0027s availability_zone_hints is empty."},{"line_number":221,"context_line":"# Multiple availability zones can be specified by a comma separated string."},{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"},{"line_number":224,"context_line":"# create it with hints set to None. However, user\u0027s resource can be scheduled by"},{"line_number":225,"context_line":"# hints although this value is empty."}],"source_content_type":"text/plain","patch_set":37,"id":"fa80f949_78148043","line":222,"range":{"start_line":222,"start_character":35,"end_line":222,"end_character":76},"updated":"2015-11-05 07:28:04.000000000","message":"If this config parameter is used in both network and router AZ schedulers, \"network_scheduler_availability_zone_aware\" here looks inappropriate.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":219,"context_line":"# Default value of availability zone hints. The availability zone aware"},{"line_number":220,"context_line":"# schedulers use this when the resource\u0027s availability_zone_hints is empty."},{"line_number":221,"context_line":"# Multiple availability zones can be specified by a comma separated string."},{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"},{"line_number":224,"context_line":"# create it with hints set to None. However, user\u0027s resource can be scheduled by"},{"line_number":225,"context_line":"# hints although this value is empty."}],"source_content_type":"text/plain","patch_set":37,"id":"da85f559_89d43bbd","line":222,"in_reply_to":"fa80f949_78148043","updated":"2015-11-11 07:59:20.000000000","message":"I removed the option.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":14591,"name":"Lubosz Kosnik (diltram)","email":"lubosz.kosnik@intel.com","username":"diltram"},"change_message_id":"d7f67001b7318980f3cd3ebdc745ee1dc7b9d21e","unresolved":false,"context_lines":[{"line_number":220,"context_line":"# schedulers use this when the resource\u0027s availability_zone_hints is empty."},{"line_number":221,"context_line":"# Multiple availability zones can be specified by a comma separated string."},{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"},{"line_number":224,"context_line":"# create it with hints set to None. However, user\u0027s resource can be scheduled by"},{"line_number":225,"context_line":"# hints although this value is empty."},{"line_number":226,"context_line":"# default_availability_zones \u003d"}],"source_content_type":"text/plain","patch_set":37,"id":"1a26ad4f_49873ad7","line":223,"updated":"2015-10-30 18:54:13.000000000","message":"In this case, users","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"2f386ea44fc697e144b8ffc2bbbc7967e811f667","unresolved":false,"context_lines":[{"line_number":220,"context_line":"# schedulers use this when the resource\u0027s availability_zone_hints is empty."},{"line_number":221,"context_line":"# Multiple availability zones can be specified by a comma separated string."},{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"},{"line_number":224,"context_line":"# create it with hints set to None. However, user\u0027s resource can be scheduled by"},{"line_number":225,"context_line":"# hints although this value is empty."},{"line_number":226,"context_line":"# default_availability_zones \u003d"}],"source_content_type":"text/plain","patch_set":37,"id":"1a26ad4f_24a4c955","line":223,"updated":"2015-11-02 13:37:48.000000000","message":"the case, -\u003e this case, the","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":220,"context_line":"# schedulers use this when the resource\u0027s availability_zone_hints is empty."},{"line_number":221,"context_line":"# Multiple availability zones can be specified by a comma separated string."},{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"},{"line_number":224,"context_line":"# create it with hints set to None. However, user\u0027s resource can be scheduled by"},{"line_number":225,"context_line":"# hints although this value is empty."},{"line_number":226,"context_line":"# default_availability_zones \u003d"}],"source_content_type":"text/plain","patch_set":37,"id":"da85f559_498973c8","line":223,"in_reply_to":"1a26ad4f_24a4c955","updated":"2015-11-11 07:59:20.000000000","message":"Done","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":14591,"name":"Lubosz Kosnik (diltram)","email":"lubosz.kosnik@intel.com","username":"diltram"},"change_message_id":"d7f67001b7318980f3cd3ebdc745ee1dc7b9d21e","unresolved":false,"context_lines":[{"line_number":221,"context_line":"# Multiple availability zones can be specified by a comma separated string."},{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"},{"line_number":224,"context_line":"# create it with hints set to None. However, user\u0027s resource can be scheduled by"},{"line_number":225,"context_line":"# hints although this value is empty."},{"line_number":226,"context_line":"# default_availability_zones \u003d"},{"line_number":227,"context_line":"#"}],"source_content_type":"text/plain","patch_set":37,"id":"1a26ad4f_e96e462e","line":224,"updated":"2015-10-30 18:54:13.000000000","message":"users","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":221,"context_line":"# Multiple availability zones can be specified by a comma separated string."},{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"},{"line_number":224,"context_line":"# create it with hints set to None. However, user\u0027s resource can be scheduled by"},{"line_number":225,"context_line":"# hints although this value is empty."},{"line_number":226,"context_line":"# default_availability_zones \u003d"},{"line_number":227,"context_line":"#"}],"source_content_type":"text/plain","patch_set":37,"id":"da85f559_e99147f2","line":224,"in_reply_to":"1a26ad4f_e96e462e","updated":"2015-11-11 07:59:20.000000000","message":"Done","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8145c9b15c462ff425350533d07d46749c146e28","unresolved":false,"context_lines":[{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"},{"line_number":224,"context_line":"# create it with hints set to None. However, user\u0027s resource can be scheduled by"},{"line_number":225,"context_line":"# hints although this value is empty."},{"line_number":226,"context_line":"# default_availability_zones \u003d"},{"line_number":227,"context_line":"#"},{"line_number":228,"context_line":"# Make network scheduler availability zone aware."}],"source_content_type":"text/plain","patch_set":37,"id":"fa80f949_741edd64","line":225,"updated":"2015-11-05 02:36:40.000000000","message":"I am still struggling understanding the description.\nAfter reviewing the rest of the code, I would like to help him for a better description.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"6fbe604ccb59da49baa988aa9182033ff8bb664c","unresolved":false,"context_lines":[{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"},{"line_number":224,"context_line":"# create it with hints set to None. However, user\u0027s resource can be scheduled by"},{"line_number":225,"context_line":"# hints although this value is empty."},{"line_number":226,"context_line":"# default_availability_zones \u003d"},{"line_number":227,"context_line":"#"},{"line_number":228,"context_line":"# Make network scheduler availability zone aware."}],"source_content_type":"text/plain","patch_set":37,"id":"fa80f949_f874f09c","line":225,"in_reply_to":"fa80f949_741edd64","updated":"2015-11-05 07:28:04.000000000","message":"(I forgot to leave a comment here)\n\nI think L.222-225 is not easy to understand.\nHow about rephrasing as follows?\n\n---\n\nThis value can be empty. If availability_zone_hints for a resource is empty, availability zone is not considered\nwhile scheduling the resource.\nNote that this only happens when both hints specified by a user\nand this parameter are empty.\n\n---\n\nMore advise is welcome.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":222,"context_line":"# This value can be set empty with network_scheduler_availability_zone_aware set"},{"line_number":223,"context_line":"# to True. In the case, user\u0027s resource isn\u0027t scheduled by availability zone if users"},{"line_number":224,"context_line":"# create it with hints set to None. However, user\u0027s resource can be scheduled by"},{"line_number":225,"context_line":"# hints although this value is empty."},{"line_number":226,"context_line":"# default_availability_zones \u003d"},{"line_number":227,"context_line":"#"},{"line_number":228,"context_line":"# Make network scheduler availability zone aware."}],"source_content_type":"text/plain","patch_set":37,"id":"da85f559_a9333f13","line":225,"in_reply_to":"fa80f949_f874f09c","updated":"2015-11-11 07:59:20.000000000","message":"Thank you for your help. It\u0027s nice comments. I updated.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"64c83a56f6ca29d141b6f0696b3b205abb09b862","unresolved":false,"context_lines":[{"line_number":228,"context_line":"# Make network scheduler availability zone aware."},{"line_number":229,"context_line":"# If multiple availability zones are used, set network_scheduler_driver \u003d"},{"line_number":230,"context_line":"# neutron.scheduler.dhcp_agent_scheduler.AZAwareWeightScheduler"},{"line_number":231,"context_line":"# This scheduler selects agent depends on WeightScheduler logic within an"},{"line_number":232,"context_line":"# availability zone."},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted"}],"source_content_type":"text/plain","patch_set":38,"id":"da85f559_e7bdebb7","line":231,"updated":"2015-11-11 09:41:38.000000000","message":"I think you should let people know that this scheduler will also consider the weight of agent among AZs.","commit_id":"79d5d8ecd33ef7fa94f605e1081d699b78dbdc64"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"508793c379d51128d66eb05b19903d5848a9433f","unresolved":false,"context_lines":[{"line_number":228,"context_line":"# Make network scheduler availability zone aware."},{"line_number":229,"context_line":"# If multiple availability zones are used, set network_scheduler_driver \u003d"},{"line_number":230,"context_line":"# neutron.scheduler.dhcp_agent_scheduler.AZAwareWeightScheduler"},{"line_number":231,"context_line":"# This scheduler selects agent depends on WeightScheduler logic within an"},{"line_number":232,"context_line":"# availability zone."},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted"}],"source_content_type":"text/plain","patch_set":38,"id":"da85f559_85d06dca","line":231,"in_reply_to":"da85f559_e7bdebb7","updated":"2015-11-12 01:33:18.000000000","message":"Done","commit_id":"79d5d8ecd33ef7fa94f605e1081d699b78dbdc64"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"e7d71f4f40281b79637477c1e1b49b942f68a8f9","unresolved":false,"context_lines":[{"line_number":226,"context_line":"# schedulers use this when the resources availability_zone_hints is empty."},{"line_number":227,"context_line":"# Multiple availability zones can be specified by a comma separated string."},{"line_number":228,"context_line":"# This value can be empty. If availability_zone_hints for a resource is empty,"},{"line_number":229,"context_line":"# availability zone is not considered while scheduling the resource. Note that"},{"line_number":230,"context_line":"# this only happens when both hints specified by a user and this parameter are"},{"line_number":231,"context_line":"# empty."},{"line_number":232,"context_line":"# default_availability_zones \u003d"}],"source_content_type":"text/plain","patch_set":41,"id":"ba8a016a_088e6678","line":229,"updated":"2015-11-17 06:43:54.000000000","message":"Sorry for the negative score here. The code in this review looks nice. But it seems that \"availability zone is not considered\" here is not true, according to [1]. From [1]\u0027s result, even if az_hint is not provided, agents were chosen from AZs evenly. If this is true, user might get confused when reading this line.\n\nCorrect me if I am wrong, and I will revert the score here then.\n\n[1] neutron.tests.unit.scheduler.test_dhcp_agent_scheduler.DHCPAgentAZAwareWeightSchedulerTestCase.test_az_scheduler_no_az_hints","commit_id":"0a2eae4f4a000f18b06fa443839517cbf2199c36"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"73deda550d61e0d6b87b7c34c67a9bb50c1222bc","unresolved":false,"context_lines":[{"line_number":226,"context_line":"# schedulers use this when the resources availability_zone_hints is empty."},{"line_number":227,"context_line":"# Multiple availability zones can be specified by a comma separated string."},{"line_number":228,"context_line":"# This value can be empty. If availability_zone_hints for a resource is empty,"},{"line_number":229,"context_line":"# availability zone is not considered while scheduling the resource. Note that"},{"line_number":230,"context_line":"# this only happens when both hints specified by a user and this parameter are"},{"line_number":231,"context_line":"# empty."},{"line_number":232,"context_line":"# default_availability_zones \u003d"}],"source_content_type":"text/plain","patch_set":41,"id":"ba8a016a_59d42c46","line":229,"in_reply_to":"ba8a016a_088e6678","updated":"2015-11-17 14:02:13.000000000","message":"Don\u0027t worry. Your point is really right. This sentence may confuse users as you say. I will update.","commit_id":"0a2eae4f4a000f18b06fa443839517cbf2199c36"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"65eb9679077c7be9ca19b941c73b8965d0db7b34","unresolved":false,"context_lines":[{"line_number":220,"context_line":"#   ports   -  number of ports associated with the networks hosted on the agent"},{"line_number":221,"context_line":"# dhcp_load_type \u003d networks"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"# Availability Zone support"},{"line_number":224,"context_line":"#"},{"line_number":225,"context_line":"# Default value of availability zone hints. The availability zone aware"},{"line_number":226,"context_line":"# schedulers use this when the resources availability_zone_hints is empty."}],"source_content_type":"text/plain","patch_set":46,"id":"ba8a016a_b5297b8b","line":223,"updated":"2015-11-23 21:18:40.000000000","message":"iirc, there is a change to autogenerate neutron.conf, some of the detail in this file is not in the python definition of the option and will(?) disappear with autogenerattion","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"e834d1a08260e616b718a6dfdbabc1b6e2a44418","unresolved":false,"context_lines":[{"line_number":220,"context_line":"#   ports   -  number of ports associated with the networks hosted on the agent"},{"line_number":221,"context_line":"# dhcp_load_type \u003d networks"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"# Availability Zone support"},{"line_number":224,"context_line":"#"},{"line_number":225,"context_line":"# Default value of availability zone hints. The availability zone aware"},{"line_number":226,"context_line":"# schedulers use this when the resources availability_zone_hints is empty."}],"source_content_type":"text/plain","patch_set":46,"id":"ba8a016a_66d11a57","line":223,"in_reply_to":"ba8a016a_b5297b8b","updated":"2015-11-24 10:50:00.000000000","message":"I understand by Akihiro\u0027s suggestion. I updated.","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"4b9545f6fd5d3b6409f7afe1f226e65e38441481","unresolved":false,"context_lines":[{"line_number":237,"context_line":"# Make network scheduler availability zone aware."},{"line_number":238,"context_line":"# If multiple availability zones are used, set network_scheduler_driver \u003d"},{"line_number":239,"context_line":"# neutron.scheduler.dhcp_agent_scheduler.AZAwareWeightScheduler"},{"line_number":240,"context_line":"# This scheduler selects agent depends on WeightScheduler logic within an"},{"line_number":241,"context_line":"# availability zone so that considers the weight of agent."},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted"}],"source_content_type":"text/plain","patch_set":49,"id":"9a8ffd7b_463b06d2","line":240,"range":{"start_line":240,"start_character":31,"end_line":240,"end_character":38},"updated":"2015-11-25 05:25:20.000000000","message":"depending?","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"42edbbb621d74dbc03e34f96d278df246fed670a","unresolved":false,"context_lines":[{"line_number":237,"context_line":"# Make network scheduler availability zone aware."},{"line_number":238,"context_line":"# If multiple availability zones are used, set network_scheduler_driver \u003d"},{"line_number":239,"context_line":"# neutron.scheduler.dhcp_agent_scheduler.AZAwareWeightScheduler"},{"line_number":240,"context_line":"# This scheduler selects agent depends on WeightScheduler logic within an"},{"line_number":241,"context_line":"# availability zone so that considers the weight of agent."},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted"}],"source_content_type":"text/plain","patch_set":49,"id":"9a8ffd7b_939b5772","line":240,"in_reply_to":"9a8ffd7b_463b06d2","updated":"2015-11-25 13:34:53.000000000","message":"Done","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"}],"neutron/agent/common/config.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"af21959ede48fd810e453970080a4a66c910d9b3","unresolved":false,"context_lines":[{"line_number":76,"context_line":"]"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"# NOTE(hichihara): It is desirable to fix types.String and cfg.StrOpt"},{"line_number":80,"context_line":"# of oslo_config directly. These are used until oslo_config will be fixed."},{"line_number":81,"context_line":"class LengthString(types.String):"},{"line_number":82,"context_line":"    def __init__(self, maxlen\u003dNone):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_a188a6c7","line":79,"updated":"2015-09-09 15:49:05.000000000","message":"Maybe just do:\n\n    # TODO(hicihara): Remove these two methods, once oslo fixes types.String and cfg.StrOpt","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6c2fb23d08d4835e5a8e2950b3ad4e9360bb42a3","unresolved":false,"context_lines":[{"line_number":76,"context_line":"]"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"# NOTE(hichihara): It is desirable to fix types.String and cfg.StrOpt"},{"line_number":80,"context_line":"# of oslo_config directly. These are used until oslo_config will be fixed."},{"line_number":81,"context_line":"class LengthString(types.String):"},{"line_number":82,"context_line":"    def __init__(self, maxlen\u003dNone):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_d8a336ff","line":79,"in_reply_to":"da20952f_a188a6c7","updated":"2015-09-10 01:18:36.000000000","message":"Done","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"af21959ede48fd810e453970080a4a66c910d9b3","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        value \u003d super(LengthString, self).__call__(value)"},{"line_number":88,"context_line":"        if self.maxlen and len(value) \u003e self.maxlen:"},{"line_number":89,"context_line":"            raise ValueError("},{"line_number":90,"context_line":"                \"String value \u0027%s\u0027 exceeds max length %d\" % (value,"},{"line_number":91,"context_line":"                                                            self.maxlen))"},{"line_number":92,"context_line":"        return value"},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_2149f68e","line":90,"updated":"2015-09-09 15:49:05.000000000","message":"i18n for exception string. Use named formatting parameters and dict, e.g. \u0027%(value)s\u0027","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6c2fb23d08d4835e5a8e2950b3ad4e9360bb42a3","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        value \u003d super(LengthString, self).__call__(value)"},{"line_number":88,"context_line":"        if self.maxlen and len(value) \u003e self.maxlen:"},{"line_number":89,"context_line":"            raise ValueError("},{"line_number":90,"context_line":"                \"String value \u0027%s\u0027 exceeds max length %d\" % (value,"},{"line_number":91,"context_line":"                                                            self.maxlen))"},{"line_number":92,"context_line":"        return value"},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_58b8862a","line":90,"in_reply_to":"da20952f_2149f68e","updated":"2015-09-10 01:18:36.000000000","message":"Done","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7bada259cb4996dbfb62b077503546fb4edd776c","unresolved":false,"context_lines":[{"line_number":76,"context_line":"]"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"# NOTE(hichihara): Remove these two classes, once oslo fixes types.string"},{"line_number":80,"context_line":"# and cfg.StrOpt."},{"line_number":81,"context_line":"class LengthString(types.String):"},{"line_number":82,"context_line":"    def __init__(self, maxlen\u003dNone):"}],"source_content_type":"text/x-python","patch_set":20,"id":"da20952f_e905fc13","line":79,"updated":"2015-09-10 12:18:16.000000000","message":"nit: NOTE -\u003e TODO","commit_id":"8091d236020fb624bb586ca35a3f5f8397d87ec3"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"b9b9b883de42a1edd5294b00c3a615571efc9e55","unresolved":false,"context_lines":[{"line_number":76,"context_line":"]"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"# NOTE(hichihara): Remove these two classes, once oslo fixes types.string"},{"line_number":80,"context_line":"# and cfg.StrOpt."},{"line_number":81,"context_line":"class LengthString(types.String):"},{"line_number":82,"context_line":"    def __init__(self, maxlen\u003dNone):"}],"source_content_type":"text/x-python","patch_set":20,"id":"da20952f_ff4fee31","line":79,"in_reply_to":"da20952f_e905fc13","updated":"2015-09-10 12:35:58.000000000","message":"I\u0027m OK. I will update next patchset.","commit_id":"8091d236020fb624bb586ca35a3f5f8397d87ec3"}],"neutron/api/v2/attributes.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"82cc9bd584f8d4cd9db655de03c440a7818d0857","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        return msg"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"def _validate_list_of_string(data, max_len\u003dNone):"},{"line_number":123,"context_line":"    if not isinstance(data, list):"},{"line_number":124,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a list\") % data"},{"line_number":125,"context_line":"        return msg"}],"source_content_type":"text/x-python","patch_set":37,"id":"1a26ad4f_0ad7cf4b","line":122,"updated":"2015-11-02 14:42:55.000000000","message":"should this not be _validate_list_of_strings?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8145c9b15c462ff425350533d07d46749c146e28","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        return msg"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"def _validate_list_of_string(data, max_len\u003dNone):"},{"line_number":123,"context_line":"    if not isinstance(data, list):"},{"line_number":124,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a list\") % data"},{"line_number":125,"context_line":"        return msg"}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_3427f5b7","line":122,"in_reply_to":"1a26ad4f_0ad7cf4b","updated":"2015-11-05 02:36:40.000000000","message":"+1 for _validate_list_of_strings.\n\nIn addition, could you add this to the validator list below?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        return msg"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"def _validate_list_of_string(data, max_len\u003dNone):"},{"line_number":123,"context_line":"    if not isinstance(data, list):"},{"line_number":124,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a list\") % data"},{"line_number":125,"context_line":"        return msg"}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_647a5e79","line":122,"in_reply_to":"fa80f949_3427f5b7","updated":"2015-11-11 07:59:20.000000000","message":"Done","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"587eaa5384eebc7a64cafb21d700dd8546708423","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        return msg"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"def _validate_list_of_strings(data, max_len\u003dNone):"},{"line_number":123,"context_line":"    if not isinstance(data, list):"},{"line_number":124,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a list\") % data"},{"line_number":125,"context_line":"        return msg"}],"source_content_type":"text/x-python","patch_set":41,"id":"ba8a016a_24a00390","line":122,"updated":"2015-11-17 23:37:27.000000000","message":"This method validates a list of UNIQUE strings, the method name should reflect it.\n\nimo, max_len is confusing as without reading the implementation someone could assume max_len refers to the max length of the list not of list elements","commit_id":"0a2eae4f4a000f18b06fa443839517cbf2199c36"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"9dd852fac7fe01238e39f70762cea805fb5351b5","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        return msg"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"def _validate_list_of_strings(data, max_len\u003dNone):"},{"line_number":123,"context_line":"    if not isinstance(data, list):"},{"line_number":124,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a list\") % data"},{"line_number":125,"context_line":"        return msg"}],"source_content_type":"text/x-python","patch_set":41,"id":"ba8a016a_d3e8cde4","line":122,"in_reply_to":"ba8a016a_24a00390","updated":"2015-11-18 08:33:20.000000000","message":"Done","commit_id":"0a2eae4f4a000f18b06fa443839517cbf2199c36"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"67e160475ffccebf5add8b65fed64f1f5e101754","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        return msg"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"def _validate_list_of_unique_strings(data, max_string_len\u003dNone):"},{"line_number":123,"context_line":"    if not isinstance(data, list):"},{"line_number":124,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a list\") % data"},{"line_number":125,"context_line":"        return msg"}],"source_content_type":"text/x-python","patch_set":42,"id":"ba8a016a_c7479dba","line":122,"updated":"2015-11-18 12:46:16.000000000","message":"are there test cases for this?","commit_id":"f308c80c0fbfb45e69db702f2c02cc774defafb6"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"14e337a63dbdd1843d9531a3c965975d7d44368e","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        return msg"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"def _validate_list_of_unique_strings(data, max_string_len\u003dNone):"},{"line_number":123,"context_line":"    if not isinstance(data, list):"},{"line_number":124,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a list\") % data"},{"line_number":125,"context_line":"        return msg"}],"source_content_type":"text/x-python","patch_set":42,"id":"ba8a016a_02fc8870","line":122,"in_reply_to":"ba8a016a_c7479dba","updated":"2015-11-19 07:34:48.000000000","message":"I missed. Done.","commit_id":"f308c80c0fbfb45e69db702f2c02cc774defafb6"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"4b9545f6fd5d3b6409f7afe1f226e65e38441481","unresolved":false,"context_lines":[{"line_number":651,"context_line":"              \u0027type:uuid_list\u0027: _validate_uuid_list,"},{"line_number":652,"context_line":"              \u0027type:values\u0027: _validate_values,"},{"line_number":653,"context_line":"              \u0027type:boolean\u0027: _validate_boolean,"},{"line_number":654,"context_line":"              \u0027type:list_of_strings\u0027: validate_list_of_unique_strings}"},{"line_number":655,"context_line":""},{"line_number":656,"context_line":"# Define constants for base resource name"},{"line_number":657,"context_line":"NETWORK \u003d \u0027network\u0027"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_26492260","line":654,"range":{"start_line":654,"start_character":20,"end_line":654,"end_character":35},"updated":"2015-11-25 05:25:20.000000000","message":"it\u0027s nicer if the function name and the type name match.","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"6f123c3210d3b9264a27b6ad042135a19139f4bf","unresolved":false,"context_lines":[{"line_number":651,"context_line":"              \u0027type:uuid_list\u0027: _validate_uuid_list,"},{"line_number":652,"context_line":"              \u0027type:values\u0027: _validate_values,"},{"line_number":653,"context_line":"              \u0027type:boolean\u0027: _validate_boolean,"},{"line_number":654,"context_line":"              \u0027type:list_of_strings\u0027: validate_list_of_unique_strings}"},{"line_number":655,"context_line":""},{"line_number":656,"context_line":"# Define constants for base resource name"},{"line_number":657,"context_line":"NETWORK \u003d \u0027network\u0027"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_b1c78a11","line":654,"range":{"start_line":654,"start_character":20,"end_line":654,"end_character":35},"in_reply_to":"9a8ffd7b_26492260","updated":"2015-11-25 06:25:15.000000000","message":"+1","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"42edbbb621d74dbc03e34f96d278df246fed670a","unresolved":false,"context_lines":[{"line_number":651,"context_line":"              \u0027type:uuid_list\u0027: _validate_uuid_list,"},{"line_number":652,"context_line":"              \u0027type:values\u0027: _validate_values,"},{"line_number":653,"context_line":"              \u0027type:boolean\u0027: _validate_boolean,"},{"line_number":654,"context_line":"              \u0027type:list_of_strings\u0027: validate_list_of_unique_strings}"},{"line_number":655,"context_line":""},{"line_number":656,"context_line":"# Define constants for base resource name"},{"line_number":657,"context_line":"NETWORK \u003d \u0027network\u0027"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_d391df53","line":654,"in_reply_to":"9a8ffd7b_b1c78a11","updated":"2015-11-25 13:34:53.000000000","message":"Done","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"}],"neutron/common/config.py":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"ea4dcd050c3caca0bf7f57231c6d5672267dcf43","unresolved":false,"context_lines":[{"line_number":66,"context_line":"               help\u003d_(\"The maximum number of items returned in a single \""},{"line_number":67,"context_line":"                      \"response, value was \u0027infinite\u0027 or negative integer \""},{"line_number":68,"context_line":"                      \"means no limit\")),"},{"line_number":69,"context_line":"    cfg.StrOpt(\u0027availability_zone\u0027, default\u003d\u0027nova\u0027,"},{"line_number":70,"context_line":"               help\u003d_(\"Availability zone of this node\")),"},{"line_number":71,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":72,"context_line":"                help\u003d_(\"Default value for API calls when unspecified.\""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_66e36406","line":69,"updated":"2015-08-11 05:59:58.000000000","message":"ah okay i see it\u0027s here.","commit_id":"27a65bf37b90aea8b2a9be237fa7ae0855eb576b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"b741d7bd301824b12e79ed3142929f49670360bb","unresolved":false,"context_lines":[{"line_number":66,"context_line":"               help\u003d_(\"The maximum number of items returned in a single \""},{"line_number":67,"context_line":"                      \"response, value was \u0027infinite\u0027 or negative integer \""},{"line_number":68,"context_line":"                      \"means no limit\")),"},{"line_number":69,"context_line":"    cfg.StrOpt(\u0027availability_zone\u0027, default\u003d\u0027nova\u0027,"},{"line_number":70,"context_line":"               help\u003d_(\"Availability zone of this node\")),"},{"line_number":71,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":72,"context_line":"                help\u003d_(\"Default value for API calls when unspecified.\""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_81329af0","line":69,"in_reply_to":"1a4dcd0f_66e36406","updated":"2015-08-13 07:43:00.000000000","message":"Exactly.","commit_id":"27a65bf37b90aea8b2a9be237fa7ae0855eb576b"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"91cf2604d3c5f9f0d85d73f2fa76d3410d24b70a","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    cfg.StrOpt(\u0027availability_zone\u0027, default\u003d\u0027nova\u0027,"},{"line_number":70,"context_line":"               help\u003d_(\"Availability zone of this node\")),"},{"line_number":71,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":72,"context_line":"                help\u003d_(\"Default value for API calls when unspecified.\""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""},{"line_number":74,"context_line":"                       \"a comma separated string.\")),"},{"line_number":75,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_4eaa0c1b","line":72,"updated":"2015-08-10 21:40:37.000000000","message":"nit: missing space after period to separate sentences","commit_id":"27a65bf37b90aea8b2a9be237fa7ae0855eb576b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"b741d7bd301824b12e79ed3142929f49670360bb","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    cfg.StrOpt(\u0027availability_zone\u0027, default\u003d\u0027nova\u0027,"},{"line_number":70,"context_line":"               help\u003d_(\"Availability zone of this node\")),"},{"line_number":71,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":72,"context_line":"                help\u003d_(\"Default value for API calls when unspecified.\""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""},{"line_number":74,"context_line":"                       \"a comma separated string.\")),"},{"line_number":75,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_c143c240","line":72,"in_reply_to":"1a4dcd0f_4eaa0c1b","updated":"2015-08-13 07:43:00.000000000","message":"Thanks. Done.","commit_id":"27a65bf37b90aea8b2a9be237fa7ae0855eb576b"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"1a59d17f53dd7543cac1c32ba0cdcc2e8f3f196c","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                      \"response, value was \u0027infinite\u0027 or negative integer \""},{"line_number":68,"context_line":"                      \"means no limit\")),"},{"line_number":69,"context_line":"    cfg.StrOpt(\u0027availability_zone\u0027, default\u003d\u0027nova\u0027,"},{"line_number":70,"context_line":"               help\u003d_(\"Availability zone of this node\")),"},{"line_number":71,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":72,"context_line":"                help\u003d_(\"Default value for API calls when unspecified. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_87237357","line":70,"updated":"2015-08-13 15:55:28.000000000","message":"should this option be added to etc/l3_agent.ini and etc/dhcp_agent.ini or just etc/neutron.conf ?","commit_id":"c9029323833a6f013cfbcdba87b43beb79999e6e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"d5727e100a1c563db726bb12d95cecdf0b428ae4","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                      \"response, value was \u0027infinite\u0027 or negative integer \""},{"line_number":68,"context_line":"                      \"means no limit\")),"},{"line_number":69,"context_line":"    cfg.StrOpt(\u0027availability_zone\u0027, default\u003d\u0027nova\u0027,"},{"line_number":70,"context_line":"               help\u003d_(\"Availability zone of this node\")),"},{"line_number":71,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":72,"context_line":"                help\u003d_(\"Default value for API calls when unspecified. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_ad9d075b","line":70,"in_reply_to":"1a4dcd0f_87237357","updated":"2015-08-24 06:30:00.000000000","message":"I chose neutron.conf because this value applies to node. Deployers can overwrite the value in *.ini if they want to apply different AZ to each agents on the same node.","commit_id":"c9029323833a6f013cfbcdba87b43beb79999e6e"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"1a59d17f53dd7543cac1c32ba0cdcc2e8f3f196c","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    cfg.StrOpt(\u0027availability_zone\u0027, default\u003d\u0027nova\u0027,"},{"line_number":70,"context_line":"               help\u003d_(\"Availability zone of this node\")),"},{"line_number":71,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":72,"context_line":"                help\u003d_(\"Default value for API calls when unspecified. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""},{"line_number":74,"context_line":"                       \"a comma separated string.\")),"},{"line_number":75,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_87c7f396","line":72,"updated":"2015-08-13 15:55:28.000000000","message":"I had to read the code to find out what this does. Would something like this line help?\n\n\"The DHCP and router schedulers use this when the resource\u0027s availability_zone_hints is empty.\"","commit_id":"c9029323833a6f013cfbcdba87b43beb79999e6e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"d5727e100a1c563db726bb12d95cecdf0b428ae4","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    cfg.StrOpt(\u0027availability_zone\u0027, default\u003d\u0027nova\u0027,"},{"line_number":70,"context_line":"               help\u003d_(\"Availability zone of this node\")),"},{"line_number":71,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":72,"context_line":"                help\u003d_(\"Default value for API calls when unspecified. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""},{"line_number":74,"context_line":"                       \"a comma separated string.\")),"},{"line_number":75,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_edbe9fd3","line":72,"in_reply_to":"1a4dcd0f_87c7f396","updated":"2015-08-24 06:30:00.000000000","message":"Thank you for your suggestion. I updated with your comment.","commit_id":"c9029323833a6f013cfbcdba87b43beb79999e6e"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"1a59d17f53dd7543cac1c32ba0cdcc2e8f3f196c","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":72,"context_line":"                help\u003d_(\"Default value for API calls when unspecified. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""},{"line_number":74,"context_line":"                       \"a comma separated string.\")),"},{"line_number":75,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"},{"line_number":76,"context_line":"               help\u003d_(\"Maximum number of DNS nameservers\")),"},{"line_number":77,"context_line":"    cfg.IntOpt(\u0027max_subnet_host_routes\u0027, default\u003d20,"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_e73b579a","line":74,"updated":"2015-08-13 15:55:28.000000000","message":"should this option be added to etc/neutron.conf ?","commit_id":"c9029323833a6f013cfbcdba87b43beb79999e6e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"d5727e100a1c563db726bb12d95cecdf0b428ae4","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":72,"context_line":"                help\u003d_(\"Default value for API calls when unspecified. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""},{"line_number":74,"context_line":"                       \"a comma separated string.\")),"},{"line_number":75,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"},{"line_number":76,"context_line":"               help\u003d_(\"Maximum number of DNS nameservers\")),"},{"line_number":77,"context_line":"    cfg.IntOpt(\u0027max_subnet_host_routes\u0027, default\u003d20,"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_2de49739","line":74,"in_reply_to":"1a4dcd0f_e73b579a","updated":"2015-08-24 06:30:00.000000000","message":"Done","commit_id":"c9029323833a6f013cfbcdba87b43beb79999e6e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bee424ccdfab0b8cd2ff84c7c627c25b0f60964f","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class LengthString(types.String):"},{"line_number":43,"context_line":"    def __init__(self, maxlen\u003d255):"},{"line_number":44,"context_line":"        super(LengthString, self).__init__()"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_8cc6b766","line":41,"updated":"2015-08-29 14:59:48.000000000","message":"Do you have a plan to propose this to oslo_config?\nStrOpt with a maximum length is a common use case.\nUntil then, I am okay to have this in neutron.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"1f4e377a075b137994bed771a263cf2d4b5c5225","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class LengthString(types.String):"},{"line_number":43,"context_line":"    def __init__(self, maxlen\u003d255):"},{"line_number":44,"context_line":"        super(LengthString, self).__init__()"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_cf92bdf6","line":41,"in_reply_to":"da20952f_8cc6b766","updated":"2015-09-02 04:53:23.000000000","message":"I added the comments.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bee424ccdfab0b8cd2ff84c7c627c25b0f60964f","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        value \u003d super(LengthString, self).__call__(value)"},{"line_number":49,"context_line":"        if len(value) \u003e self.maxlen:"},{"line_number":50,"context_line":"            raise ValueError("},{"line_number":51,"context_line":"                \"String value \u0027%s\u0027 exceed max length %d\" % (value,"},{"line_number":52,"context_line":"                                                            self.maxlen))"},{"line_number":53,"context_line":"        return value"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_ccfb4fc0","line":51,"range":{"start_line":51,"start_character":35,"end_line":51,"end_character":41},"updated":"2015-08-29 14:59:48.000000000","message":"exceeds","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"1f4e377a075b137994bed771a263cf2d4b5c5225","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        value \u003d super(LengthString, self).__call__(value)"},{"line_number":49,"context_line":"        if len(value) \u003e self.maxlen:"},{"line_number":50,"context_line":"            raise ValueError("},{"line_number":51,"context_line":"                \"String value \u0027%s\u0027 exceed max length %d\" % (value,"},{"line_number":52,"context_line":"                                                            self.maxlen))"},{"line_number":53,"context_line":"        return value"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_ef8f81ca","line":51,"in_reply_to":"da20952f_ccfb4fc0","updated":"2015-09-02 04:53:23.000000000","message":"Done","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bee424ccdfab0b8cd2ff84c7c627c25b0f60964f","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        return value"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class LengthStrOpt(cfg.Opt):"},{"line_number":57,"context_line":"    def __init__(self, name, maxlen\u003d255, **kwargs):"},{"line_number":58,"context_line":"        super(LengthStrOpt, self).__init__(name,"},{"line_number":59,"context_line":"                                           type\u003dLengthString(maxlen\u003dmaxlen),"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_8c9d5768","line":56,"range":{"start_line":56,"start_character":19,"end_line":56,"end_character":27},"updated":"2015-08-29 14:59:48.000000000","message":"Isn\u0027t it better to extend StrOpt rather Opt?","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"1f4e377a075b137994bed771a263cf2d4b5c5225","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        return value"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class LengthStrOpt(cfg.Opt):"},{"line_number":57,"context_line":"    def __init__(self, name, maxlen\u003d255, **kwargs):"},{"line_number":58,"context_line":"        super(LengthStrOpt, self).__init__(name,"},{"line_number":59,"context_line":"                                           type\u003dLengthString(maxlen\u003dmaxlen),"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_4f430d6d","line":56,"in_reply_to":"da20952f_8c9d5768","updated":"2015-09-02 04:53:23.000000000","message":"We cannot use StrOpt because type is different.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bee424ccdfab0b8cd2ff84c7c627c25b0f60964f","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class LengthStrOpt(cfg.Opt):"},{"line_number":57,"context_line":"    def __init__(self, name, maxlen\u003d255, **kwargs):"},{"line_number":58,"context_line":"        super(LengthStrOpt, self).__init__(name,"},{"line_number":59,"context_line":"                                           type\u003dLengthString(maxlen\u003dmaxlen),"},{"line_number":60,"context_line":"                                           **kwargs)"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_2c01ab6a","line":57,"range":{"start_line":57,"start_character":29,"end_line":57,"end_character":39},"updated":"2015-08-29 14:59:48.000000000","message":"As I comment above, in theory it is better to extend StrOpt to have a maximum length check. What is your intention with the default value 255? How about set the default value to None which means no limit? It is compatible with StrOpt.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"1f4e377a075b137994bed771a263cf2d4b5c5225","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class LengthStrOpt(cfg.Opt):"},{"line_number":57,"context_line":"    def __init__(self, name, maxlen\u003d255, **kwargs):"},{"line_number":58,"context_line":"        super(LengthStrOpt, self).__init__(name,"},{"line_number":59,"context_line":"                                           type\u003dLengthString(maxlen\u003dmaxlen),"},{"line_number":60,"context_line":"                                           **kwargs)"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_cf2e3da5","line":57,"in_reply_to":"da20952f_2c01ab6a","updated":"2015-09-02 04:53:23.000000000","message":"Done","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"f43a3567dd2c63b15494a5f71a71b002e3a95f4b","unresolved":false,"context_lines":[{"line_number":92,"context_line":"                      \"response, value was \u0027infinite\u0027 or negative integer \""},{"line_number":93,"context_line":"                      \"means no limit\")),"},{"line_number":94,"context_line":"    LengthStrOpt(\u0027availability_zone\u0027, maxlen\u003d255, default\u003d\u0027nova\u0027,"},{"line_number":95,"context_line":"                 help\u003d_(\"Availability zone of this node\")),"},{"line_number":96,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":97,"context_line":"                help\u003d_(\"Default value for API calls when unspecified. \""},{"line_number":98,"context_line":"                       \"The DHCP and router schedulers use this when the \""}],"source_content_type":"text/x-python","patch_set":15,"id":"da20952f_4c90c495","line":95,"updated":"2015-09-03 02:49:16.000000000","message":"This must be moved to agent config. I will update.","commit_id":"73b1ab78679685816c00f67d8c86009a00d016b7"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                      \"response, value was \u0027infinite\u0027 or negative integer \""},{"line_number":68,"context_line":"                      \"means no limit\")),"},{"line_number":69,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":70,"context_line":"                help\u003d_(\"Default value for API calls when unspecified. \""},{"line_number":71,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":72,"context_line":"                       \"resource\u0027s availability_zone_hints is empty. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_4b896925","line":70,"updated":"2015-09-23 01:59:24.000000000","message":"Default value of availability zone hints.","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                      \"response, value was \u0027infinite\u0027 or negative integer \""},{"line_number":68,"context_line":"                      \"means no limit\")),"},{"line_number":69,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":70,"context_line":"                help\u003d_(\"Default value for API calls when unspecified. \""},{"line_number":71,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":72,"context_line":"                       \"resource\u0027s availability_zone_hints is empty. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_f44988d1","line":70,"in_reply_to":"ba15a1d1_4b896925","updated":"2015-09-25 16:47:50.000000000","message":"Done","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":70,"context_line":"                help\u003d_(\"Default value for API calls when unspecified. \""},{"line_number":71,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":72,"context_line":"                       \"resource\u0027s availability_zone_hints is empty. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""},{"line_number":74,"context_line":"                       \"a comma separated string.\")),"},{"line_number":75,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_0b7ff117","line":72,"range":{"start_line":72,"start_character":61,"end_line":72,"end_character":67},"updated":"2015-09-23 01:59:24.000000000","message":"I think unspecified in API and empty are different.\nCan\u0027t we specify an empty list for hints?","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[\u0027nova\u0027],"},{"line_number":70,"context_line":"                help\u003d_(\"Default value for API calls when unspecified. \""},{"line_number":71,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":72,"context_line":"                       \"resource\u0027s availability_zone_hints is empty. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""},{"line_number":74,"context_line":"                       \"a comma separated string.\")),"},{"line_number":75,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_14043c15","line":72,"in_reply_to":"ba15a1d1_0b7ff117","updated":"2015-09-25 16:47:50.000000000","message":"I changed default value to empty. Please look at L174 reply in dhcp_agent_scheduler.py","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"0a8ecd260110ee7059eafdb236ca7fa9645dec25","unresolved":false,"context_lines":[{"line_number":70,"context_line":"                help\u003d_(\"Default value of availability zone hints. \""},{"line_number":71,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":72,"context_line":"                       \"resource\u0027s availability_zone_hints is empty. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""},{"line_number":74,"context_line":"                       \"a comma separated string.\")),"},{"line_number":75,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"},{"line_number":76,"context_line":"               help\u003d_(\"Maximum number of DNS nameservers\")),"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a1a9d01_f551540f","line":73,"updated":"2015-09-28 11:57:37.000000000","message":"availability zones?","commit_id":"32a3b21535c9b73141d1d46c1bfa18ae01645c39"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4d00e4267e7659935a563e6dfe40ad33e4511062","unresolved":false,"context_lines":[{"line_number":70,"context_line":"                help\u003d_(\"Default value of availability zone hints. \""},{"line_number":71,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":72,"context_line":"                       \"resource\u0027s availability_zone_hints is empty. \""},{"line_number":73,"context_line":"                       \"Multiple availability_zones can be specified by \""},{"line_number":74,"context_line":"                       \"a comma separated string.\")),"},{"line_number":75,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"},{"line_number":76,"context_line":"               help\u003d_(\"Maximum number of DNS nameservers\")),"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a1a9d01_eca70ebb","line":73,"in_reply_to":"9a1a9d01_f551540f","updated":"2015-09-29 16:23:44.000000000","message":"Done","commit_id":"32a3b21535c9b73141d1d46c1bfa18ae01645c39"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"82cc9bd584f8d4cd9db655de03c440a7818d0857","unresolved":false,"context_lines":[{"line_number":63,"context_line":"               help\u003d_(\"The maximum number of items returned in a single \""},{"line_number":64,"context_line":"                      \"response, value was \u0027infinite\u0027 or negative integer \""},{"line_number":65,"context_line":"                      \"means no limit\")),"},{"line_number":66,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[],"},{"line_number":67,"context_line":"                help\u003d_(\"Default value of availability zone hints. \""},{"line_number":68,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":69,"context_line":"                       \"resource\u0027s availability_zone_hints is empty. \""}],"source_content_type":"text/x-python","patch_set":37,"id":"1a26ad4f_ea193389","line":66,"updated":"2015-11-02 14:42:55.000000000","message":"Could there be a case when the DHCP and routers are on the same not and they need to use different zones? Maybe this should be split out into DHCP and router zones","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"8ee4f0f5cf5dd3c442ac009fce46a6587f53db7d","unresolved":false,"context_lines":[{"line_number":63,"context_line":"               help\u003d_(\"The maximum number of items returned in a single \""},{"line_number":64,"context_line":"                      \"response, value was \u0027infinite\u0027 or negative integer \""},{"line_number":65,"context_line":"                      \"means no limit\")),"},{"line_number":66,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[],"},{"line_number":67,"context_line":"                help\u003d_(\"Default value of availability zone hints. \""},{"line_number":68,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":69,"context_line":"                       \"resource\u0027s availability_zone_hints is empty. \""}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_fa109250","line":66,"in_reply_to":"1a26ad4f_ea193389","updated":"2015-11-04 08:53:03.000000000","message":"Availability zone doesn\u0027t mean each agent and node. In a major case, operators assigns AZ to each power supply(at least assembly of rack). There is no reason that they assigns dhcp-agent and l3-agent to different zones.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":14591,"name":"Lubosz Kosnik (diltram)","email":"lubosz.kosnik@intel.com","username":"diltram"},"change_message_id":"d7f67001b7318980f3cd3ebdc745ee1dc7b9d21e","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[],"},{"line_number":67,"context_line":"                help\u003d_(\"Default value of availability zone hints. \""},{"line_number":68,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":69,"context_line":"                       \"resource\u0027s availability_zone_hints is empty. \""},{"line_number":70,"context_line":"                       \"Multiple availability zones can be specified by \""},{"line_number":71,"context_line":"                       \"a comma separated string.\")),"},{"line_number":72,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"}],"source_content_type":"text/x-python","patch_set":37,"id":"1a26ad4f_495e5a77","line":69,"updated":"2015-10-30 18:54:13.000000000","message":"resources","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    cfg.ListOpt(\u0027default_availability_zones\u0027, default\u003d[],"},{"line_number":67,"context_line":"                help\u003d_(\"Default value of availability zone hints. \""},{"line_number":68,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":69,"context_line":"                       \"resource\u0027s availability_zone_hints is empty. \""},{"line_number":70,"context_line":"                       \"Multiple availability zones can be specified by \""},{"line_number":71,"context_line":"                       \"a comma separated string.\")),"},{"line_number":72,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_c4f0ea00","line":69,"in_reply_to":"1a26ad4f_495e5a77","updated":"2015-11-11 07:59:20.000000000","message":"Done","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"90d111b0cda07a091b78af1a6773a3329bc9cd83","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":69,"context_line":"                       \"resources availability_zone_hints is empty. \""},{"line_number":70,"context_line":"                       \"Multiple availability zones can be specified by \""},{"line_number":71,"context_line":"                       \"a comma separated string.\")),"},{"line_number":72,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"},{"line_number":73,"context_line":"               help\u003d_(\"Maximum number of DNS nameservers\")),"},{"line_number":74,"context_line":"    cfg.IntOpt(\u0027max_subnet_host_routes\u0027, default\u003d20,"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_d189a5cb","line":71,"updated":"2015-11-24 06:04:02.000000000","message":"As Cedric pointed, the help text should match the description in an example neutron.conf.","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"e834d1a08260e616b718a6dfdbabc1b6e2a44418","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                       \"The DHCP and router schedulers use this when the \""},{"line_number":69,"context_line":"                       \"resources availability_zone_hints is empty. \""},{"line_number":70,"context_line":"                       \"Multiple availability zones can be specified by \""},{"line_number":71,"context_line":"                       \"a comma separated string.\")),"},{"line_number":72,"context_line":"    cfg.IntOpt(\u0027max_dns_nameservers\u0027, default\u003d5,"},{"line_number":73,"context_line":"               help\u003d_(\"Maximum number of DNS nameservers\")),"},{"line_number":74,"context_line":"    cfg.IntOpt(\u0027max_subnet_host_routes\u0027, default\u003d20,"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_66383aa1","line":71,"in_reply_to":"ba8a016a_d189a5cb","updated":"2015-11-24 10:50:00.000000000","message":"I got it. Done.","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"}],"neutron/db/agentschedulers_db.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"af21959ede48fd810e453970080a4a66c910d9b3","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    cfg.BoolOpt(\u0027network_scheduler_availability_zone_aware\u0027,"},{"line_number":66,"context_line":"                default\u003dFalse,"},{"line_number":67,"context_line":"                help\u003d_(\u0027Make network scheduler availability_zone aware. \u0027"},{"line_number":68,"context_line":"                       \u0027If multiple availability_zones used, turn this \u0027"},{"line_number":69,"context_line":"                       \u0027option True. For selecting agent within an \u0027"},{"line_number":70,"context_line":"                       \u0027availability_zone, network_schduler_driver is used.\u0027)),"},{"line_number":71,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_0422c0a3","line":68,"updated":"2015-09-09 15:49:05.000000000","message":"turn -\u003e set","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6c2fb23d08d4835e5a8e2950b3ad4e9360bb42a3","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    cfg.BoolOpt(\u0027network_scheduler_availability_zone_aware\u0027,"},{"line_number":66,"context_line":"                default\u003dFalse,"},{"line_number":67,"context_line":"                help\u003d_(\u0027Make network scheduler availability_zone aware. \u0027"},{"line_number":68,"context_line":"                       \u0027If multiple availability_zones used, turn this \u0027"},{"line_number":69,"context_line":"                       \u0027option True. For selecting agent within an \u0027"},{"line_number":70,"context_line":"                       \u0027availability_zone, network_schduler_driver is used.\u0027)),"},{"line_number":71,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_d87a5677","line":68,"in_reply_to":"da20952f_0422c0a3","updated":"2015-09-10 01:18:36.000000000","message":"Done","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"af21959ede48fd810e453970080a4a66c910d9b3","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                default\u003dFalse,"},{"line_number":67,"context_line":"                help\u003d_(\u0027Make network scheduler availability_zone aware. \u0027"},{"line_number":68,"context_line":"                       \u0027If multiple availability_zones used, turn this \u0027"},{"line_number":69,"context_line":"                       \u0027option True. For selecting agent within an \u0027"},{"line_number":70,"context_line":"                       \u0027availability_zone, network_schduler_driver is used.\u0027)),"},{"line_number":71,"context_line":"]"},{"line_number":72,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_a46754e9","line":69,"updated":"2015-09-09 15:49:05.000000000","message":"Last sentence is a bit awkward to read. Maybe...\n\n    Use network_scheduler_driver, for selecting agent within an availability_zone","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6c2fb23d08d4835e5a8e2950b3ad4e9360bb42a3","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                default\u003dFalse,"},{"line_number":67,"context_line":"                help\u003d_(\u0027Make network scheduler availability_zone aware. \u0027"},{"line_number":68,"context_line":"                       \u0027If multiple availability_zones used, turn this \u0027"},{"line_number":69,"context_line":"                       \u0027option True. For selecting agent within an \u0027"},{"line_number":70,"context_line":"                       \u0027availability_zone, network_schduler_driver is used.\u0027)),"},{"line_number":71,"context_line":"]"},{"line_number":72,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_f87dda6d","line":69,"in_reply_to":"da20952f_a46754e9","updated":"2015-09-10 01:18:36.000000000","message":"Done","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8145c9b15c462ff425350533d07d46749c146e28","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                help\u003d_(\u0027Make network scheduler availability_zone aware. \u0027"},{"line_number":69,"context_line":"                       \u0027If multiple availability zones are used, set this \u0027"},{"line_number":70,"context_line":"                       \u0027option True. Use network_scheduler_driver to \u0027"},{"line_number":71,"context_line":"                       \u0027select agent within an availability_zone.\u0027)),"},{"line_number":72,"context_line":"]"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"cfg.CONF.register_opts(AGENTS_SCHEDULER_OPTS)"}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_a7141544","line":71,"updated":"2015-11-05 02:36:40.000000000","message":"The last sentence can be improved:\n\n  Use a network scheduler driver with availability zone support.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                help\u003d_(\u0027Make network scheduler availability_zone aware. \u0027"},{"line_number":69,"context_line":"                       \u0027If multiple availability zones are used, set this \u0027"},{"line_number":70,"context_line":"                       \u0027option True. Use network_scheduler_driver to \u0027"},{"line_number":71,"context_line":"                       \u0027select agent within an availability_zone.\u0027)),"},{"line_number":72,"context_line":"]"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"cfg.CONF.register_opts(AGENTS_SCHEDULER_OPTS)"}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_24e0d628","line":71,"in_reply_to":"fa80f949_a7141544","updated":"2015-11-11 07:59:20.000000000","message":"I removed it.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":14591,"name":"Lubosz Kosnik (diltram)","email":"lubosz.kosnik@intel.com","username":"diltram"},"change_message_id":"d7f67001b7318980f3cd3ebdc745ee1dc7b9d21e","unresolved":false,"context_lines":[{"line_number":478,"context_line":"            query \u003d query.filter("},{"line_number":479,"context_line":"                NetworkDhcpAgentBinding.network_id \u003d\u003d network_id)"},{"line_number":480,"context_line":"            query \u003d query.group_by(agents_db.Agent.availability_zone)"},{"line_number":481,"context_line":"            return [item[0] for item in query]"},{"line_number":482,"context_line":""},{"line_number":483,"context_line":""},{"line_number":484,"context_line":"# helper functions for readability."}],"source_content_type":"text/x-python","patch_set":37,"id":"1a26ad4f_8451b910","line":481,"updated":"2015-10-30 18:54:13.000000000","message":"What if item will be empty list?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"8ee4f0f5cf5dd3c442ac009fce46a6587f53db7d","unresolved":false,"context_lines":[{"line_number":478,"context_line":"            query \u003d query.filter("},{"line_number":479,"context_line":"                NetworkDhcpAgentBinding.network_id \u003d\u003d network_id)"},{"line_number":480,"context_line":"            query \u003d query.group_by(agents_db.Agent.availability_zone)"},{"line_number":481,"context_line":"            return [item[0] for item in query]"},{"line_number":482,"context_line":""},{"line_number":483,"context_line":""},{"line_number":484,"context_line":"# helper functions for readability."}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_3aaa9ad5","line":481,"in_reply_to":"1a26ad4f_8451b910","updated":"2015-11-04 08:53:03.000000000","message":"This method will return [].","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8145c9b15c462ff425350533d07d46749c146e28","unresolved":false,"context_lines":[{"line_number":478,"context_line":"            query \u003d query.filter("},{"line_number":479,"context_line":"                NetworkDhcpAgentBinding.network_id \u003d\u003d network_id)"},{"line_number":480,"context_line":"            query \u003d query.group_by(agents_db.Agent.availability_zone)"},{"line_number":481,"context_line":"            return [item[0] for item in query]"},{"line_number":482,"context_line":""},{"line_number":483,"context_line":""},{"line_number":484,"context_line":"# helper functions for readability."}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_67914d99","line":481,"in_reply_to":"fa80f949_3aaa9ad5","updated":"2015-11-05 02:36:40.000000000","message":"What does [] mean?\n\nIf we use a plugin with availability zone support, when some agent is bound to a network, the returned value should never empty (because we have default availability zone for each agent). Thus [] means a network is not bound to any agent. This is my understanding. Correct?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":6981,"name":"Yang Yu","email":"yangyu@vmware.com","username":"yuyangbj"},"change_message_id":"f88d1d65f5752bc9c3267de66993c334bc31ed31","unresolved":false,"context_lines":[{"line_number":478,"context_line":"            query \u003d query.filter("},{"line_number":479,"context_line":"                NetworkDhcpAgentBinding.network_id \u003d\u003d network_id)"},{"line_number":480,"context_line":"            query \u003d query.group_by(agents_db.Agent.availability_zone)"},{"line_number":481,"context_line":"            return [item[0] for item in query]"},{"line_number":482,"context_line":""},{"line_number":483,"context_line":""},{"line_number":484,"context_line":"# helper functions for readability."}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_dbebe811","line":481,"in_reply_to":"fa80f949_67914d99","updated":"2015-11-11 08:03:52.000000000","message":"+1","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":478,"context_line":"            query \u003d query.filter("},{"line_number":479,"context_line":"                NetworkDhcpAgentBinding.network_id \u003d\u003d network_id)"},{"line_number":480,"context_line":"            query \u003d query.group_by(agents_db.Agent.availability_zone)"},{"line_number":481,"context_line":"            return [item[0] for item in query]"},{"line_number":482,"context_line":""},{"line_number":483,"context_line":""},{"line_number":484,"context_line":"# helper functions for readability."}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_9b8000f9","line":481,"in_reply_to":"fa80f949_67914d99","updated":"2015-11-11 07:59:20.000000000","message":"Yes. The [] means network resource has not been assigned to any agents yet.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"}],"neutron/db/availability_zone/network.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"030b816d382d0706f36e15d561b8323093d9a9d4","unresolved":false,"context_lines":[{"line_number":37,"context_line":"        attributes.NETWORKS, [\u0027_extend_availability_zone\u0027])"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    @abc.abstractmethod"},{"line_number":40,"context_line":"    def get_network_availability_zones(self, network_id):"},{"line_number":41,"context_line":"        # implementation is backend dependent"},{"line_number":42,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":34,"id":"7a2fa921_fb012339","line":40,"updated":"2015-10-08 05:33:16.000000000","message":"is this necessary?\nNetworkAvailabilityZonePluginBase seems to have an equivalent.","commit_id":"4fdcd8cdaae3915330998f7cde5a3bb3ccc0cff4"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"95fffd473f1a64b533910d24a76e526eb7237534","unresolved":false,"context_lines":[{"line_number":37,"context_line":"        attributes.NETWORKS, [\u0027_extend_availability_zone\u0027])"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    @abc.abstractmethod"},{"line_number":40,"context_line":"    def get_network_availability_zones(self, network_id):"},{"line_number":41,"context_line":"        # implementation is backend dependent"},{"line_number":42,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":34,"id":"7a2fa921_c149d161","line":40,"in_reply_to":"7a2fa921_fb012339","updated":"2015-10-08 07:43:42.000000000","message":"Done","commit_id":"4fdcd8cdaae3915330998f7cde5a3bb3ccc0cff4"}],"neutron/db/availability_zone/network_az.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":29,"id":"ba15a1d1_88b6a73c","updated":"2015-09-23 01:59:24.000000000","message":"This module is placed under the directory \u0027availability_zone\u0027, so a filename \u0027network.py\u0027 looks better to me.","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":29,"id":"9a1a9d01_3f14b942","in_reply_to":"ba15a1d1_88b6a73c","updated":"2015-09-25 16:47:50.000000000","message":"Done","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":11,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":12,"context_line":"#    under the License."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"import abc"},{"line_number":15,"context_line":"from oslo_log import log as logging"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from neutron.api.v2 import attributes"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_4883af56","line":14,"updated":"2015-09-23 01:59:24.000000000","message":"A blankline here.","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":11,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":12,"context_line":"#    under the License."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"import abc"},{"line_number":15,"context_line":"from oslo_log import log as logging"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from neutron.api.v2 import attributes"}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_5f116d51","line":14,"in_reply_to":"ba15a1d1_4883af56","updated":"2015-09-25 16:47:50.000000000","message":"Done","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    \"\"\"Mixin class to enable network\u0027s availability zone attributes.\"\"\""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def _extend_availability_zone(self, net_res, net_db):"},{"line_number":30,"context_line":"        net_res[\u0027availability_zone_hints\u0027] \u003d az_ext.convert_az_string_to_list("},{"line_number":31,"context_line":"            net_db[\u0027availability_zone_hints\u0027])"},{"line_number":32,"context_line":"        net_res[\u0027availability_zones\u0027] \u003d self.get_network_availability_zones("},{"line_number":33,"context_line":"            net_db[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_e894038c","line":30,"range":{"start_line":30,"start_character":16,"end_line":30,"end_character":41},"updated":"2015-09-23 01:59:24.000000000","message":"It is better to use the constant AVAILABILITY_ZONE_HINTS.","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    \"\"\"Mixin class to enable network\u0027s availability zone attributes.\"\"\""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def _extend_availability_zone(self, net_res, net_db):"},{"line_number":30,"context_line":"        net_res[\u0027availability_zone_hints\u0027] \u003d az_ext.convert_az_string_to_list("},{"line_number":31,"context_line":"            net_db[\u0027availability_zone_hints\u0027])"},{"line_number":32,"context_line":"        net_res[\u0027availability_zones\u0027] \u003d self.get_network_availability_zones("},{"line_number":33,"context_line":"            net_db[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_7f579102","line":30,"in_reply_to":"ba15a1d1_e894038c","updated":"2015-09-25 16:47:50.000000000","message":"Done","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @abc.abstractmethod"},{"line_number":39,"context_line":"    def get_network_availability_zones(self, network_id):"},{"line_number":40,"context_line":"        # implement is backend dependent"},{"line_number":41,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_48eacf10","line":40,"updated":"2015-09-23 01:59:24.000000000","message":"implement -\u003e implementation","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @abc.abstractmethod"},{"line_number":39,"context_line":"    def get_network_availability_zones(self, network_id):"},{"line_number":40,"context_line":"        # implement is backend dependent"},{"line_number":41,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_5f3f2db4","line":40,"in_reply_to":"ba15a1d1_48eacf10","updated":"2015-09-25 16:47:50.000000000","message":"Done","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"}],"neutron/db/db_base_plugin_v2.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":330,"context_line":"            if (\u0027vlan_transparent\u0027 in n and n[\u0027vlan_transparent\u0027] !\u003d"},{"line_number":331,"context_line":"                attributes.ATTR_NOT_SPECIFIED):"},{"line_number":332,"context_line":"                args[\u0027vlan_transparent\u0027] \u003d n[\u0027vlan_transparent\u0027]"},{"line_number":333,"context_line":"            key \u003d az_ext.AVAILABILITY_ZONE_HINTS"},{"line_number":334,"context_line":"            if key in n:"},{"line_number":335,"context_line":"                # if the key exists, it means the plugin supports"},{"line_number":336,"context_line":"                # availability zone. so the relevant methods exist."}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_5abcd46b","line":333,"updated":"2015-09-23 01:59:24.000000000","message":"I am not a fan of using a variable just to shorten a name of another variable/constant. Have you considered shortening AVAILABILITY_ZONE_HINTS itself, for example AZ_HINTS?","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":330,"context_line":"            if (\u0027vlan_transparent\u0027 in n and n[\u0027vlan_transparent\u0027] !\u003d"},{"line_number":331,"context_line":"                attributes.ATTR_NOT_SPECIFIED):"},{"line_number":332,"context_line":"                args[\u0027vlan_transparent\u0027] \u003d n[\u0027vlan_transparent\u0027]"},{"line_number":333,"context_line":"            key \u003d az_ext.AVAILABILITY_ZONE_HINTS"},{"line_number":334,"context_line":"            if key in n:"},{"line_number":335,"context_line":"                # if the key exists, it means the plugin supports"},{"line_number":336,"context_line":"                # availability zone. so the relevant methods exist."}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_9f7385b1","line":333,"in_reply_to":"ba15a1d1_5abcd46b","updated":"2015-09-25 16:47:50.000000000","message":"Done","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"82cc9bd584f8d4cd9db655de03c440a7818d0857","unresolved":false,"context_lines":[{"line_number":330,"context_line":"            if (\u0027vlan_transparent\u0027 in n and n[\u0027vlan_transparent\u0027] !\u003d"},{"line_number":331,"context_line":"                attributes.ATTR_NOT_SPECIFIED):"},{"line_number":332,"context_line":"                args[\u0027vlan_transparent\u0027] \u003d n[\u0027vlan_transparent\u0027]"},{"line_number":333,"context_line":"            if az_ext.AZ_HINTS in n:"},{"line_number":334,"context_line":"                # if the key exists, it means the plugin supports"},{"line_number":335,"context_line":"                # availability zone. so the relevant methods exist."},{"line_number":336,"context_line":"                self.validate_availability_zones(context, \u0027network\u0027,"}],"source_content_type":"text/x-python","patch_set":37,"id":"1a26ad4f_4ac38757","line":333,"updated":"2015-11-02 14:42:55.000000000","message":"should we not check that the hints attrbutes is not ATTR_NOT_SPECIFIED","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8145c9b15c462ff425350533d07d46749c146e28","unresolved":false,"context_lines":[{"line_number":330,"context_line":"            if (\u0027vlan_transparent\u0027 in n and n[\u0027vlan_transparent\u0027] !\u003d"},{"line_number":331,"context_line":"                attributes.ATTR_NOT_SPECIFIED):"},{"line_number":332,"context_line":"                args[\u0027vlan_transparent\u0027] \u003d n[\u0027vlan_transparent\u0027]"},{"line_number":333,"context_line":"            if az_ext.AZ_HINTS in n:"},{"line_number":334,"context_line":"                # if the key exists, it means the plugin supports"},{"line_number":335,"context_line":"                # availability zone. so the relevant methods exist."},{"line_number":336,"context_line":"                self.validate_availability_zones(context, \u0027network\u0027,"}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_27d10558","line":333,"in_reply_to":"1a26ad4f_4ac38757","updated":"2015-11-05 02:36:40.000000000","message":"ATTR_NOT_SPECIFEID is not used. the default value is [].","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"82cc9bd584f8d4cd9db655de03c440a7818d0857","unresolved":false,"context_lines":[{"line_number":335,"context_line":"                # availability zone. so the relevant methods exist."},{"line_number":336,"context_line":"                self.validate_availability_zones(context, \u0027network\u0027,"},{"line_number":337,"context_line":"                                                 n[az_ext.AZ_HINTS])"},{"line_number":338,"context_line":"                args[az_ext.AZ_HINTS] \u003d az_ext.convert_az_list_to_string("},{"line_number":339,"context_line":"                                            n[az_ext.AZ_HINTS])"},{"line_number":340,"context_line":"            network \u003d models_v2.Network(**args)"},{"line_number":341,"context_line":"            if n[\u0027shared\u0027]:"}],"source_content_type":"text/x-python","patch_set":37,"id":"1a26ad4f_6d3c5dc8","line":338,"updated":"2015-11-02 14:42:55.000000000","message":"so a network could be created on more than one AZ? What if we want this across all AZ\u0027z - that is the support that we have today.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8145c9b15c462ff425350533d07d46749c146e28","unresolved":false,"context_lines":[{"line_number":335,"context_line":"                # availability zone. so the relevant methods exist."},{"line_number":336,"context_line":"                self.validate_availability_zones(context, \u0027network\u0027,"},{"line_number":337,"context_line":"                                                 n[az_ext.AZ_HINTS])"},{"line_number":338,"context_line":"                args[az_ext.AZ_HINTS] \u003d az_ext.convert_az_list_to_string("},{"line_number":339,"context_line":"                                            n[az_ext.AZ_HINTS])"},{"line_number":340,"context_line":"            network \u003d models_v2.Network(**args)"},{"line_number":341,"context_line":"            if n[\u0027shared\u0027]:"}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_e758ddfc","line":338,"in_reply_to":"1a26ad4f_6d3c5dc8","updated":"2015-11-05 02:36:40.000000000","message":"Yes. a network can be hosted by agents from mutiple AZs.\nAssume we have 3 AZs and 2 agents per AZ and each network is hosted by three agents. How can we ensure three agents which host a specific network spread across all three AZs? This is a problem that this blueprint tries to address.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":6981,"name":"Yang Yu","email":"yangyu@vmware.com","username":"yuyangbj"},"change_message_id":"f88d1d65f5752bc9c3267de66993c334bc31ed31","unresolved":false,"context_lines":[{"line_number":336,"context_line":"                self.validate_availability_zones(context, \u0027network\u0027,"},{"line_number":337,"context_line":"                                                 n[az_ext.AZ_HINTS])"},{"line_number":338,"context_line":"                args[az_ext.AZ_HINTS] \u003d az_ext.convert_az_list_to_string("},{"line_number":339,"context_line":"                                            n[az_ext.AZ_HINTS])"},{"line_number":340,"context_line":"            network \u003d models_v2.Network(**args)"},{"line_number":341,"context_line":"            if n[\u0027shared\u0027]:"},{"line_number":342,"context_line":"                entry \u003d rbac_db.NetworkRBAC("}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_d8068e85","line":339,"updated":"2015-11-11 08:03:52.000000000","message":"Question: Assume we create a network with some AZ hints, but my dhcp agent is configured in another AZ which is not in the AZ hints, how do we make sure the network could work well?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":6981,"name":"Yang Yu","email":"yangyu@vmware.com","username":"yuyangbj"},"change_message_id":"4983a2883a421d7f878928a311675122f8f030ae","unresolved":false,"context_lines":[{"line_number":336,"context_line":"                self.validate_availability_zones(context, \u0027network\u0027,"},{"line_number":337,"context_line":"                                                 n[az_ext.AZ_HINTS])"},{"line_number":338,"context_line":"                args[az_ext.AZ_HINTS] \u003d az_ext.convert_az_list_to_string("},{"line_number":339,"context_line":"                                            n[az_ext.AZ_HINTS])"},{"line_number":340,"context_line":"            network \u003d models_v2.Network(**args)"},{"line_number":341,"context_line":"            if n[\u0027shared\u0027]:"},{"line_number":342,"context_line":"                entry \u003d rbac_db.NetworkRBAC("}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_acb348e8","line":339,"in_reply_to":"da85f559_911ea15d","updated":"2015-11-11 09:14:35.000000000","message":"AZ hints are set in network resource, but the AZ of agent is not included in AZ hints, we can not filter an available agent, how should the network work?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4a103baf68c703824194dc29a82c2d3bd5b7a56d","unresolved":false,"context_lines":[{"line_number":336,"context_line":"                self.validate_availability_zones(context, \u0027network\u0027,"},{"line_number":337,"context_line":"                                                 n[az_ext.AZ_HINTS])"},{"line_number":338,"context_line":"                args[az_ext.AZ_HINTS] \u003d az_ext.convert_az_list_to_string("},{"line_number":339,"context_line":"                                            n[az_ext.AZ_HINTS])"},{"line_number":340,"context_line":"            network \u003d models_v2.Network(**args)"},{"line_number":341,"context_line":"            if n[\u0027shared\u0027]:"},{"line_number":342,"context_line":"                entry \u003d rbac_db.NetworkRBAC("}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_911ea15d","line":339,"in_reply_to":"da85f559_d8068e85","updated":"2015-11-11 08:47:39.000000000","message":"Can you confirm AZ hints is set in attributes network resource?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"67e160475ffccebf5add8b65fed64f1f5e101754","unresolved":false,"context_lines":[{"line_number":330,"context_line":"            if (\u0027vlan_transparent\u0027 in n and n[\u0027vlan_transparent\u0027] !\u003d"},{"line_number":331,"context_line":"                attributes.ATTR_NOT_SPECIFIED):"},{"line_number":332,"context_line":"                args[\u0027vlan_transparent\u0027] \u003d n[\u0027vlan_transparent\u0027]"},{"line_number":333,"context_line":"            if az_ext.AZ_HINTS in n:"},{"line_number":334,"context_line":"                # if the key exists, it means the plugin supports"},{"line_number":335,"context_line":"                # availability zone. so the relevant methods exist."},{"line_number":336,"context_line":"                self.validate_availability_zones(context, \u0027network\u0027,"}],"source_content_type":"text/x-python","patch_set":42,"id":"ba8a016a_47e5edd9","line":333,"updated":"2015-11-18 12:46:16.000000000","message":"I do not think that this code should be here and this should be in the extension.\nPlease see https://review.openstack.org/243163 for an example where we are trying to clean up the base plugin","commit_id":"f308c80c0fbfb45e69db702f2c02cc774defafb6"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"14e337a63dbdd1843d9531a3c965975d7d44368e","unresolved":false,"context_lines":[{"line_number":330,"context_line":"            if (\u0027vlan_transparent\u0027 in n and n[\u0027vlan_transparent\u0027] !\u003d"},{"line_number":331,"context_line":"                attributes.ATTR_NOT_SPECIFIED):"},{"line_number":332,"context_line":"                args[\u0027vlan_transparent\u0027] \u003d n[\u0027vlan_transparent\u0027]"},{"line_number":333,"context_line":"            if az_ext.AZ_HINTS in n:"},{"line_number":334,"context_line":"                # if the key exists, it means the plugin supports"},{"line_number":335,"context_line":"                # availability zone. so the relevant methods exist."},{"line_number":336,"context_line":"                self.validate_availability_zones(context, \u0027network\u0027,"}],"source_content_type":"text/x-python","patch_set":42,"id":"ba8a016a_e2f70489","line":333,"in_reply_to":"ba8a016a_47e5edd9","updated":"2015-11-19 07:34:48.000000000","message":"Done","commit_id":"f308c80c0fbfb45e69db702f2c02cc774defafb6"}],"neutron/db/l3_agentschedulers_db.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"af21959ede48fd810e453970080a4a66c910d9b3","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    cfg.BoolOpt(\u0027router_scheduler_availability_zone_aware\u0027,"},{"line_number":54,"context_line":"                default\u003dFalse,"},{"line_number":55,"context_line":"                help\u003d_(\u0027Make router scheduler availability_zone aware. \u0027"},{"line_number":56,"context_line":"                       \u0027If multiple availability_zones used, turn this \u0027"},{"line_number":57,"context_line":"                       \u0027option True. For selecting agent within an \u0027"},{"line_number":58,"context_line":"                       \u0027availability_zone, router_schduler_driver is used.\u0027)),"},{"line_number":59,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_c7d5aab7","line":56,"updated":"2015-09-09 15:49:05.000000000","message":"Same comments as previous file.","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6c2fb23d08d4835e5a8e2950b3ad4e9360bb42a3","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    cfg.BoolOpt(\u0027router_scheduler_availability_zone_aware\u0027,"},{"line_number":54,"context_line":"                default\u003dFalse,"},{"line_number":55,"context_line":"                help\u003d_(\u0027Make router scheduler availability_zone aware. \u0027"},{"line_number":56,"context_line":"                       \u0027If multiple availability_zones used, turn this \u0027"},{"line_number":57,"context_line":"                       \u0027option True. For selecting agent within an \u0027"},{"line_number":58,"context_line":"                       \u0027availability_zone, router_schduler_driver is used.\u0027)),"},{"line_number":59,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_9895be89","line":56,"in_reply_to":"da20952f_c7d5aab7","updated":"2015-09-10 01:18:36.000000000","message":"Done","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"}],"neutron/db/migration/alembic_migrations/versions/mitaka/expand/ec7fcfbf72ee_network_az.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"82cc9bd584f8d4cd9db655de03c440a7818d0857","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def upgrade():"},{"line_number":32,"context_line":"    op.add_column(\u0027networks\u0027,"},{"line_number":33,"context_line":"                  sa.Column(\u0027availability_zone_hints\u0027, sa.String(length\u003d255)))"}],"source_content_type":"text/x-python","patch_set":37,"id":"1a26ad4f_ad6b55b8","line":33,"updated":"2015-11-02 14:42:55.000000000","message":"why not az. Not sure I understand 100% why we need the hints","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8145c9b15c462ff425350533d07d46749c146e28","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def upgrade():"},{"line_number":32,"context_line":"    op.add_column(\u0027networks\u0027,"},{"line_number":33,"context_line":"                  sa.Column(\u0027availability_zone_hints\u0027, sa.String(length\u003d255)))"}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_b403e541","line":33,"in_reply_to":"1a26ad4f_ad6b55b8","updated":"2015-11-05 02:36:40.000000000","message":"I would suggest you to read the spec. A user can specify which AZ he/she wants to use as hints. A network agent scheduler try to assign an agent from AZ specified in hints but a result may be different from hints.\nA user can specify more hints than the actual number of agents.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"}],"neutron/db/models_v2.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"91f22a2239ea3e7890d6b2c9939fec2a62635b9a","unresolved":false,"context_lines":[{"line_number":266,"context_line":"    rbac_entries \u003d orm.relationship(rbac_db_models.NetworkRBAC,"},{"line_number":267,"context_line":"                                    backref\u003d\u0027network\u0027, lazy\u003d\u0027joined\u0027,"},{"line_number":268,"context_line":"                                    cascade\u003d\u0027all, delete, delete-orphan\u0027)"},{"line_number":269,"context_line":"    availability_zone_hints \u003d sa.Column(sa.String(255))"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_49aeb22f","line":269,"updated":"2015-11-25 08:53:13.000000000","message":"you should use:\n\n neutron.extensions.availability_zone..AZ_HINTS_DB_LEN","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"42edbbb621d74dbc03e34f96d278df246fed670a","unresolved":false,"context_lines":[{"line_number":266,"context_line":"    rbac_entries \u003d orm.relationship(rbac_db_models.NetworkRBAC,"},{"line_number":267,"context_line":"                                    backref\u003d\u0027network\u0027, lazy\u003d\u0027joined\u0027,"},{"line_number":268,"context_line":"                                    cascade\u003d\u0027all, delete, delete-orphan\u0027)"},{"line_number":269,"context_line":"    availability_zone_hints \u003d sa.Column(sa.String(255))"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_53a5efb2","line":269,"in_reply_to":"9a8ffd7b_49aeb22f","updated":"2015-11-25 13:34:53.000000000","message":"We cannot import neutron.extensions.availability_zone here because it happens import roop. If we use the constant here, I must move the constant to other place. However, I have no idea and I don\u0027t think it\u0027s really important.","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"073eaded5a9159cd5ace046d81ce85f088443b83","unresolved":false,"context_lines":[{"line_number":266,"context_line":"    rbac_entries \u003d orm.relationship(rbac_db_models.NetworkRBAC,"},{"line_number":267,"context_line":"                                    backref\u003d\u0027network\u0027, lazy\u003d\u0027joined\u0027,"},{"line_number":268,"context_line":"                                    cascade\u003d\u0027all, delete, delete-orphan\u0027)"},{"line_number":269,"context_line":"    availability_zone_hints \u003d sa.Column(sa.String(255))"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_a41653ef","line":269,"in_reply_to":"9a8ffd7b_53a5efb2","updated":"2015-11-25 13:58:08.000000000","message":"Could you elaborate more about what kind of import loop we have?\nextension modules should not depend on db modules, so I thought it should work to import extension modules.... but something might be wrong.","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"43099992bb725826a13027edb1ddd2d7a262a35e","unresolved":false,"context_lines":[{"line_number":266,"context_line":"    rbac_entries \u003d orm.relationship(rbac_db_models.NetworkRBAC,"},{"line_number":267,"context_line":"                                    backref\u003d\u0027network\u0027, lazy\u003d\u0027joined\u0027,"},{"line_number":268,"context_line":"                                    cascade\u003d\u0027all, delete, delete-orphan\u0027)"},{"line_number":269,"context_line":"    availability_zone_hints \u003d sa.Column(sa.String(255))"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_cea129ab","line":269,"in_reply_to":"9a8ffd7b_9aa60452","updated":"2015-11-25 16:03:15.000000000","message":"Thanks!  I got it. In the initial implementation, there was no loop, but during the quota improvement, it was introduced. We can tackle it later, but it is not a scope of this patch.","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"03ef9479ed8f215eb89d5a5e707fc4dc65500c8c","unresolved":false,"context_lines":[{"line_number":266,"context_line":"    rbac_entries \u003d orm.relationship(rbac_db_models.NetworkRBAC,"},{"line_number":267,"context_line":"                                    backref\u003d\u0027network\u0027, lazy\u003d\u0027joined\u0027,"},{"line_number":268,"context_line":"                                    cascade\u003d\u0027all, delete, delete-orphan\u0027)"},{"line_number":269,"context_line":"    availability_zone_hints \u003d sa.Column(sa.String(255))"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_9aa60452","line":269,"in_reply_to":"9a8ffd7b_a41653ef","updated":"2015-11-25 14:26:02.000000000","message":"I found the following loop. Other extensions too.\n\nfrom neutron.extensions import availability_zone -\u003e from neutron.api.v2 import base -\u003e from neutron import quota -\u003e from neutron.db.quota import api as quota_api -\u003e from neutron.db.quota import models as quota_models -\u003e from neutron.db import models_v2","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"}],"neutron/extensions/availability_zone.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":13,"context_line":"# limitations under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import abc"},{"line_number":16,"context_line":"from oslo_serialization import jsonutils"},{"line_number":17,"context_line":"import six"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_28cc3bba","line":15,"updated":"2015-09-23 01:59:24.000000000","message":"blank line here.","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":13,"context_line":"# limitations under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import abc"},{"line_number":16,"context_line":"from oslo_serialization import jsonutils"},{"line_number":17,"context_line":"import six"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_3fb03943","line":15,"in_reply_to":"ba15a1d1_28cc3bba","updated":"2015-09-25 16:47:50.000000000","message":"Done","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        if not isinstance(az, six.string_types):"},{"line_number":43,"context_line":"            msg \u003d _(\"availability_zone must be a string\")"},{"line_number":44,"context_line":"            raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":45,"context_line":"        azs.add(az)"},{"line_number":46,"context_line":"    if len(data) !\u003d len(azs):"},{"line_number":47,"context_line":"        msg \u003d _(\"duplicate availability_zones specified\")"},{"line_number":48,"context_line":"        raise exceptions.InvalidInput(error_message\u003dmsg)"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_686473b8","line":45,"updated":"2015-09-23 01:59:24.000000000","message":"azs.add(az) can be moved out of for-loop. Instead:\n\n  az_set \u003d set(data)\n\nand L.40 will be unnecessary.","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        if not isinstance(az, six.string_types):"},{"line_number":43,"context_line":"            msg \u003d _(\"availability_zone must be a string\")"},{"line_number":44,"context_line":"            raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":45,"context_line":"        azs.add(az)"},{"line_number":46,"context_line":"    if len(data) !\u003d len(azs):"},{"line_number":47,"context_line":"        msg \u003d _(\"duplicate availability_zones specified\")"},{"line_number":48,"context_line":"        raise exceptions.InvalidInput(error_message\u003dmsg)"}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_1f8e9578","line":45,"in_reply_to":"ba15a1d1_686473b8","updated":"2015-09-25 16:47:50.000000000","message":"Done","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"40563cc35aa9358e69810b28b99494ab6de6caeb","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"attr.validators[\u0027type:validate_availability_zone_hints\u0027] \u003d ("},{"line_number":55,"context_line":"    _validate_availability_zone_hints)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"# Attribute Map"}],"source_content_type":"text/x-python","patch_set":36,"id":"5a2ca52d_074f38be","line":54,"updated":"2015-10-14 05:47:44.000000000","message":"this is a bit magic, and I would refrain from doing that if I were you. Can this validator be made generic to string or list of strings?","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"154c6e58433c45bb44a803426857d458f8c3ca4d","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"attr.validators[\u0027type:validate_availability_zone_hints\u0027] \u003d ("},{"line_number":55,"context_line":"    _validate_availability_zone_hints)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"# Attribute Map"}],"source_content_type":"text/x-python","patch_set":36,"id":"3a29b11f_3cc08a4f","line":54,"in_reply_to":"5a2ca52d_074f38be","updated":"2015-10-23 04:12:18.000000000","message":"I got it. Done.","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":6981,"name":"Yang Yu","email":"yangyu@vmware.com","username":"yuyangbj"},"change_message_id":"f88d1d65f5752bc9c3267de66993c334bc31ed31","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron import manager"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"AZ_HINTS_DB_LEN \u003d 255"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# resource independent common methods"}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_e92dc7a8","line":26,"updated":"2015-11-11 08:03:52.000000000","message":"Actually, I am confused why you use the length of string to limit the number of AZ hints, why do not you use the count directly?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4a103baf68c703824194dc29a82c2d3bd5b7a56d","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron import manager"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"AZ_HINTS_DB_LEN \u003d 255"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# resource independent common methods"}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_f18fed27","line":26,"in_reply_to":"da85f559_e92dc7a8","updated":"2015-11-11 08:47:39.000000000","message":"It\u0027s limited by DB restriction according with neutron/db/migration/alembic_migrations/versions/mitaka/expand/ec7fcfbf72ee_network_az.py\n\nDo you mean that make AZ hints list not string?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":6981,"name":"Yang Yu","email":"yangyu@vmware.com","username":"yuyangbj"},"change_message_id":"4983a2883a421d7f878928a311675122f8f030ae","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron import manager"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"AZ_HINTS_DB_LEN \u003d 255"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# resource independent common methods"}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_ac290839","line":26,"in_reply_to":"da85f559_f18fed27","updated":"2015-11-11 09:14:35.000000000","message":"Yes, make AZ hints list not string.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8145c9b15c462ff425350533d07d46749c146e28","unresolved":false,"context_lines":[{"line_number":39,"context_line":"    # syntax check only here. existence of az will be checked later."},{"line_number":40,"context_line":"    msg \u003d attr._validate_list_of_string(data)"},{"line_number":41,"context_line":"    if msg:"},{"line_number":42,"context_line":"        raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":43,"context_line":"    az_string \u003d convert_az_list_to_string(data)"},{"line_number":44,"context_line":"    if len(az_string) \u003e AZ_HINTS_DB_LEN:"},{"line_number":45,"context_line":"        msg \u003d _(\"too many availability_zone_hints specified\")"}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_14451116","line":42,"updated":"2015-11-05 02:36:40.000000000","message":"a validator does not need to raise an exception itself. If a validator return some non-empty string, InvalidInput will be returned to a user.\n\n  if msg:\n      return msg\n\nDid you have any problem if you return just \u0027msg\u0027?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":39,"context_line":"    # syntax check only here. existence of az will be checked later."},{"line_number":40,"context_line":"    msg \u003d attr._validate_list_of_string(data)"},{"line_number":41,"context_line":"    if msg:"},{"line_number":42,"context_line":"        raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":43,"context_line":"    az_string \u003d convert_az_list_to_string(data)"},{"line_number":44,"context_line":"    if len(az_string) \u003e AZ_HINTS_DB_LEN:"},{"line_number":45,"context_line":"        msg \u003d _(\"too many availability_zone_hints specified\")"}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_3bff94ab","line":42,"in_reply_to":"fa80f949_14451116","updated":"2015-11-11 07:59:20.000000000","message":"You\u0027re right. Done.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"8841a3d1a56eb302f2736e269dbdd0b685f3b352","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"attr.validators[\u0027type:validate_availability_zone_hints\u0027] \u003d ("},{"line_number":50,"context_line":"    _validate_availability_zone_hints)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"# Attribute Map"}],"source_content_type":"text/x-python","patch_set":37,"id":"3a29b11f_3ef91bc9","line":49,"updated":"2015-10-26 15:48:58.000000000","message":"armax - is L40-45 what your were looking for?  this part still looks rather magic to me","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"8ee4f0f5cf5dd3c442ac009fce46a6587f53db7d","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"attr.validators[\u0027type:validate_availability_zone_hints\u0027] \u003d ("},{"line_number":50,"context_line":"    _validate_availability_zone_hints)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"# Attribute Map"}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_1aca36a2","line":49,"in_reply_to":"3a29b11f_3ef91bc9","updated":"2015-11-04 08:53:03.000000000","message":"I still may not understand the magic. What do you mean?","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8145c9b15c462ff425350533d07d46749c146e28","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"attr.validators[\u0027type:validate_availability_zone_hints\u0027] \u003d ("},{"line_number":50,"context_line":"    _validate_availability_zone_hints)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"# Attribute Map"}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_b4276511","line":49,"in_reply_to":"fa80f949_1aca36a2","updated":"2015-11-05 02:36:40.000000000","message":"What _validate_availabilty_zone_hints does are to validate a value is a list of strings and check the length of JSON-encoded string. It can be generalized but I am not sure we need to do so.\nI would like to confirm Armando the original intension.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"64c83a56f6ca29d141b6f0696b3b205abb09b862","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        return msg"},{"line_number":43,"context_line":"    az_string \u003d convert_az_list_to_string(data)"},{"line_number":44,"context_line":"    if len(az_string) \u003e AZ_HINTS_DB_LEN:"},{"line_number":45,"context_line":"        msg \u003d _(\"too many availability_zone_hints specified\")"},{"line_number":46,"context_line":"        raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""}],"source_content_type":"text/x-python","patch_set":38,"id":"da85f559_6cf9e0c6","line":45,"updated":"2015-11-11 09:41:38.000000000","message":"nit: \"Too many ******\"","commit_id":"79d5d8ecd33ef7fa94f605e1081d699b78dbdc64"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"508793c379d51128d66eb05b19903d5848a9433f","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        return msg"},{"line_number":43,"context_line":"    az_string \u003d convert_az_list_to_string(data)"},{"line_number":44,"context_line":"    if len(az_string) \u003e AZ_HINTS_DB_LEN:"},{"line_number":45,"context_line":"        msg \u003d _(\"too many availability_zone_hints specified\")"},{"line_number":46,"context_line":"        raise exceptions.InvalidInput(error_message\u003dmsg)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""}],"source_content_type":"text/x-python","patch_set":38,"id":"da85f559_254981b7","line":45,"in_reply_to":"da85f559_6cf9e0c6","updated":"2015-11-12 01:33:18.000000000","message":"Done","commit_id":"79d5d8ecd33ef7fa94f605e1081d699b78dbdc64"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"356209e29f0280bf5d9cc5b9e9ce7513982374a1","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def _validate_availability_zone_hints(data, valid_value\u003dNone):"},{"line_number":39,"context_line":"    # syntax check only here. existence of az will be checked later."},{"line_number":40,"context_line":"    msg \u003d attr._validate_list_of_strings(data)"},{"line_number":41,"context_line":"    if msg:"},{"line_number":42,"context_line":"        return msg"},{"line_number":43,"context_line":"    az_string \u003d convert_az_list_to_string(data)"}],"source_content_type":"text/x-python","patch_set":41,"id":"ba8a016a_243c8ec7","line":40,"updated":"2015-11-17 19:04:46.000000000","message":"Since this is used outside of attribute.py, we shouldn\u0027t use the underscore (private) prefix. This will make it easier to pull the validators out of neutron and into a library, later.","commit_id":"0a2eae4f4a000f18b06fa443839517cbf2199c36"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"9dd852fac7fe01238e39f70762cea805fb5351b5","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def _validate_availability_zone_hints(data, valid_value\u003dNone):"},{"line_number":39,"context_line":"    # syntax check only here. existence of az will be checked later."},{"line_number":40,"context_line":"    msg \u003d attr._validate_list_of_strings(data)"},{"line_number":41,"context_line":"    if msg:"},{"line_number":42,"context_line":"        return msg"},{"line_number":43,"context_line":"    az_string \u003d convert_az_list_to_string(data)"}],"source_content_type":"text/x-python","patch_set":41,"id":"ba8a016a_339d9959","line":40,"in_reply_to":"ba8a016a_243c8ec7","updated":"2015-11-18 08:33:20.000000000","message":"However, other extensions are in a similar way. If we break the consistency, we will have to do in another patch.","commit_id":"0a2eae4f4a000f18b06fa443839517cbf2199c36"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"402b2400fad48f10c5c46a0995edafff10242510","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def _validate_availability_zone_hints(data, valid_value\u003dNone):"},{"line_number":39,"context_line":"    # syntax check only here. existence of az will be checked later."},{"line_number":40,"context_line":"    msg \u003d attr._validate_list_of_unique_strings(data)"},{"line_number":41,"context_line":"    if msg:"},{"line_number":42,"context_line":"        return msg"},{"line_number":43,"context_line":"    az_string \u003d convert_az_list_to_string(data)"}],"source_content_type":"text/x-python","patch_set":42,"id":"ba8a016a_8c868dd9","line":40,"updated":"2015-11-18 16:28:50.000000000","message":"We\u0027re trying to split out common code into a neutron library. One thing I\u0027m seeing is that the validators, all of which are (by convention) named private, are used in the module they are defined (attribute.py). However, there are some that are used outside of attributes.py, like this new validator, which makes it difficult to separate it out into a new library.\n\nIt would save us effort down the road, IMHO, if we name this without the underscore, so that it will be one less thing that we have to go through contortions to split out. I think the short term inconsistency is reasonable.","commit_id":"f308c80c0fbfb45e69db702f2c02cc774defafb6"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"14e337a63dbdd1843d9531a3c965975d7d44368e","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"def _validate_availability_zone_hints(data, valid_value\u003dNone):"},{"line_number":39,"context_line":"    # syntax check only here. existence of az will be checked later."},{"line_number":40,"context_line":"    msg \u003d attr._validate_list_of_unique_strings(data)"},{"line_number":41,"context_line":"    if msg:"},{"line_number":42,"context_line":"        return msg"},{"line_number":43,"context_line":"    az_string \u003d convert_az_list_to_string(data)"}],"source_content_type":"text/x-python","patch_set":42,"id":"ba8a016a_02580889","line":40,"in_reply_to":"ba8a016a_8c868dd9","updated":"2015-11-19 07:34:48.000000000","message":"I really don\u0027t like inconsistency even if short term ;) However, I believe you because you have responsibility about the feature.","commit_id":"f308c80c0fbfb45e69db702f2c02cc774defafb6"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"ee823c7359df50bea0fe0e8d347d2717a774cf67","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron import manager"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"AZ_HINTS_DB_LEN \u003d 255"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# resource independent common methods"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_f072b110","line":26,"updated":"2015-11-23 21:42:29.000000000","message":"iiuc, we allow 255 hints but we have only a sa.String(255) to store the associated jsondump?","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"e834d1a08260e616b718a6dfdbabc1b6e2a44418","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron import manager"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"AZ_HINTS_DB_LEN \u003d 255"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# resource independent common methods"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_861e7e6e","line":26,"in_reply_to":"ba8a016a_b18e61ce","updated":"2015-11-24 10:50:00.000000000","message":"No. This means string length of hints not the number of hints.","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"90d111b0cda07a091b78af1a6773a3329bc9cd83","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron import manager"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"AZ_HINTS_DB_LEN \u003d 255"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# resource independent common methods"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_b18e61ce","line":26,"in_reply_to":"ba8a016a_f072b110","updated":"2015-11-24 06:04:02.000000000","message":"I think this constant is used after AZ hints is decoded into JSON (at L.44 below).\n\nDo you really allow 255 hints?","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"65eb9679077c7be9ca19b941c73b8965d0db7b34","unresolved":false,"context_lines":[{"line_number":129,"context_line":"                               sorts\u003dNone, limit\u003dNone, marker\u003dNone,"},{"line_number":130,"context_line":"                               page_reverse\u003dFalse):"},{"line_number":131,"context_line":"        \"\"\"Return availability zones which a resource belongs\"\"\""},{"line_number":132,"context_line":"        pass"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    @abc.abstractmethod"},{"line_number":135,"context_line":"    def validate_availability_zones(self, context, resource_type,"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_555a8f84","line":132,"updated":"2015-11-23 21:18:40.000000000","message":"you can remove \"pass\", it\u0027s commonly considered as dead code by coverage tool","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"e834d1a08260e616b718a6dfdbabc1b6e2a44418","unresolved":false,"context_lines":[{"line_number":129,"context_line":"                               sorts\u003dNone, limit\u003dNone, marker\u003dNone,"},{"line_number":130,"context_line":"                               page_reverse\u003dFalse):"},{"line_number":131,"context_line":"        \"\"\"Return availability zones which a resource belongs\"\"\""},{"line_number":132,"context_line":"        pass"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    @abc.abstractmethod"},{"line_number":135,"context_line":"    def validate_availability_zones(self, context, resource_type,"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_69900d44","line":132,"in_reply_to":"ba8a016a_555a8f84","updated":"2015-11-24 10:50:00.000000000","message":"Done","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"65eb9679077c7be9ca19b941c73b8965d0db7b34","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        pass"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    @abc.abstractmethod"},{"line_number":135,"context_line":"    def validate_availability_zones(self, context, resource_type,"},{"line_number":136,"context_line":"                                    availability_zones):"},{"line_number":137,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_95c79711","line":135,"updated":"2015-11-23 21:18:40.000000000","message":"a docstring seems required","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"e834d1a08260e616b718a6dfdbabc1b6e2a44418","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        pass"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    @abc.abstractmethod"},{"line_number":135,"context_line":"    def validate_availability_zones(self, context, resource_type,"},{"line_number":136,"context_line":"                                    availability_zones):"},{"line_number":137,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_2996853e","line":135,"in_reply_to":"ba8a016a_95c79711","updated":"2015-11-24 10:50:00.000000000","message":"Done","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"}],"neutron/extensions/network_availability_zone.py":[{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"9f5614e13e4ce4b3249d464603c28a6dbb58f744","unresolved":false,"context_lines":[{"line_number":55,"context_line":"            return EXTENDED_ATTRIBUTES_2_0"},{"line_number":56,"context_line":"        else:"},{"line_number":57,"context_line":"            return {}"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":61,"context_line":"class NetworkAvailabilityZonePluginBase(object):"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a1a9d01_01202e47","line":58,"updated":"2015-09-29 00:25:32.000000000","message":"it requires availability zone extension","commit_id":"32a3b21535c9b73141d1d46c1bfa18ae01645c39"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4d00e4267e7659935a563e6dfe40ad33e4511062","unresolved":false,"context_lines":[{"line_number":55,"context_line":"            return EXTENDED_ATTRIBUTES_2_0"},{"line_number":56,"context_line":"        else:"},{"line_number":57,"context_line":"            return {}"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":61,"context_line":"class NetworkAvailabilityZonePluginBase(object):"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a1a9d01_6c945e42","line":58,"in_reply_to":"9a1a9d01_01202e47","updated":"2015-09-29 16:23:44.000000000","message":"Done","commit_id":"32a3b21535c9b73141d1d46c1bfa18ae01645c39"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"82cc9bd584f8d4cd9db655de03c440a7818d0857","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        az_ext.AVAILABILITY_ZONES: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":26,"context_line":"                                    \u0027is_visible\u0027: True},"},{"line_number":27,"context_line":"        az_ext.AZ_HINTS: {"},{"line_number":28,"context_line":"                \u0027allow_post\u0027: True, \u0027allow_put\u0027: False, \u0027is_visible\u0027: True,"},{"line_number":29,"context_line":"                \u0027validate\u0027: {\u0027type:validate_availability_zone_hints\u0027: None},"},{"line_number":30,"context_line":"                \u0027default\u0027: []}},"},{"line_number":31,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":37,"id":"1a26ad4f_8d6779e8","line":28,"updated":"2015-11-02 14:42:55.000000000","message":"indentation here is dodgy","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        az_ext.AVAILABILITY_ZONES: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":26,"context_line":"                                    \u0027is_visible\u0027: True},"},{"line_number":27,"context_line":"        az_ext.AZ_HINTS: {"},{"line_number":28,"context_line":"                \u0027allow_post\u0027: True, \u0027allow_put\u0027: False, \u0027is_visible\u0027: True,"},{"line_number":29,"context_line":"                \u0027validate\u0027: {\u0027type:validate_availability_zone_hints\u0027: None},"},{"line_number":30,"context_line":"                \u0027default\u0027: []}},"},{"line_number":31,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_98c806aa","line":28,"in_reply_to":"1a26ad4f_8d6779e8","updated":"2015-11-11 07:59:20.000000000","message":"Done","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8145c9b15c462ff425350533d07d46749c146e28","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    @classmethod"},{"line_number":46,"context_line":"    def get_description(cls):"},{"line_number":47,"context_line":"        return \"The network availability zone extension.\""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    @classmethod"},{"line_number":50,"context_line":"    def get_updated(cls):"}],"source_content_type":"text/x-python","patch_set":37,"id":"fa80f949_34893527","line":47,"updated":"2015-11-05 02:36:40.000000000","message":"Availability zone support for network.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    @classmethod"},{"line_number":46,"context_line":"    def get_description(cls):"},{"line_number":47,"context_line":"        return \"The network availability zone extension.\""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    @classmethod"},{"line_number":50,"context_line":"    def get_updated(cls):"}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_38ba3a0b","line":47,"in_reply_to":"fa80f949_34893527","updated":"2015-11-11 07:59:20.000000000","message":"Done","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"587eaa5384eebc7a64cafb21d700dd8546708423","unresolved":false,"context_lines":[{"line_number":64,"context_line":"class NetworkAvailabilityZonePluginBase(object):"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @abc.abstractmethod"},{"line_number":67,"context_line":"    def get_network_availability_zones(self, network_id):"},{"line_number":68,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":41,"id":"ba8a016a_64a36b50","line":67,"updated":"2015-11-17 23:37:27.000000000","message":"A docstring seems required","commit_id":"0a2eae4f4a000f18b06fa443839517cbf2199c36"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"9dd852fac7fe01238e39f70762cea805fb5351b5","unresolved":false,"context_lines":[{"line_number":64,"context_line":"class NetworkAvailabilityZonePluginBase(object):"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @abc.abstractmethod"},{"line_number":67,"context_line":"    def get_network_availability_zones(self, network_id):"},{"line_number":68,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":41,"id":"ba8a016a_93ab251d","line":67,"in_reply_to":"ba8a016a_64a36b50","updated":"2015-11-18 08:33:20.000000000","message":"Done","commit_id":"0a2eae4f4a000f18b06fa443839517cbf2199c36"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"173e2ea4eeefdc800b97250f847a523cd1b61ff4","unresolved":false,"context_lines":[{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @abc.abstractmethod"},{"line_number":67,"context_line":"    def get_network_availability_zones(self, network_id):"},{"line_number":68,"context_line":"        \"\"\"Return availability zones which a network belongs\"\"\""}],"source_content_type":"text/x-python","patch_set":47,"id":"9a8ffd7b_ce165655","line":68,"updated":"2015-11-24 14:00:48.000000000","message":"-\u003e belongs to\n\nThis is a nit. If you have a chance to respin (or you want a correct english :)), please update.","commit_id":"a435cf2002ac56ab76d80470761bccef2e1ae4d3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"4b9545f6fd5d3b6409f7afe1f226e65e38441481","unresolved":false,"context_lines":[{"line_number":26,"context_line":"                                    \u0027is_visible\u0027: True},"},{"line_number":27,"context_line":"        az_ext.AZ_HINTS: {"},{"line_number":28,"context_line":"            \u0027allow_post\u0027: True, \u0027allow_put\u0027: False, \u0027is_visible\u0027: True,"},{"line_number":29,"context_line":"            \u0027validate\u0027: {\u0027type:validate_availability_zone_hints\u0027: None},"},{"line_number":30,"context_line":"            \u0027default\u0027: []}},"},{"line_number":31,"context_line":"}"},{"line_number":32,"context_line":""}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_c6e9361c","line":29,"range":{"start_line":29,"start_character":26,"end_line":29,"end_character":63},"updated":"2015-11-25 05:25:20.000000000","message":"\"type:availability_zone_hints\" is a more natural type name i guess.","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"6f123c3210d3b9264a27b6ad042135a19139f4bf","unresolved":false,"context_lines":[{"line_number":26,"context_line":"                                    \u0027is_visible\u0027: True},"},{"line_number":27,"context_line":"        az_ext.AZ_HINTS: {"},{"line_number":28,"context_line":"            \u0027allow_post\u0027: True, \u0027allow_put\u0027: False, \u0027is_visible\u0027: True,"},{"line_number":29,"context_line":"            \u0027validate\u0027: {\u0027type:validate_availability_zone_hints\u0027: None},"},{"line_number":30,"context_line":"            \u0027default\u0027: []}},"},{"line_number":31,"context_line":"}"},{"line_number":32,"context_line":""}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_f1e512a8","line":29,"range":{"start_line":29,"start_character":26,"end_line":29,"end_character":63},"in_reply_to":"9a8ffd7b_c6e9361c","updated":"2015-11-25 06:25:15.000000000","message":"+1","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"42edbbb621d74dbc03e34f96d278df246fed670a","unresolved":false,"context_lines":[{"line_number":26,"context_line":"                                    \u0027is_visible\u0027: True},"},{"line_number":27,"context_line":"        az_ext.AZ_HINTS: {"},{"line_number":28,"context_line":"            \u0027allow_post\u0027: True, \u0027allow_put\u0027: False, \u0027is_visible\u0027: True,"},{"line_number":29,"context_line":"            \u0027validate\u0027: {\u0027type:validate_availability_zone_hints\u0027: None},"},{"line_number":30,"context_line":"            \u0027default\u0027: []}},"},{"line_number":31,"context_line":"}"},{"line_number":32,"context_line":""}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_f399836f","line":29,"in_reply_to":"9a8ffd7b_f1e512a8","updated":"2015-11-25 13:34:53.000000000","message":"Done","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"}],"neutron/plugins/ml2/plugin.py":[{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"07f3a5d049154d53a5f02da373bffedb3054aab7","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                    \"net-mtu\", \"vlan-transparent\","},{"line_number":122,"context_line":"                                    \"address-scope\", \"dns-integration\","},{"line_number":123,"context_line":"                                    \"availability_zone\","},{"line_number":124,"context_line":"                                    \"network_availability_zone\"]"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @property"},{"line_number":127,"context_line":"    def supported_extension_aliases(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_016798b7","line":124,"updated":"2015-11-19 11:51:36.000000000","message":"Why this is not using ML2 Extension Drivers to support added extension?","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"e834d1a08260e616b718a6dfdbabc1b6e2a44418","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                    \"net-mtu\", \"vlan-transparent\","},{"line_number":122,"context_line":"                                    \"address-scope\", \"dns-integration\","},{"line_number":123,"context_line":"                                    \"availability_zone\","},{"line_number":124,"context_line":"                                    \"network_availability_zone\"]"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @property"},{"line_number":127,"context_line":"    def supported_extension_aliases(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_54111c03","line":124,"in_reply_to":"ba8a016a_00a27699","updated":"2015-11-24 10:50:00.000000000","message":"I understand. Akihiro and Armando, Berezovsky, thank you for your help.","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"521dff6659dec2afff45ae92cba1a9907397ef31","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                    \"net-mtu\", \"vlan-transparent\","},{"line_number":122,"context_line":"                                    \"address-scope\", \"dns-integration\","},{"line_number":123,"context_line":"                                    \"availability_zone\","},{"line_number":124,"context_line":"                                    \"network_availability_zone\"]"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @property"},{"line_number":127,"context_line":"    def supported_extension_aliases(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_4e45c443","line":124,"in_reply_to":"ba8a016a_016798b7","updated":"2015-11-19 14:18:55.000000000","message":"What do you mean? Availability zone extension isn\u0027t ML2 Extension Driver.","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"611de98fd341327ecc8e0028ea5be8efbd94c711","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                    \"net-mtu\", \"vlan-transparent\","},{"line_number":122,"context_line":"                                    \"address-scope\", \"dns-integration\","},{"line_number":123,"context_line":"                                    \"availability_zone\","},{"line_number":124,"context_line":"                                    \"network_availability_zone\"]"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @property"},{"line_number":127,"context_line":"    def supported_extension_aliases(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_00a27699","line":124,"in_reply_to":"ba8a016a_315d9179","updated":"2015-11-24 07:55:11.000000000","message":"Agree, I do not see it as a blocking issue either. Clean-up if decided can be done later. I wanted to make sure the Extension Driver alternative was considered.","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"f75e85627a99b707b234798a1bbc689fc728b742","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                    \"net-mtu\", \"vlan-transparent\","},{"line_number":122,"context_line":"                                    \"address-scope\", \"dns-integration\","},{"line_number":123,"context_line":"                                    \"availability_zone\","},{"line_number":124,"context_line":"                                    \"network_availability_zone\"]"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @property"},{"line_number":127,"context_line":"    def supported_extension_aliases(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_89d086ca","line":124,"in_reply_to":"ba8a016a_4e45c443","updated":"2015-11-19 14:40:38.000000000","message":"I meant to say that possible way to implement extension is via ML2 extension Driver, so no Mixin to inherit and no code to add in ML2 plugin.\nPossible example is port security:https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/extensions/port_security.py. What is the reason for choosing the mixin approach?","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6e247ed103c285fcbe4653fd74b50b8d164aa262","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                    \"net-mtu\", \"vlan-transparent\","},{"line_number":122,"context_line":"                                    \"address-scope\", \"dns-integration\","},{"line_number":123,"context_line":"                                    \"availability_zone\","},{"line_number":124,"context_line":"                                    \"network_availability_zone\"]"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @property"},{"line_number":127,"context_line":"    def supported_extension_aliases(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_cf3f52b2","line":124,"in_reply_to":"ba8a016a_89d086ca","updated":"2015-11-19 23:36:16.000000000","message":"I understand but AZ must call super(Ml2Plugin, self).update_network() as with MTU and vlantransparent( https://review.openstack.org/#/c/243163/5/neutron/plugins/ml2/plugin.py )","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c4a38bc00b5eb475914d969086a20401ef773b2a","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                    \"net-mtu\", \"vlan-transparent\","},{"line_number":122,"context_line":"                                    \"address-scope\", \"dns-integration\","},{"line_number":123,"context_line":"                                    \"availability_zone\","},{"line_number":124,"context_line":"                                    \"network_availability_zone\"]"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @property"},{"line_number":127,"context_line":"    def supported_extension_aliases(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_d5343fdf","line":124,"in_reply_to":"ba8a016a_adb96fee","updated":"2015-11-23 20:57:07.000000000","message":"Although the ML2 extension driver is a possibility, the fact that the dhcp_agent_scheduler (and availability zone as its dependent) is an integral part of the plugin led me to believe that we should follow/keep the current (proposed) approach.","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e042c2f069c9728b498058fcd3bfd98b52363180","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                    \"net-mtu\", \"vlan-transparent\","},{"line_number":122,"context_line":"                                    \"address-scope\", \"dns-integration\","},{"line_number":123,"context_line":"                                    \"availability_zone\","},{"line_number":124,"context_line":"                                    \"network_availability_zone\"]"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @property"},{"line_number":127,"context_line":"    def supported_extension_aliases(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_d28a831a","line":124,"in_reply_to":"ba8a016a_cf3f52b2","updated":"2015-11-20 10:04:46.000000000","message":"If this is the only reason, you can use neutron.manager.NeutronManager.get_plugin().","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"7ce383ea86a5e603a1126b1873b2305e8b99aaef","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                    \"net-mtu\", \"vlan-transparent\","},{"line_number":122,"context_line":"                                    \"address-scope\", \"dns-integration\","},{"line_number":123,"context_line":"                                    \"availability_zone\","},{"line_number":124,"context_line":"                                    \"network_availability_zone\"]"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @property"},{"line_number":127,"context_line":"    def supported_extension_aliases(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_adb96fee","line":124,"in_reply_to":"ba8a016a_d28a831a","updated":"2015-11-22 07:28:38.000000000","message":"I am not sure why for MTU and vlan transparent it was not supported via Extension Driver. I would suggest to take the driver approach and to keep Plugin code unaffected. I believe this is the way to go with  adding extensions support to ML2. What Akihiro-san suggests makes sense and will allow you to invoke plugins method. If you need to extend network resource with AZ attribute, you may do it via process_update_network and process_create_network","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"90d111b0cda07a091b78af1a6773a3329bc9cd83","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                                    \"net-mtu\", \"vlan-transparent\","},{"line_number":122,"context_line":"                                    \"address-scope\", \"dns-integration\","},{"line_number":123,"context_line":"                                    \"availability_zone\","},{"line_number":124,"context_line":"                                    \"network_availability_zone\"]"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @property"},{"line_number":127,"context_line":"    def supported_extension_aliases(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_315d9179","line":124,"in_reply_to":"ba8a016a_d5343fdf","updated":"2015-11-24 06:04:02.000000000","message":"Honestly I am okay with either approach.\n\nWe support \"agent\" and \"dhcp_agent_scheduler\" as the plugin level, so the plugin level approach sounds good from this point of view. In addition, \"availability_zone\" feature can be expanded to non-agent-based back-ends in future potentially.\n\nOn the other hand, this feature is specific to agent implementation at now. From this point the extension driver approach might be good, but we can clean up all of them once later if necessary.\n\nAs I mentioned above, I don\u0027t think it is a blocking issue in this patch.","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"}],"neutron/scheduler/base_scheduler.py":[{"author":{"_account_id":16053,"name":"Pengtao Huang","email":"huangpengtao@huawei.com","username":"huangpengtao"},"change_message_id":"0661616a6909eefe0ff55af5e4292f8b760ec03a","unresolved":false,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        chosen_agents \u003d []"},{"line_number":85,"context_line":"        for _ in range(num_agents):"},{"line_number":86,"context_line":"            for select_az, _ in sorted(num_az_agents.items(),"},{"line_number":87,"context_line":"                                       key\u003ditemgetter(1)):"},{"line_number":88,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":89,"context_line":"                    select_agent \u003d self.select(plugin, context,"}],"source_content_type":"text/x-python","patch_set":17,"id":"da20952f_3e55faf8","line":86,"updated":"2015-09-07 07:30:18.000000000","message":"please do not use _ which is meaningless variable,even it is no useful.","commit_id":"1bd87066e52b03de15bdc08216b38e1afec60810"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"9f9f0909e8483a68c75420d1307f96146e96b975","unresolved":false,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        chosen_agents \u003d []"},{"line_number":85,"context_line":"        for _ in range(num_agents):"},{"line_number":86,"context_line":"            for select_az, _ in sorted(num_az_agents.items(),"},{"line_number":87,"context_line":"                                       key\u003ditemgetter(1)):"},{"line_number":88,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":89,"context_line":"                    select_agent \u003d self.select(plugin, context,"}],"source_content_type":"text/x-python","patch_set":17,"id":"da20952f_c42dc4a9","line":86,"in_reply_to":"da20952f_3e55faf8","updated":"2015-09-09 01:01:39.000000000","message":"Exactly. Instead of number of hosted_agents, \"_\" means the variable is meaningless to reviewers.","commit_id":"1bd87066e52b03de15bdc08216b38e1afec60810"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"9ca310fb1c10dee4717683134e5c69eb28f55813","unresolved":false,"context_lines":[{"line_number":63,"context_line":"           If the network has multiple AZs, agents are scheduled as"},{"line_number":64,"context_line":"           follows:"},{"line_number":65,"context_line":"           - select AZ with least agents scheduled for the network"},{"line_number":66,"context_line":"             (random for AZs with same amount of agents scheduled)"},{"line_number":67,"context_line":"           - chose agent in the AZ with specified scheduler"},{"line_number":68,"context_line":"        \"\"\""},{"line_number":69,"context_line":"        hostable_az_agents \u003d {}"}],"source_content_type":"text/x-python","patch_set":20,"id":"da20952f_c602430c","line":66,"updated":"2015-09-11 06:23:41.000000000","message":"it doesn\u0027t seem random.\nit\u0027s determined by items() order, right?","commit_id":"8091d236020fb624bb586ca35a3f5f8397d87ec3"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":73,"context_line":"            if az_agent not in hostable_az_agents:"},{"line_number":74,"context_line":"                hostable_az_agents[az_agent] \u003d [agent]"},{"line_number":75,"context_line":"            else:"},{"line_number":76,"context_line":"                hostable_az_agents[az_agent].append(agent)"},{"line_number":77,"context_line":"            if az_agent not in num_az_agents:"},{"line_number":78,"context_line":"                num_az_agents[az_agent] \u003d 0"},{"line_number":79,"context_line":"        for agent in hosted_agents:"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_88eea7eb","line":76,"updated":"2015-09-23 01:59:24.000000000","message":"minor: Consider using collections.defaultdict.\n\n  hostable_az_agents \u003d collections.defaultdict(list)\n  for agent in hostable_agents:\n      az_agent \u003d agent[\u0027availability_zone\u0027]\n      hostable_az_agents[az_agent].append(agent)","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":73,"context_line":"            if az_agent not in hostable_az_agents:"},{"line_number":74,"context_line":"                hostable_az_agents[az_agent] \u003d [agent]"},{"line_number":75,"context_line":"            else:"},{"line_number":76,"context_line":"                hostable_az_agents[az_agent].append(agent)"},{"line_number":77,"context_line":"            if az_agent not in num_az_agents:"},{"line_number":78,"context_line":"                num_az_agents[az_agent] \u003d 0"},{"line_number":79,"context_line":"        for agent in hosted_agents:"}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_ffe7213e","line":76,"in_reply_to":"ba15a1d1_88eea7eb","updated":"2015-09-25 16:47:50.000000000","message":"Done","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        for agent in hosted_agents:"},{"line_number":80,"context_line":"            az_agent \u003d agent[\u0027availability_zone\u0027]"},{"line_number":81,"context_line":"            if az_agent in num_az_agents:"},{"line_number":82,"context_line":"                num_az_agents[az_agent] +\u003d 1"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        chosen_agents \u003d []"},{"line_number":85,"context_line":"        for _ in range(num_agents):"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_68bc73bb","line":82,"updated":"2015-09-23 01:59:24.000000000","message":"minor: How about using collections.Counter?\n\n  num_az_agents \u003d collections.Counter()\n  for agent in hosted_agents:\n    az_agent \u003d agent[\u0027availability_zone\u0027]\n    num_az_agents[az_agent] +\u003d 1","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        for agent in hosted_agents:"},{"line_number":80,"context_line":"            az_agent \u003d agent[\u0027availability_zone\u0027]"},{"line_number":81,"context_line":"            if az_agent in num_az_agents:"},{"line_number":82,"context_line":"                num_az_agents[az_agent] +\u003d 1"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        chosen_agents \u003d []"},{"line_number":85,"context_line":"        for _ in range(num_agents):"}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_5f1e4d0d","line":82,"in_reply_to":"ba15a1d1_68bc73bb","updated":"2015-09-25 16:47:50.000000000","message":"The key of num_az_agents must be az of hostable_agents.","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        chosen_agents \u003d []"},{"line_number":85,"context_line":"        for _ in range(num_agents):"},{"line_number":86,"context_line":"            for select_az, _ in sorted(num_az_agents.items(),"},{"line_number":87,"context_line":"                                       key\u003ditemgetter(1)):"},{"line_number":88,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":89,"context_line":"                    select_agent \u003d self.select(plugin, context,"},{"line_number":90,"context_line":"                                        hostable_az_agents[select_az], 1)"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_48616f38","line":87,"updated":"2015-09-23 01:59:24.000000000","message":"In OpenStack code, underscore usually comes from gettext, so it is better to avoid using it. Can you use a different name instead of _?\n\nOr:\n\n  for select_az in sorted(num_az_agents, key\u003dlambda x: num_az_agents[x]):\n\n(I think it costs a bit more compared to the current version)","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        chosen_agents \u003d []"},{"line_number":85,"context_line":"        for _ in range(num_agents):"},{"line_number":86,"context_line":"            for select_az, _ in sorted(num_az_agents.items(),"},{"line_number":87,"context_line":"                                       key\u003ditemgetter(1)):"},{"line_number":88,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":89,"context_line":"                    select_agent \u003d self.select(plugin, context,"},{"line_number":90,"context_line":"                                        hostable_az_agents[select_az], 1)"}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_bfd3e937","line":87,"in_reply_to":"ba15a1d1_48616f38","updated":"2015-09-25 16:47:50.000000000","message":"Done","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                    chosen_agents.append(select_agent[0])"},{"line_number":92,"context_line":"                    hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":93,"context_line":"                    num_az_agents[select_az] +\u003d 1"},{"line_number":94,"context_line":"                    break"},{"line_number":95,"context_line":"        return chosen_agents"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_8855471f","line":94,"updated":"2015-09-23 01:59:24.000000000","message":"This scheduling logic means that all agents are selected from one zone in a case of unbalanced load among az.\n\nI think it can happen easily. For example, assume we have two agents per zone, two zones and two agents per network. Assume we have 2 networks on AZ1 and 1 network on [AZ1, AZ2].\nNow we have:  num_az_agents \u003d {AZ1: 5, AZ2: 1}\n\nWhen a new network is requested with hints [AZ1, AZ2],\ntwo agents from AZ1 will be selected.\n\nI think it is different from what a user expects.","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                    chosen_agents.append(select_agent[0])"},{"line_number":92,"context_line":"                    hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":93,"context_line":"                    num_az_agents[select_az] +\u003d 1"},{"line_number":94,"context_line":"                    break"},{"line_number":95,"context_line":"        return chosen_agents"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_1fef75e9","line":94,"in_reply_to":"ba15a1d1_8855471f","updated":"2015-09-25 16:47:50.000000000","message":"You\u0027re right. Done.","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":8645,"name":"Trinath Somanchi","email":"trinath.somanchi@freescale.com","username":"trinaths"},"change_message_id":"ced1beb9bac77b54bd3a82010366701605990d56","unresolved":false,"context_lines":[{"line_number":64,"context_line":"           follows:"},{"line_number":65,"context_line":"           - select AZ with least agents scheduled for the network"},{"line_number":66,"context_line":"             (nondeterministic for AZs with same amount of agents scheduled)"},{"line_number":67,"context_line":"           - chose agent in the AZ with specified scheduler"},{"line_number":68,"context_line":"        \"\"\""},{"line_number":69,"context_line":"        hostable_az_agents \u003d collections.defaultdict(list)"},{"line_number":70,"context_line":"        num_az_agents \u003d {}"}],"source_content_type":"text/x-python","patch_set":33,"id":"9a1a9d01_31769b70","line":67,"updated":"2015-09-30 11:08:58.000000000","message":"s/chose/choose/ ?","commit_id":"dde10884c058ecd7665bfb5538b17a32dc853d4f"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"71413259ff04077ccee5c183a0043b0ecd2b5989","unresolved":false,"context_lines":[{"line_number":64,"context_line":"           follows:"},{"line_number":65,"context_line":"           - select AZ with least agents scheduled for the network"},{"line_number":66,"context_line":"             (nondeterministic for AZs with same amount of agents scheduled)"},{"line_number":67,"context_line":"           - chose agent in the AZ with specified scheduler"},{"line_number":68,"context_line":"        \"\"\""},{"line_number":69,"context_line":"        hostable_az_agents \u003d collections.defaultdict(list)"},{"line_number":70,"context_line":"        num_az_agents \u003d {}"}],"source_content_type":"text/x-python","patch_set":33,"id":"9a1a9d01_9c0965e0","line":67,"in_reply_to":"9a1a9d01_31769b70","updated":"2015-10-02 02:21:57.000000000","message":"Done","commit_id":"dde10884c058ecd7665bfb5538b17a32dc853d4f"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"40563cc35aa9358e69810b28b99494ab6de6caeb","unresolved":false,"context_lines":[{"line_number":46,"context_line":"            plugin, context, resource)"},{"line_number":47,"context_line":"        num_agents \u003d filtered_agents_dict[\u0027n_agents\u0027]"},{"line_number":48,"context_line":"        hostable_agents \u003d filtered_agents_dict[\u0027hostable_agents\u0027]"},{"line_number":49,"context_line":"        if cfg.CONF.network_scheduler_availability_zone_aware:"},{"line_number":50,"context_line":"            hosted_agents \u003d filtered_agents_dict[\u0027hosted_agents\u0027]"},{"line_number":51,"context_line":"            chosen_agents \u003d self._select_az_aware(plugin, context,"},{"line_number":52,"context_line":"                                hostable_agents, hosted_agents, num_agents)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5a2ca52d_478a10c1","line":49,"updated":"2015-10-14 05:47:44.000000000","message":"I don\u0027t like this if branch. Let\u0027s not kill the initial design of this base scheduler. Can\u0027t you write your own that does a \u0027select\u0027 based on hints?","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e96368c9d264ec01b0fe6f624ca22c35455d5f1e","unresolved":false,"context_lines":[{"line_number":46,"context_line":"            plugin, context, resource)"},{"line_number":47,"context_line":"        num_agents \u003d filtered_agents_dict[\u0027n_agents\u0027]"},{"line_number":48,"context_line":"        hostable_agents \u003d filtered_agents_dict[\u0027hostable_agents\u0027]"},{"line_number":49,"context_line":"        if cfg.CONF.network_scheduler_availability_zone_aware:"},{"line_number":50,"context_line":"            hosted_agents \u003d filtered_agents_dict[\u0027hosted_agents\u0027]"},{"line_number":51,"context_line":"            chosen_agents \u003d self._select_az_aware(plugin, context,"},{"line_number":52,"context_line":"                                hostable_agents, hosted_agents, num_agents)"}],"source_content_type":"text/x-python","patch_set":36,"id":"fa80f949_b53bd1ea","line":49,"in_reply_to":"3a29b11f_7c704240","updated":"2015-11-05 07:17:21.000000000","message":"I think I made such a comment. I might confuse Hirofumi.\n\nI first explored a way to implement some AZ aware scheduler on top of BaseScheduler. However, the difficult in AZ scheduler is that the scheduler needs to choose agents from multiple AZs based on AZ hints, so a simple filtering of agents does not work.\n\nIt might be better to implement a dedicated scheduler for AZ, as Armando suggested. I think a simpler approach is better. It brings better maintainability.\n\nThought?","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"154c6e58433c45bb44a803426857d458f8c3ca4d","unresolved":false,"context_lines":[{"line_number":46,"context_line":"            plugin, context, resource)"},{"line_number":47,"context_line":"        num_agents \u003d filtered_agents_dict[\u0027n_agents\u0027]"},{"line_number":48,"context_line":"        hostable_agents \u003d filtered_agents_dict[\u0027hostable_agents\u0027]"},{"line_number":49,"context_line":"        if cfg.CONF.network_scheduler_availability_zone_aware:"},{"line_number":50,"context_line":"            hosted_agents \u003d filtered_agents_dict[\u0027hosted_agents\u0027]"},{"line_number":51,"context_line":"            chosen_agents \u003d self._select_az_aware(plugin, context,"},{"line_number":52,"context_line":"                                hostable_agents, hosted_agents, num_agents)"}],"source_content_type":"text/x-python","patch_set":36,"id":"3a29b11f_7c704240","line":49,"in_reply_to":"5a2ca52d_478a10c1","updated":"2015-10-23 04:12:18.000000000","message":"Because I got a comment like we should be able to use existing scheduler and we don\u0027t have cascade connection for scheduler. I  also don\u0027t want to recreate the scheduler for AZ so this patch makes availability zone be option for existing scheduler.","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"94b81bbf10106f9331878ddfd0cd6491a6207327","unresolved":false,"context_lines":[{"line_number":46,"context_line":"            plugin, context, resource)"},{"line_number":47,"context_line":"        num_agents \u003d filtered_agents_dict[\u0027n_agents\u0027]"},{"line_number":48,"context_line":"        hostable_agents \u003d filtered_agents_dict[\u0027hostable_agents\u0027]"},{"line_number":49,"context_line":"        if cfg.CONF.network_scheduler_availability_zone_aware:"},{"line_number":50,"context_line":"            hosted_agents \u003d filtered_agents_dict[\u0027hosted_agents\u0027]"},{"line_number":51,"context_line":"            chosen_agents \u003d self._select_az_aware(plugin, context,"},{"line_number":52,"context_line":"                                hostable_agents, hosted_agents, num_agents)"}],"source_content_type":"text/x-python","patch_set":36,"id":"da85f559_7b0c3c41","line":49,"in_reply_to":"fa80f949_b53bd1ea","updated":"2015-11-11 07:58:58.000000000","message":"I\u0027m OK. I created AZ scheduler.","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fe5713f2fa63d14ea6e968f5a1952fb88357cdce","unresolved":false,"context_lines":[{"line_number":63,"context_line":"           If the network has multiple AZs, agents are scheduled as"},{"line_number":64,"context_line":"           follows:"},{"line_number":65,"context_line":"           - select AZ with least agents scheduled for the network"},{"line_number":66,"context_line":"             (nondeterministic for AZs with same amount of agents scheduled)"},{"line_number":67,"context_line":"           - choose agent in the AZ with specified scheduler"},{"line_number":68,"context_line":"        \"\"\""},{"line_number":69,"context_line":"        hostable_az_agents \u003d collections.defaultdict(list)"}],"source_content_type":"text/x-python","patch_set":36,"id":"7a2fa921_5740ee06","line":66,"updated":"2015-10-09 05:59:31.000000000","message":"- in case of num_agents \u003e 1, try to distribute among AZs\n\n(it\u0027s my understanding of L83-84.  right?)","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"956f5873a09bf6350dae8dee924e474f5bbdd17f","unresolved":false,"context_lines":[{"line_number":63,"context_line":"           If the network has multiple AZs, agents are scheduled as"},{"line_number":64,"context_line":"           follows:"},{"line_number":65,"context_line":"           - select AZ with least agents scheduled for the network"},{"line_number":66,"context_line":"             (nondeterministic for AZs with same amount of agents scheduled)"},{"line_number":67,"context_line":"           - choose agent in the AZ with specified scheduler"},{"line_number":68,"context_line":"        \"\"\""},{"line_number":69,"context_line":"        hostable_az_agents \u003d collections.defaultdict(list)"}],"source_content_type":"text/x-python","patch_set":36,"id":"7a2fa921_a6f0c7ca","line":66,"in_reply_to":"7a2fa921_5740ee06","updated":"2015-10-13 00:10:02.000000000","message":"That\u0027s right.","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":14591,"name":"Lubosz Kosnik (diltram)","email":"lubosz.kosnik@intel.com","username":"diltram"},"change_message_id":"d7f67001b7318980f3cd3ebdc745ee1dc7b9d21e","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        if cfg.CONF.network_scheduler_availability_zone_aware:"},{"line_number":50,"context_line":"            hosted_agents \u003d filtered_agents_dict[\u0027hosted_agents\u0027]"},{"line_number":51,"context_line":"            chosen_agents \u003d self._select_az_aware(plugin, context,"},{"line_number":52,"context_line":"                                hostable_agents, hosted_agents, num_agents)"},{"line_number":53,"context_line":"        else:"},{"line_number":54,"context_line":"            chosen_agents \u003d self.select(plugin, context, hostable_agents,"},{"line_number":55,"context_line":"                                        num_agents)"}],"source_content_type":"text/x-python","patch_set":37,"id":"1a26ad4f_e9b16690","line":52,"updated":"2015-10-30 18:54:13.000000000","message":"Indentation","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        if cfg.CONF.network_scheduler_availability_zone_aware:"},{"line_number":50,"context_line":"            hosted_agents \u003d filtered_agents_dict[\u0027hosted_agents\u0027]"},{"line_number":51,"context_line":"            chosen_agents \u003d self._select_az_aware(plugin, context,"},{"line_number":52,"context_line":"                                hostable_agents, hosted_agents, num_agents)"},{"line_number":53,"context_line":"        else:"},{"line_number":54,"context_line":"            chosen_agents \u003d self.select(plugin, context, hostable_agents,"},{"line_number":55,"context_line":"                                        num_agents)"}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_18197622","line":52,"in_reply_to":"1a26ad4f_e9b16690","updated":"2015-11-11 07:59:20.000000000","message":"This was removed.","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":14591,"name":"Lubosz Kosnik (diltram)","email":"lubosz.kosnik@intel.com","username":"diltram"},"change_message_id":"d7f67001b7318980f3cd3ebdc745ee1dc7b9d21e","unresolved":false,"context_lines":[{"line_number":84,"context_line":"                                    key\u003dlambda x: num_az_agents[x]):"},{"line_number":85,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":86,"context_line":"                    select_agent \u003d self.select(plugin, context,"},{"line_number":87,"context_line":"                                        hostable_az_agents[select_az], 1)"},{"line_number":88,"context_line":"                    chosen_agents.append(select_agent[0])"},{"line_number":89,"context_line":"                    hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":90,"context_line":"                    num_az_agents[select_az] +\u003d 1"}],"source_content_type":"text/x-python","patch_set":37,"id":"1a26ad4f_694b1688","line":87,"updated":"2015-10-30 18:54:13.000000000","message":"Indentation","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"18a4b10a9ce9aa84baa040140a6dac8be08872ed","unresolved":false,"context_lines":[{"line_number":84,"context_line":"                                    key\u003dlambda x: num_az_agents[x]):"},{"line_number":85,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":86,"context_line":"                    select_agent \u003d self.select(plugin, context,"},{"line_number":87,"context_line":"                                        hostable_az_agents[select_az], 1)"},{"line_number":88,"context_line":"                    chosen_agents.append(select_agent[0])"},{"line_number":89,"context_line":"                    hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":90,"context_line":"                    num_az_agents[select_az] +\u003d 1"}],"source_content_type":"text/x-python","patch_set":37,"id":"da85f559_78e76211","line":87,"in_reply_to":"1a26ad4f_694b1688","updated":"2015-11-11 07:59:20.000000000","message":"Done","commit_id":"a3d0bdf3fb42581d82a9c3214134027002015822"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"3630d95371a71baa64279433bae6ff145920383a","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    @abc.abstractmethod"},{"line_number":34,"context_line":"    def select(self, plugin, context, resource_hostable_agents,"},{"line_number":35,"context_line":"               resource_hosted_agents, num_agents_needed):"},{"line_number":36,"context_line":"        \"\"\"Return a subset of agents based on the specific scheduling logic.\"\"\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def schedule(self, plugin, context, resource):"}],"source_content_type":"text/x-python","patch_set":40,"id":"da85f559_6c729b13","line":35,"updated":"2015-11-13 23:03:31.000000000","message":"Can I ask you to extract this change to this interface in a separate (parent) patch? I want this to stand out and not get lost through the AZ work. I\u0027d like you to justify why it\u0027s needed.","commit_id":"f117b5a12ec1374403ddad0090c9692642a9c7da"}],"neutron/scheduler/dhcp_agent_scheduler.py":[{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"a88eeceb72f65df394923383dd9cb333c6135e28","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        super(WeightScheduler, self).__init__(DhcpFilter())"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"class AvailabilityZoneScheduler(object):"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def __init__(self):"},{"line_number":98,"context_line":"        self.resource_filter \u003d DhcpFilter()"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_c705fb79","line":95,"updated":"2015-08-13 15:57:59.000000000","message":"should a comment be added to etc/neutron.conf to make operators aware of this new optional feature?","commit_id":"c9029323833a6f013cfbcdba87b43beb79999e6e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"d5727e100a1c563db726bb12d95cecdf0b428ae4","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        super(WeightScheduler, self).__init__(DhcpFilter())"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"class AvailabilityZoneScheduler(object):"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def __init__(self):"},{"line_number":98,"context_line":"        self.resource_filter \u003d DhcpFilter()"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_cde87b19","line":95,"in_reply_to":"1a4dcd0f_c705fb79","updated":"2015-08-24 06:30:00.000000000","message":"Done","commit_id":"c9029323833a6f013cfbcdba87b43beb79999e6e"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"dcbf0ad067abf29d214f3a65b2ad9ddf634e4225","unresolved":false,"context_lines":[{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    def _get_network_hostable_dhcp_agents(self, plugin, context, network):"},{"line_number":216,"context_line":"        \"\"\"Return number of agents which will actually host the given network"},{"line_number":217,"context_line":"           and a list of dhcp agents which can host the given network"},{"line_number":218,"context_line":"        \"\"\""},{"line_number":219,"context_line":"        hosted_agents \u003d self._get_dhcp_agents_hosting_network(plugin,"},{"line_number":220,"context_line":"                                                              context, network)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_28b6b7dc","line":217,"updated":"2015-08-24 14:13:34.000000000","message":"... and the list of agents currently hosting the network.","commit_id":"db4e106244c608ad3d047795e4efe7b8e18a00a4"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"d1c7f93eab623db849c99a8dd1507fe80d84bb85","unresolved":false,"context_lines":[{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    def _get_network_hostable_dhcp_agents(self, plugin, context, network):"},{"line_number":216,"context_line":"        \"\"\"Return number of agents which will actually host the given network"},{"line_number":217,"context_line":"           and a list of dhcp agents which can host the given network"},{"line_number":218,"context_line":"        \"\"\""},{"line_number":219,"context_line":"        hosted_agents \u003d self._get_dhcp_agents_hosting_network(plugin,"},{"line_number":220,"context_line":"                                                              context, network)"}],"source_content_type":"text/x-python","patch_set":9,"id":"da20952f_59db03ee","line":217,"in_reply_to":"fa1b9901_28b6b7dc","updated":"2015-08-26 15:59:39.000000000","message":"Good catch. Thanks.","commit_id":"db4e106244c608ad3d047795e4efe7b8e18a00a4"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bee424ccdfab0b8cd2ff84c7c627c25b0f60964f","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from operator import attrgetter"},{"line_number":18,"context_line":"from operator import itemgetter"},{"line_number":19,"context_line":"from oslo_config import cfg"},{"line_number":20,"context_line":"from oslo_db import exception as db_exc"},{"line_number":21,"context_line":"from oslo_log import log as logging"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_8c56b728","line":18,"updated":"2015-08-29 14:59:48.000000000","message":"operator is a standard module.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"1f4e377a075b137994bed771a263cf2d4b5c5225","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from operator import attrgetter"},{"line_number":18,"context_line":"from operator import itemgetter"},{"line_number":19,"context_line":"from oslo_config import cfg"},{"line_number":20,"context_line":"from oslo_db import exception as db_exc"},{"line_number":21,"context_line":"from oslo_log import log as logging"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_4a08db28","line":18,"in_reply_to":"da20952f_8c56b728","updated":"2015-09-02 04:53:23.000000000","message":"Done","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bee424ccdfab0b8cd2ff84c7c627c25b0f60964f","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        super(WeightScheduler, self).__init__(DhcpFilter())"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"class AvailabilityZoneScheduler(object):"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def __init__(self):"},{"line_number":98,"context_line":"        self.resource_filter \u003d DhcpFilter()"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_1d073319","line":95,"updated":"2015-08-29 14:59:48.000000000","message":"This implementation is reinventing (reimplementing) WeightScheduler.\nIn my understanding the difference is just that this scheduler is aware of availability zone concept, and I don\u0027t see any reason you implement the whole thing in this class. Could you consider just limiting candidates in this scheduler and delegating the remaining logic to the existing scheduler implementations? Otherwise, it must be something wrong in the way of implementation.\n\nCan\u0027t we have a chance scheduler with AZ support?\nThough it might be useless compared to a weight scheduler, the implementation should not limit it.\nIf we limit it, we need to have N x M x more implementations depending on scheduling demand.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"b8d9888998bee677300492e4379b2808c14ebbbf","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        super(WeightScheduler, self).__init__(DhcpFilter())"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"class AvailabilityZoneScheduler(object):"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def __init__(self):"},{"line_number":98,"context_line":"        self.resource_filter \u003d DhcpFilter()"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_a2d35203","line":95,"in_reply_to":"da20952f_1d073319","updated":"2015-08-31 07:34:52.000000000","message":"\u003e Can\u0027t we have a chance scheduler with AZ support?\n\nDo you mean that AZ scheduler must have chance method? IMO, new scheduler must not do because chance scheduler is reference scheduler. Should we add chance method into new scheduler every time we create it? Weight scheduler doesn\u0027t have chance method if my understanding is right.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"1f4e377a075b137994bed771a263cf2d4b5c5225","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        super(WeightScheduler, self).__init__(DhcpFilter())"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"class AvailabilityZoneScheduler(object):"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def __init__(self):"},{"line_number":98,"context_line":"        self.resource_filter \u003d DhcpFilter()"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_6a0d9f36","line":95,"in_reply_to":"da20952f_390bc6d7","updated":"2015-09-02 04:53:23.000000000","message":"Done","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"128c96c08038d3f5c29aee597a814b9e351db99e","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        super(WeightScheduler, self).__init__(DhcpFilter())"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"class AvailabilityZoneScheduler(object):"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def __init__(self):"},{"line_number":98,"context_line":"        self.resource_filter \u003d DhcpFilter()"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_ba8e0d2c","line":95,"in_reply_to":"da20952f_a2d35203","updated":"2015-08-31 13:35:12.000000000","message":"I first thought AZ aware scheduler and other scheduling algorithm are orthogonal. This is the reason of my first comment, but I am okay if it is difficult from the implementation point of view.\n\n----\n\nBTW, Chance scheduler is reference. It is true, but I am not sure a new scheduler should not support a chance method.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"28ee47d15d30509b1e0a22e9917dd3b55f47103f","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        super(WeightScheduler, self).__init__(DhcpFilter())"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"class AvailabilityZoneScheduler(object):"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def __init__(self):"},{"line_number":98,"context_line":"        self.resource_filter \u003d DhcpFilter()"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_390bc6d7","line":95,"in_reply_to":"da20952f_ba8e0d2c","updated":"2015-09-01 05:34:14.000000000","message":"You\u0027re right. I have two plans: creating AZ aware scheduler and integrating AZ schedule with other scheduler. I thought the former is better than the later because there may be some plugins which don\u0027t need AZ extension but use scheduler extension. If we will adopt the later plan, I have to prepare new option which isn\u0027t referred in spec so that this patch helps the plugins.\n\nI\u0027m OK about your request. I will update with the later plan soon.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"af21959ede48fd810e453970080a4a66c910d9b3","unresolved":false,"context_lines":[{"line_number":161,"context_line":"    def _get_network_hostable_dhcp_agents(self, plugin, context, network):"},{"line_number":162,"context_line":"        \"\"\"Return number of agents which will actually host the given network"},{"line_number":163,"context_line":"           and a list of dhcp agents which can host the given network"},{"line_number":164,"context_line":"           and the list of agents currently hosting the network."},{"line_number":165,"context_line":"        \"\"\""},{"line_number":166,"context_line":"        hosted_agents \u003d self._get_dhcp_agents_hosting_network(plugin,"},{"line_number":167,"context_line":"                                                              context, network)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_8a701742","line":164,"updated":"2015-09-09 15:49:05.000000000","message":"nit: Now may be the time to fix the docstring to have a summary line, period, blank line, and then additional detail lines. Right now, it is one huge sentence. :)","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6c2fb23d08d4835e5a8e2950b3ad4e9360bb42a3","unresolved":false,"context_lines":[{"line_number":161,"context_line":"    def _get_network_hostable_dhcp_agents(self, plugin, context, network):"},{"line_number":162,"context_line":"        \"\"\"Return number of agents which will actually host the given network"},{"line_number":163,"context_line":"           and a list of dhcp agents which can host the given network"},{"line_number":164,"context_line":"           and the list of agents currently hosting the network."},{"line_number":165,"context_line":"        \"\"\""},{"line_number":166,"context_line":"        hosted_agents \u003d self._get_dhcp_agents_hosting_network(plugin,"},{"line_number":167,"context_line":"                                                              context, network)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_f8b15ae1","line":164,"in_reply_to":"da20952f_8a701742","updated":"2015-09-10 01:18:36.000000000","message":"I can understand your point but I believe that this comment itself is useful for developers. Also I\u0027m not friend with English so I cannot summarize clear ;)","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7bada259cb4996dbfb62b077503546fb4edd776c","unresolved":false,"context_lines":[{"line_number":159,"context_line":"        return active_dhcp_agents"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    def _get_network_hostable_dhcp_agents(self, plugin, context, network):"},{"line_number":162,"context_line":"        \"\"\"Return number of agents which will actually host the given network"},{"line_number":163,"context_line":"           and a list of dhcp agents which can host the given network"},{"line_number":164,"context_line":"           and the list of agents currently hosting the network."},{"line_number":165,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":20,"id":"da20952f_9c8e0026","line":162,"updated":"2015-09-10 12:18:16.000000000","message":"Maybe...\n\n    \"\"\"Provide information on hostable DHCP agents for network.\n    \n    Includes the number of agents that will actually host the given network,\n    a list of DHCP agents that can host the given network, and the DHCP\n    agents currently hosting the network.\n    \"\"\"","commit_id":"8091d236020fb624bb586ca35a3f5f8397d87ec3"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"b9b9b883de42a1edd5294b00c3a615571efc9e55","unresolved":false,"context_lines":[{"line_number":159,"context_line":"        return active_dhcp_agents"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"    def _get_network_hostable_dhcp_agents(self, plugin, context, network):"},{"line_number":162,"context_line":"        \"\"\"Return number of agents which will actually host the given network"},{"line_number":163,"context_line":"           and a list of dhcp agents which can host the given network"},{"line_number":164,"context_line":"           and the list of agents currently hosting the network."},{"line_number":165,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":20,"id":"da20952f_7f43de13","line":162,"in_reply_to":"da20952f_9c8e0026","updated":"2015-09-10 12:35:58.000000000","message":"Many Thanks. I will update next patchset.","commit_id":"8091d236020fb624bb586ca35a3f5f8397d87ec3"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                        continue"},{"line_number":67,"context_line":"                    net \u003d plugin.get_network(context, net_id)"},{"line_number":68,"context_line":"                    az_hints \u003d (net.get(\u0027availability_zone_hints\u0027) or"},{"line_number":69,"context_line":"                                cfg.CONF.default_availability_zones)"},{"line_number":70,"context_line":"                    if (az_hints and"},{"line_number":71,"context_line":"                        dhcp_agent[\u0027availability_zone\u0027] not in az_hints):"},{"line_number":72,"context_line":"                        continue"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_4bbba9e5","line":69,"updated":"2015-09-23 01:59:24.000000000","message":"Please see my comment below at L.174.","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2fe3e1d1c4abf49d4babc1a135e45a61b90928d3","unresolved":false,"context_lines":[{"line_number":171,"context_line":"            return {\u0027n_agents\u0027: 0, \u0027hostable_agents\u0027: [], \u0027hosted_agents\u0027: []}"},{"line_number":172,"context_line":"        n_agents \u003d cfg.CONF.dhcp_agents_per_network - len(hosted_agents)"},{"line_number":173,"context_line":"        az_hints \u003d (network.get(\u0027availability_zone_hints\u0027) or"},{"line_number":174,"context_line":"                    cfg.CONF.default_availability_zones)"},{"line_number":175,"context_line":"        active_dhcp_agents \u003d self._get_active_agents(plugin, context, az_hints)"},{"line_number":176,"context_line":"        if not active_dhcp_agents:"},{"line_number":177,"context_line":"            return {\u0027n_agents\u0027: 0, \u0027hostable_agents\u0027: [], \u0027hosted_agents\u0027: []}"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba15a1d1_8beea1eb","line":174,"range":{"start_line":174,"start_character":20,"end_line":174,"end_character":55},"updated":"2015-09-23 01:59:24.000000000","message":"The default value of default_availability_zones is \"nova\", but I wonder what value this default brings. Can\u0027t we set the default value to an empty list which means agents from all availability zones can be selected. I believe it works for the default value.","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"223b9498b7019b8506c7edd2efde3814c9365485","unresolved":false,"context_lines":[{"line_number":171,"context_line":"            return {\u0027n_agents\u0027: 0, \u0027hostable_agents\u0027: [], \u0027hosted_agents\u0027: []}"},{"line_number":172,"context_line":"        n_agents \u003d cfg.CONF.dhcp_agents_per_network - len(hosted_agents)"},{"line_number":173,"context_line":"        az_hints \u003d (network.get(\u0027availability_zone_hints\u0027) or"},{"line_number":174,"context_line":"                    cfg.CONF.default_availability_zones)"},{"line_number":175,"context_line":"        active_dhcp_agents \u003d self._get_active_agents(plugin, context, az_hints)"},{"line_number":176,"context_line":"        if not active_dhcp_agents:"},{"line_number":177,"context_line":"            return {\u0027n_agents\u0027: 0, \u0027hostable_agents\u0027: [], \u0027hosted_agents\u0027: []}"}],"source_content_type":"text/x-python","patch_set":29,"id":"9a1a9d01_fae72f3e","line":174,"in_reply_to":"ba15a1d1_8beea1eb","updated":"2015-09-25 16:47:50.000000000","message":"I changed default value of default_availability_zones to empty.\n\nCurrent specification is like following.\n\n(1) There are both case availability_zone_hints isn\u0027t specified and  is specified empty list. They means agents from all availability zones can be selected.\n\n(2) In case (1), user gets availability_zone_hints\u003d[] when user excuses \"GET network API\".","commit_id":"e76f3ffa63babcd4d33ee44627a5a5695dac23bd"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"40563cc35aa9358e69810b28b99494ab6de6caeb","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                    if len(agents) \u003e\u003d agents_per_network:"},{"line_number":65,"context_line":"                        continue"},{"line_number":66,"context_line":"                    if any(dhcp_agent.id \u003d\u003d agent.id for agent in agents):"},{"line_number":67,"context_line":"                        continue"},{"line_number":68,"context_line":"                    net \u003d plugin.get_network(context, net_id)"},{"line_number":69,"context_line":"                    az_hints \u003d (net.get(az_ext.AZ_HINTS) or"},{"line_number":70,"context_line":"                                cfg.CONF.default_availability_zones)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5a2ca52d_c7bce06e","line":67,"updated":"2015-10-14 05:47:44.000000000","message":"um....can you explain what this does?","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"154c6e58433c45bb44a803426857d458f8c3ca4d","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                    if len(agents) \u003e\u003d agents_per_network:"},{"line_number":65,"context_line":"                        continue"},{"line_number":66,"context_line":"                    if any(dhcp_agent.id \u003d\u003d agent.id for agent in agents):"},{"line_number":67,"context_line":"                        continue"},{"line_number":68,"context_line":"                    net \u003d plugin.get_network(context, net_id)"},{"line_number":69,"context_line":"                    az_hints \u003d (net.get(az_ext.AZ_HINTS) or"},{"line_number":70,"context_line":"                                cfg.CONF.default_availability_zones)"}],"source_content_type":"text/x-python","patch_set":36,"id":"3a29b11f_1ce02ecc","line":67,"in_reply_to":"5a2ca52d_c7bce06e","updated":"2015-10-23 04:12:18.000000000","message":"I\u0027m not sure your question. This selects the agent belonging to AZ which is matched to user\u0027s availability_zone_hints.","commit_id":"ec20c56bce6508eadb771f870932efc8cd5bb1a3"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"64c83a56f6ca29d141b6f0696b3b205abb09b862","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        while num_agents_needed \u003e 0:"},{"line_number":121,"context_line":"            for select_az in sorted(num_az_agents,"},{"line_number":122,"context_line":"                                    key\u003dlambda x: num_az_agents[x]):"},{"line_number":123,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":124,"context_line":"                    select_agent \u003d super(AZAwareWeightScheduler, self).select("},{"line_number":125,"context_line":"                        plugin, context, hostable_az_agents[select_az], [], 1)"},{"line_number":126,"context_line":"                    chosen_agents.append(select_agent[0])"}],"source_content_type":"text/x-python","patch_set":38,"id":"da85f559_2ca9987b","line":123,"updated":"2015-11-11 09:41:38.000000000","message":"I am afraid that this will enter dead loop in such case:\n\nRound 1:\nAZ1: hosted 0/hostable 1       AZ2: hosted 3/hostable 3\n\nRound 2:\nAZ1: hosted 1/hostable 0       AZ2: hosted 3/hostable 3\n\nThe if condition is not meet, and another iteration begins, and if condition is still not meet.","commit_id":"79d5d8ecd33ef7fa94f605e1081d699b78dbdc64"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"508793c379d51128d66eb05b19903d5848a9433f","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        while num_agents_needed \u003e 0:"},{"line_number":121,"context_line":"            for select_az in sorted(num_az_agents,"},{"line_number":122,"context_line":"                                    key\u003dlambda x: num_az_agents[x]):"},{"line_number":123,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":124,"context_line":"                    select_agent \u003d super(AZAwareWeightScheduler, self).select("},{"line_number":125,"context_line":"                        plugin, context, hostable_az_agents[select_az], [], 1)"},{"line_number":126,"context_line":"                    chosen_agents.append(select_agent[0])"}],"source_content_type":"text/x-python","patch_set":38,"id":"da85f559_6553096c","line":123,"in_reply_to":"da85f559_2ca9987b","updated":"2015-11-12 01:33:18.000000000","message":"I expect the following process although I may not understand correctly your question.\n\n Round 1: AZ1: hosted 0/hostable 1 AZ2: hosted 3/hostable 3\n Round 2: AZ1: hosted 1/hostable 0 AZ2: hosted 4/hostable 2\n Round 3: AZ1: hosted 1/hostable 0 AZ2: hosted 5/hostable 1","commit_id":"79d5d8ecd33ef7fa94f605e1081d699b78dbdc64"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"cab8438a7269b37dd57187aad525fab984d62458","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        while num_agents_needed \u003e 0:"},{"line_number":121,"context_line":"            for select_az in sorted(num_az_agents,"},{"line_number":122,"context_line":"                                    key\u003dlambda x: num_az_agents[x]):"},{"line_number":123,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":124,"context_line":"                    select_agent \u003d super(AZAwareWeightScheduler, self).select("},{"line_number":125,"context_line":"                        plugin, context, hostable_az_agents[select_az], [], 1)"},{"line_number":126,"context_line":"                    chosen_agents.append(select_agent[0])"}],"source_content_type":"text/x-python","patch_set":38,"id":"da85f559_476cc5cd","line":123,"in_reply_to":"da85f559_6553096c","updated":"2015-11-12 03:41:12.000000000","message":"My mistake, the process is OK.","commit_id":"79d5d8ecd33ef7fa94f605e1081d699b78dbdc64"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"587eaa5384eebc7a64cafb21d700dd8546708423","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"        chosen_agents \u003d []"},{"line_number":120,"context_line":"        while num_agents_needed \u003e 0:"},{"line_number":121,"context_line":"            for select_az in sorted(num_az_agents,"},{"line_number":122,"context_line":"                                    key\u003dlambda x: num_az_agents[x]):"},{"line_number":123,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":124,"context_line":"                    select_agent \u003d super(AZAwareWeightScheduler, self).select("}],"source_content_type":"text/x-python","patch_set":41,"id":"ba8a016a_3fa00c90","line":121,"updated":"2015-11-17 23:37:27.000000000","message":"This algorithm seems incorrect: if you need 2 more agents, with 2 AZ (1 zone with already 2 agents, 1 zone with 0) having hostable agents then we end up with 3 agents on one AZ, 1 agent on the other? It seems incorrect?\n\nI don\u0027t know many AZ we can have but this is a bit overkill to resort num_az_agents globally when only one value as changed, you could use instead heapq\n\nThis code has really poor performance when num_agents_needed become large.\n\nThis algo loops forever if num_agents_needed \u003e len(resource_hostable_agents), we should consider this case as both are inputs","commit_id":"0a2eae4f4a000f18b06fa443839517cbf2199c36"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"9dd852fac7fe01238e39f70762cea805fb5351b5","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"        chosen_agents \u003d []"},{"line_number":120,"context_line":"        while num_agents_needed \u003e 0:"},{"line_number":121,"context_line":"            for select_az in sorted(num_az_agents,"},{"line_number":122,"context_line":"                                    key\u003dlambda x: num_az_agents[x]):"},{"line_number":123,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":124,"context_line":"                    select_agent \u003d super(AZAwareWeightScheduler, self).select("}],"source_content_type":"text/x-python","patch_set":41,"id":"ba8a016a_168403d2","line":121,"in_reply_to":"ba8a016a_3fa00c90","updated":"2015-11-18 08:33:20.000000000","message":"\u003e This algorithm seems incorrect\n\nGood point. I fixed.\n\n\u003e num_agents_needed become large\n\nI don\u0027t believe use case that num_agents_needed become large. Does it happen in any case? It\u0027s actually around 3, isn\u0027t it?\n\n\u003e num_agents_needed \u003e len(resource_hostable_agents)\n\nNo problem. Please look at L228.","commit_id":"0a2eae4f4a000f18b06fa443839517cbf2199c36"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"587eaa5384eebc7a64cafb21d700dd8546708423","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        chosen_agents \u003d []"},{"line_number":120,"context_line":"        while num_agents_needed \u003e 0:"},{"line_number":121,"context_line":"            for select_az in sorted(num_az_agents,"},{"line_number":122,"context_line":"                                    key\u003dlambda x: num_az_agents[x]):"},{"line_number":123,"context_line":"                if hostable_az_agents[select_az]:"},{"line_number":124,"context_line":"                    select_agent \u003d super(AZAwareWeightScheduler, self).select("},{"line_number":125,"context_line":"                        plugin, context, hostable_az_agents[select_az], [], 1)"}],"source_content_type":"text/x-python","patch_set":41,"id":"ba8a016a_84320f0f","line":122,"updated":"2015-11-17 23:37:27.000000000","message":"use:\n\n  key \u003d num_az_agents.__getitem__","commit_id":"0a2eae4f4a000f18b06fa443839517cbf2199c36"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"28af8c953bfdafdcec1d7f1ddfea5f8ba2865280","unresolved":false,"context_lines":[{"line_number":128,"context_line":"            hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":129,"context_line":"            if hostable_az_agents[select_az]:"},{"line_number":130,"context_line":"                heapq.heappush(num_az_q, (num + 1, select_az))"},{"line_number":131,"context_line":"            num_agents_needed -\u003d 1"},{"line_number":132,"context_line":"        return chosen_agents"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":42,"id":"ba8a016a_69dfad0d","line":131,"updated":"2015-11-18 11:13:38.000000000","message":"I seem the algorithm was changed before.\n\nAssume num_az_agents is {\u0027az1\u0027: 3, \u0027az2\u0027: 5, \u0027az3\u0027: 1}.\nIf num_agents_needed is 2, the new algorithm selects two agents from az3.\nThe previous logic selects one agent from az3 and one agent from az1.\n\nIs this change intended?\nIn my understanding, the previous logic tries to pick up agents from all AZ hints as possible as we can.","commit_id":"f308c80c0fbfb45e69db702f2c02cc774defafb6"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"14e337a63dbdd1843d9531a3c965975d7d44368e","unresolved":false,"context_lines":[{"line_number":128,"context_line":"            hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":129,"context_line":"            if hostable_az_agents[select_az]:"},{"line_number":130,"context_line":"                heapq.heappush(num_az_q, (num + 1, select_az))"},{"line_number":131,"context_line":"            num_agents_needed -\u003d 1"},{"line_number":132,"context_line":"        return chosen_agents"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":42,"id":"ba8a016a_827f18aa","line":131,"in_reply_to":"ba8a016a_69dfad0d","updated":"2015-11-19 07:34:48.000000000","message":"That\u0027s right. We can pick up agents from all AZ hints because of passing AZs only are pointed out by hints.","commit_id":"f308c80c0fbfb45e69db702f2c02cc774defafb6"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2b7eb824fe6e2b4d37c01a72a5afb63ba44e138b","unresolved":false,"context_lines":[{"line_number":128,"context_line":"            hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":129,"context_line":"            if hostable_az_agents[select_az]:"},{"line_number":130,"context_line":"                heapq.heappush(num_az_q, (num + 1, select_az))"},{"line_number":131,"context_line":"            num_agents_needed -\u003d 1"},{"line_number":132,"context_line":"        return chosen_agents"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""}],"source_content_type":"text/x-python","patch_set":42,"id":"ba8a016a_81ad8fea","line":131,"in_reply_to":"ba8a016a_827f18aa","updated":"2015-11-20 10:02:50.000000000","message":"I think we discussed the same in a patch set. Your initial implementation had the logic like this and I mentioned the same in PS29. Even if AZ hints is a hint, it is better to honor it as possible as we can. For more detail, please find my comment in PS29.","commit_id":"f308c80c0fbfb45e69db702f2c02cc774defafb6"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e042c2f069c9728b498058fcd3bfd98b52363180","unresolved":false,"context_lines":[{"line_number":130,"context_line":"            hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":131,"context_line":"            if hostable_az_agents[select_az]:"},{"line_number":132,"context_line":"                heapq.heappush(num_az_q, (num + 1, select_az))"},{"line_number":133,"context_line":"            num_agents_needed -\u003d 1"},{"line_number":134,"context_line":"        return chosen_agents"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":""}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_728717b5","line":133,"updated":"2015-11-20 10:04:46.000000000","message":"I am still not convinced by your reply in patch set 42. See my reply in patch set 42.","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"65eb9679077c7be9ca19b941c73b8965d0db7b34","unresolved":false,"context_lines":[{"line_number":130,"context_line":"            hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":131,"context_line":"            if hostable_az_agents[select_az]:"},{"line_number":132,"context_line":"                heapq.heappush(num_az_q, (num + 1, select_az))"},{"line_number":133,"context_line":"            num_agents_needed -\u003d 1"},{"line_number":134,"context_line":"        return chosen_agents"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":""}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_fa729210","line":133,"in_reply_to":"ba8a016a_728717b5","updated":"2015-11-23 21:18:40.000000000","message":"\"Assume num_az_agents is {\u0027az1\u0027: 3, \u0027az2\u0027: 5, \u0027az3\u0027: 1}. If num_agents_needed is 2, the new algorithm selects two agents from az3. The previous logic selects one agent from az3 and one agent from az1.\"\n\nWe end with {\u0027az1\u0027: 3, \u0027az2\u0027: 5, \u0027az3\u0027: 3} with current logic and {\u0027az1\u0027: 4, \u0027az2\u0027: 5, \u0027az3\u0027: 2} with old logic, it seems the right way to balance (existing + new) agents.\n\nThoughts?","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"e834d1a08260e616b718a6dfdbabc1b6e2a44418","unresolved":false,"context_lines":[{"line_number":130,"context_line":"            hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":131,"context_line":"            if hostable_az_agents[select_az]:"},{"line_number":132,"context_line":"                heapq.heappush(num_az_q, (num + 1, select_az))"},{"line_number":133,"context_line":"            num_agents_needed -\u003d 1"},{"line_number":134,"context_line":"        return chosen_agents"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":""}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_f421304e","line":133,"in_reply_to":"ba8a016a_96db131b","updated":"2015-11-24 10:50:00.000000000","message":"Thanks! :)","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"de410314fb4869158631a586a187e9f490f638ff","unresolved":false,"context_lines":[{"line_number":130,"context_line":"            hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":131,"context_line":"            if hostable_az_agents[select_az]:"},{"line_number":132,"context_line":"                heapq.heappush(num_az_q, (num + 1, select_az))"},{"line_number":133,"context_line":"            num_agents_needed -\u003d 1"},{"line_number":134,"context_line":"        return chosen_agents"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":""}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_96db131b","line":133,"in_reply_to":"ba8a016a_fa729210","updated":"2015-11-24 05:54:19.000000000","message":"Thanks Cedric (and hirofumi on IRC)!\n\nI finally figured out why I was confused...\nI misunderstood that num_az_agents (num_az_q) is sorted by the total number of hosted networks in all tenants.\nIt is the cause of my confusion.\n\nnum_az_agents is per network, so the proposed logic works.\n\nI now fully understand the logic.","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"4b9545f6fd5d3b6409f7afe1f226e65e38441481","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        while num_agents_needed \u003e 0:"},{"line_number":126,"context_line":"            num, select_az \u003d heapq.heappop(num_az_q)"},{"line_number":127,"context_line":"            select_agent \u003d super(AZAwareWeightScheduler, self).select("},{"line_number":128,"context_line":"                plugin, context, hostable_az_agents[select_az], [], 1)"},{"line_number":129,"context_line":"            chosen_agents.append(select_agent[0])"},{"line_number":130,"context_line":"            hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":131,"context_line":"            if hostable_az_agents[select_az]:"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_46730681","line":128,"range":{"start_line":128,"start_character":64,"end_line":128,"end_character":66},"updated":"2015-11-25 05:25:20.000000000","message":"are you passing an empty hosted agents here, assuming the implementation of the underlying scheduler?\nif so, can you add a comment?","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"42edbbb621d74dbc03e34f96d278df246fed670a","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        while num_agents_needed \u003e 0:"},{"line_number":126,"context_line":"            num, select_az \u003d heapq.heappop(num_az_q)"},{"line_number":127,"context_line":"            select_agent \u003d super(AZAwareWeightScheduler, self).select("},{"line_number":128,"context_line":"                plugin, context, hostable_az_agents[select_az], [], 1)"},{"line_number":129,"context_line":"            chosen_agents.append(select_agent[0])"},{"line_number":130,"context_line":"            hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":131,"context_line":"            if hostable_az_agents[select_az]:"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_33b70bda","line":128,"in_reply_to":"9a8ffd7b_31b15a90","updated":"2015-11-25 13:34:53.000000000","message":"Akihiro is right.","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"6f123c3210d3b9264a27b6ad042135a19139f4bf","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        while num_agents_needed \u003e 0:"},{"line_number":126,"context_line":"            num, select_az \u003d heapq.heappop(num_az_q)"},{"line_number":127,"context_line":"            select_agent \u003d super(AZAwareWeightScheduler, self).select("},{"line_number":128,"context_line":"                plugin, context, hostable_az_agents[select_az], [], 1)"},{"line_number":129,"context_line":"            chosen_agents.append(select_agent[0])"},{"line_number":130,"context_line":"            hostable_az_agents[select_az].remove(select_agent[0])"},{"line_number":131,"context_line":"            if hostable_az_agents[select_az]:"}],"source_content_type":"text/x-python","patch_set":49,"id":"9a8ffd7b_31b15a90","line":128,"range":{"start_line":128,"start_character":64,"end_line":128,"end_character":66},"in_reply_to":"9a8ffd7b_46730681","updated":"2015-11-25 06:25:15.000000000","message":"While at the moment the weight scheduler selection logic does not use hosted_agents, it is better to pass it unless there is a explicit reason.","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"}],"neutron/scheduler/l3_agent_scheduler.py":[{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"6ad790af63bca488f18c2ff32869606a9ab4b76f","unresolved":false,"context_lines":[{"line_number":147,"context_line":""},{"line_number":148,"context_line":"        def _az_hints(r):"},{"line_number":149,"context_line":"            return (r.get(\u0027availability_zone_hints\u0027) or"},{"line_number":150,"context_line":"                    cfg.CONF.default_availability_zones)"},{"line_number":151,"context_line":"        az \u003d l3_agent[\u0027availability_zone\u0027]"},{"line_number":152,"context_line":"        unscheduled_routers \u003d [r for r in unscheduled_routers"},{"line_number":153,"context_line":"                               if not _az_hints(r) or az in _az_hints(r)]"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_9d8a26be","line":150,"updated":"2015-07-28 19:54:20.000000000","message":"this method could be used 2 more times below if it was class method","commit_id":"db35397850685d0263d19f00bab74de15617610a"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"69cf35ae36f37e81cbad4a2fa29d150250e2ff06","unresolved":false,"context_lines":[{"line_number":147,"context_line":""},{"line_number":148,"context_line":"        def _az_hints(r):"},{"line_number":149,"context_line":"            return (r.get(\u0027availability_zone_hints\u0027) or"},{"line_number":150,"context_line":"                    cfg.CONF.default_availability_zones)"},{"line_number":151,"context_line":"        az \u003d l3_agent[\u0027availability_zone\u0027]"},{"line_number":152,"context_line":"        unscheduled_routers \u003d [r for r in unscheduled_routers"},{"line_number":153,"context_line":"                               if not _az_hints(r) or az in _az_hints(r)]"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_17b98eec","line":150,"in_reply_to":"3a50d1a3_9d8a26be","updated":"2015-07-31 06:16:46.000000000","message":"Done","commit_id":"db35397850685d0263d19f00bab74de15617610a"},{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"6ad790af63bca488f18c2ff32869606a9ab4b76f","unresolved":false,"context_lines":[{"line_number":414,"context_line":"        ordered_agents \u003d plugin.get_l3_agents_ordered_by_num_routers("},{"line_number":415,"context_line":"            context, [candidate[\u0027id\u0027] for candidate in candidates])"},{"line_number":416,"context_line":"        group_by_az \u003d {}"},{"line_number":417,"context_line":"        azs \u003d []"},{"line_number":418,"context_line":"        for agent in ordered_agents:"},{"line_number":419,"context_line":"            az \u003d agent[\u0027availability_zone\u0027]"},{"line_number":420,"context_line":"            if az in group_by_az:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_1d893626","line":417,"updated":"2015-07-28 19:54:20.000000000","message":"there is no need for azs, if group_by_az.keys() is used on L428 instead","commit_id":"db35397850685d0263d19f00bab74de15617610a"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"69cf35ae36f37e81cbad4a2fa29d150250e2ff06","unresolved":false,"context_lines":[{"line_number":414,"context_line":"        ordered_agents \u003d plugin.get_l3_agents_ordered_by_num_routers("},{"line_number":415,"context_line":"            context, [candidate[\u0027id\u0027] for candidate in candidates])"},{"line_number":416,"context_line":"        group_by_az \u003d {}"},{"line_number":417,"context_line":"        azs \u003d []"},{"line_number":418,"context_line":"        for agent in ordered_agents:"},{"line_number":419,"context_line":"            az \u003d agent[\u0027availability_zone\u0027]"},{"line_number":420,"context_line":"            if az in group_by_az:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_37bccada","line":417,"in_reply_to":"3a50d1a3_1d893626","updated":"2015-07-31 06:16:46.000000000","message":"Done","commit_id":"db35397850685d0263d19f00bab74de15617610a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bee424ccdfab0b8cd2ff84c7c627c25b0f60964f","unresolved":false,"context_lines":[{"line_number":420,"context_line":"            if az in group_by_az:"},{"line_number":421,"context_line":"                group_by_az[az].append(agent)"},{"line_number":422,"context_line":"            else:"},{"line_number":423,"context_line":"                group_by_az[az] \u003d [agent]"},{"line_number":424,"context_line":""},{"line_number":425,"context_line":"        selected_agents \u003d []"},{"line_number":426,"context_line":"        while num_agents \u003e 0:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_bd9ac76c","line":423,"updated":"2015-08-29 14:59:48.000000000","message":"Consider using collections.defaultdict:\n\n  group_by_az \u003d defaultdict(list)\n  for agent in ordered_agents:\n     az \u003d agent[\u0027availability_zone\u0027]\n     group_by_az[az].append(agent)","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"1f4e377a075b137994bed771a263cf2d4b5c5225","unresolved":false,"context_lines":[{"line_number":420,"context_line":"            if az in group_by_az:"},{"line_number":421,"context_line":"                group_by_az[az].append(agent)"},{"line_number":422,"context_line":"            else:"},{"line_number":423,"context_line":"                group_by_az[az] \u003d [agent]"},{"line_number":424,"context_line":""},{"line_number":425,"context_line":"        selected_agents \u003d []"},{"line_number":426,"context_line":"        while num_agents \u003e 0:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_ca338bf5","line":423,"in_reply_to":"da20952f_bd9ac76c","updated":"2015-09-02 04:53:23.000000000","message":"Good suggestion. Thanks.\n\nDone.","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bee424ccdfab0b8cd2ff84c7c627c25b0f60964f","unresolved":false,"context_lines":[{"line_number":424,"context_line":""},{"line_number":425,"context_line":"        selected_agents \u003d []"},{"line_number":426,"context_line":"        while num_agents \u003e 0:"},{"line_number":427,"context_line":"            azs \u003d group_by_az.keys()"},{"line_number":428,"context_line":"            for az in azs:"},{"line_number":429,"context_line":"                agent \u003d group_by_az[az].pop(0)"},{"line_number":430,"context_line":"                selected_agents.append(agent)"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_9dc26333","line":427,"updated":"2015-08-29 14:59:48.000000000","message":"L.427 is unnecessary.\n\nfor az in group_by_az: is equivalent to for az in group_by_az.keys()","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"1f4e377a075b137994bed771a263cf2d4b5c5225","unresolved":false,"context_lines":[{"line_number":424,"context_line":""},{"line_number":425,"context_line":"        selected_agents \u003d []"},{"line_number":426,"context_line":"        while num_agents \u003e 0:"},{"line_number":427,"context_line":"            azs \u003d group_by_az.keys()"},{"line_number":428,"context_line":"            for az in azs:"},{"line_number":429,"context_line":"                agent \u003d group_by_az[az].pop(0)"},{"line_number":430,"context_line":"                selected_agents.append(agent)"}],"source_content_type":"text/x-python","patch_set":13,"id":"da20952f_8a4cb377","line":427,"in_reply_to":"da20952f_9dc26333","updated":"2015-09-02 04:53:23.000000000","message":"Done","commit_id":"1dabb8cce82458b3f31542541a6084749068e71b"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"af21959ede48fd810e453970080a4a66c910d9b3","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        unscheduled_routers \u003d []"},{"line_number":150,"context_line":"        az \u003d l3_agent[\u0027availability_zone\u0027]"},{"line_number":151,"context_line":"        for r in unscheduled_routers_tmp:"},{"line_number":152,"context_line":"            az_hints \u003d (r.get(\u0027availability_zone_hints\u0027) or"},{"line_number":153,"context_line":"                        cfg.CONF.default_availability_zones)"},{"line_number":154,"context_line":"            if not az_hints or az in az_hints:"},{"line_number":155,"context_line":"                unscheduled_routers.append(r)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_f57ad876","line":152,"updated":"2015-09-09 15:49:05.000000000","message":"nit: Could just add cfg as default for get() call, right? Same in a few other places.","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6c2fb23d08d4835e5a8e2950b3ad4e9360bb42a3","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        unscheduled_routers \u003d []"},{"line_number":150,"context_line":"        az \u003d l3_agent[\u0027availability_zone\u0027]"},{"line_number":151,"context_line":"        for r in unscheduled_routers_tmp:"},{"line_number":152,"context_line":"            az_hints \u003d (r.get(\u0027availability_zone_hints\u0027) or"},{"line_number":153,"context_line":"                        cfg.CONF.default_availability_zones)"},{"line_number":154,"context_line":"            if not az_hints or az in az_hints:"},{"line_number":155,"context_line":"                unscheduled_routers.append(r)"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_383912a4","line":152,"in_reply_to":"da20952f_f57ad876","updated":"2015-09-10 01:18:36.000000000","message":"I cannot because if r.get(\u0027availability_zone_hints\u0027) is empty list, this must return cfg.CONF.default_availability_zones.","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"af21959ede48fd810e453970080a4a66c910d9b3","unresolved":false,"context_lines":[{"line_number":373,"context_line":"    def _group_agents_by_az(self, candidates):"},{"line_number":374,"context_line":"        # order is kept in each az"},{"line_number":375,"context_line":"        group_by_az \u003d collections.defaultdict(list)"},{"line_number":376,"context_line":"        for agent in candidates:"},{"line_number":377,"context_line":"            az \u003d agent[\u0027availability_zone\u0027]"},{"line_number":378,"context_line":"            group_by_az[az].append(agent)"},{"line_number":379,"context_line":"        return group_by_az"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_551aa47d","line":376,"updated":"2015-09-09 15:49:05.000000000","message":"Could replace loop with...?\n    group_by_az \u003d {agent[\u0027availability_zone\u0027]: agent for agent in candidates}","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6c2fb23d08d4835e5a8e2950b3ad4e9360bb42a3","unresolved":false,"context_lines":[{"line_number":373,"context_line":"    def _group_agents_by_az(self, candidates):"},{"line_number":374,"context_line":"        # order is kept in each az"},{"line_number":375,"context_line":"        group_by_az \u003d collections.defaultdict(list)"},{"line_number":376,"context_line":"        for agent in candidates:"},{"line_number":377,"context_line":"            az \u003d agent[\u0027availability_zone\u0027]"},{"line_number":378,"context_line":"            group_by_az[az].append(agent)"},{"line_number":379,"context_line":"        return group_by_az"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_b8452216","line":376,"in_reply_to":"da20952f_551aa47d","updated":"2015-09-10 01:18:36.000000000","message":"The value isn\u0027t list.","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7bada259cb4996dbfb62b077503546fb4edd776c","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        unscheduled_routers \u003d []"},{"line_number":150,"context_line":"        az \u003d l3_agent[\u0027availability_zone\u0027]"},{"line_number":151,"context_line":"        for r in unscheduled_routers_tmp:"},{"line_number":152,"context_line":"            az_hints \u003d (r.get(\u0027availability_zone_hints\u0027) or"},{"line_number":153,"context_line":"                        cfg.CONF.default_availability_zones)"},{"line_number":154,"context_line":"            if not az_hints or az in az_hints:"},{"line_number":155,"context_line":"                unscheduled_routers.append(r)"}],"source_content_type":"text/x-python","patch_set":20,"id":"da20952f_dcda3817","line":152,"updated":"2015-09-10 12:18:16.000000000","message":"To clarify, could you do:\n\n    az_hints \u003d r.get(\u0027availability_zone_hints\u0027,\n                     cfg.CONF.default_availability_zones)","commit_id":"8091d236020fb624bb586ca35a3f5f8397d87ec3"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"b9b9b883de42a1edd5294b00c3a615571efc9e55","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        unscheduled_routers \u003d []"},{"line_number":150,"context_line":"        az \u003d l3_agent[\u0027availability_zone\u0027]"},{"line_number":151,"context_line":"        for r in unscheduled_routers_tmp:"},{"line_number":152,"context_line":"            az_hints \u003d (r.get(\u0027availability_zone_hints\u0027) or"},{"line_number":153,"context_line":"                        cfg.CONF.default_availability_zones)"},{"line_number":154,"context_line":"            if not az_hints or az in az_hints:"},{"line_number":155,"context_line":"                unscheduled_routers.append(r)"}],"source_content_type":"text/x-python","patch_set":20,"id":"da20952f_ffbe0ead","line":152,"in_reply_to":"da20952f_dcda3817","updated":"2015-09-10 12:35:58.000000000","message":"That code isn\u0027t equal to your suggestion.\n\nIf r[\u0027\u0027availability_zone_hints] is empty list(that is users executed API with az_hints\u003d[]), empty list is assigned to az_hints. However, I intend to assign default_availability_zones to az_hints  in the case.","commit_id":"8091d236020fb624bb586ca35a3f5f8397d87ec3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"9ca310fb1c10dee4717683134e5c69eb28f55813","unresolved":false,"context_lines":[{"line_number":381,"context_line":"    def _choose_agents_az_aware(self, group_by_az, num_agents):"},{"line_number":382,"context_line":"        selected_agents \u003d []"},{"line_number":383,"context_line":"        while num_agents \u003e 0:"},{"line_number":384,"context_line":"            for az in group_by_az.keys():"},{"line_number":385,"context_line":"                if not group_by_az[az]:"},{"line_number":386,"context_line":"                    continue"},{"line_number":387,"context_line":"                agent \u003d group_by_az[az].pop(0)"}],"source_content_type":"text/x-python","patch_set":20,"id":"da20952f_a665cf45","line":384,"updated":"2015-09-11 06:23:41.000000000","message":"is it ok to be biased by keys() order?","commit_id":"8091d236020fb624bb586ca35a3f5f8397d87ec3"}],"neutron/tests/functional/scheduler/test_dhcp_agent_scheduler.py":[{"author":{"_account_id":2733,"name":"Darragh O\u0027Reilly","email":"doreilly@suse.com","username":"darragh-oreilly"},"change_message_id":"dcbf0ad067abf29d214f3a65b2ad9ddf634e4225","unresolved":false,"context_lines":[{"line_number":346,"context_line":"        return subnets"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"    def get_network(self, context, net_id):"},{"line_number":349,"context_line":"        #TODO(hichihara): add test cases of AZ scheduler"},{"line_number":350,"context_line":"        return {\u0027availability_zone_hints\u0027: []}"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"    def _get_hosted_networks_on_dhcp_agent(self, agent_id):"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa1b9901_6bdb491c","line":349,"updated":"2015-08-24 14:13:34.000000000","message":"is this TODO now done in test_dhcp_agent_scheduler.py ?","commit_id":"db4e106244c608ad3d047795e4efe7b8e18a00a4"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"d1c7f93eab623db849c99a8dd1507fe80d84bb85","unresolved":false,"context_lines":[{"line_number":346,"context_line":"        return subnets"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"    def get_network(self, context, net_id):"},{"line_number":349,"context_line":"        #TODO(hichihara): add test cases of AZ scheduler"},{"line_number":350,"context_line":"        return {\u0027availability_zone_hints\u0027: []}"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"    def _get_hosted_networks_on_dhcp_agent(self, agent_id):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da20952f_397e4faf","line":349,"in_reply_to":"fa1b9901_6bdb491c","updated":"2015-08-26 15:59:39.000000000","message":"Functional test will be implemented by netxt patch.","commit_id":"db4e106244c608ad3d047795e4efe7b8e18a00a4"}],"neutron/tests/unit/extensions/test_availability_zone.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"a878b195494818f7fd8561f8678078c4530f6815","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        return []"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"# These plugin classes are just for testing"},{"line_number":45,"context_line":"class AZTestPlugin(db_base_plugin_v2.NeutronDbPluginV2,"},{"line_number":46,"context_line":"                   agents_db.AgentDbMixin):"},{"line_number":47,"context_line":"    supported_extension_aliases \u003d [\"agent\", \"availability_zone\"]"}],"source_content_type":"text/x-python","patch_set":35,"id":"7a2fa921_fe7fc0a8","line":44,"updated":"2015-10-08 12:47:44.000000000","message":"Comment doesn\u0027t really add any value.","commit_id":"7be1af15c429cd081be1343e2e324c36d0e72b74"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4f04d10e261b8ca012b376c9e78e662b89d6303a","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        return []"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"# These plugin classes are just for testing"},{"line_number":45,"context_line":"class AZTestPlugin(db_base_plugin_v2.NeutronDbPluginV2,"},{"line_number":46,"context_line":"                   agents_db.AgentDbMixin):"},{"line_number":47,"context_line":"    supported_extension_aliases \u003d [\"agent\", \"availability_zone\"]"}],"source_content_type":"text/x-python","patch_set":35,"id":"7a2fa921_75672db7","line":44,"in_reply_to":"7a2fa921_fe7fc0a8","updated":"2015-10-08 23:35:39.000000000","message":"Done","commit_id":"7be1af15c429cd081be1343e2e324c36d0e72b74"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"a878b195494818f7fd8561f8678078c4530f6815","unresolved":false,"context_lines":[{"line_number":142,"context_line":"    def test_create_network_with_not_exist_az(self):"},{"line_number":143,"context_line":"        res \u003d self._create_network(self.fmt, \u0027net\u0027, True,"},{"line_number":144,"context_line":"                                   availability_zone_hints\u003d[\u0027nova3\u0027])"},{"line_number":145,"context_line":"        self.assertEqual(res.status_int, 404)"}],"source_content_type":"text/x-python","patch_set":35,"id":"7a2fa921_de38c4f1","line":145,"updated":"2015-10-08 12:47:44.000000000","message":"Nit: Should be (expected, actual)","commit_id":"7be1af15c429cd081be1343e2e324c36d0e72b74"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4f04d10e261b8ca012b376c9e78e662b89d6303a","unresolved":false,"context_lines":[{"line_number":142,"context_line":"    def test_create_network_with_not_exist_az(self):"},{"line_number":143,"context_line":"        res \u003d self._create_network(self.fmt, \u0027net\u0027, True,"},{"line_number":144,"context_line":"                                   availability_zone_hints\u003d[\u0027nova3\u0027])"},{"line_number":145,"context_line":"        self.assertEqual(res.status_int, 404)"}],"source_content_type":"text/x-python","patch_set":35,"id":"7a2fa921_1507d9ca","line":145,"in_reply_to":"7a2fa921_de38c4f1","updated":"2015-10-08 23:35:39.000000000","message":"Done","commit_id":"7be1af15c429cd081be1343e2e324c36d0e72b74"}],"neutron/tests/unit/scheduler/test_dhcp_agent_scheduler.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"af21959ede48fd810e453970080a4a66c910d9b3","unresolved":false,"context_lines":[{"line_number":494,"context_line":"                              True)"},{"line_number":495,"context_line":"        self.plugin \u003d importutils.import_object(\u0027neutron.plugins.ml2.plugin.\u0027"},{"line_number":496,"context_line":"                                                \u0027Ml2Plugin\u0027)"},{"line_number":497,"context_line":"        self.assertEqual(1, self.patched_dhcp_periodic.call_count)"},{"line_number":498,"context_line":"        self.plugin.network_scheduler \u003d importutils.import_object("},{"line_number":499,"context_line":"            \u0027neutron.scheduler.dhcp_agent_scheduler.WeightScheduler\u0027"},{"line_number":500,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_b0954e89","line":497,"updated":"2015-09-09 15:49:05.000000000","message":"I don\u0027t understand why this assert is here. Can you elaborate?","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6c2fb23d08d4835e5a8e2950b3ad4e9360bb42a3","unresolved":false,"context_lines":[{"line_number":494,"context_line":"                              True)"},{"line_number":495,"context_line":"        self.plugin \u003d importutils.import_object(\u0027neutron.plugins.ml2.plugin.\u0027"},{"line_number":496,"context_line":"                                                \u0027Ml2Plugin\u0027)"},{"line_number":497,"context_line":"        self.assertEqual(1, self.patched_dhcp_periodic.call_count)"},{"line_number":498,"context_line":"        self.plugin.network_scheduler \u003d importutils.import_object("},{"line_number":499,"context_line":"            \u0027neutron.scheduler.dhcp_agent_scheduler.WeightScheduler\u0027"},{"line_number":500,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_b81a0217","line":497,"in_reply_to":"da20952f_b0954e89","updated":"2015-09-10 01:18:36.000000000","message":"This is unnecessary. I missed the garbage when I copied DHCPAgentWeightSchedulerTestCase. I removed it.","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"af21959ede48fd810e453970080a4a66c910d9b3","unresolved":false,"context_lines":[{"line_number":577,"context_line":"                              True)"},{"line_number":578,"context_line":"        self.plugin \u003d importutils.import_object(\u0027neutron.plugins.ml2.plugin.\u0027"},{"line_number":579,"context_line":"                                                \u0027Ml2Plugin\u0027)"},{"line_number":580,"context_line":"        self.assertEqual(1, self.patched_dhcp_periodic.call_count)"},{"line_number":581,"context_line":"        self.plugin.network_scheduler \u003d importutils.import_object("},{"line_number":582,"context_line":"            \u0027neutron.scheduler.dhcp_agent_scheduler.ChanceScheduler\u0027"},{"line_number":583,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_908a8a63","line":580,"updated":"2015-09-09 15:49:05.000000000","message":"same here.","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"6c2fb23d08d4835e5a8e2950b3ad4e9360bb42a3","unresolved":false,"context_lines":[{"line_number":577,"context_line":"                              True)"},{"line_number":578,"context_line":"        self.plugin \u003d importutils.import_object(\u0027neutron.plugins.ml2.plugin.\u0027"},{"line_number":579,"context_line":"                                                \u0027Ml2Plugin\u0027)"},{"line_number":580,"context_line":"        self.assertEqual(1, self.patched_dhcp_periodic.call_count)"},{"line_number":581,"context_line":"        self.plugin.network_scheduler \u003d importutils.import_object("},{"line_number":582,"context_line":"            \u0027neutron.scheduler.dhcp_agent_scheduler.ChanceScheduler\u0027"},{"line_number":583,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_78146ae8","line":580,"in_reply_to":"da20952f_908a8a63","updated":"2015-09-10 01:18:36.000000000","message":"Done","commit_id":"286c0fe4cf6feeabc94be7253af9eeb8735f71c0"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"f1541c6df3695061d1581518fb0749b8fe38e737","unresolved":false,"context_lines":[{"line_number":270,"context_line":"        expected_result \u003d (self.network_present and self.enable_dhcp)"},{"line_number":271,"context_line":"        expected_hosted_agents \u003d (1 if expected_result and"},{"line_number":272,"context_line":"                                  self.valid_host else 0)"},{"line_number":273,"context_line":"        if (self.az_hints and"},{"line_number":274,"context_line":"            agents[0][\u0027availability_zone\u0027] not in self.az_hints):"},{"line_number":275,"context_line":"            expected_hosted_agents \u003d 0"},{"line_number":276,"context_line":"        host \u003d \"host-a\" if self.valid_host else \"host-b\""}],"source_content_type":"text/x-python","patch_set":40,"id":"da85f559_10403433","line":273,"updated":"2015-11-12 06:24:55.000000000","message":"To be compatible with previous test, you seems assuming that \"default_availability_zones\" is not set. Although it is empty by default,\nmaybe it is more clear to set it to empty explicitly....","commit_id":"f117b5a12ec1374403ddad0090c9692642a9c7da"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"f1541c6df3695061d1581518fb0749b8fe38e737","unresolved":false,"context_lines":[{"line_number":521,"context_line":"                                                              [\u00271111\u0027])"},{"line_number":522,"context_line":"        self.assertEqual(1, len(agents))"},{"line_number":523,"context_line":"        self.assertEqual(\u0027az1-host1\u0027, agents[0][\u0027host\u0027])"},{"line_number":524,"context_line":""},{"line_number":525,"context_line":"    def test_az_scheduler_two_az_hints(self):"},{"line_number":526,"context_line":"        cfg.CONF.set_override(\u0027dhcp_agents_per_network\u0027, 2)"},{"line_number":527,"context_line":"        self._save_networks([\u00271111\u0027])"}],"source_content_type":"text/x-python","patch_set":40,"id":"da85f559_70a420b9","line":524,"updated":"2015-11-12 06:24:55.000000000","message":"Maybe add another testcase to cover such case:\ncreating network without az_hints and default_azs is not set. This scheduler should just act like the normal WeightScheduler.","commit_id":"f117b5a12ec1374403ddad0090c9692642a9c7da"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"65eb9679077c7be9ca19b941c73b8965d0db7b34","unresolved":false,"context_lines":[{"line_number":571,"context_line":"                                                              [\u00271111\u0027])"},{"line_number":572,"context_line":"        self.assertEqual(2, len(agents))"},{"line_number":573,"context_line":"        expected_hosts \u003d set([\u0027az1-host1\u0027, \u0027az2-host2\u0027])"},{"line_number":574,"context_line":"        hosts \u003d set([a[\u0027host\u0027] for a in agents])"},{"line_number":575,"context_line":"        self.assertEqual(expected_hosts, hosts)"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_f0187177","line":574,"updated":"2015-11-23 21:18:40.000000000","message":"you can use directly:\n\n {a[\u0027host\u0027] for a in agents}","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"e834d1a08260e616b718a6dfdbabc1b6e2a44418","unresolved":false,"context_lines":[{"line_number":571,"context_line":"                                                              [\u00271111\u0027])"},{"line_number":572,"context_line":"        self.assertEqual(2, len(agents))"},{"line_number":573,"context_line":"        expected_hosts \u003d set([\u0027az1-host1\u0027, \u0027az2-host2\u0027])"},{"line_number":574,"context_line":"        hosts \u003d set([a[\u0027host\u0027] for a in agents])"},{"line_number":575,"context_line":"        self.assertEqual(expected_hosts, hosts)"}],"source_content_type":"text/x-python","patch_set":46,"id":"ba8a016a_b44ba8b0","line":574,"in_reply_to":"ba8a016a_f0187177","updated":"2015-11-24 10:50:00.000000000","message":"Done","commit_id":"4e720d605c0057fb6d05c97c4b30cd69e46f8a6c"}],"releasenotes/notes/add-availability-zone-4440cf00be7c54ba.yaml":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"6f123c3210d3b9264a27b6ad042135a19139f4bf","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"prelude: \u003e"},{"line_number":3,"context_line":"    Neutron now has availability zone for DHCP agent."},{"line_number":4,"context_line":"features:"},{"line_number":5,"context_line":"  - DHCP agent is assigned to a availability zone. Network can be host on the"},{"line_number":6,"context_line":"    DHCP agent with availability zone which users specify."}],"source_content_type":"text/x-yaml","patch_set":49,"id":"9a8ffd7b_d1680ef8","line":3,"updated":"2015-11-25 06:25:15.000000000","message":"I don\u0027t think prelude is necessary.\nI don\u0027t want to see many summary lines which has duplicated contents describe in Features section.","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"073eaded5a9159cd5ace046d81ce85f088443b83","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"prelude: \u003e"},{"line_number":3,"context_line":"    Neutron now has availability zone for DHCP agent."},{"line_number":4,"context_line":"features:"},{"line_number":5,"context_line":"  - DHCP agent is assigned to a availability zone. Network can be host on the"},{"line_number":6,"context_line":"    DHCP agent with availability zone which users specify."}],"source_content_type":"text/x-yaml","patch_set":49,"id":"9a8ffd7b_24390342","line":3,"in_reply_to":"9a8ffd7b_507de5e5","updated":"2015-11-25 13:58:08.000000000","message":"I just think that the summary like this [1] is messy. It is a result of the fact that various release notes has its own prelude.\nHowever, it is not specific to your patch and it should be discussed more broadly.\n\n[1] http://docs-draft.openstack.org/36/204436/49/check/gate-neutron-releasenotes/c077086//releasenotes/build/html/liberty.html","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"42edbbb621d74dbc03e34f96d278df246fed670a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"prelude: \u003e"},{"line_number":3,"context_line":"    Neutron now has availability zone for DHCP agent."},{"line_number":4,"context_line":"features:"},{"line_number":5,"context_line":"  - DHCP agent is assigned to a availability zone. Network can be host on the"},{"line_number":6,"context_line":"    DHCP agent with availability zone which users specify."}],"source_content_type":"text/x-yaml","patch_set":49,"id":"9a8ffd7b_507de5e5","line":3,"in_reply_to":"9a8ffd7b_d1680ef8","updated":"2015-11-25 13:34:53.000000000","message":"I thought prelude is needed. I cannot see note without prelude in tree. I also have a plan which I will modify this note in dependent patch.\n\nHowever, I\u0027m not against your opinion because I will be able to modify in another patch.","commit_id":"cf6cac6fdfaf89dfa7f21d3e91acd21903edc03e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"90a682b1913da022e76682f4becc76b31608e0e4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - DHCP agent is assigned to a availability zone. Network can be host on the"},{"line_number":4,"context_line":"    DHCP agent with availability zone which users specify."}],"source_content_type":"text/x-yaml","patch_set":50,"id":"9a8ffd7b_c7a827de","line":3,"updated":"2015-11-25 19:18:12.000000000","message":"an availability zone; network can be hosted","commit_id":"6e500278191296f75e6bd900b94f7e36cc69edf2"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"90a682b1913da022e76682f4becc76b31608e0e4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - DHCP agent is assigned to a availability zone. Network can be host on the"},{"line_number":4,"context_line":"    DHCP agent with availability zone which users specify."}],"source_content_type":"text/x-yaml","patch_set":50,"id":"9a8ffd7b_27ba5324","line":4,"updated":"2015-11-25 19:18:12.000000000","message":"specifies","commit_id":"6e500278191296f75e6bd900b94f7e36cc69edf2"}]}
