)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"52dfa02c91f35c72486c750b31a27b4118e6b951","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Jakub Libosvar \u003clibosvar@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-08-07 11:23:02 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"ip6tables are used if ipv6 is enabled in kernel"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"On systems where ipv6 module is not loaded in kernel we need to avoid"},{"line_number":10,"context_line":"usage of ip6tables. This patch reads"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"baada198_7d44eb9e","line":7,"updated":"2014-08-08 12:21:20.000000000","message":"not enabled","commit_id":"b8cac2928c2b5c0972125d8fdd90f664b94f70b5"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"a2d344c04c25ae0602676d05f3015360f3576fb5","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Jakub Libosvar \u003clibosvar@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-08-07 11:23:02 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"ip6tables are used if ipv6 is enabled in kernel"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"On systems where ipv6 module is not loaded in kernel we need to avoid"},{"line_number":10,"context_line":"usage of ip6tables. This patch reads"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"baada198_f2190577","line":7,"in_reply_to":"baada198_7d44eb9e","updated":"2014-08-08 13:03:07.000000000","message":"Actually, the summary should summarize the fix, not the bug. How about \"Ensure ip6tables are used only if ipv6 is enabled in kernel\".","commit_id":"b8cac2928c2b5c0972125d8fdd90f664b94f70b5"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"2911bcfaa19367d9109b751ace36389282f636cd","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Jakub Libosvar \u003clibosvar@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-08-07 11:23:02 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"ip6tables are used if ipv6 is enabled in kernel"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"On systems where ipv6 module is not loaded in kernel we need to avoid"},{"line_number":10,"context_line":"usage of ip6tables. This patch reads"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"baada198_3f978b3a","line":7,"in_reply_to":"baada198_f2190577","updated":"2014-08-11 13:22:26.000000000","message":"Done","commit_id":"b8cac2928c2b5c0972125d8fdd90f664b94f70b5"}],"etc/neutron.conf":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"3ca76b9601e11d6f3eea4165ca46c92d31980e04","unresolved":false,"context_lines":[{"line_number":145,"context_line":"# agent_down_time \u003d 75"},{"line_number":146,"context_line":"#"},{"line_number":147,"context_line":"# Turn on IPv6 iptables rules"},{"line_number":148,"context_line":"# use_ipv6 \u003d True"},{"line_number":149,"context_line":"# \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d  end of items for agent management extension \u003d\u003d\u003d\u003d\u003d"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"# \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d items for agent scheduler extension \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/plain","patch_set":3,"id":"baada198_8d0ba021","line":148,"updated":"2014-08-06 13:56:18.000000000","message":"Can this be done without yet another config? See the review for this devstack patch: https://review.openstack.org/97823 where Sean suggests \"Use the value of /proc/sys/net/ipv6/conf/default/disable_ipv6 to figure out if we should use ipv6 on the host.\"","commit_id":"e63a47f71591bf862cd4c3f2b406cd6bf5fd44af"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"5d2d6e035e0f71bf1af5278b8b29cb79887b57e8","unresolved":false,"context_lines":[{"line_number":145,"context_line":"# agent_down_time \u003d 75"},{"line_number":146,"context_line":"#"},{"line_number":147,"context_line":"# Turn on IPv6 iptables rules"},{"line_number":148,"context_line":"# use_ipv6 \u003d True"},{"line_number":149,"context_line":"# \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d  end of items for agent management extension \u003d\u003d\u003d\u003d\u003d"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"# \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d items for agent scheduler extension \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/plain","patch_set":3,"id":"baada198_63d65bc6","line":148,"in_reply_to":"baada198_8d0ba021","updated":"2014-08-06 15:10:46.000000000","message":"Agree - we do not need yet another config variable for something that can be automatically detected from either proc or possibly sysctl","commit_id":"e63a47f71591bf862cd4c3f2b406cd6bf5fd44af"}],"neutron/agent/l3_agent.py":[{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"1aadea8a8d5fb6850f2e93308e1d5c559f3d2fa1","unresolved":false,"context_lines":[{"line_number":146,"context_line":"class RouterInfo(object):"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def __init__(self, router_id, root_helper, use_namespaces, router,"},{"line_number":149,"context_line":"                 use_ipv6\u003dFalse):"},{"line_number":150,"context_line":"        self.router_id \u003d router_id"},{"line_number":151,"context_line":"        self.ex_gw_port \u003d None"},{"line_number":152,"context_line":"        self._snat_enabled \u003d None"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_610de1e6","line":149,"updated":"2014-08-11 16:42:35.000000000","message":"This should be true by default, not false, due to the previous behavior in L163","commit_id":"1355afd24e09027b5c2da4a9bb5928f35fec70b9"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"fde6e40ca09da16676ffac59ed9f45f67648f3f4","unresolved":false,"context_lines":[{"line_number":146,"context_line":"class RouterInfo(object):"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def __init__(self, router_id, root_helper, use_namespaces, router,"},{"line_number":149,"context_line":"                 use_ipv6\u003dFalse):"},{"line_number":150,"context_line":"        self.router_id \u003d router_id"},{"line_number":151,"context_line":"        self.ex_gw_port \u003d None"},{"line_number":152,"context_line":"        self._snat_enabled \u003d None"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_fc4b565c","line":149,"in_reply_to":"baada198_2162093d","updated":"2014-08-11 16:58:52.000000000","message":"I may be missing something, but before this patch, there was the line \n\n #FIXME(danwent): use_ipv6\u003dTrue, \n\nWhich was being passed to the constructor of IptablesManager. Does that not mean that before this patch, it was sending a default value of true? Perhaps I am missing context","commit_id":"1355afd24e09027b5c2da4a9bb5928f35fec70b9"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"a6f1d2732a8494b47fd0cb35ac541f95403e731d","unresolved":false,"context_lines":[{"line_number":146,"context_line":"class RouterInfo(object):"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def __init__(self, router_id, root_helper, use_namespaces, router,"},{"line_number":149,"context_line":"                 use_ipv6\u003dFalse):"},{"line_number":150,"context_line":"        self.router_id \u003d router_id"},{"line_number":151,"context_line":"        self.ex_gw_port \u003d None"},{"line_number":152,"context_line":"        self._snat_enabled \u003d None"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_4da2abad","line":149,"in_reply_to":"baada198_4788d1c2","updated":"2014-08-12 14:06:25.000000000","message":"Ah. You are correct. I was looking right at it and not seeing it. Sorry.","commit_id":"1355afd24e09027b5c2da4a9bb5928f35fec70b9"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"c225468f35c61b6b8758d5b16a994542ed265f03","unresolved":false,"context_lines":[{"line_number":146,"context_line":"class RouterInfo(object):"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def __init__(self, router_id, root_helper, use_namespaces, router,"},{"line_number":149,"context_line":"                 use_ipv6\u003dFalse):"},{"line_number":150,"context_line":"        self.router_id \u003d router_id"},{"line_number":151,"context_line":"        self.ex_gw_port \u003d None"},{"line_number":152,"context_line":"        self._snat_enabled \u003d None"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_2162093d","line":149,"in_reply_to":"baada198_610de1e6","updated":"2014-08-11 16:50:37.000000000","message":"Previous behavior was using default value from IptablesManager which is False.","commit_id":"1355afd24e09027b5c2da4a9bb5928f35fec70b9"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"ab34f68ea02cf35fed63d2431804b712016796ae","unresolved":false,"context_lines":[{"line_number":146,"context_line":"class RouterInfo(object):"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def __init__(self, router_id, root_helper, use_namespaces, router,"},{"line_number":149,"context_line":"                 use_ipv6\u003dFalse):"},{"line_number":150,"context_line":"        self.router_id \u003d router_id"},{"line_number":151,"context_line":"        self.ex_gw_port \u003d None"},{"line_number":152,"context_line":"        self._snat_enabled \u003d None"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_4788d1c2","line":149,"in_reply_to":"baada198_fc4b565c","updated":"2014-08-12 10:22:19.000000000","message":"This is a comment :) Thus nothing was passed as use_ipv6 and default value from IptablesManager constructor was used. And that value is False.","commit_id":"1355afd24e09027b5c2da4a9bb5928f35fec70b9"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"fd540a8f4dc130e775a79b3cf57a34a2c040340b","unresolved":false,"context_lines":[{"line_number":146,"context_line":"class RouterInfo(object):"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def __init__(self, router_id, root_helper, use_namespaces, router,"},{"line_number":149,"context_line":"                 use_ipv6\u003dFalse):"},{"line_number":150,"context_line":"        self.router_id \u003d router_id"},{"line_number":151,"context_line":"        self.ex_gw_port \u003d None"},{"line_number":152,"context_line":"        self._snat_enabled \u003d None"}],"source_content_type":"text/x-python","patch_set":7,"id":"7ac7a964_4ccf9cb0","line":149,"updated":"2014-08-16 04:58:26.000000000","message":"I see the varmour firewall router creates a RouterInfo() and with this it will default to not using ipv6. Either add the is_enabled() check there or at least ask the varmour team what the default should be.","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"594dffea5dda7652c926ebca2c35680ee2e26e9c","unresolved":false,"context_lines":[{"line_number":146,"context_line":"class RouterInfo(object):"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def __init__(self, router_id, root_helper, use_namespaces, router,"},{"line_number":149,"context_line":"                 use_ipv6\u003dFalse):"},{"line_number":150,"context_line":"        self.router_id \u003d router_id"},{"line_number":151,"context_line":"        self.ex_gw_port \u003d None"},{"line_number":152,"context_line":"        self._snat_enabled \u003d None"}],"source_content_type":"text/x-python","patch_set":7,"id":"7ac7a964_5d14a8f4","line":149,"in_reply_to":"7ac7a964_4ccf9cb0","updated":"2014-08-16 10:49:21.000000000","message":"The behaviour is kept the same. Previously, if vArmour instantiated RouterInfo then on line 163 was created IptablesManager with its default for constructor. The default is False, thus nothing has changed for those who use RouterInfo.","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"89a3b90601558b3c37bbadcd9c1fabf9bf35b1e2","unresolved":false,"context_lines":[{"line_number":146,"context_line":"class RouterInfo(object):"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def __init__(self, router_id, root_helper, use_namespaces, router,"},{"line_number":149,"context_line":"                 use_ipv6\u003dFalse):"},{"line_number":150,"context_line":"        self.router_id \u003d router_id"},{"line_number":151,"context_line":"        self.ex_gw_port \u003d None"},{"line_number":152,"context_line":"        self._snat_enabled \u003d None"}],"source_content_type":"text/x-python","patch_set":7,"id":"7ac7a964_93cd4f60","line":149,"in_reply_to":"7ac7a964_5d14a8f4","updated":"2014-08-16 17:43:48.000000000","message":"Yup, looks good, thanks. I shouldn\u0027t do code reviews at 1am.","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"}],"neutron/common/ipv6_utils.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"2871919f767680ac8a9f803ab83b9373a1961688","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    global _IS_IPV6_ENABLED"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    if _IS_IPV6_ENABLED is None:"},{"line_number":49,"context_line":"        disabled_ipv6_path \u003d \"/proc/sys/net/ipv6/conf/default/disable_ipv6\""},{"line_number":50,"context_line":"        with open(disabled_ipv6_path, \u0027r\u0027) as f:"},{"line_number":51,"context_line":"            enabled \u003d f.read().strip()"},{"line_number":52,"context_line":"        _IS_IPV6_ENABLED \u003d enabled \u003d\u003d \"0\""}],"source_content_type":"text/x-python","patch_set":7,"id":"5ac4a560_5efec96c","line":49,"updated":"2014-08-17 00:29:57.000000000","message":"Is this file always guaranteed to exist and have read permissions? What should the result be if we fail to open the file?","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"f7ee82d0fa86a18b4ee58d3d9af13e219d3fd475","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    global _IS_IPV6_ENABLED"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    if _IS_IPV6_ENABLED is None:"},{"line_number":49,"context_line":"        disabled_ipv6_path \u003d \"/proc/sys/net/ipv6/conf/default/disable_ipv6\""},{"line_number":50,"context_line":"        with open(disabled_ipv6_path, \u0027r\u0027) as f:"},{"line_number":51,"context_line":"            enabled \u003d f.read().strip()"},{"line_number":52,"context_line":"        _IS_IPV6_ENABLED \u003d enabled \u003d\u003d \"0\""}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_23a3919f","line":49,"in_reply_to":"1abeadc6_17edf8c3","updated":"2014-08-18 17:19:27.000000000","message":"Sounds like you know more about this than I do. Have you investigated the sysctl option?","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"f155766cd33a997bdd2606873639a5f583bcfcf6","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    global _IS_IPV6_ENABLED"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    if _IS_IPV6_ENABLED is None:"},{"line_number":49,"context_line":"        disabled_ipv6_path \u003d \"/proc/sys/net/ipv6/conf/default/disable_ipv6\""},{"line_number":50,"context_line":"        with open(disabled_ipv6_path, \u0027r\u0027) as f:"},{"line_number":51,"context_line":"            enabled \u003d f.read().strip()"},{"line_number":52,"context_line":"        _IS_IPV6_ENABLED \u003d enabled \u003d\u003d \"0\""}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_355648d3","line":49,"in_reply_to":"1abeadc6_23a3919f","updated":"2014-08-19 09:17:51.000000000","message":"Yes, it would be just calling subprocess with \"sysctl -n net.ipv6.conf.default.disable_ipv6\" - but that\u0027s the same as reading the file directly, you still need the path. imho reading procfs is better.","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1785c5fcaaad8708d5b47b9606a3c4a1d2da27ee","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    global _IS_IPV6_ENABLED"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    if _IS_IPV6_ENABLED is None:"},{"line_number":49,"context_line":"        disabled_ipv6_path \u003d \"/proc/sys/net/ipv6/conf/default/disable_ipv6\""},{"line_number":50,"context_line":"        with open(disabled_ipv6_path, \u0027r\u0027) as f:"},{"line_number":51,"context_line":"            enabled \u003d f.read().strip()"},{"line_number":52,"context_line":"        _IS_IPV6_ENABLED \u003d enabled \u003d\u003d \"0\""}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_17edf8c3","line":49,"in_reply_to":"5ac4a560_5efec96c","updated":"2014-08-18 14:21:53.000000000","message":"This is standardly defined procfs. Not sure if there exists any unix system that doesn\u0027t implement this. Other way could be to use sysctl.","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"2871919f767680ac8a9f803ab83b9373a1961688","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    if _IS_IPV6_ENABLED is None:"},{"line_number":49,"context_line":"        disabled_ipv6_path \u003d \"/proc/sys/net/ipv6/conf/default/disable_ipv6\""},{"line_number":50,"context_line":"        with open(disabled_ipv6_path, \u0027r\u0027) as f:"},{"line_number":51,"context_line":"            enabled \u003d f.read().strip()"},{"line_number":52,"context_line":"        _IS_IPV6_ENABLED \u003d enabled \u003d\u003d \"0\""},{"line_number":53,"context_line":"    return _IS_IPV6_ENABLED"}],"source_content_type":"text/x-python","patch_set":7,"id":"5ac4a560_def1f996","line":51,"updated":"2014-08-17 00:29:57.000000000","message":"Nit: My brain is begging you to name this variable \u0027disabled\u0027.","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"f7ee82d0fa86a18b4ee58d3d9af13e219d3fd475","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    if _IS_IPV6_ENABLED is None:"},{"line_number":49,"context_line":"        disabled_ipv6_path \u003d \"/proc/sys/net/ipv6/conf/default/disable_ipv6\""},{"line_number":50,"context_line":"        with open(disabled_ipv6_path, \u0027r\u0027) as f:"},{"line_number":51,"context_line":"            enabled \u003d f.read().strip()"},{"line_number":52,"context_line":"        _IS_IPV6_ENABLED \u003d enabled \u003d\u003d \"0\""},{"line_number":53,"context_line":"    return _IS_IPV6_ENABLED"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_a3888123","line":51,"in_reply_to":"1abeadc6_57ce905b","updated":"2014-08-18 17:19:27.000000000","message":"The file being read is named \"disable_ipv6\", so my brain prefers to see \u0027disabled\u003d\u003d0\u0027 evaluate to enabled\u003dTrue. But I am not going to take a strong stance on this -- if most reviewers are happy then I am fine with it.","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"f155766cd33a997bdd2606873639a5f583bcfcf6","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    if _IS_IPV6_ENABLED is None:"},{"line_number":49,"context_line":"        disabled_ipv6_path \u003d \"/proc/sys/net/ipv6/conf/default/disable_ipv6\""},{"line_number":50,"context_line":"        with open(disabled_ipv6_path, \u0027r\u0027) as f:"},{"line_number":51,"context_line":"            enabled \u003d f.read().strip()"},{"line_number":52,"context_line":"        _IS_IPV6_ENABLED \u003d enabled \u003d\u003d \"0\""},{"line_number":53,"context_line":"    return _IS_IPV6_ENABLED"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_350488bf","line":51,"in_reply_to":"1abeadc6_a3888123","updated":"2014-08-19 09:17:51.000000000","message":"ok, I\u0027ll rename it in next patchset.","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1785c5fcaaad8708d5b47b9606a3c4a1d2da27ee","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    if _IS_IPV6_ENABLED is None:"},{"line_number":49,"context_line":"        disabled_ipv6_path \u003d \"/proc/sys/net/ipv6/conf/default/disable_ipv6\""},{"line_number":50,"context_line":"        with open(disabled_ipv6_path, \u0027r\u0027) as f:"},{"line_number":51,"context_line":"            enabled \u003d f.read().strip()"},{"line_number":52,"context_line":"        _IS_IPV6_ENABLED \u003d enabled \u003d\u003d \"0\""},{"line_number":53,"context_line":"    return _IS_IPV6_ENABLED"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_57ce905b","line":51,"in_reply_to":"5ac4a560_def1f996","updated":"2014-08-18 14:21:53.000000000","message":"Since also the function is is_enabled() I\u0027d rather go with enabled - also for readability on L52.","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"}],"neutron/tests/unit/test_iptables_manager.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"48ac7f9d5820e94f92db35e6c87ef5d6a6531edd","unresolved":false,"context_lines":[{"line_number":183,"context_line":"             None),"},{"line_number":184,"context_line":"        ]"},{"line_number":185,"context_line":"        if use_ipv6:"},{"line_number":186,"context_line":"            expected_calls_and_values.insert(2, ("},{"line_number":187,"context_line":"                mock.call([\u0027ip6tables-save\u0027, \u0027-c\u0027],"},{"line_number":188,"context_line":"                          root_helper\u003dself.root_helper),"},{"line_number":189,"context_line":"                \u0027\u0027))"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_d431b80c","line":186,"updated":"2014-08-14 15:36:51.000000000","message":"DRY- This block could be extracted for reuse.  It\u0027s been added 6 times in this module.","commit_id":"1355afd24e09027b5c2da4a9bb5928f35fec70b9"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"4c3c0f13cf7701e0a8716dd8a9e7070ea28dc713","unresolved":false,"context_lines":[{"line_number":183,"context_line":"             None),"},{"line_number":184,"context_line":"        ]"},{"line_number":185,"context_line":"        if use_ipv6:"},{"line_number":186,"context_line":"            expected_calls_and_values.insert(2, ("},{"line_number":187,"context_line":"                mock.call([\u0027ip6tables-save\u0027, \u0027-c\u0027],"},{"line_number":188,"context_line":"                          root_helper\u003dself.root_helper),"},{"line_number":189,"context_line":"                \u0027\u0027))"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ac7a964_53b59e2f","line":186,"in_reply_to":"7ac7a964_d431b80c","updated":"2014-08-15 08:51:40.000000000","message":"Done","commit_id":"1355afd24e09027b5c2da4a9bb5928f35fec70b9"}],"neutron/tests/unit/test_security_groups_rpc.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"89a3b90601558b3c37bbadcd9c1fabf9bf35b1e2","unresolved":false,"context_lines":[{"line_number":1939,"context_line":"            process_input\u003dself._regex(IPTABLES_NAT + v4_filter),"},{"line_number":1940,"context_line":"            root_helper\u003dself.root_helper,"},{"line_number":1941,"context_line":"            return_value\u003d\u0027\u0027)"},{"line_number":1942,"context_line":"        if ipv6.is_enabled():"},{"line_number":1943,"context_line":"            self._register_mock_call("},{"line_number":1944,"context_line":"                [\u0027ip6tables-save\u0027, \u0027-c\u0027],"},{"line_number":1945,"context_line":"                root_helper\u003dself.root_helper,"}],"source_content_type":"text/x-python","patch_set":7,"id":"5ac4a560_3565b045","line":1942,"updated":"2014-08-16 17:43:48.000000000","message":"This doesn\u0027t seem like a good thing to do. Unit tests should not depend on the system that the unit tests are run on. I would suggest tests to emulate both enabled and disabled ipv6 environments.","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"f7ee82d0fa86a18b4ee58d3d9af13e219d3fd475","unresolved":false,"context_lines":[{"line_number":1939,"context_line":"            process_input\u003dself._regex(IPTABLES_NAT + v4_filter),"},{"line_number":1940,"context_line":"            root_helper\u003dself.root_helper,"},{"line_number":1941,"context_line":"            return_value\u003d\u0027\u0027)"},{"line_number":1942,"context_line":"        if ipv6.is_enabled():"},{"line_number":1943,"context_line":"            self._register_mock_call("},{"line_number":1944,"context_line":"                [\u0027ip6tables-save\u0027, \u0027-c\u0027],"},{"line_number":1945,"context_line":"                root_helper\u003dself.root_helper,"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_a3dde116","line":1942,"in_reply_to":"1abeadc6_91375db0","updated":"2014-08-18 17:19:27.000000000","message":"Yes I agree it seems out of scope. Perhaps add a #TODO comment?","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"6461ce3b58606cf625e1d4b11e7dec117804f9ed","unresolved":false,"context_lines":[{"line_number":1939,"context_line":"            process_input\u003dself._regex(IPTABLES_NAT + v4_filter),"},{"line_number":1940,"context_line":"            root_helper\u003dself.root_helper,"},{"line_number":1941,"context_line":"            return_value\u003d\u0027\u0027)"},{"line_number":1942,"context_line":"        if ipv6.is_enabled():"},{"line_number":1943,"context_line":"            self._register_mock_call("},{"line_number":1944,"context_line":"                [\u0027ip6tables-save\u0027, \u0027-c\u0027],"},{"line_number":1945,"context_line":"                root_helper\u003dself.root_helper,"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_47c5d93a","line":1942,"in_reply_to":"1abeadc6_a3dde116","updated":"2014-08-19 10:39:51.000000000","message":"Done","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1785c5fcaaad8708d5b47b9606a3c4a1d2da27ee","unresolved":false,"context_lines":[{"line_number":1939,"context_line":"            process_input\u003dself._regex(IPTABLES_NAT + v4_filter),"},{"line_number":1940,"context_line":"            root_helper\u003dself.root_helper,"},{"line_number":1941,"context_line":"            return_value\u003d\u0027\u0027)"},{"line_number":1942,"context_line":"        if ipv6.is_enabled():"},{"line_number":1943,"context_line":"            self._register_mock_call("},{"line_number":1944,"context_line":"                [\u0027ip6tables-save\u0027, \u0027-c\u0027],"},{"line_number":1945,"context_line":"                root_helper\u003dself.root_helper,"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_91375db0","line":1942,"in_reply_to":"5ac4a560_3565b045","updated":"2014-08-18 14:21:53.000000000","message":"I don\u0027t think it\u0027s relevant which iptables calls were called because this kind of mocking doesn\u0027t even belong to this file at all. What should be validated in these tests is that iptables_firewall was called with expected methods. I agree this is ugly but refactoring this UT is out of scope of this patch.","commit_id":"90da6c752b4c9165d4414102a35ea354e2a56222"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"33bce19b2f4a5bd0e032e6dfa8db5942b4096aa6","unresolved":false,"context_lines":[{"line_number":1941,"context_line":"            return_value\u003d\u0027\u0027)"},{"line_number":1942,"context_line":"        # TODO(jlibosva) Get rid of mocking iptables execute and mock out"},{"line_number":1943,"context_line":"        # firewall instead"},{"line_number":1944,"context_line":"        if ipv6.is_enabled():"},{"line_number":1945,"context_line":"            self._register_mock_call("},{"line_number":1946,"context_line":"                [\u0027ip6tables-save\u0027, \u0027-c\u0027],"},{"line_number":1947,"context_line":"                root_helper\u003dself.root_helper,"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_b32fcbf5","line":1944,"updated":"2014-08-19 12:24:03.000000000","message":"Why don\u0027t use mock ipv6.is_enabled() itself (although I read your comment in the previous patch set)?\n\nWhen I added the following at L.1815 just before initialization of SecurityGroupAgentRpcMixin, I can remove this if-clause and we can always get the same tests.\n\n  mock.patch(\u0027neutron.common.ipv6_utils.is_enabled\u0027,\n             return_value\u003dTrue).start()","commit_id":"c305d1379d2538066764c1b89e2c20a6ed6f0fe2"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"6a13dd5fc3e5d19afd6585082a5f9556f00bc781","unresolved":false,"context_lines":[{"line_number":1941,"context_line":"            return_value\u003d\u0027\u0027)"},{"line_number":1942,"context_line":"        # TODO(jlibosva) Get rid of mocking iptables execute and mock out"},{"line_number":1943,"context_line":"        # firewall instead"},{"line_number":1944,"context_line":"        if ipv6.is_enabled():"},{"line_number":1945,"context_line":"            self._register_mock_call("},{"line_number":1946,"context_line":"                [\u0027ip6tables-save\u0027, \u0027-c\u0027],"},{"line_number":1947,"context_line":"                root_helper\u003dself.root_helper,"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_e084f9b2","line":1944,"in_reply_to":"1abeadc6_0254a21f","updated":"2014-08-19 17:57:50.000000000","message":"I don\u0027t really see a big difference in mocking is_enabled() and setting attribute. Both approaches need internal knowledge of either IptablesManager or IptablesFirewall. Just because use_ipv6 setting to True is easier, you don\u0027t need to create another mock in memory and the attribute already exists - I chose this approach. I agree there should be separation but current code doesn\u0027t offer that.","commit_id":"c305d1379d2538066764c1b89e2c20a6ed6f0fe2"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"159facd5d96a25d4316bd47cd3ee704f75a3f2af","unresolved":false,"context_lines":[{"line_number":1941,"context_line":"            return_value\u003d\u0027\u0027)"},{"line_number":1942,"context_line":"        # TODO(jlibosva) Get rid of mocking iptables execute and mock out"},{"line_number":1943,"context_line":"        # firewall instead"},{"line_number":1944,"context_line":"        if ipv6.is_enabled():"},{"line_number":1945,"context_line":"            self._register_mock_call("},{"line_number":1946,"context_line":"                [\u0027ip6tables-save\u0027, \u0027-c\u0027],"},{"line_number":1947,"context_line":"                root_helper\u003dself.root_helper,"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_0254a21f","line":1944,"in_reply_to":"1abeadc6_69a9c47a","updated":"2014-08-19 15:37:13.000000000","message":"Just a question: Why do you prefer to setting use_ipv6 attribute on iptables manager directly rather than mocking is_enabled()? Setting use_ipv6 is an internal attribute in iptables manager. Generally speaking, test_security_group should be unaware of the detail of iptables manager. This test already does not make a proper mocking and module separation, so I am okay with your approach.","commit_id":"c305d1379d2538066764c1b89e2c20a6ed6f0fe2"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"7be85ad9b094ea7c22ad87d8f59c0e366e012b09","unresolved":false,"context_lines":[{"line_number":1941,"context_line":"            return_value\u003d\u0027\u0027)"},{"line_number":1942,"context_line":"        # TODO(jlibosva) Get rid of mocking iptables execute and mock out"},{"line_number":1943,"context_line":"        # firewall instead"},{"line_number":1944,"context_line":"        if ipv6.is_enabled():"},{"line_number":1945,"context_line":"            self._register_mock_call("},{"line_number":1946,"context_line":"                [\u0027ip6tables-save\u0027, \u0027-c\u0027],"},{"line_number":1947,"context_line":"                root_helper\u003dself.root_helper,"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_69a9c47a","line":1944,"in_reply_to":"1abeadc6_b32fcbf5","updated":"2014-08-19 13:11:39.000000000","message":"I\u0027ll turn use_ipv6 on in iptables manager itself in next patchset. Thanks for suggestion.","commit_id":"c305d1379d2538066764c1b89e2c20a6ed6f0fe2"}]}
