)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"3da16ef58b49e330d39345dbbcfb02933374ef63","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Ethernet bridges."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"The operator may want to specify a default policy preventing IPv6 from"},{"line_number":17,"context_line":"binding to new interfaces, then explicitly enable IPv6 on select"},{"line_number":18,"context_line":"interfaces. The default policy of binding IPv6 link-local addresses to"},{"line_number":19,"context_line":"all newly created interfaces can expose the host from tenant networks"},{"line_number":20,"context_line":"via these link-local addresses. In fact, there is no requirement for a"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"ba3cc151_298a3cc0","line":17,"updated":"2015-06-30 07:22:31.000000000","message":"If we want to disable the support of automatically binding an IPv6 LLA to all newly\ncreated interfaces (including virtual interface?), how will Neutron assign\nIPv6 addresses (i.e., IPv6 subnets created in the network) to the virtual interfaces\nlike (qr/qg/dhcp-tap ifaces) which is required to support IPv6 Router/DHCPv6 functionality? \nAFAIK, without LLA we cannot configure any IPv6 address to an interface. \nCan you please explain further on this.","commit_id":"c178720f848e68a3e1b0c8d6de84434672fc5c4d"}],"etc/neutron.conf":[{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"8b84b2c2798813d0bc046887f16d332523e58244","unresolved":false,"context_lines":[{"line_number":170,"context_line":"# Override IPv6 detection enabling ip6tables for security groups. The default"},{"line_number":171,"context_line":"# of False means that /proc/sys/net/ipv6/conf/default/disable_ipv6 is checked"},{"line_number":172,"context_line":"# and if set to 1 ip6tables are not configured to enforce security groups. If"},{"line_number":173,"context_line":"# set to True, ip6tables are configured regardless."},{"line_number":174,"context_line":"# ipv6_enable_override \u003d False"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"# \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d items for MTU selection and advertisement \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/plain","patch_set":4,"id":"ba3cc151_29022a70","line":173,"updated":"2015-06-30 14:28:10.000000000","message":"This description doesn\u0027t appear to align with what the config setting actually does.","commit_id":"c178720f848e68a3e1b0c8d6de84434672fc5c4d"},{"author":{"_account_id":2860,"name":"litong01","email":"email4tong@yahoo.com","username":"litong01"},"change_message_id":"f12196ab777b0af1e2dfcaf7597ea2eee35843c3","unresolved":false,"context_lines":[{"line_number":167,"context_line":"# See the description for default_ipv4_subnet_pool for more information."},{"line_number":168,"context_line":"# default_ipv6_subnet_pool \u003d"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"# Override automatic IPv6 detection. The default setting of False means IPv6"},{"line_number":171,"context_line":"# will automatically be detected, if set to True IPv6 will enabled including"},{"line_number":172,"context_line":"# security group capabilities for IPv6 traffic."},{"line_number":173,"context_line":"# ipv6_enable_override \u003d False"}],"source_content_type":"text/plain","patch_set":5,"id":"ba3cc151_78242c5f","line":170,"updated":"2015-07-01 19:48:37.000000000","message":"Can we change to the following, the original does not read right.\n\n\"The default setting of False means IPv6 enablement is decided automatically. If set to True, IPv6 will be enabled including security group capabilities for IPv6 traffic.\"","commit_id":"3460e1c2120efafb34bb36d3280787f9c9d86903"},{"author":{"_account_id":11255,"name":"Dustin Lundquist","username":"dustin.lundquist","inactive":true},"change_message_id":"0d899276ca3420fe40cb6ab11444cdacf7cedbef","unresolved":false,"context_lines":[{"line_number":167,"context_line":"# See the description for default_ipv4_subnet_pool for more information."},{"line_number":168,"context_line":"# default_ipv6_subnet_pool \u003d"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"# Override automatic IPv6 detection. The default setting of False means IPv6"},{"line_number":171,"context_line":"# will automatically be detected, if set to True IPv6 will enabled including"},{"line_number":172,"context_line":"# security group capabilities for IPv6 traffic."},{"line_number":173,"context_line":"# ipv6_enable_override \u003d False"}],"source_content_type":"text/plain","patch_set":5,"id":"ba3cc151_2eb2de4c","line":170,"in_reply_to":"ba3cc151_78242c5f","updated":"2015-07-01 20:09:38.000000000","message":"Done","commit_id":"3460e1c2120efafb34bb36d3280787f9c9d86903"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"4a6077be67450a778113c3f99f8e105aeb2f7d29","unresolved":false,"context_lines":[{"line_number":167,"context_line":"# See the description for default_ipv4_subnet_pool for more information."},{"line_number":168,"context_line":"# default_ipv6_subnet_pool \u003d"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"# Override automatic IPv6 detection. The default setting of False means IPv6"},{"line_number":171,"context_line":"# enablement is decided automatically. If set to True, IPv6 will be enabled"},{"line_number":172,"context_line":"# including security group capabilities for IPv6 traffic."},{"line_number":173,"context_line":"# ipv6_enable_override \u003d False"}],"source_content_type":"text/plain","patch_set":7,"id":"ba3cc151_ddea9cac","line":170,"updated":"2015-07-04 12:05:31.000000000","message":"I personally would just introduce 3 values, \"Automatic Detection\", \"False\". \"True\"","commit_id":"1687f41234a637951dcd10d4cf6c4ff2fb0c8d70"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"b03ad9278aeab19cda05ccb3f5d895af3c4b47f9","unresolved":false,"context_lines":[{"line_number":167,"context_line":"# See the description for default_ipv4_subnet_pool for more information."},{"line_number":168,"context_line":"# default_ipv6_subnet_pool \u003d"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"# Override automatic IPv6 detection. The default setting of False means IPv6"},{"line_number":171,"context_line":"# enablement is decided automatically. If set to True, IPv6 will be enabled"},{"line_number":172,"context_line":"# including security group capabilities for IPv6 traffic."},{"line_number":173,"context_line":"# ipv6_enable_override \u003d False"}],"source_content_type":"text/plain","patch_set":7,"id":"ba3cc151_5192f3f7","line":170,"in_reply_to":"ba3cc151_ddea9cac","updated":"2015-07-05 06:25:47.000000000","message":"How can we do automatic detection during startup? IMHO, \u0027False\u0027 and \u0027True\u0027 will be sufficient.","commit_id":"1687f41234a637951dcd10d4cf6c4ff2fb0c8d70"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"be88f863357d894e6fb923f2667b891a23203377","unresolved":false,"context_lines":[{"line_number":168,"context_line":"# default_ipv6_subnet_pool \u003d"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"# Enable IPv6. The default of None means IPv6  enablement is decided"},{"line_number":171,"context_line":"# automatically. If set to True, IPv6 will be enabled including security group"},{"line_number":172,"context_line":"# capabilities for IPv6 traffic. If set to False, IPv6 will be disabled."},{"line_number":173,"context_line":"# ipv6_enabled \u003d None"},{"line_number":174,"context_line":""}],"source_content_type":"text/plain","patch_set":12,"id":"ba3cc151_ac8448b1","line":171,"updated":"2015-07-10 08:58:43.000000000","message":"AFAIK it\u0027s used only for security groups. If you set \u0027ipv6_enabled \u003d False\u0027 then you\u0027ll still be able to create ipv6 subnets. Isn\u0027t it a little bit confusing? Maybe we can move the ipv6_enabled option to [securitygroups] section to be more explicit on the usage. What do you think?","commit_id":"4521db050ac8c28a1083b7a351d18d1e70452bb8"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"3e73b9491ff3021e352097d50694a80f608cc1a4","unresolved":false,"context_lines":[{"line_number":170,"context_line":"# Enable IPv6. The default of None means IPv6  enablement is decided"},{"line_number":171,"context_line":"# automatically. If set to True, IPv6 will be enabled including security group"},{"line_number":172,"context_line":"# capabilities for IPv6 traffic. If set to False, IPv6 will be disabled."},{"line_number":173,"context_line":"# ipv6_enabled \u003d None"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"# \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d items for MTU selection and advertisement \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":176,"context_line":"# Advertise MTU.  If True, effort is made to advertise MTU"}],"source_content_type":"text/plain","patch_set":12,"id":"ba3cc151_75f60a92","line":173,"updated":"2015-07-10 03:53:54.000000000","message":"Thanks @Dustin for incorporating the comments. One small observation..\n\nIn my environment, when I un-comment the ipv6_enabled config param (including assigning an empty value for ipv6_enabled), q-svc fails to start. Do you see this issue at your end? Can you pls check.","commit_id":"4521db050ac8c28a1083b7a351d18d1e70452bb8"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"f43b9fb8720a3edef0a906d6d9629f906c4f6e4d","unresolved":false,"context_lines":[{"line_number":170,"context_line":"# Enable IPv6. The default of None means IPv6  enablement is decided"},{"line_number":171,"context_line":"# automatically. If set to True, IPv6 will be enabled including security group"},{"line_number":172,"context_line":"# capabilities for IPv6 traffic. If set to False, IPv6 will be disabled."},{"line_number":173,"context_line":"# ipv6_enabled \u003d None"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"# \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d items for MTU selection and advertisement \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":176,"context_line":"# Advertise MTU.  If True, effort is made to advertise MTU"}],"source_content_type":"text/plain","patch_set":12,"id":"ba3cc151_e73d91de","line":173,"in_reply_to":"ba3cc151_75f60a92","updated":"2015-07-10 05:14:09.000000000","message":"@Sridhar, could you give more specifics around the failure mode you\u0027re seeing?  You mention \"assigning an empty value\" but it looks like you should be assigning False, True, or None to the value.\n\nFWIW, I\u0027d prefer to use something like \"auto\" or \"detect\" for the default case instead of None.","commit_id":"4521db050ac8c28a1083b7a351d18d1e70452bb8"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"696bdd3265d179dbf2374912e5c5bd608d0e4009","unresolved":false,"context_lines":[{"line_number":170,"context_line":"# Enable IPv6. The default of None means IPv6  enablement is decided"},{"line_number":171,"context_line":"# automatically. If set to True, IPv6 will be enabled including security group"},{"line_number":172,"context_line":"# capabilities for IPv6 traffic. If set to False, IPv6 will be disabled."},{"line_number":173,"context_line":"# ipv6_enabled \u003d None"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"# \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d items for MTU selection and advertisement \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":176,"context_line":"# Advertise MTU.  If True, effort is made to advertise MTU"}],"source_content_type":"text/plain","patch_set":12,"id":"ba3cc151_e02257a3","line":173,"in_reply_to":"ba3cc151_e73d91de","updated":"2015-07-10 06:29:23.000000000","message":"@Carl, I\u0027m seeing the following error  when I set ipv6_enabled to an empty value as well as when I set it to None. The issue is not seen when I set it to True/False. \n\nhttp://paste.openstack.org/show/360907/\n\nI\u0027m with you, \"auto\" would be more readable compared to None. The reason why None was chosen is because we are using a cfg.BoolOpt.","commit_id":"4521db050ac8c28a1083b7a351d18d1e70452bb8"}],"neutron/common/ipv6_utils.py":[{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"1fa338722edd998185a625abf4b827e39f0135ca","unresolved":false,"context_lines":[{"line_number":30,"context_line":"                default\u003dFalse,"},{"line_number":31,"context_line":"                help\u003d\"If set to True it overrides IPv6 enabled detection \""},{"line_number":32,"context_line":"                     \"via /proc/sys/net/ipv6/conf/default/disable_ipv6\"),"},{"line_number":33,"context_line":"]"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"cfg.CONF.register_opts(ipv6_enabled_opts)"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_8c5a7629","line":33,"updated":"2015-06-26 21:17:12.000000000","message":"So...... we would have a variable named ipv6_enabled .... set to False by default - which would keep the current logic where we check procfs. \n\nThat\u0027s going to be confusing. I am confused.","commit_id":"e7fb0842c764a1b5913ca05a20010c9d5e84bdcf"},{"author":{"_account_id":2860,"name":"litong01","email":"email4tong@yahoo.com","username":"litong01"},"change_message_id":"f12196ab777b0af1e2dfcaf7597ea2eee35843c3","unresolved":false,"context_lines":[{"line_number":28,"context_line":"ipv6_enable_override_opts \u003d ["},{"line_number":29,"context_line":"    cfg.BoolOpt(\u0027ipv6_enable_override\u0027,"},{"line_number":30,"context_line":"                default\u003dFalse,"},{"line_number":31,"context_line":"                help\u003d\"If set to True it overrides IPv6 enabled detection \""},{"line_number":32,"context_line":"                     \"via /proc/sys/net/ipv6/conf/default/disable_ipv6\"),"},{"line_number":33,"context_line":"]"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"ba3cc151_b8a394b1","line":31,"updated":"2015-07-01 19:48:37.000000000","message":"Please change to this:\n\n\"If set to True, IPv6 will be enabled. No detection will be done \"","commit_id":"3460e1c2120efafb34bb36d3280787f9c9d86903"},{"author":{"_account_id":11255,"name":"Dustin Lundquist","username":"dustin.lundquist","inactive":true},"change_message_id":"0d899276ca3420fe40cb6ab11444cdacf7cedbef","unresolved":false,"context_lines":[{"line_number":28,"context_line":"ipv6_enable_override_opts \u003d ["},{"line_number":29,"context_line":"    cfg.BoolOpt(\u0027ipv6_enable_override\u0027,"},{"line_number":30,"context_line":"                default\u003dFalse,"},{"line_number":31,"context_line":"                help\u003d\"If set to True it overrides IPv6 enabled detection \""},{"line_number":32,"context_line":"                     \"via /proc/sys/net/ipv6/conf/default/disable_ipv6\"),"},{"line_number":33,"context_line":"]"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"ba3cc151_ce7b328b","line":31,"in_reply_to":"ba3cc151_b8a394b1","updated":"2015-07-01 20:09:38.000000000","message":"Done","commit_id":"3460e1c2120efafb34bb36d3280787f9c9d86903"},{"author":{"_account_id":2860,"name":"litong01","email":"email4tong@yahoo.com","username":"litong01"},"change_message_id":"f12196ab777b0af1e2dfcaf7597ea2eee35843c3","unresolved":false,"context_lines":[{"line_number":61,"context_line":"    global _IS_IPV6_ENABLED"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    if _IS_IPV6_ENABLED is None:"},{"line_number":64,"context_line":"        disabled_ipv6_path \u003d \"/proc/sys/net/ipv6/conf/default/disable_ipv6\""},{"line_number":65,"context_line":"        if cfg.CONF.ipv6_enable_override:"},{"line_number":66,"context_line":"            _IS_IPV6_ENABLED \u003d True"},{"line_number":67,"context_line":"        elif os.path.exists(disabled_ipv6_path):"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba3cc151_737a0d79","line":64,"updated":"2015-07-01 19:48:37.000000000","message":"when cfg.CONF.ipv6_enable_override is true, the above line is useless. I wonder if you do not mind to re-arrange it a bit so that when cfg.CONF.ipv6_enable_override is true, we do not do that assignment.","commit_id":"3460e1c2120efafb34bb36d3280787f9c9d86903"},{"author":{"_account_id":11255,"name":"Dustin Lundquist","username":"dustin.lundquist","inactive":true},"change_message_id":"0d899276ca3420fe40cb6ab11444cdacf7cedbef","unresolved":false,"context_lines":[{"line_number":61,"context_line":"    global _IS_IPV6_ENABLED"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    if _IS_IPV6_ENABLED is None:"},{"line_number":64,"context_line":"        disabled_ipv6_path \u003d \"/proc/sys/net/ipv6/conf/default/disable_ipv6\""},{"line_number":65,"context_line":"        if cfg.CONF.ipv6_enable_override:"},{"line_number":66,"context_line":"            _IS_IPV6_ENABLED \u003d True"},{"line_number":67,"context_line":"        elif os.path.exists(disabled_ipv6_path):"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba3cc151_8ea8cadc","line":64,"in_reply_to":"ba3cc151_737a0d79","updated":"2015-07-01 20:09:38.000000000","message":"disabled_ipv6_path is used in the condition below, so moving it would require an additional nested conditional.","commit_id":"3460e1c2120efafb34bb36d3280787f9c9d86903"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6b2e285eff1897b6f5aa95eb42c38bd987acda2c","unresolved":false,"context_lines":[{"line_number":28,"context_line":"ipv6_enable_override_opts \u003d ["},{"line_number":29,"context_line":"    cfg.BoolOpt(\u0027ipv6_enable_override\u0027,"},{"line_number":30,"context_line":"                default\u003dFalse,"},{"line_number":31,"context_line":"                help\u003d\"If set to True, IPv6 will be enabled. No detection will \""},{"line_number":32,"context_line":"                     \"be done\"),"},{"line_number":33,"context_line":"]"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_bb0ce7ec","line":31,"updated":"2015-07-01 22:37:54.000000000","message":"Why supporting only IPv6 enable without detection? Someone can request the opposite IPv6 disable without detection?","commit_id":"1687f41234a637951dcd10d4cf6c4ff2fb0c8d70"},{"author":{"_account_id":2860,"name":"litong01","email":"email4tong@yahoo.com","username":"litong01"},"change_message_id":"04666cd8d221ab59b8cf85ca49aa6024a6880d53","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    cfg.BoolOpt(\u0027ipv6_enable_override\u0027,"},{"line_number":30,"context_line":"                default\u003dFalse,"},{"line_number":31,"context_line":"                help\u003d\"If set to True, IPv6 will be enabled. No detection will \""},{"line_number":32,"context_line":"                     \"be done\"),"},{"line_number":33,"context_line":"]"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"cfg.CONF.register_opts(ipv6_enable_override_opts)"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_05feadad","line":32,"updated":"2015-07-02 15:22:02.000000000","message":"true. seems to me, the flag wants to be a multi-valued parameter :\nValue 0: auto detect\nValue 1: IPv6 enabled without detection\nValue 2: IPv6 disabled without detection\ndefault would be 0.\nthen the name will have to be changed to something else.","commit_id":"1687f41234a637951dcd10d4cf6c4ff2fb0c8d70"},{"author":{"_account_id":11255,"name":"Dustin Lundquist","username":"dustin.lundquist","inactive":true},"change_message_id":"44b8003dd0ef9fc5fd5c3920967aa5ee534595d1","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    cfg.BoolOpt(\u0027ipv6_enable_override\u0027,"},{"line_number":30,"context_line":"                default\u003dFalse,"},{"line_number":31,"context_line":"                help\u003d\"If set to True, IPv6 will be enabled. No detection will \""},{"line_number":32,"context_line":"                     \"be done\"),"},{"line_number":33,"context_line":"]"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"cfg.CONF.register_opts(ipv6_enable_override_opts)"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_3458bd87","line":32,"in_reply_to":"ba3cc151_05feadad","updated":"2015-07-02 16:43:20.000000000","message":"I considered a tri-state option, but there didn\u0027t seem to be a good pattern for this in the Neutron code base already. Especially since BoolOpt accepts a range of equivalent values: true, True, yes, 1, etc. Implementing this logic seemed like a significant code smell.\n\nAs for the case of wanting to force disabled IPv6, having IPv6 enabled and unused is generally a no-op as opposed to not enforcing the expected IPv6 security groups. Is this worth another revision?","commit_id":"1687f41234a637951dcd10d4cf6c4ff2fb0c8d70"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"8050a89d6e075abfacab322b94b987adb38709fd","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    cfg.BoolOpt(\u0027ipv6_enable_override\u0027,"},{"line_number":30,"context_line":"                default\u003dFalse,"},{"line_number":31,"context_line":"                help\u003d\"If set to True, IPv6 will be enabled. No detection will \""},{"line_number":32,"context_line":"                     \"be done\"),"},{"line_number":33,"context_line":"]"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"cfg.CONF.register_opts(ipv6_enable_override_opts)"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_0c1b6a74","line":32,"in_reply_to":"ba3cc151_3458bd87","updated":"2015-07-08 12:13:09.000000000","message":"a no-op? iiuc, it means we will configure ipv6 (iptables, etc.) part for nothing?\n\nStrOpt allows None as default value (which is not a valid string), you could set default\u003dNone and let neutron chooses when the option is not explicitly set?","commit_id":"1687f41234a637951dcd10d4cf6c4ff2fb0c8d70"},{"author":{"_account_id":10980,"name":"Doug Wiegley","email":"dougwig@parkside.io","username":"dougw"},"change_message_id":"cdc89a1bf8252065869dece4f04cfcfa3808d131","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"from neutron.common import constants"},{"line_number":25,"context_line":"from neutron.i18n import _LI"},{"line_number":26,"context_line":"from oslo_config import cfg"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"ipv6_enabled_opts \u003d ["},{"line_number":29,"context_line":"    cfg.BoolOpt(\u0027ipv6_enabled\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_f1fcb2b6","line":26,"updated":"2015-07-09 00:55:31.000000000","message":"nit: this from should be after line 21.","commit_id":"b4a309e6d10182a24421aed640f3024f57db54d1"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e940bb0d6d991d75098e7ea1e910ae915c30c63b","unresolved":false,"context_lines":[{"line_number":28,"context_line":"ipv6_enabled_opts \u003d ["},{"line_number":29,"context_line":"    cfg.BoolOpt(\u0027ipv6_enabled\u0027,"},{"line_number":30,"context_line":"                default\u003dNone,"},{"line_number":31,"context_line":"                help\u003d\"If set to True, IPv6 will be enabled. If set to false, \""},{"line_number":32,"context_line":"                     \"IPv6 will be disabled. If set to none, IPv6 will be \""},{"line_number":33,"context_line":"                     \"detected automatically.\")"},{"line_number":34,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":12,"id":"9a41bdd9_354ef196","line":31,"updated":"2015-07-13 20:23:37.000000000","message":"nit: s/false/False","commit_id":"4521db050ac8c28a1083b7a351d18d1e70452bb8"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e940bb0d6d991d75098e7ea1e910ae915c30c63b","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    cfg.BoolOpt(\u0027ipv6_enabled\u0027,"},{"line_number":30,"context_line":"                default\u003dNone,"},{"line_number":31,"context_line":"                help\u003d\"If set to True, IPv6 will be enabled. If set to false, \""},{"line_number":32,"context_line":"                     \"IPv6 will be disabled. If set to none, IPv6 will be \""},{"line_number":33,"context_line":"                     \"detected automatically.\")"},{"line_number":34,"context_line":"]"},{"line_number":35,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"9a41bdd9_955fbd40","line":32,"updated":"2015-07-13 20:23:37.000000000","message":"nit: s/none/None\nnit: s/IPv6 will be/IPv6 support will be/","commit_id":"4521db050ac8c28a1083b7a351d18d1e70452bb8"}],"neutron/tests/unit/common/test_ipv6_utils.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ed4244d0c75eb2048732639533d602127f1806ef","unresolved":false,"context_lines":[{"line_number":64,"context_line":"            ipv6_utils._IS_IPV6_ENABLED \u003d None"},{"line_number":65,"context_line":"        reset_detection_flag()"},{"line_number":66,"context_line":"        self.addCleanup(reset_detection_flag)"},{"line_number":67,"context_line":"        cfg.CONF.reset()"},{"line_number":68,"context_line":"        self.addCleanup(cfg.CONF.reset)"},{"line_number":69,"context_line":"        self.mock_exists \u003d mock.patch(\"os.path.exists\","},{"line_number":70,"context_line":"                                      return_value\u003dTrue).start()"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_34cd2f31","line":67,"updated":"2015-07-08 23:52:23.000000000","message":"This is why you don\u0027t use cfg.CONF during testing. You can make ipv6_utils.is_enabled accept either a configuration object (Which can default to cfg.CONF), or the value of ipv6_enabled directly. Then during testing you can create a local cfg.ConfigOpts object and use a new instance for every test.","commit_id":"a085b6f4b0b5c2ae8803027a2c23f19c1286edc2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ed4244d0c75eb2048732639533d602127f1806ef","unresolved":false,"context_lines":[{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def test_config_enabled(self):"},{"line_number":98,"context_line":"        cfg.CONF.set_override(\u0027ipv6_enabled\u0027, True)"},{"line_number":99,"context_line":"        self.mock_read.return_value \u003d \"1\""},{"line_number":100,"context_line":"        enabled \u003d ipv6_utils.is_enabled()"},{"line_number":101,"context_line":"        self.assertTrue(enabled)"},{"line_number":102,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_14134bb9","line":99,"updated":"2015-07-08 23:52:23.000000000","message":"The mock_read mock is not used / executed in case ipv6_enabled is used, why are you setting its return value? Same for line 105.","commit_id":"a085b6f4b0b5c2ae8803027a2c23f19c1286edc2"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"3cf13adbd1ca9c1bbfae2527833bda3ed0cbbee6","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                                      return_value\u003dTrue).start()"},{"line_number":69,"context_line":"        mock_open \u003d mock.patch(\"six.moves.builtins.open\").start()"},{"line_number":70,"context_line":"        self.mock_read \u003d mock_open.return_value.__enter__.return_value.read"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def test_enabled(self):"},{"line_number":73,"context_line":"        self.mock_read.return_value \u003d \"0\""},{"line_number":74,"context_line":"        enabled \u003d ipv6_utils.is_enabled()"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_3aff4767","line":71,"updated":"2015-07-09 08:26:01.000000000","message":"These 4 tests are no more unittests as they call is_enabled but test detect_ipv6_enabled implementation ... is it a trouble?","commit_id":"3eaa14b3e16eba4e6a0879db132db31b6a20326a"},{"author":{"_account_id":11255,"name":"Dustin Lundquist","username":"dustin.lundquist","inactive":true},"change_message_id":"66e540ac927c65a3a94fdf5918f4ae23763ea760","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                                      return_value\u003dTrue).start()"},{"line_number":69,"context_line":"        mock_open \u003d mock.patch(\"six.moves.builtins.open\").start()"},{"line_number":70,"context_line":"        self.mock_read \u003d mock_open.return_value.__enter__.return_value.read"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def test_enabled(self):"},{"line_number":73,"context_line":"        self.mock_read.return_value \u003d \"0\""},{"line_number":74,"context_line":"        enabled \u003d ipv6_utils.is_enabled()"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_f96b17b7","line":71,"in_reply_to":"ba3cc151_3aff4767","updated":"2015-07-09 14:56:35.000000000","message":"No, didn\u0027t want to remove existing tests for detection logic. Renaming tests to make that intent more clear.","commit_id":"3eaa14b3e16eba4e6a0879db132db31b6a20326a"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"fee608a833caf82fa6eefc53014afe8bf993dee8","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def test_config_enabled(self):"},{"line_number":96,"context_line":"        cfg.CONF.set_override(\u0027ipv6_enabled\u0027, True)"},{"line_number":97,"context_line":"        # Ensure auto detection would disable IPv6"},{"line_number":98,"context_line":"        self.mock_read.return_value \u003d \"1\""},{"line_number":99,"context_line":"        enabled \u003d ipv6_utils.is_enabled()"},{"line_number":100,"context_line":"        self.assertTrue(enabled)"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_3e997ec4","line":97,"updated":"2015-07-09 07:22:22.000000000","message":"Comment is not in sync with the implementation.","commit_id":"3eaa14b3e16eba4e6a0879db132db31b6a20326a"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"3cf13adbd1ca9c1bbfae2527833bda3ed0cbbee6","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def test_config_enabled(self):"},{"line_number":96,"context_line":"        cfg.CONF.set_override(\u0027ipv6_enabled\u0027, True)"},{"line_number":97,"context_line":"        # Ensure auto detection would disable IPv6"},{"line_number":98,"context_line":"        self.mock_read.return_value \u003d \"1\""},{"line_number":99,"context_line":"        enabled \u003d ipv6_utils.is_enabled()"},{"line_number":100,"context_line":"        self.assertTrue(enabled)"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_7a3cef92","line":97,"in_reply_to":"ba3cc151_3e997ec4","updated":"2015-07-09 08:26:01.000000000","message":"The comment is correct but not obvious: \n\n * on one side the test ensures config would enable ipv6 \n * on the other side the test ensures auto-detection would disable ipv6\n * Who wins? \u003d\u003e config of course!\n\nBUT the test logic is too complex mainly because it\u0027s not a unittest! \n\nIt tests is_enabled AND partially detect_ipv6_enabled (the test mocks a method called by detect_ipv6_enabled). The right approach is to test is_enabled and mocks detect_ipv6_enabled:\n\n  cfg.CONF.set_override(\u0027ipv6_enabled\u0027, X)\n  with mock.patch.object(ipv6_utils, \u0027detect_ipv6_enabled\u0027) as detect:\n    self.assertEqual(X, ipv6_utils.is_enabled())\n    self.assertFalse(detect.called)","commit_id":"3eaa14b3e16eba4e6a0879db132db31b6a20326a"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"fee608a833caf82fa6eefc53014afe8bf993dee8","unresolved":false,"context_lines":[{"line_number":95,"context_line":"    def test_config_enabled(self):"},{"line_number":96,"context_line":"        cfg.CONF.set_override(\u0027ipv6_enabled\u0027, True)"},{"line_number":97,"context_line":"        # Ensure auto detection would disable IPv6"},{"line_number":98,"context_line":"        self.mock_read.return_value \u003d \"1\""},{"line_number":99,"context_line":"        enabled \u003d ipv6_utils.is_enabled()"},{"line_number":100,"context_line":"        self.assertTrue(enabled)"},{"line_number":101,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_1eb35a4e","line":98,"updated":"2015-07-09 07:22:22.000000000","message":"As @Assaf mentioned in patchset 9, mock_read mock is not used for this test-case. Please remove it.","commit_id":"3eaa14b3e16eba4e6a0879db132db31b6a20326a"},{"author":{"_account_id":11255,"name":"Dustin Lundquist","username":"dustin.lundquist","inactive":true},"change_message_id":"66e540ac927c65a3a94fdf5918f4ae23763ea760","unresolved":false,"context_lines":[{"line_number":95,"context_line":"    def test_config_enabled(self):"},{"line_number":96,"context_line":"        cfg.CONF.set_override(\u0027ipv6_enabled\u0027, True)"},{"line_number":97,"context_line":"        # Ensure auto detection would disable IPv6"},{"line_number":98,"context_line":"        self.mock_read.return_value \u003d \"1\""},{"line_number":99,"context_line":"        enabled \u003d ipv6_utils.is_enabled()"},{"line_number":100,"context_line":"        self.assertTrue(enabled)"},{"line_number":101,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_19427b0f","line":98,"in_reply_to":"ba3cc151_1eb35a4e","updated":"2015-07-09 14:56:35.000000000","message":"Goal here was to ensure detection logic would not be used when configuration value was present. Switching to self.assertFalse(self.mock_read.called) to make that intent more clear.","commit_id":"3eaa14b3e16eba4e6a0879db132db31b6a20326a"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"fee608a833caf82fa6eefc53014afe8bf993dee8","unresolved":false,"context_lines":[{"line_number":102,"context_line":"    def test_config_disabled(self):"},{"line_number":103,"context_line":"        cfg.CONF.set_override(\u0027ipv6_enabled\u0027, False)"},{"line_number":104,"context_line":"        # Ensure auto detection would enable IPv6"},{"line_number":105,"context_line":"        self.mock_read.return_value \u003d \"0\""},{"line_number":106,"context_line":"        enabled \u003d ipv6_utils.is_enabled()"},{"line_number":107,"context_line":"        self.assertFalse(enabled)"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_5e948289","line":105,"updated":"2015-07-09 07:22:22.000000000","message":"ditto","commit_id":"3eaa14b3e16eba4e6a0879db132db31b6a20326a"}]}
