)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"c6870922edd70defcce2dbc298d65e0cbd5b08fc","unresolved":false,"context_lines":[{"line_number":7,"context_line":"add scenario to create / delete subnets in parallel threads"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A lot of IP allocation races can be found if we trigger IPAM code in parallel"},{"line_number":10,"context_line":"threads. So far, no existing rally or tempest scenario ever did it."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Iebea2969d2ed106074677d836043776d30870e42"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5f93b717_1bc9ed24","line":10,"range":{"start_line":10,"start_character":17,"end_line":10,"end_character":34},"updated":"2018-01-30 14:37:29.000000000","message":"Please look at [1][2], it should cover your case.\n\n[1] https://rally.readthedocs.io/en/0.10.0/plugins/plugin_reference.html#neutronnetworks-create-and-delete-subnets-scenario\n[2] https://github.com/openstack/rally/blob/master/rally/plugins/openstack/scenarios/neutron/network.py#L210","commit_id":"2e9090a7f184086a2776cf153bb291f4fd7c9892"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"09b1ddef19c2b9d8fb41f5cdb11674bfe44bee7c","unresolved":false,"context_lines":[{"line_number":7,"context_line":"add scenario to create / delete subnets in parallel threads"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A lot of IP allocation races can be found if we trigger IPAM code in parallel"},{"line_number":10,"context_line":"threads. So far, no existing rally or tempest scenario ever did it."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Iebea2969d2ed106074677d836043776d30870e42"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5f93b717_6a5e1513","line":10,"range":{"start_line":10,"start_character":17,"end_line":10,"end_character":34},"in_reply_to":"5f93b717_1bc9ed24","updated":"2018-01-30 16:57:10.000000000","message":"For what I understand, the scenario you refer to doesn\u0027t delete subnets in multiple threads from the same network. That\u0027s the scenario I would like to cover. That\u0027s why I pre-create a single network and then have multiple concurrent rally tests that create one subnet and delete it. Since those concurrent threads are running in parallel, they should trigger IPAM code without serializing deletion requests on waiting for API result.","commit_id":"2e9090a7f184086a2776cf153bb291f4fd7c9892"}],"rally-jobs/plugins/subnet_scenario.py":[{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"c6870922edd70defcce2dbc298d65e0cbd5b08fc","unresolved":false,"context_lines":[{"line_number":25,"context_line":"@validation.required_services(consts.Service.NEUTRON)"},{"line_number":26,"context_line":"@validation.required_openstack(users\u003dTrue)"},{"line_number":27,"context_line":"@scenario.configure(context\u003d{\"cleanup@openstack\": [\"neutron\"]},"},{"line_number":28,"context_line":"                    name\u003d\"NeutronSubnets.create_and_delete_subnet_in_existing_network\")"},{"line_number":29,"context_line":"class NeutronSubnets(nutils.NeutronScenario):"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def run(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_7bc0312b","line":28,"range":{"start_line":28,"start_character":20,"end_line":28,"end_character":87},"updated":"2018-01-30 14:37:29.000000000","message":"What about moving this scenario to rally repo? it will be easier to maintain it.","commit_id":"2e9090a7f184086a2776cf153bb291f4fd7c9892"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"09b1ddef19c2b9d8fb41f5cdb11674bfe44bee7c","unresolved":false,"context_lines":[{"line_number":25,"context_line":"@validation.required_services(consts.Service.NEUTRON)"},{"line_number":26,"context_line":"@validation.required_openstack(users\u003dTrue)"},{"line_number":27,"context_line":"@scenario.configure(context\u003d{\"cleanup@openstack\": [\"neutron\"]},"},{"line_number":28,"context_line":"                    name\u003d\"NeutronSubnets.create_and_delete_subnet_in_existing_network\")"},{"line_number":29,"context_line":"class NeutronSubnets(nutils.NeutronScenario):"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def run(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_8ab04145","line":28,"range":{"start_line":28,"start_character":20,"end_line":28,"end_character":87},"in_reply_to":"5f93b717_7bc0312b","updated":"2018-01-30 16:57:10.000000000","message":"After we fix race conditions that I try to chase, maybe.","commit_id":"2e9090a7f184086a2776cf153bb291f4fd7c9892"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"c6870922edd70defcce2dbc298d65e0cbd5b08fc","unresolved":false,"context_lines":[{"line_number":29,"context_line":"class NeutronSubnets(nutils.NeutronScenario):"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def run(self):"},{"line_number":32,"context_line":"        # is the same context shared between threads, or it\u0027s a copy?.."},{"line_number":33,"context_line":"        if \u0027subnet_number\u0027 not in self.context[\u0027tenants\u0027][tenant_id]:"},{"line_number":34,"context_line":"            self.context[\u0027tenants\u0027][tenant_id] \u003d 1"},{"line_number":35,"context_line":"        for user, tenant_id in (utils.iterate_per_tenants("}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_1b2d6dfd","line":32,"range":{"start_line":32,"start_character":8,"end_line":32,"end_character":71},"updated":"2018-01-30 14:37:29.000000000","message":"Rally creates a copy of context object of each iteration. Such behavior decreases the ability to shoot in the foot.\n\nIf there are several networks in context object, you can use iteration number to balance the usage of networks.","commit_id":"2e9090a7f184086a2776cf153bb291f4fd7c9892"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"09b1ddef19c2b9d8fb41f5cdb11674bfe44bee7c","unresolved":false,"context_lines":[{"line_number":29,"context_line":"class NeutronSubnets(nutils.NeutronScenario):"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def run(self):"},{"line_number":32,"context_line":"        # is the same context shared between threads, or it\u0027s a copy?.."},{"line_number":33,"context_line":"        if \u0027subnet_number\u0027 not in self.context[\u0027tenants\u0027][tenant_id]:"},{"line_number":34,"context_line":"            self.context[\u0027tenants\u0027][tenant_id] \u003d 1"},{"line_number":35,"context_line":"        for user, tenant_id in (utils.iterate_per_tenants("}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_0aebd112","line":32,"range":{"start_line":32,"start_character":8,"end_line":32,"end_character":71},"in_reply_to":"5f93b717_1b2d6dfd","updated":"2018-01-30 16:57:10.000000000","message":"I don\u0027t think you understand the goal of the scenario. It\u0027s to delete subnets in parallel in same network. I need the iteration number to create subnets with unique CIDRs though. I may also look into using neutron subnetpool instead to allocate prefixes for subnets, then I shouldn\u0027t need the iteration number. Since you suggest that context object is a copy and hence can\u0027t be used to synchronize between concurrent runs, I guess I will need to explore subnetpool path.","commit_id":"2e9090a7f184086a2776cf153bb291f4fd7c9892"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c0d430683095b020ef112590123d8045c6e0cc5b","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def run(self):"},{"line_number":32,"context_line":"        # is the same context shared between threads, or it\u0027s a copy?.."},{"line_number":33,"context_line":"        if \u0027subnet_number\u0027 not in self.context[\u0027tenants\u0027][tenant_id]:"},{"line_number":34,"context_line":"            self.context[\u0027tenants\u0027][tenant_id] \u003d 1"},{"line_number":35,"context_line":"        for user, tenant_id in (utils.iterate_per_tenants("},{"line_number":36,"context_line":"                self.context.get(\"users\", []))):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_7f0ef032","line":33,"updated":"2018-01-29 21:52:14.000000000","message":"maybe I need to introduce some other context that would initialize the iterator for me before the first thread hits this run(). But it makes sense to explore it once we confirm that self.context is not a copy in the first place.","commit_id":"2e9090a7f184086a2776cf153bb291f4fd7c9892"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"c6870922edd70defcce2dbc298d65e0cbd5b08fc","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        # is the same context shared between threads, or it\u0027s a copy?.."},{"line_number":33,"context_line":"        if \u0027subnet_number\u0027 not in self.context[\u0027tenants\u0027][tenant_id]:"},{"line_number":34,"context_line":"            self.context[\u0027tenants\u0027][tenant_id] \u003d 1"},{"line_number":35,"context_line":"        for user, tenant_id in (utils.iterate_per_tenants("},{"line_number":36,"context_line":"                self.context.get(\"users\", []))):"},{"line_number":37,"context_line":"            for network in self.context[\"tenants\"][tenant_id][\"networks\"]:"},{"line_number":38,"context_line":"                n \u003d self.context[\"tenants\"][tenant_id][\"subnet_number\"]"},{"line_number":39,"context_line":"                subnet \u003d self._create_subnet("}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_9b297de7","line":36,"range":{"start_line":35,"start_character":8,"end_line":36,"end_character":48},"updated":"2018-01-30 14:37:29.000000000","message":"what are you trying to do here?","commit_id":"2e9090a7f184086a2776cf153bb291f4fd7c9892"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"09b1ddef19c2b9d8fb41f5cdb11674bfe44bee7c","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        # is the same context shared between threads, or it\u0027s a copy?.."},{"line_number":33,"context_line":"        if \u0027subnet_number\u0027 not in self.context[\u0027tenants\u0027][tenant_id]:"},{"line_number":34,"context_line":"            self.context[\u0027tenants\u0027][tenant_id] \u003d 1"},{"line_number":35,"context_line":"        for user, tenant_id in (utils.iterate_per_tenants("},{"line_number":36,"context_line":"                self.context.get(\"users\", []))):"},{"line_number":37,"context_line":"            for network in self.context[\"tenants\"][tenant_id][\"networks\"]:"},{"line_number":38,"context_line":"                n \u003d self.context[\"tenants\"][tenant_id][\"subnet_number\"]"},{"line_number":39,"context_line":"                subnet \u003d self._create_subnet("}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_aadbbd79","line":36,"range":{"start_line":35,"start_character":8,"end_line":36,"end_character":48},"in_reply_to":"5f93b717_9b297de7","updated":"2018-01-30 16:57:10.000000000","message":"I am merely copying code from some other plugin. I admit I don\u0027t fully understand why it may be needed.","commit_id":"2e9090a7f184086a2776cf153bb291f4fd7c9892"}]}
