)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"e0fcd30e7b32930281327daa03863ad5bfe27110","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch rehomes the quotas extension\u0027s API definition. As the current"},{"line_number":10,"context_line":"extension code in neutron builds the resource attributes dynamically,"},{"line_number":11,"context_line":"this patch extracts them into the static RESOURCE_ATTRIBUTE_MAP. As"},{"line_number":12,"context_line":"indicated in the release note, this means if new resources are added to"},{"line_number":13,"context_line":"quotas, they need to be updated here in the API def as well as in the"},{"line_number":14,"context_line":"API reference docs. Finally note that the quota API becomes more"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"df87a7cf_f642bc3d","line":11,"updated":"2017-12-12 08:17:24.000000000","message":"Sorry for (maybe stupid) question but why it can\u0027t be still build dynamically here? Maybe we could move quota.ResourceRegistry to neutron-lib also and generate it dynamically?","commit_id":"840e2ddafb240860eda2a562f178d4e770872532"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"006a034d34bd78625528ae3163d7949cf181b66c","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch rehomes the quotas extension\u0027s API definition. As the current"},{"line_number":10,"context_line":"extension code in neutron builds the resource attributes dynamically,"},{"line_number":11,"context_line":"this patch extracts them into the static RESOURCE_ATTRIBUTE_MAP. As"},{"line_number":12,"context_line":"indicated in the release note, this means if new resources are added to"},{"line_number":13,"context_line":"quotas, they need to be updated here in the API def as well as in the"},{"line_number":14,"context_line":"API reference docs. Finally note that the quota API becomes more"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7f96bb07_31760140","line":11,"in_reply_to":"7f96bb07_de1d3abe","updated":"2018-01-18 07:50:37.000000000","message":"I can understand this problem. I have a same problem in tag feature which generates RESOURCE_ATTRIBUTE_MAP dynamically. It should not be static because we need to create new extension like quotav2-xxx, quotav2-yyy(actually tag feature unfortunately has tag, tag-ext, and tagging) every time we adds new resource supporting quota.\n\nTherefore, I disagree static RESOURCE_ATTRIBUTE_MAP.","commit_id":"840e2ddafb240860eda2a562f178d4e770872532"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"a04baeb6aeaa044e3b50b935caa506fbf7009801","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch rehomes the quotas extension\u0027s API definition. As the current"},{"line_number":10,"context_line":"extension code in neutron builds the resource attributes dynamically,"},{"line_number":11,"context_line":"this patch extracts them into the static RESOURCE_ATTRIBUTE_MAP. As"},{"line_number":12,"context_line":"indicated in the release note, this means if new resources are added to"},{"line_number":13,"context_line":"quotas, they need to be updated here in the API def as well as in the"},{"line_number":14,"context_line":"API reference docs. Finally note that the quota API becomes more"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"df7087c5_d94bc684","line":11,"in_reply_to":"7f96bb07_de1d3abe","updated":"2018-03-20 21:29:25.000000000","message":"I think Miguel\u0027s remark is a well said and perfectly capture the advantages of the dynamic approach. I can see that the dynamic approach will be beneficial for out-of-tree drivers who are in flavor of reducing the proliferation of extensions.\n\nI just wanted to bring up a different perspective from the API users standpoint. I think some API users would prefer the static approach because they want a well-defined and discoverable API behavior. The static approach could give them the exact list of attributes for a specific resource, which is desirable for development in client-side.\n\nI think a key scenario that flavors the static approach is that API users want to migrate their workloads between OpenStack clouds from different vendors. In this scenario, I think the static approach would be helpful in term of potentially increasing the interoperability between different implementation of neutron.","commit_id":"840e2ddafb240860eda2a562f178d4e770872532"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"14ece8f97e642efe855d03bd88daecab78909ca7","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch rehomes the quotas extension\u0027s API definition. As the current"},{"line_number":10,"context_line":"extension code in neutron builds the resource attributes dynamically,"},{"line_number":11,"context_line":"this patch extracts them into the static RESOURCE_ATTRIBUTE_MAP. As"},{"line_number":12,"context_line":"indicated in the release note, this means if new resources are added to"},{"line_number":13,"context_line":"quotas, they need to be updated here in the API def as well as in the"},{"line_number":14,"context_line":"API reference docs. Finally note that the quota API becomes more"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"df87a7cf_9c1301b9","line":11,"in_reply_to":"df87a7cf_3c10feff","updated":"2017-12-14 20:29:45.000000000","message":"ok, that sounds reasonable for me. I think that this decision here should be than made by drivers team :) Thx for explanation of my doubts","commit_id":"840e2ddafb240860eda2a562f178d4e770872532"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"79a1eaa783b5162ea3d6f1ca1d729984531712bc","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch rehomes the quotas extension\u0027s API definition. As the current"},{"line_number":10,"context_line":"extension code in neutron builds the resource attributes dynamically,"},{"line_number":11,"context_line":"this patch extracts them into the static RESOURCE_ATTRIBUTE_MAP. As"},{"line_number":12,"context_line":"indicated in the release note, this means if new resources are added to"},{"line_number":13,"context_line":"quotas, they need to be updated here in the API def as well as in the"},{"line_number":14,"context_line":"API reference docs. Finally note that the quota API becomes more"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7f96bb07_de1d3abe","line":11,"in_reply_to":"df87a7cf_9c1301b9","updated":"2018-01-10 23:15:27.000000000","message":"\"Neutron-lib is an OpenStack library project used by Neutron, Advanced Services, and third-party projects that aims to provide common functionality across all such consumers.\" This being the case, if we define a static RESOURCE_ATTRIBUTE_MAP for quotas in neutron-lib based on the way Neutron uses this extension, wouldn\u0027t it be forcing this way of using it on other possible consumers? Maybe some non Neutron consumers want to track other resources. What I am trying to say is that maybe this way of approaching the quotas rehoming is imposing Neutron decisions on other consumers and maybe we want to keep to dynamic aspect of it. What others think?","commit_id":"840e2ddafb240860eda2a562f178d4e770872532"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"54eb3f41cc823c16d690796bbba2cdd622929c6c","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch rehomes the quotas extension\u0027s API definition. As the current"},{"line_number":10,"context_line":"extension code in neutron builds the resource attributes dynamically,"},{"line_number":11,"context_line":"this patch extracts them into the static RESOURCE_ATTRIBUTE_MAP. As"},{"line_number":12,"context_line":"indicated in the release note, this means if new resources are added to"},{"line_number":13,"context_line":"quotas, they need to be updated here in the API def as well as in the"},{"line_number":14,"context_line":"API reference docs. Finally note that the quota API becomes more"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"df87a7cf_3c10feff","line":11,"in_reply_to":"df87a7cf_f642bc3d","updated":"2017-12-12 14:08:09.000000000","message":"IMO:\n- It\u0027s my understanding we wanted to more statically define our api extensions (definitions) to paint a clear pic of our API. Generating resources dynamically makes it more difficult to \"paint that picture\".\n- Perhaps we possibly could move the logic over to dyanamically generate the resources, but I think there\u0027s other such cases where that isn\u0027t possible today. For example standard-attr-description uses a db module to build the resource list and it won\u0027t be possible to move that into lib today best I can tell. With that in mind I\u0027m trying to understand what we want to here W/R/T dynamic vs static resources for api-defs.","commit_id":"840e2ddafb240860eda2a562f178d4e770872532"}],"neutron_lib/api/definitions/quotasv2.py":[{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"dd67dcc9d47055e7adca59a9db25d3861e30e279","unresolved":false,"context_lines":[{"line_number":62,"context_line":"        \u0027security_group\u0027: _make_quota_attrs(),"},{"line_number":63,"context_line":"        l3.ROUTER: _make_quota_attrs(),"},{"line_number":64,"context_line":"        \u0027rbac_policy\u0027: _make_quota_attrs(),"},{"line_number":65,"context_line":"        port.RESOURCE_NAME: _make_quota_attrs()"},{"line_number":66,"context_line":"    }"},{"line_number":67,"context_line":"}"},{"line_number":68,"context_line":"SUB_RESOURCE_ATTRIBUTE_MAP \u003d {}"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f96bb07_91a03592","line":65,"updated":"2018-01-18 07:51:45.000000000","message":"Anyway, this misses trunk[1].\n\n[1]: https://github.com/openstack/neutron/blob/master/neutron/extensions/trunk.py#L36","commit_id":"c0c73ca5208330913dea80d9b6665524dc77c785"}]}
