)]}'
{"manila/network/neutron/neutron_network_plugin.py":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0905c093c151195b4a81824034abcf2bd9486132","unresolved":false,"context_lines":[{"line_number":182,"context_line":"            context, share_server, share_network, **kwargs)"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    def _verify_net_and_subnet(self, net\u003dNone, subnet\u003dNone):"},{"line_number":185,"context_line":"        net \u003d net if net is not None else self.net"},{"line_number":186,"context_line":"        subnet \u003d subnet if subnet is not None else self.subnet"},{"line_number":187,"context_line":"        data \u003d dict(net\u003dnet, subnet\u003dsubnet)"},{"line_number":188,"context_line":"        if self.net and self.subnet:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_d090ff97","line":185,"updated":"2015-11-25 10:08:03.000000000","message":"This could be:\n\nnet \u003d net or self.net","commit_id":"b4649c55429e54cd5efbe45fbf74259c4a75a910"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"3ae7b9db6c3fe12aa47d86985b038f3160e3c6e8","unresolved":false,"context_lines":[{"line_number":182,"context_line":"            context, share_server, share_network, **kwargs)"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    def _verify_net_and_subnet(self, net\u003dNone, subnet\u003dNone):"},{"line_number":185,"context_line":"        net \u003d net if net is not None else self.net"},{"line_number":186,"context_line":"        subnet \u003d subnet if subnet is not None else self.subnet"},{"line_number":187,"context_line":"        data \u003d dict(net\u003dnet, subnet\u003dsubnet)"},{"line_number":188,"context_line":"        if self.net and self.subnet:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_55c06fe0","line":185,"in_reply_to":"9a8ffd7b_d090ff97","updated":"2015-11-25 14:38:49.000000000","message":"Yes, sure, but PEP-8 states that it is better to use the is operator when comparing to singletons.","commit_id":"b4649c55429e54cd5efbe45fbf74259c4a75a910"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"0905c093c151195b4a81824034abcf2bd9486132","unresolved":false,"context_lines":[{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    def _verify_net_and_subnet(self, net\u003dNone, subnet\u003dNone):"},{"line_number":185,"context_line":"        net \u003d net if net is not None else self.net"},{"line_number":186,"context_line":"        subnet \u003d subnet if subnet is not None else self.subnet"},{"line_number":187,"context_line":"        data \u003d dict(net\u003dnet, subnet\u003dsubnet)"},{"line_number":188,"context_line":"        if self.net and self.subnet:"},{"line_number":189,"context_line":"            net \u003d self.neutron_api.get_network(self.net)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_90e9171d","line":186,"updated":"2015-11-25 10:08:03.000000000","message":"subnet \u003d subnet or self.subnet","commit_id":"b4649c55429e54cd5efbe45fbf74259c4a75a910"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"3ae7b9db6c3fe12aa47d86985b038f3160e3c6e8","unresolved":false,"context_lines":[{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    def _verify_net_and_subnet(self, net\u003dNone, subnet\u003dNone):"},{"line_number":185,"context_line":"        net \u003d net if net is not None else self.net"},{"line_number":186,"context_line":"        subnet \u003d subnet if subnet is not None else self.subnet"},{"line_number":187,"context_line":"        data \u003d dict(net\u003dnet, subnet\u003dsubnet)"},{"line_number":188,"context_line":"        if self.net and self.subnet:"},{"line_number":189,"context_line":"            net \u003d self.neutron_api.get_network(self.net)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_9909312f","line":186,"in_reply_to":"9a8ffd7b_90e9171d","updated":"2015-11-25 14:38:49.000000000","message":"ditto","commit_id":"b4649c55429e54cd5efbe45fbf74259c4a75a910"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"11ca6f04dda5aa2738776437d5fcbbda0861128d","unresolved":false,"context_lines":[{"line_number":184,"context_line":"    def _verify_net_and_subnet(self, net\u003dNone, subnet\u003dNone):"},{"line_number":185,"context_line":"        net \u003d net if net is not None else self.net"},{"line_number":186,"context_line":"        subnet \u003d subnet if subnet is not None else self.subnet"},{"line_number":187,"context_line":"        data \u003d dict(net\u003dnet, subnet\u003dsubnet)"},{"line_number":188,"context_line":"        if self.net and self.subnet:"},{"line_number":189,"context_line":"            net \u003d self.neutron_api.get_network(self.net)"},{"line_number":190,"context_line":"            if not (net.get(\u0027subnets\u0027) and data[\u0027subnet\u0027] in net[\u0027subnets\u0027]):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_c5c5753c","line":187,"updated":"2015-11-25 23:21:32.000000000","message":"Lines 185-187 replace with follwoing:\n\n\"\"\"\n\ndata \u003d (\n\n    net\u003dnet if net is not None else self.net,\n\n    subnet\u003dsubnet if subnet is not None else self.subnet,\n\n)\n\n\"\"\"","commit_id":"b4649c55429e54cd5efbe45fbf74259c4a75a910"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"56ead97745ad4ea793ad350257e0effe2f9cb3bb","unresolved":false,"context_lines":[{"line_number":184,"context_line":"    def _verify_net_and_subnet(self, net\u003dNone, subnet\u003dNone):"},{"line_number":185,"context_line":"        net \u003d net if net is not None else self.net"},{"line_number":186,"context_line":"        subnet \u003d subnet if subnet is not None else self.subnet"},{"line_number":187,"context_line":"        data \u003d dict(net\u003dnet, subnet\u003dsubnet)"},{"line_number":188,"context_line":"        if self.net and self.subnet:"},{"line_number":189,"context_line":"            net \u003d self.neutron_api.get_network(self.net)"},{"line_number":190,"context_line":"            if not (net.get(\u0027subnets\u0027) and data[\u0027subnet\u0027] in net[\u0027subnets\u0027]):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_e8ccf76b","line":187,"in_reply_to":"9a8ffd7b_c5c5753c","updated":"2015-11-26 11:04:40.000000000","message":"Done","commit_id":"b4649c55429e54cd5efbe45fbf74259c4a75a910"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"11ca6f04dda5aa2738776437d5fcbbda0861128d","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        subnet \u003d subnet if subnet is not None else self.subnet"},{"line_number":187,"context_line":"        data \u003d dict(net\u003dnet, subnet\u003dsubnet)"},{"line_number":188,"context_line":"        if self.net and self.subnet:"},{"line_number":189,"context_line":"            net \u003d self.neutron_api.get_network(self.net)"},{"line_number":190,"context_line":"            if not (net.get(\u0027subnets\u0027) and data[\u0027subnet\u0027] in net[\u0027subnets\u0027]):"},{"line_number":191,"context_line":"                raise exception.NetworkBadConfigurationException("},{"line_number":192,"context_line":"                    \"Subnet \u0027%(subnet)s\u0027 does not belong to \""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_65028971","line":189,"updated":"2015-11-25 23:21:32.000000000","message":"And here replace \"self.net\" with \"data[\u0027net\u0027]\". They ill have different values when argument \"net\" is not None and not equal to \"self.net\". In that case net and subnet will be used from different pairs.","commit_id":"b4649c55429e54cd5efbe45fbf74259c4a75a910"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"56ead97745ad4ea793ad350257e0effe2f9cb3bb","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        subnet \u003d subnet if subnet is not None else self.subnet"},{"line_number":187,"context_line":"        data \u003d dict(net\u003dnet, subnet\u003dsubnet)"},{"line_number":188,"context_line":"        if self.net and self.subnet:"},{"line_number":189,"context_line":"            net \u003d self.neutron_api.get_network(self.net)"},{"line_number":190,"context_line":"            if not (net.get(\u0027subnets\u0027) and data[\u0027subnet\u0027] in net[\u0027subnets\u0027]):"},{"line_number":191,"context_line":"                raise exception.NetworkBadConfigurationException("},{"line_number":192,"context_line":"                    \"Subnet \u0027%(subnet)s\u0027 does not belong to \""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_080cdb3f","line":189,"in_reply_to":"9a8ffd7b_65028971","updated":"2015-11-26 11:04:40.000000000","message":"Ok, thank you. Apparently it should be fixed at L188 as well.","commit_id":"b4649c55429e54cd5efbe45fbf74259c4a75a910"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"11ca6f04dda5aa2738776437d5fcbbda0861128d","unresolved":false,"context_lines":[{"line_number":209,"context_line":"            upd[\u0027neutron_subnet_id\u0027] \u003d self.subnet"},{"line_number":210,"context_line":"        if upd:"},{"line_number":211,"context_line":"            self._verify_net_and_subnet("},{"line_number":212,"context_line":"                net\u003dupd.get(\u0027neutron_net_id\u0027),"},{"line_number":213,"context_line":"                subnet\u003dupd.get(\u0027neutron_subnet_id\u0027))"},{"line_number":214,"context_line":"            share_network \u003d self.db.share_network_update("},{"line_number":215,"context_line":"                context, share_network[\u0027id\u0027], upd)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_459ae564","line":212,"updated":"2015-11-25 23:21:32.000000000","message":"Neutron net ID value from line 212 will never be used. And subnet from line 213 will be compared to Neutron network defined on line 174.\n\nAnd this case is not covered in unit tests.","commit_id":"b4649c55429e54cd5efbe45fbf74259c4a75a910"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"56ead97745ad4ea793ad350257e0effe2f9cb3bb","unresolved":false,"context_lines":[{"line_number":209,"context_line":"            upd[\u0027neutron_subnet_id\u0027] \u003d self.subnet"},{"line_number":210,"context_line":"        if upd:"},{"line_number":211,"context_line":"            self._verify_net_and_subnet("},{"line_number":212,"context_line":"                net\u003dupd.get(\u0027neutron_net_id\u0027),"},{"line_number":213,"context_line":"                subnet\u003dupd.get(\u0027neutron_subnet_id\u0027))"},{"line_number":214,"context_line":"            share_network \u003d self.db.share_network_update("},{"line_number":215,"context_line":"                context, share_network[\u0027id\u0027], upd)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a8ffd7b_ce157be5","line":212,"in_reply_to":"9a8ffd7b_459ae564","updated":"2015-11-26 11:04:40.000000000","message":"Apparently addressing your previous comment will fix this issue as well.","commit_id":"b4649c55429e54cd5efbe45fbf74259c4a75a910"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2a89d9cb37b567122d7deeb75372511ae5f342b0","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        super(NeutronSingleNetworkPlugin, self).allocate_network("},{"line_number":182,"context_line":"            context, share_server, share_network, **kwargs)"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    def _verify_net_and_subnet(self, net\u003dNone, subnet\u003dNone):"},{"line_number":185,"context_line":"        data \u003d dict(net\u003dself.net, subnet\u003dself.subnet)"},{"line_number":186,"context_line":"        if self.net and self.subnet:"},{"line_number":187,"context_line":"            net \u003d self.neutron_api.get_network(self.net)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_a2fedaab","line":184,"updated":"2015-11-27 11:12:35.000000000","message":"Redundant arguments addition.","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"393ca1ee056364e2a94c4b0e3eac61c7b3b378e3","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        super(NeutronSingleNetworkPlugin, self).allocate_network("},{"line_number":182,"context_line":"            context, share_server, share_network, **kwargs)"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    def _verify_net_and_subnet(self, net\u003dNone, subnet\u003dNone):"},{"line_number":185,"context_line":"        data \u003d dict(net\u003dself.net, subnet\u003dself.subnet)"},{"line_number":186,"context_line":"        if self.net and self.subnet:"},{"line_number":187,"context_line":"            net \u003d self.neutron_api.get_network(self.net)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_b6fa9b73","line":184,"in_reply_to":"9a8ffd7b_a2fedaab","updated":"2015-11-27 12:00:14.000000000","message":"Done","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2a89d9cb37b567122d7deeb75372511ae5f342b0","unresolved":false,"context_lines":[{"line_number":201,"context_line":"            raise exception.NetworkBadConfigurationException("},{"line_number":202,"context_line":"                \"Share network has nova_net_id set.\")"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"        if not share_network.get(\u0027neutron_net_id\u0027) \u003d\u003d self.net:"},{"line_number":205,"context_line":"            if share_network.get(\u0027neutron_net_id\u0027) is not None:"},{"line_number":206,"context_line":"                raise exception.NetworkBadConfigurationException("},{"line_number":207,"context_line":"                    \"Illegal attempt to change neutron net\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_22e0aaf9","line":204,"updated":"2015-11-27 11:12:35.000000000","message":"if share_network.get(\u0027neutron_net_id\u0027) not in (None, self.net):\n\n    raise","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"393ca1ee056364e2a94c4b0e3eac61c7b3b378e3","unresolved":false,"context_lines":[{"line_number":201,"context_line":"            raise exception.NetworkBadConfigurationException("},{"line_number":202,"context_line":"                \"Share network has nova_net_id set.\")"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"        if not share_network.get(\u0027neutron_net_id\u0027) \u003d\u003d self.net:"},{"line_number":205,"context_line":"            if share_network.get(\u0027neutron_net_id\u0027) is not None:"},{"line_number":206,"context_line":"                raise exception.NetworkBadConfigurationException("},{"line_number":207,"context_line":"                    \"Illegal attempt to change neutron net\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_f63823f0","line":204,"in_reply_to":"9a8ffd7b_22e0aaf9","updated":"2015-11-27 12:00:14.000000000","message":"We still have to update upd dictionary in case we\u0027ve got None. So we\u0027ll get one-liner here, but we\u0027ll have to check for None later. Since we don\u0027t seem to gain anything I\u0027d rather have this unchanged.","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2a89d9cb37b567122d7deeb75372511ae5f342b0","unresolved":false,"context_lines":[{"line_number":204,"context_line":"        if not share_network.get(\u0027neutron_net_id\u0027) \u003d\u003d self.net:"},{"line_number":205,"context_line":"            if share_network.get(\u0027neutron_net_id\u0027) is not None:"},{"line_number":206,"context_line":"                raise exception.NetworkBadConfigurationException("},{"line_number":207,"context_line":"                    \"Illegal attempt to change neutron net\")"},{"line_number":208,"context_line":"            upd[\u0027neutron_net_id\u0027] \u003d self.net"},{"line_number":209,"context_line":"        if not share_network.get(\u0027neutron_subnet_id\u0027) \u003d\u003d self.subnet:"},{"line_number":210,"context_line":"            if share_network.get(\u0027neutron_subnet_id\u0027) is not None:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_a2a57a47","line":207,"updated":"2015-11-27 11:12:35.000000000","message":"\"Illegal\"? Current error message if not clear. user will have questions. We should say explicitly that it is allowed to have either empty value or equal to concrete ID.","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"393ca1ee056364e2a94c4b0e3eac61c7b3b378e3","unresolved":false,"context_lines":[{"line_number":204,"context_line":"        if not share_network.get(\u0027neutron_net_id\u0027) \u003d\u003d self.net:"},{"line_number":205,"context_line":"            if share_network.get(\u0027neutron_net_id\u0027) is not None:"},{"line_number":206,"context_line":"                raise exception.NetworkBadConfigurationException("},{"line_number":207,"context_line":"                    \"Illegal attempt to change neutron net\")"},{"line_number":208,"context_line":"            upd[\u0027neutron_net_id\u0027] \u003d self.net"},{"line_number":209,"context_line":"        if not share_network.get(\u0027neutron_subnet_id\u0027) \u003d\u003d self.subnet:"},{"line_number":210,"context_line":"            if share_network.get(\u0027neutron_subnet_id\u0027) is not None:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_593e008d","line":207,"in_reply_to":"9a8ffd7b_a2a57a47","updated":"2015-11-27 12:00:14.000000000","message":"Thank you, I was struggling with wording this message!","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2a89d9cb37b567122d7deeb75372511ae5f342b0","unresolved":false,"context_lines":[{"line_number":207,"context_line":"                    \"Illegal attempt to change neutron net\")"},{"line_number":208,"context_line":"            upd[\u0027neutron_net_id\u0027] \u003d self.net"},{"line_number":209,"context_line":"        if not share_network.get(\u0027neutron_subnet_id\u0027) \u003d\u003d self.subnet:"},{"line_number":210,"context_line":"            if share_network.get(\u0027neutron_subnet_id\u0027) is not None:"},{"line_number":211,"context_line":"                raise exception.NetworkBadConfigurationException("},{"line_number":212,"context_line":"                    \"Illegal attempt to change neutron subnet\")"},{"line_number":213,"context_line":"            upd[\u0027neutron_subnet_id\u0027] \u003d self.subnet"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_c2e99ee7","line":210,"updated":"2015-11-27 11:12:35.000000000","message":"ditto","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"393ca1ee056364e2a94c4b0e3eac61c7b3b378e3","unresolved":false,"context_lines":[{"line_number":207,"context_line":"                    \"Illegal attempt to change neutron net\")"},{"line_number":208,"context_line":"            upd[\u0027neutron_net_id\u0027] \u003d self.net"},{"line_number":209,"context_line":"        if not share_network.get(\u0027neutron_subnet_id\u0027) \u003d\u003d self.subnet:"},{"line_number":210,"context_line":"            if share_network.get(\u0027neutron_subnet_id\u0027) is not None:"},{"line_number":211,"context_line":"                raise exception.NetworkBadConfigurationException("},{"line_number":212,"context_line":"                    \"Illegal attempt to change neutron subnet\")"},{"line_number":213,"context_line":"            upd[\u0027neutron_subnet_id\u0027] \u003d self.subnet"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_d94af025","line":210,"in_reply_to":"9a8ffd7b_c2e99ee7","updated":"2015-11-27 12:00:14.000000000","message":"ditto again","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2a89d9cb37b567122d7deeb75372511ae5f342b0","unresolved":false,"context_lines":[{"line_number":209,"context_line":"        if not share_network.get(\u0027neutron_subnet_id\u0027) \u003d\u003d self.subnet:"},{"line_number":210,"context_line":"            if share_network.get(\u0027neutron_subnet_id\u0027) is not None:"},{"line_number":211,"context_line":"                raise exception.NetworkBadConfigurationException("},{"line_number":212,"context_line":"                    \"Illegal attempt to change neutron subnet\")"},{"line_number":213,"context_line":"            upd[\u0027neutron_subnet_id\u0027] \u003d self.subnet"},{"line_number":214,"context_line":"        if upd:"},{"line_number":215,"context_line":"            share_network \u003d self.db.share_network_update("}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_a2533a38","line":212,"updated":"2015-11-27 11:12:35.000000000","message":"ditto","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"393ca1ee056364e2a94c4b0e3eac61c7b3b378e3","unresolved":false,"context_lines":[{"line_number":209,"context_line":"        if not share_network.get(\u0027neutron_subnet_id\u0027) \u003d\u003d self.subnet:"},{"line_number":210,"context_line":"            if share_network.get(\u0027neutron_subnet_id\u0027) is not None:"},{"line_number":211,"context_line":"                raise exception.NetworkBadConfigurationException("},{"line_number":212,"context_line":"                    \"Illegal attempt to change neutron subnet\")"},{"line_number":213,"context_line":"            upd[\u0027neutron_subnet_id\u0027] \u003d self.subnet"},{"line_number":214,"context_line":"        if upd:"},{"line_number":215,"context_line":"            share_network \u003d self.db.share_network_update("}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_5965a0b2","line":212,"in_reply_to":"9a8ffd7b_a2533a38","updated":"2015-11-27 12:00:14.000000000","message":"ditto again","commit_id":"17901c0d0a8159e7da501297244e611deca65563"}],"manila/tests/network/neutron/test_neutron_plugin.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2a89d9cb37b567122d7deeb75372511ae5f342b0","unresolved":false,"context_lines":[{"line_number":379,"context_line":"    def test___update_share_network_net_data_same_values(self):"},{"line_number":380,"context_line":"        instance \u003d self._get_neutron_single_network_plugin_instance()"},{"line_number":381,"context_line":"        share_network \u003d {"},{"line_number":382,"context_line":"            \u0027id\u0027: \u0027fake_id\u0027,"},{"line_number":383,"context_line":"            \u0027neutron_net_id\u0027: instance.net,"},{"line_number":384,"context_line":"            \u0027neutron_subnet_id\u0027: instance.subnet,"},{"line_number":385,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_82d95624","line":382,"updated":"2015-11-27 11:12:35.000000000","message":"Why it is added?","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"393ca1ee056364e2a94c4b0e3eac61c7b3b378e3","unresolved":false,"context_lines":[{"line_number":379,"context_line":"    def test___update_share_network_net_data_same_values(self):"},{"line_number":380,"context_line":"        instance \u003d self._get_neutron_single_network_plugin_instance()"},{"line_number":381,"context_line":"        share_network \u003d {"},{"line_number":382,"context_line":"            \u0027id\u0027: \u0027fake_id\u0027,"},{"line_number":383,"context_line":"            \u0027neutron_net_id\u0027: instance.net,"},{"line_number":384,"context_line":"            \u0027neutron_subnet_id\u0027: instance.subnet,"},{"line_number":385,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_d9f75089","line":382,"in_reply_to":"9a8ffd7b_82d95624","updated":"2015-11-27 12:00:14.000000000","message":"Looks like that for no reason right now. It is a leftover from previous activity. Thank you for pointing to it.","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2a89d9cb37b567122d7deeb75372511ae5f342b0","unresolved":false,"context_lines":[{"line_number":426,"context_line":"        self.assertRaises("},{"line_number":427,"context_line":"            exception.NetworkBadConfigurationException,"},{"line_number":428,"context_line":"            instance._update_share_network_net_data,"},{"line_number":429,"context_line":"            self.context, share_network)"},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"    def test___update_share_network_net_data_nova_net_id_present(self):"},{"line_number":432,"context_line":"        instance \u003d self._get_neutron_single_network_plugin_instance()"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_62f55255","line":429,"updated":"2015-11-27 11:12:35.000000000","message":"Need to add:\n\n\"\"\"\n\nself.assertFalse(instance.db.share_network_update.called)\n\n\"\"\"","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"393ca1ee056364e2a94c4b0e3eac61c7b3b378e3","unresolved":false,"context_lines":[{"line_number":426,"context_line":"        self.assertRaises("},{"line_number":427,"context_line":"            exception.NetworkBadConfigurationException,"},{"line_number":428,"context_line":"            instance._update_share_network_net_data,"},{"line_number":429,"context_line":"            self.context, share_network)"},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"    def test___update_share_network_net_data_nova_net_id_present(self):"},{"line_number":432,"context_line":"        instance \u003d self._get_neutron_single_network_plugin_instance()"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_19a2b84b","line":429,"in_reply_to":"9a8ffd7b_62f55255","updated":"2015-11-27 12:00:14.000000000","message":"Ok. Here I have the same question as on L445.","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2a89d9cb37b567122d7deeb75372511ae5f342b0","unresolved":false,"context_lines":[{"line_number":442,"context_line":"            exception.NetworkBadConfigurationException,"},{"line_number":443,"context_line":"            instance._update_share_network_net_data,"},{"line_number":444,"context_line":"            self.context, share_network)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"    @mock.patch.object("},{"line_number":447,"context_line":"        plugin.NeutronNetworkPlugin, \"allocate_network\", mock.Mock())"},{"line_number":448,"context_line":"    def test_allocate_network(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_82f07692","line":445,"updated":"2015-11-27 11:12:35.000000000","message":"Need add following assertion on line 445:\n\n\"\"\"\n\nself.assertFalse(instance.db.share_network_update.called)\n\n\"\"\"\n\nBecause we should verify that DB was not updated.","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"241e619f4c5ecd872430c28230adf767887a933a","unresolved":false,"context_lines":[{"line_number":442,"context_line":"            exception.NetworkBadConfigurationException,"},{"line_number":443,"context_line":"            instance._update_share_network_net_data,"},{"line_number":444,"context_line":"            self.context, share_network)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"    @mock.patch.object("},{"line_number":447,"context_line":"        plugin.NeutronNetworkPlugin, \"allocate_network\", mock.Mock())"},{"line_number":448,"context_line":"    def test_allocate_network(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_6c2d44a7","line":445,"in_reply_to":"9a8ffd7b_79fae444","updated":"2015-11-27 12:07:45.000000000","message":"It would be redundant if we could know its result by some other means that already performed. But it is not so. We use \"black box\" here and verify that DB was not updated.","commit_id":"17901c0d0a8159e7da501297244e611deca65563"},{"author":{"_account_id":6938,"name":"Alexey Ovchinnikov","email":"aovchinnikov@mirantis.com","username":"aovchinnikov"},"change_message_id":"393ca1ee056364e2a94c4b0e3eac61c7b3b378e3","unresolved":false,"context_lines":[{"line_number":442,"context_line":"            exception.NetworkBadConfigurationException,"},{"line_number":443,"context_line":"            instance._update_share_network_net_data,"},{"line_number":444,"context_line":"            self.context, share_network)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"    @mock.patch.object("},{"line_number":447,"context_line":"        plugin.NeutronNetworkPlugin, \"allocate_network\", mock.Mock())"},{"line_number":448,"context_line":"    def test_allocate_network(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a8ffd7b_79fae444","line":445,"in_reply_to":"9a8ffd7b_82f07692","updated":"2015-11-27 12:00:14.000000000","message":"Ok, will add this check, but isn\u0027t it a bit redundant? I mean when exception  is thrown it is thrown, right? So no code after corresponding raise statement is executed this time. Am I missing something?","commit_id":"17901c0d0a8159e7da501297244e611deca65563"}]}
