)]}'
{"neutron_lib/clients/placement.py":[{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"c784493e0a5c51f4736489e39878fae6dc742c51","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        :param resource_provider_uuid: UUID of the resource provider"},{"line_number":95,"context_line":"        :type resource_provider_uuid: str"},{"line_number":96,"context_line":"        :param parent_provider_uuid: UUID of the resource provider tree parent"},{"line_number":97,"context_line":"        :type parent_provider_uuid: str"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        \"\"\""},{"line_number":100,"context_line":"        url \u003d \u0027/resource_providers\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_0127fd14","line":97,"range":{"start_line":97,"start_character":8,"end_line":97,"end_character":39},"updated":"2017-10-18 12:43:56.000000000","message":"Nit: we haven\u0027t been using the type param to doc the APIs, tho I suppose its fine (just not consistent).","commit_id":"d3fe187815a7a37de97046902cacb93069df487c"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"6104b88de90aeb5a7f5a862c0c01dbf5966da2f3","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        :param resource_provider_uuid: UUID of the resource provider"},{"line_number":95,"context_line":"        :type resource_provider_uuid: str"},{"line_number":96,"context_line":"        :param parent_provider_uuid: UUID of the resource provider tree parent"},{"line_number":97,"context_line":"        :type parent_provider_uuid: str"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        \"\"\""},{"line_number":100,"context_line":"        url \u003d \u0027/resource_providers\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_9f3b3d9b","line":97,"range":{"start_line":97,"start_character":8,"end_line":97,"end_character":39},"in_reply_to":"3f4b6375_0127fd14","updated":"2017-10-18 16:57:59.000000000","message":"This is and old patch without the UTs and \"type\" in docs.\n\nMy bad!!","commit_id":"d3fe187815a7a37de97046902cacb93069df487c"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"ee3389e8ae7bfe5cf3cd01c4844820cebf66a3bd","unresolved":false,"context_lines":[{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    @check_placement_api_available"},{"line_number":90,"context_line":"    def get_resource_provider(self, resource_provider_uuid):"},{"line_number":91,"context_line":"        \"\"\"Get resource provider inventory."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"        :param resource_provider_uuid: UUID of the resource provider."},{"line_number":94,"context_line":"        :raises PlacementResourceProviderNotFound: If the resource provider is"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_944ade52","line":91,"updated":"2017-10-19 19:15:38.000000000","message":"You\u0027re just getting the resource provider, not inventory.","commit_id":"e52b383c8f5d1452a35a57bc80482c38be26b7ff"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"76d1117ccd7735c03505dfe302e011b49d4c3450","unresolved":false,"context_lines":[{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    @check_placement_api_available"},{"line_number":90,"context_line":"    def get_resource_provider(self, resource_provider_uuid):"},{"line_number":91,"context_line":"        \"\"\"Get resource provider inventory."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"        :param resource_provider_uuid: UUID of the resource provider."},{"line_number":94,"context_line":"        :raises PlacementResourceProviderNotFound: If the resource provider is"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_800e0e8b","line":91,"in_reply_to":"3f4b6375_944ade52","updated":"2017-10-20 08:55:26.000000000","message":"Sorry!","commit_id":"e52b383c8f5d1452a35a57bc80482c38be26b7ff"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"ee3389e8ae7bfe5cf3cd01c4844820cebf66a3bd","unresolved":false,"context_lines":[{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        :param resource_provider_uuid: UUID of the resource provider."},{"line_number":111,"context_line":"        :param parent_provider_uuid: UUID of the resource provider tree parent."},{"line_number":112,"context_line":"        :returns: A list of Resource Provider matching the filters."},{"line_number":113,"context_line":"        \"\"\""},{"line_number":114,"context_line":"        url \u003d \u0027/resource_providers\u0027"},{"line_number":115,"context_line":"        filters \u003d {}"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_14f38e0c","line":112,"updated":"2017-10-19 19:15:38.000000000","message":"This isn\u0027t going to work like you\u0027ve described.\n\nIf you set the tree filter, it\u0027s value is a resource provider uuid and what will be returned are all the resource providers in the tree of which this uuid is a member. It doesn\u0027t have to be the parent.\n\nSee line 93 in https://review.openstack.org/#/c/384807/55/nova/api/openstack/placement/handlers/resource_provider.py\n\nUsing the \u0027uuid\u0027 parameter, as you\u0027ve done it, works the same as get_resource_provider, so I\u0027m not sure how useful that is.\n\n\u0027resources\u0027, \u0027member_of\u0027 and \u0027name\u0027 query parameters also exist.","commit_id":"e52b383c8f5d1452a35a57bc80482c38be26b7ff"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"76d1117ccd7735c03505dfe302e011b49d4c3450","unresolved":false,"context_lines":[{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        :param resource_provider_uuid: UUID of the resource provider."},{"line_number":111,"context_line":"        :param parent_provider_uuid: UUID of the resource provider tree parent."},{"line_number":112,"context_line":"        :returns: A list of Resource Provider matching the filters."},{"line_number":113,"context_line":"        \"\"\""},{"line_number":114,"context_line":"        url \u003d \u0027/resource_providers\u0027"},{"line_number":115,"context_line":"        filters \u003d {}"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_6049d289","line":112,"in_reply_to":"3f4b6375_14f38e0c","updated":"2017-10-20 08:55:26.000000000","message":"uuid: you are right, is the same as \"get_resource_provider\u0027\n\ntree: you are right too, this filter is not going to give me the tree under this UUID. This filter will retrieve the root_id of this register and will return the whole tree. If we need just the tree under parent_provider_uuid, we need to prune the tree manually. BTW, this function in placement could be very useful.","commit_id":"e52b383c8f5d1452a35a57bc80482c38be26b7ff"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"dc48db64b1f92e774771b0db4a7ca5d9b95f3b96","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        url \u003d \u0027/resource_providers\u0027"},{"line_number":128,"context_line":"        args, _, _, f_locals \u003d inspect.getargvalues(inspect.currentframe())"},{"line_number":129,"context_line":"        filters \u003d {arg: f_locals[arg] for arg in args"},{"line_number":130,"context_line":"                   if f_locals[arg] and arg !\u003d \u0027self\u0027}"},{"line_number":131,"context_line":"        return self._get(url, headers\u003d{API_VERSION_REQUEST_HEADER:"},{"line_number":132,"context_line":"                                       self._openstack_api_version},"},{"line_number":133,"context_line":"                         **filters).json()"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_6e606a02","line":130,"updated":"2017-10-23 18:13:28.000000000","message":"This seems a dubious optimization for 5 kwargs.","commit_id":"0b7241b0a41f19eb26ea35fd795e242ebe680ee6"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"1dd672c827f1e56764a10220bdda52506c0feb53","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        url \u003d \u0027/resource_providers\u0027"},{"line_number":128,"context_line":"        args, _, _, f_locals \u003d inspect.getargvalues(inspect.currentframe())"},{"line_number":129,"context_line":"        filters \u003d {arg: f_locals[arg] for arg in args"},{"line_number":130,"context_line":"                   if f_locals[arg] and arg !\u003d \u0027self\u0027}"},{"line_number":131,"context_line":"        return self._get(url, headers\u003d{API_VERSION_REQUEST_HEADER:"},{"line_number":132,"context_line":"                                       self._openstack_api_version},"},{"line_number":133,"context_line":"                         **filters).json()"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_06b9c1e7","line":130,"in_reply_to":"3f4b6375_066e6cc8","updated":"2017-10-24 14:55:41.000000000","message":"Since I\u0027m not a regular neutron contributor I don\u0027t know what the standards are here. I certainly wouldn\u0027t -1 on just this, instead just comment. To me it has two flaws: a) it is hard to read and involved some deep python knowledge, b) it requires making a new import of inspect\n\nNumber of lines is (to me) an important metric. What\u0027s more important is readability and maintainability.","commit_id":"0b7241b0a41f19eb26ea35fd795e242ebe680ee6"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"b3019b095f601569dabe403c323a5ddb326f6d39","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        url \u003d \u0027/resource_providers\u0027"},{"line_number":128,"context_line":"        args, _, _, f_locals \u003d inspect.getargvalues(inspect.currentframe())"},{"line_number":129,"context_line":"        filters \u003d {arg: f_locals[arg] for arg in args"},{"line_number":130,"context_line":"                   if f_locals[arg] and arg !\u003d \u0027self\u0027}"},{"line_number":131,"context_line":"        return self._get(url, headers\u003d{API_VERSION_REQUEST_HEADER:"},{"line_number":132,"context_line":"                                       self._openstack_api_version},"},{"line_number":133,"context_line":"                         **filters).json()"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_e8a400a8","line":130,"in_reply_to":"3f4b6375_06b9c1e7","updated":"2017-11-06 08:27:09.000000000","message":"I\u0027ll change that but I don\u0027t agree with the change at all.","commit_id":"0b7241b0a41f19eb26ea35fd795e242ebe680ee6"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"46cf7f34eb17cb8e1433d1c125b19239df0c5f5e","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        url \u003d \u0027/resource_providers\u0027"},{"line_number":128,"context_line":"        args, _, _, f_locals \u003d inspect.getargvalues(inspect.currentframe())"},{"line_number":129,"context_line":"        filters \u003d {arg: f_locals[arg] for arg in args"},{"line_number":130,"context_line":"                   if f_locals[arg] and arg !\u003d \u0027self\u0027}"},{"line_number":131,"context_line":"        return self._get(url, headers\u003d{API_VERSION_REQUEST_HEADER:"},{"line_number":132,"context_line":"                                       self._openstack_api_version},"},{"line_number":133,"context_line":"                         **filters).json()"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_066e6cc8","line":130,"in_reply_to":"3f4b6375_6e606a02","updated":"2017-10-24 08:47:22.000000000","message":"The alternative is:\nif name:\n  filters[\u0027name\u0027] \u003d name ..... five times.\n\n3 lines vs 10 lines, that\u0027s why I prefer this method.\n\nThere is another alternative, which is don\u0027t like to use, which is to accept **kwargs. But I want to specify the possible input arguments accepted.\n\nIf you are really againts this implementation and want an imperative way (writting directly the filter variables), please let me know.","commit_id":"0b7241b0a41f19eb26ea35fd795e242ebe680ee6"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"ba059fe6a6085b0734e9890269eb8ba9b7218c8e","unresolved":false,"context_lines":[{"line_number":143,"context_line":"                          providers that are associated with."},{"line_number":144,"context_line":"                          NOTE: placement 1.3 needed."},{"line_number":145,"context_line":"        :param resources: Dictionary of resource classes and requested values."},{"line_number":146,"context_line":"        :param tree: UUID of a resource provider that the caller wants to"},{"line_number":147,"context_line":"                     limit the returned providers to those within its"},{"line_number":148,"context_line":"                     \u0027provider tree\u0027. The returned list will contain only"},{"line_number":149,"context_line":"                     resource providers with the root_provider_id of the"},{"line_number":150,"context_line":"                     resource provider with UUID \u003d\u003d tree_uuid."},{"line_number":151,"context_line":"                     NOTE: placement 1.11 needed."},{"line_number":152,"context_line":"        :param uuid: UUID of the resource provider."},{"line_number":153,"context_line":"        :returns: A list of Resource Provider matching the filters."},{"line_number":154,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":12,"id":"9f91af0f_ec04691a","line":151,"range":{"start_line":146,"start_character":8,"end_line":151,"end_character":49},"updated":"2018-01-09 13:21:01.000000000","message":"as per this change\nhttps://review.openstack.org/#/c/384807/\ntree is now in_tree","commit_id":"b9e2b92fdb7c1516d60cc83c4a05f4982929a2a0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"495db86f44c17dd3a599b41675f9f63942c16a9c","unresolved":false,"context_lines":[{"line_number":143,"context_line":"                          providers that are associated with."},{"line_number":144,"context_line":"                          NOTE: placement 1.3 needed."},{"line_number":145,"context_line":"        :param resources: Dictionary of resource classes and requested values."},{"line_number":146,"context_line":"        :param tree: UUID of a resource provider that the caller wants to"},{"line_number":147,"context_line":"                     limit the returned providers to those within its"},{"line_number":148,"context_line":"                     \u0027provider tree\u0027. The returned list will contain only"},{"line_number":149,"context_line":"                     resource providers with the root_provider_id of the"},{"line_number":150,"context_line":"                     resource provider with UUID \u003d\u003d tree_uuid."},{"line_number":151,"context_line":"                     NOTE: placement 1.11 needed."},{"line_number":152,"context_line":"        :param uuid: UUID of the resource provider."},{"line_number":153,"context_line":"        :returns: A list of Resource Provider matching the filters."},{"line_number":154,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":12,"id":"7f96bb07_eda17197","line":151,"range":{"start_line":146,"start_character":8,"end_line":151,"end_character":49},"in_reply_to":"9f91af0f_ec04691a","updated":"2018-01-10 19:05:46.000000000","message":"Done","commit_id":"b9e2b92fdb7c1516d60cc83c4a05f4982929a2a0"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ff15eac2c5877a2162fb0e567c57163de9beddf3","unresolved":false,"context_lines":[{"line_number":165,"context_line":"        if uuid:"},{"line_number":166,"context_line":"            filters[\u0027uuid\u0027] \u003d uuid"},{"line_number":167,"context_line":"        return self._get(url, headers\u003d{API_VERSION_REQUEST_HEADER:"},{"line_number":168,"context_line":"                                       self._openstack_api_version},"},{"line_number":169,"context_line":"                         **filters).json()"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    @_check_placement_api_available"}],"source_content_type":"text/x-python","patch_set":13,"id":"7f96bb07_8ee5c00b","line":168,"updated":"2018-01-16 09:09:21.000000000","message":"shouldn\u0027t You then bump default version to required here 1.3 or maybe not use self._openstack_api_version here, and calculate minumum version based on parameters? So something like:\n\n    if member_of !\u003d None:\n        api_version \u003d \"placement 1.3\"\n    if in_tree !\u003d None:\n        api_version\u003d\"placement 1.14\"","commit_id":"c7c592f3b3ce4b821ef2d14666197b0dff90b744"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"fd1bbf7974a9f915d90db2de7725852ad5e393f0","unresolved":false,"context_lines":[{"line_number":165,"context_line":"        if uuid:"},{"line_number":166,"context_line":"            filters[\u0027uuid\u0027] \u003d uuid"},{"line_number":167,"context_line":"        return self._get(url, headers\u003d{API_VERSION_REQUEST_HEADER:"},{"line_number":168,"context_line":"                                       self._openstack_api_version},"},{"line_number":169,"context_line":"                         **filters).json()"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    @_check_placement_api_available"}],"source_content_type":"text/x-python","patch_set":13,"id":"7f96bb07_57901296","line":168,"in_reply_to":"7f96bb07_8ee5c00b","updated":"2018-01-21 19:58:37.000000000","message":"Actually the Placement API version is something defined when the class is initialized (L66). I\u0027ll check, for those parameters, if the version configured is enough. If not, I\u0027ll raise an exception.","commit_id":"c7c592f3b3ce4b821ef2d14666197b0dff90b744"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"d24af5eb6c3fd2590d0b046eeb4c791236ef8e5b","unresolved":false,"context_lines":[{"line_number":28,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"API_VERSION_REQUEST_HEADER \u003d \u0027OpenStack-API-Version\u0027"},{"line_number":31,"context_line":"PLACEMENT_API_WITH_AGGREGATES \u003d \u0027placement 1.1\u0027"},{"line_number":32,"context_line":"PLACEMENT_API_WITH_MEMBER_OF \u003d \u0027placement 1.3\u0027"},{"line_number":33,"context_line":"PLACEMENT_API_WITH_NESTED_RESOURCES \u003d \u0027placement 1.14\u0027"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def _check_placement_api_available(f):"}],"source_content_type":"text/x-python","patch_set":16,"id":"3fa0c359_ab6299ac","line":33,"range":{"start_line":31,"start_character":0,"end_line":33,"end_character":54},"updated":"2018-02-13 14:28:46.000000000","message":"by this change the PLACEMENT_API_WITH_AGGREGATES constant will be unused, good question what to do with it:\n- delete?\n- add instead of constants a list of supported versions?","commit_id":"b093950f14f93253c99cc374c9e2d1e92678f7f1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"788117b7b53ebf4554f78056f96796e59979d047","unresolved":false,"context_lines":[{"line_number":28,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"API_VERSION_REQUEST_HEADER \u003d \u0027OpenStack-API-Version\u0027"},{"line_number":31,"context_line":"PLACEMENT_API_WITH_AGGREGATES \u003d \u0027placement 1.1\u0027"},{"line_number":32,"context_line":"PLACEMENT_API_WITH_MEMBER_OF \u003d \u0027placement 1.3\u0027"},{"line_number":33,"context_line":"PLACEMENT_API_WITH_NESTED_RESOURCES \u003d \u0027placement 1.14\u0027"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def _check_placement_api_available(f):"}],"source_content_type":"text/x-python","patch_set":16,"id":"3fa0c359_e20a34d0","line":33,"range":{"start_line":31,"start_character":0,"end_line":33,"end_character":54},"in_reply_to":"3fa0c359_ab6299ac","updated":"2018-02-22 10:05:25.000000000","message":"good point. I will remove it","commit_id":"b093950f14f93253c99cc374c9e2d1e92678f7f1"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"b58b704a2b19db21e4950b08e2eb3f97f7dd18fc","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        # clean slate."},{"line_number":81,"context_line":"        self._resource_providers \u003d {}"},{"line_number":82,"context_line":"        self._provider_aggregate_map \u003d {}"},{"line_number":83,"context_line":"        auth_plugin \u003d keystone.load_auth_from_conf_options("},{"line_number":84,"context_line":"            self._conf, \u0027placement\u0027)"},{"line_number":85,"context_line":"        return keystone.load_session_from_conf_options("},{"line_number":86,"context_line":"            self._conf, \u0027placement\u0027, auth\u003dauth_plugin,"},{"line_number":87,"context_line":"            additional_headers\u003d{\u0027accept\u0027: \u0027application/json\u0027})"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    def _get(self, url, **kwargs):"},{"line_number":90,"context_line":"        return self._client.get(url, endpoint_filter\u003dself._ks_filter,"}],"source_content_type":"text/x-python","patch_set":16,"id":"3fa0c359_fbcc9d62","line":87,"range":{"start_line":83,"start_character":8,"end_line":87,"end_character":62},"updated":"2018-02-16 09:32:28.000000000","message":"This is not related to this patch but I was only able to make this work if I added this line before auth_plugin \u003d ...:\n\nkeystone.register_auth_conf_options(self._conf, \u0027placement\u0027)","commit_id":"b093950f14f93253c99cc374c9e2d1e92678f7f1"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"bdff727ee195fffa177eb378061fe5caafa97367","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        # clean slate."},{"line_number":81,"context_line":"        self._resource_providers \u003d {}"},{"line_number":82,"context_line":"        self._provider_aggregate_map \u003d {}"},{"line_number":83,"context_line":"        auth_plugin \u003d keystone.load_auth_from_conf_options("},{"line_number":84,"context_line":"            self._conf, \u0027placement\u0027)"},{"line_number":85,"context_line":"        return keystone.load_session_from_conf_options("},{"line_number":86,"context_line":"            self._conf, \u0027placement\u0027, auth\u003dauth_plugin,"},{"line_number":87,"context_line":"            additional_headers\u003d{\u0027accept\u0027: \u0027application/json\u0027})"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    def _get(self, url, **kwargs):"},{"line_number":90,"context_line":"        return self._client.get(url, endpoint_filter\u003dself._ks_filter,"}],"source_content_type":"text/x-python","patch_set":16,"id":"3fa0c359_d11fc069","line":87,"range":{"start_line":83,"start_character":8,"end_line":87,"end_character":62},"in_reply_to":"3fa0c359_227a5cb9","updated":"2018-02-22 13:39:38.000000000","message":"I tried it from neutron.","commit_id":"b093950f14f93253c99cc374c9e2d1e92678f7f1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"788117b7b53ebf4554f78056f96796e59979d047","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        # clean slate."},{"line_number":81,"context_line":"        self._resource_providers \u003d {}"},{"line_number":82,"context_line":"        self._provider_aggregate_map \u003d {}"},{"line_number":83,"context_line":"        auth_plugin \u003d keystone.load_auth_from_conf_options("},{"line_number":84,"context_line":"            self._conf, \u0027placement\u0027)"},{"line_number":85,"context_line":"        return keystone.load_session_from_conf_options("},{"line_number":86,"context_line":"            self._conf, \u0027placement\u0027, auth\u003dauth_plugin,"},{"line_number":87,"context_line":"            additional_headers\u003d{\u0027accept\u0027: \u0027application/json\u0027})"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    def _get(self, url, **kwargs):"},{"line_number":90,"context_line":"        return self._client.get(url, endpoint_filter\u003dself._ks_filter,"}],"source_content_type":"text/x-python","patch_set":16,"id":"3fa0c359_227a5cb9","line":87,"range":{"start_line":83,"start_character":8,"end_line":87,"end_character":62},"in_reply_to":"3fa0c359_fbcc9d62","updated":"2018-02-22 10:05:25.000000000","message":"but did You try to use it separately or inside e.g. neutron?","commit_id":"b093950f14f93253c99cc374c9e2d1e92678f7f1"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"d24af5eb6c3fd2590d0b046eeb4c791236ef8e5b","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        return self._client.delete(url, endpoint_filter\u003dself._ks_filter,"},{"line_number":103,"context_line":"                                   **kwargs)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def _read_version(self, openstack_api_version):"},{"line_number":106,"context_line":"        match \u003d re.search(r\"placement (?P\u003capi_version\u003e\\d+\\.\\d+)\","},{"line_number":107,"context_line":"                          openstack_api_version)"},{"line_number":108,"context_line":"        return versionutils.convert_version_to_tuple("}],"source_content_type":"text/x-python","patch_set":16,"id":"3fa0c359_abd4d948","line":105,"range":{"start_line":105,"start_character":8,"end_line":105,"end_character":21},"updated":"2018-02-13 14:28:46.000000000","message":"If I understand well it is more _get_version as this method doesn\u0027t actually read the version but returns \u00271.14\u0027 from \u0027placement 1.14\u0027 as an example.","commit_id":"b093950f14f93253c99cc374c9e2d1e92678f7f1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"788117b7b53ebf4554f78056f96796e59979d047","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        return self._client.delete(url, endpoint_filter\u003dself._ks_filter,"},{"line_number":103,"context_line":"                                   **kwargs)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def _read_version(self, openstack_api_version):"},{"line_number":106,"context_line":"        match \u003d re.search(r\"placement (?P\u003capi_version\u003e\\d+\\.\\d+)\","},{"line_number":107,"context_line":"                          openstack_api_version)"},{"line_number":108,"context_line":"        return versionutils.convert_version_to_tuple("}],"source_content_type":"text/x-python","patch_set":16,"id":"3fa0c359_828010f9","line":105,"range":{"start_line":105,"start_character":8,"end_line":105,"end_character":21},"in_reply_to":"3fa0c359_abd4d948","updated":"2018-02-22 10:05:25.000000000","message":"right, I moved it to single function and renamed it","commit_id":"b093950f14f93253c99cc374c9e2d1e92678f7f1"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"435fd25966b4fd952e0e100201cafd9c8f8c7c55","unresolved":false,"context_lines":[{"line_number":160,"context_line":"                        resource provider with UUID \u003d\u003d tree_uuid."},{"line_number":161,"context_line":"                        NOTE: placement 1.14 needed."},{"line_number":162,"context_line":"        :param uuid: UUID of the resource provider."},{"line_number":163,"context_line":"        :returns: A list of Resource Provider matching the filters."},{"line_number":164,"context_line":"        \"\"\""},{"line_number":165,"context_line":"        url \u003d \u0027/resource_providers\u0027"},{"line_number":166,"context_line":"        filters \u003d {}"}],"source_content_type":"text/x-python","patch_set":17,"id":"3fa0c359_0f914352","line":163,"updated":"2018-02-26 15:43:42.000000000","message":"Nit: add raises for PlacementAPIVersionIncorrect","commit_id":"b1c9e221825bc4ed257b556c42ed124c4159d4a3"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"51f3091db825d2c422e8864685f754501b0cdcda","unresolved":false,"context_lines":[{"line_number":160,"context_line":"                        resource provider with UUID \u003d\u003d tree_uuid."},{"line_number":161,"context_line":"                        NOTE: placement 1.14 needed."},{"line_number":162,"context_line":"        :param uuid: UUID of the resource provider."},{"line_number":163,"context_line":"        :returns: A list of Resource Provider matching the filters."},{"line_number":164,"context_line":"        \"\"\""},{"line_number":165,"context_line":"        url \u003d \u0027/resource_providers\u0027"},{"line_number":166,"context_line":"        filters \u003d {}"}],"source_content_type":"text/x-python","patch_set":17,"id":"3fa0c359_f7c70944","line":163,"in_reply_to":"3fa0c359_0f914352","updated":"2018-02-26 19:18:57.000000000","message":"Done here and also above :)","commit_id":"b1c9e221825bc4ed257b556c42ed124c4159d4a3"}],"neutron_lib/exceptions/placement.py":[{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"435fd25966b4fd952e0e100201cafd9c8f8c7c55","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class PlacementAPIVersionIncorrect(exceptions.NotFound):"},{"line_number":43,"context_line":"    message \u003d _(\"Placement API version %(current_version)s, do not meet the\""},{"line_number":44,"context_line":"                \"needed version %(needed_version)s\")"}],"source_content_type":"text/x-python","patch_set":17,"id":"3fa0c359_af9b6f70","line":44,"updated":"2018-02-26 15:43:42.000000000","message":"Nit: missing period at end of sentence for consistency.","commit_id":"b1c9e221825bc4ed257b556c42ed124c4159d4a3"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"51f3091db825d2c422e8864685f754501b0cdcda","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class PlacementAPIVersionIncorrect(exceptions.NotFound):"},{"line_number":43,"context_line":"    message \u003d _(\"Placement API version %(current_version)s, do not meet the\""},{"line_number":44,"context_line":"                \"needed version %(needed_version)s\")"}],"source_content_type":"text/x-python","patch_set":17,"id":"3fa0c359_57defd10","line":44,"in_reply_to":"3fa0c359_af9b6f70","updated":"2018-02-26 19:18:57.000000000","message":"Done","commit_id":"b1c9e221825bc4ed257b556c42ed124c4159d4a3"}],"neutron_lib/tests/unit/clients/test_placement.py":[{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"ee3389e8ae7bfe5cf3cd01c4844820cebf66a3bd","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    def test_get_resource_provider(self):"},{"line_number":54,"context_line":"        self.placement_api_client.get_resource_provider(\u0027r_provider_1\u0027)"},{"line_number":55,"context_line":"        self.mock_get.assert_called_once_with("},{"line_number":56,"context_line":"            \u0027/resource_providers/r_provider_1\u0027)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def test_get_resource_provider_no_resource_provider(self):"},{"line_number":59,"context_line":"        self.mock_get.side_effect \u003d ks_exc.NotFound()"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_34d8ca51","line":56,"updated":"2017-10-19 19:15:38.000000000","message":"This does check that the args passed are passed correctly, but it gives the impression that the url can be a name like that. It can\u0027t. It must be a uuid. That\u0027s not what you\u0027re testing here, so it is okay, but I\u0027m not sure if you want to be clear about it or not.","commit_id":"e52b383c8f5d1452a35a57bc80482c38be26b7ff"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"76d1117ccd7735c03505dfe302e011b49d4c3450","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    def test_get_resource_provider(self):"},{"line_number":54,"context_line":"        self.placement_api_client.get_resource_provider(\u0027r_provider_1\u0027)"},{"line_number":55,"context_line":"        self.mock_get.assert_called_once_with("},{"line_number":56,"context_line":"            \u0027/resource_providers/r_provider_1\u0027)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def test_get_resource_provider_no_resource_provider(self):"},{"line_number":59,"context_line":"        self.mock_get.side_effect \u003d ks_exc.NotFound()"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_db687788","line":56,"in_reply_to":"3f4b6375_34d8ca51","updated":"2017-10-20 08:55:26.000000000","message":"I\u0027ll change this patch and https://review.openstack.org/#/c/511936/ to generate an UUID to be more accurate.","commit_id":"e52b383c8f5d1452a35a57bc80482c38be26b7ff"}],"releasenotes/notes/placement-resource-provider-functions-17ec45f714ea2b23.yaml":[{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"dc48db64b1f92e774771b0db4a7ca5d9b95f3b96","unresolved":false,"context_lines":[{"line_number":1,"context_line":"features:"},{"line_number":2,"context_line":"  - Added list_resource_providers function to the Placement API client, which"},{"line_number":3,"context_line":"    allows to retrieve a list of Resource Providers filtering by UUID or parent"},{"line_number":4,"context_line":"    UUID."},{"line_number":5,"context_line":"  - Added get_resource_provider function to the Placement API client, which"},{"line_number":6,"context_line":"    allows to retrieve an specific Resource Provider by its UUID."}],"source_content_type":"text/x-yaml","patch_set":6,"id":"3f4b6375_d405ac12","line":4,"updated":"2017-10-23 18:13:28.000000000","message":"This is no longer fully accurate with keywords you\u0027ve added.","commit_id":"0b7241b0a41f19eb26ea35fd795e242ebe680ee6"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"46cf7f34eb17cb8e1433d1c125b19239df0c5f5e","unresolved":false,"context_lines":[{"line_number":1,"context_line":"features:"},{"line_number":2,"context_line":"  - Added list_resource_providers function to the Placement API client, which"},{"line_number":3,"context_line":"    allows to retrieve a list of Resource Providers filtering by UUID or parent"},{"line_number":4,"context_line":"    UUID."},{"line_number":5,"context_line":"  - Added get_resource_provider function to the Placement API client, which"},{"line_number":6,"context_line":"    allows to retrieve an specific Resource Provider by its UUID."}],"source_content_type":"text/x-yaml","patch_set":6,"id":"3f4b6375_e67230ad","line":4,"in_reply_to":"3f4b6375_d405ac12","updated":"2017-10-24 08:47:22.000000000","message":"You are right. I\u0027ll change it now.","commit_id":"0b7241b0a41f19eb26ea35fd795e242ebe680ee6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6c8d2d1e1f9320ec0ec9ac058fc0065bd836581c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"features:"},{"line_number":2,"context_line":"  - Added list_resource_providers function to the Placement API client, which"},{"line_number":3,"context_line":"    allows to retrieve a list of Resource Providers filtering by UUID or parent"},{"line_number":4,"context_line":"    UUID."},{"line_number":5,"context_line":"  - Added get_resource_provider function to the Placement API client, which"}],"source_content_type":"text/x-yaml","patch_set":10,"id":"df87a7cf_237aa5f0","line":2,"range":{"start_line":2,"start_character":10,"end_line":2,"end_character":33},"updated":"2017-12-06 13:44:59.000000000","message":"Nit, better to use formatting with ``list_resource_providers``.","commit_id":"8defaafae0427110cd3760d5e4a30179ea35e97e"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"0327e207149d85f706c9dc77f1bf5884c216d5e8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"features:"},{"line_number":2,"context_line":"  - Added list_resource_providers function to the Placement API client, which"},{"line_number":3,"context_line":"    allows to retrieve a list of Resource Providers filtering by UUID or parent"},{"line_number":4,"context_line":"    UUID."},{"line_number":5,"context_line":"  - Added get_resource_provider function to the Placement API client, which"}],"source_content_type":"text/x-yaml","patch_set":10,"id":"df87a7cf_6ca89976","line":2,"range":{"start_line":2,"start_character":10,"end_line":2,"end_character":33},"in_reply_to":"df87a7cf_237aa5f0","updated":"2017-12-06 15:51:59.000000000","message":"Done","commit_id":"8defaafae0427110cd3760d5e4a30179ea35e97e"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6c8d2d1e1f9320ec0ec9ac058fc0065bd836581c","unresolved":false,"context_lines":[{"line_number":2,"context_line":"  - Added list_resource_providers function to the Placement API client, which"},{"line_number":3,"context_line":"    allows to retrieve a list of Resource Providers filtering by UUID or parent"},{"line_number":4,"context_line":"    UUID."},{"line_number":5,"context_line":"  - Added get_resource_provider function to the Placement API client, which"},{"line_number":6,"context_line":"    allows to retrieve an specific Resource Provider by its UUID."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"df87a7cf_e3835dcb","line":5,"range":{"start_line":5,"start_character":10,"end_line":5,"end_character":31},"updated":"2017-12-06 13:44:59.000000000","message":"Ditto.","commit_id":"8defaafae0427110cd3760d5e4a30179ea35e97e"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"0327e207149d85f706c9dc77f1bf5884c216d5e8","unresolved":false,"context_lines":[{"line_number":2,"context_line":"  - Added list_resource_providers function to the Placement API client, which"},{"line_number":3,"context_line":"    allows to retrieve a list of Resource Providers filtering by UUID or parent"},{"line_number":4,"context_line":"    UUID."},{"line_number":5,"context_line":"  - Added get_resource_provider function to the Placement API client, which"},{"line_number":6,"context_line":"    allows to retrieve an specific Resource Provider by its UUID."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"df87a7cf_0cb9cdca","line":5,"range":{"start_line":5,"start_character":10,"end_line":5,"end_character":31},"in_reply_to":"df87a7cf_e3835dcb","updated":"2017-12-06 15:51:59.000000000","message":"Done","commit_id":"8defaafae0427110cd3760d5e4a30179ea35e97e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ff15eac2c5877a2162fb0e567c57163de9beddf3","unresolved":false,"context_lines":[{"line_number":3,"context_line":"    allows to retrieve a list of Resource Providers filtering by UUID or parent"},{"line_number":4,"context_line":"    UUID."},{"line_number":5,"context_line":"  - Added ``get_resource_provider`` function to the Placement API client, which"},{"line_number":6,"context_line":"    allows to retrieve an specific Resource Provider by its UUID."}],"source_content_type":"text/x-yaml","patch_set":13,"id":"7f96bb07_6ed15423","line":6,"updated":"2018-01-16 09:09:21.000000000","message":"maybe You should add in release note minimum required placement api versions for those features?","commit_id":"c7c592f3b3ce4b821ef2d14666197b0dff90b744"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"fd1bbf7974a9f915d90db2de7725852ad5e393f0","unresolved":false,"context_lines":[{"line_number":3,"context_line":"    allows to retrieve a list of Resource Providers filtering by UUID or parent"},{"line_number":4,"context_line":"    UUID."},{"line_number":5,"context_line":"  - Added ``get_resource_provider`` function to the Placement API client, which"},{"line_number":6,"context_line":"    allows to retrieve an specific Resource Provider by its UUID."}],"source_content_type":"text/x-yaml","patch_set":13,"id":"7f96bb07_f7a83edc","line":6,"in_reply_to":"7f96bb07_6ed15423","updated":"2018-01-21 19:58:37.000000000","message":"In \"list_resource_providers\", I\u0027ll add the minimum API version needed for \"member_of\" and \"in_tree\"","commit_id":"c7c592f3b3ce4b821ef2d14666197b0dff90b744"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"435fd25966b4fd952e0e100201cafd9c8f8c7c55","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":17,"id":"3fa0c359_cf6fdb5d","line":11,"updated":"2018-02-26 15:43:42.000000000","message":"Nit: also mention the PlacementAPIVersionIncorrect exception class.","commit_id":"b1c9e221825bc4ed257b556c42ed124c4159d4a3"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"51f3091db825d2c422e8864685f754501b0cdcda","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":17,"id":"3fa0c359_f73aa931","line":11,"in_reply_to":"3fa0c359_cf6fdb5d","updated":"2018-02-26 19:18:57.000000000","message":"Done","commit_id":"b1c9e221825bc4ed257b556c42ed124c4159d4a3"}]}
