)]}'
{"neutron/tests/tempest/scenario/test_address_scopes.py":[{"author":{"_account_id":20378,"name":"Trevor McCasland","email":"TM2086@att.com","username":"twm2016"},"change_message_id":"87f68c6f6b382ca8a8463beb1567a52bbbdda65e","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"class AddressScopeTest(base.BaseTempestTestCase):"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    credentials \u003d [\u0027primary\u0027, \u0027admin\u0027]"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    @classmethod"},{"line_number":34,"context_line":"    def resource_setup(cls):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_a0b0048d","line":31,"range":{"start_line":31,"start_character":29,"end_line":31,"end_character":38},"updated":"2017-08-18 15:12:36.000000000","message":"I believe this sets up os_admin for you, however you need to specify admin_client so that the base implementation can find it. so create a function like the following:\n\n    @classmethod\n    def setup_clients(cls):\n        super(AddressScopeTest, cls).setup_clients()\n        cls.admin_client \u003d cls.os_admin.network_client","commit_id":"3fe65c194436ac5b55ed8ec81a5cf58236d1ddf0"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"4c6d44adaaeacb73ebc8858c46aaa1ed7325c6d2","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    credentials \u003d [\u0027primary\u0027, \u0027admin\u0027]"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    @classmethod"},{"line_number":34,"context_line":"    def resource_setup(cls):"},{"line_number":35,"context_line":"        super(AddressScopeTest, cls).resource_setup()"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def _create_address_scope(self, address_scope, is_admin\u003dFalse, **kwargs):"}],"source_content_type":"text/x-python","patch_set":2,"id":"7f287b81_372616d0","line":34,"updated":"2017-08-28 22:06:04.000000000","message":"Since you are not assing resources here, you don\u0027t need to re-define this method here","commit_id":"3fe65c194436ac5b55ed8ec81a5cf58236d1ddf0"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"4c6d44adaaeacb73ebc8858c46aaa1ed7325c6d2","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    def _create_address_scope(self, address_scope, is_admin\u003dFalse, **kwargs):"},{"line_number":38,"context_line":"        return self.create_address_scope(address_scope, is_admin, **kwargs)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def create_instance(self, network\u003dNone, keypair\u003dNone):"},{"line_number":41,"context_line":"        if network is None:"},{"line_number":42,"context_line":"            network \u003d self.network"},{"line_number":43,"context_line":"        if keypair is None:"}],"source_content_type":"text/x-python","patch_set":2,"id":"7f287b81_17755acb","line":40,"range":{"start_line":40,"start_character":8,"end_line":40,"end_character":23},"updated":"2017-08-28 22:06:04.000000000","message":"I think this has to be _create_instance, since it is only used locally in this test","commit_id":"3fe65c194436ac5b55ed8ec81a5cf58236d1ddf0"},{"author":{"_account_id":20378,"name":"Trevor McCasland","email":"TM2086@att.com","username":"twm2016"},"change_message_id":"87f68c6f6b382ca8a8463beb1567a52bbbdda65e","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        1. Create an address scope and a subnet pool"},{"line_number":70,"context_line":"        2. Create 2 internal networks and subnets, one with subnet pool"},{"line_number":71,"context_line":"                in (1) and one without"},{"line_number":72,"context_line":"        3. Make an external network and a subnet associated with the subnet"},{"line_number":73,"context_line":"                pool in (1)"},{"line_number":74,"context_line":"        4. Attach subnets to a router"},{"line_number":75,"context_line":"        6. Boot instances and FIPs on all three networks"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_d78d0b32","line":72,"range":{"start_line":72,"start_character":10,"end_line":72,"end_character":36},"updated":"2017-08-18 15:12:36.000000000","message":"I don\u0027t see any external networks being created.","commit_id":"3fe65c194436ac5b55ed8ec81a5cf58236d1ddf0"},{"author":{"_account_id":20378,"name":"Trevor McCasland","email":"TM2086@att.com","username":"twm2016"},"change_message_id":"87f68c6f6b382ca8a8463beb1567a52bbbdda65e","unresolved":false,"context_lines":[{"line_number":71,"context_line":"                in (1) and one without"},{"line_number":72,"context_line":"        3. Make an external network and a subnet associated with the subnet"},{"line_number":73,"context_line":"                pool in (1)"},{"line_number":74,"context_line":"        4. Attach subnets to a router"},{"line_number":75,"context_line":"        6. Boot instances and FIPs on all three networks"},{"line_number":76,"context_line":"        7. Verify the fixed IP of an instance within same address scope is"},{"line_number":77,"context_line":"                pingable from external network"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_546fd991","line":74,"updated":"2017-08-18 15:12:36.000000000","message":"looks like you skipped number 5 here","commit_id":"3fe65c194436ac5b55ed8ec81a5cf58236d1ddf0"},{"author":{"_account_id":20378,"name":"Trevor McCasland","email":"TM2086@att.com","username":"twm2016"},"change_message_id":"f131bb1175c64a03b8768a49e523d3225e38b712","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        \"\"\""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        address_scope_kwargs \u003d {\u0027ip_version\u0027: 4, \u0027shared\u0027: True}"},{"line_number":83,"context_line":"        address_scope_ip4 \u003d self._create_address_scope("},{"line_number":84,"context_line":"                \u0027scope-ip4\u0027,"},{"line_number":85,"context_line":"                is_admin\u003dTrue,"},{"line_number":86,"context_line":"                **address_scope_kwargs)"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_0ccb7da5","line":83,"updated":"2017-08-21 21:14:57.000000000","message":"also all the resources you define at the top can be moved into the resource_setup function, see https://github.com/openstack/neutron/blob/master/neutron/tests/tempest/scenario/test_floatingip.py#L41 for an example of what you want plus the address scope and subnetpool","commit_id":"3fe65c194436ac5b55ed8ec81a5cf58236d1ddf0"},{"author":{"_account_id":20378,"name":"Trevor McCasland","email":"TM2086@att.com","username":"twm2016"},"change_message_id":"87f68c6f6b382ca8a8463beb1567a52bbbdda65e","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                \u0027shared\u0027: True,"},{"line_number":89,"context_line":"                \u0027prefixes\u0027: [\u0027203.0.113.0/24\u0027],"},{"line_number":90,"context_line":"                \u0027default_prefixlen\u0027: 24}"},{"line_number":91,"context_line":"        subnetpool_ip4 \u003d self.create_subnetpool(\u0027subnet-pool-ip4\u0027,"},{"line_number":92,"context_line":"                        **subnetpool_kwargs)"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        self.network \u003d self.create_network()"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_a02364be","line":91,"updated":"2017-08-18 15:12:36.000000000","message":"creating subnetpools is an admin operation, this causes a network policy error if you don\u0027t specify is_admin\u003dTrue","commit_id":"3fe65c194436ac5b55ed8ec81a5cf58236d1ddf0"},{"author":{"_account_id":20378,"name":"Trevor McCasland","email":"TM2086@att.com","username":"twm2016"},"change_message_id":"87f68c6f6b382ca8a8463beb1567a52bbbdda65e","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        subnetpool_ip4 \u003d self.create_subnetpool(\u0027subnet-pool-ip4\u0027,"},{"line_number":92,"context_line":"                        **subnetpool_kwargs)"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        self.network \u003d self.create_network()"},{"line_number":95,"context_line":"        self.subnet \u003d self.create_subnet(self.network)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        self.network1 \u003d self.create_network()"},{"line_number":98,"context_line":"        self.network2 \u003d self.create_network()"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_aa3fbe85","line":95,"range":{"start_line":94,"start_character":8,"end_line":95,"end_character":54},"updated":"2017-08-18 15:12:36.000000000","message":"Can you remove this and at the end.. pass in the router and call self.setup_network_and_server(router\u003drouter) then add the interface with self.subnet. I think using this over create_instance will result in less bugs/errors since that code has already been reviewed.. plus re-using code is good!","commit_id":"3fe65c194436ac5b55ed8ec81a5cf58236d1ddf0"},{"author":{"_account_id":20378,"name":"Trevor McCasland","email":"TM2086@att.com","username":"twm2016"},"change_message_id":"f131bb1175c64a03b8768a49e523d3225e38b712","unresolved":false,"context_lines":[{"line_number":92,"context_line":"                        **subnetpool_kwargs)"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        self.network \u003d self.create_network()"},{"line_number":95,"context_line":"        self.subnet \u003d self.create_subnet(self.network)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        self.network1 \u003d self.create_network()"},{"line_number":98,"context_line":"        self.network2 \u003d self.create_network()"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_4cd18557","line":95,"in_reply_to":"9f436f4f_aa3fbe85","updated":"2017-08-21 21:14:57.000000000","message":"nevermind, I just saw a lot of overlap in the code. I think we need to explicitly create our subnet and server with the allocation pool.","commit_id":"3fe65c194436ac5b55ed8ec81a5cf58236d1ddf0"},{"author":{"_account_id":20378,"name":"Trevor McCasland","email":"TM2086@att.com","username":"twm2016"},"change_message_id":"87f68c6f6b382ca8a8463beb1567a52bbbdda65e","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                secgroup_id\u003dself.secgroup[\u0027security_group\u0027][\u0027id\u0027])"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"        # Connect subnets to router"},{"line_number":125,"context_line":"        router \u003d self.create_router_by_client()"},{"line_number":126,"context_line":"        self.create_router_interface(router[\u0027id\u0027], self.subnet1[\u0027id\u0027])"},{"line_number":127,"context_line":"        self.create_router_interface(router[\u0027id\u0027], self.subnet2[\u0027id\u0027])"},{"line_number":128,"context_line":"        self.create_router_interface(router[\u0027id\u0027], self.subnet[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_57091b2f","line":125,"updated":"2017-08-18 15:12:36.000000000","message":"pretty sure you need to specify the external_network_id here.","commit_id":"3fe65c194436ac5b55ed8ec81a5cf58236d1ddf0"}]}
