)]}'
{"specs/newton/approved/improve-image-quota.rst":[{"author":{"_account_id":9581,"name":"Ren Qiaowei","email":"qiaowei.ren@intel.com","username":"qiaowei"},"change_message_id":"0a0f7589297a1b2ea7a594b031e74938f7c00b2b","unresolved":false,"context_lines":[{"line_number":59,"context_line":"+------------+--------------+------+-----+---------+----------------+"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"NOTE: \u0027allocated\u0027 is added for the hierarchical-multitenancy and nested quota"},{"line_number":62,"context_line":"in the future based on the changed has done in Cinder, see [1]"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"**Table \u0027quota_usage\u0027**:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5a5ae5dd_4e69028b","line":62,"range":{"start_line":62,"start_character":23,"end_line":62,"end_character":34},"updated":"2016-02-03 03:55:05.000000000","message":"typo?","commit_id":"87a6a9b8d3cf8a44bf7b852116eb6e4a40c6cf95"},{"author":{"_account_id":9581,"name":"Ren Qiaowei","email":"qiaowei.ren@intel.com","username":"qiaowei"},"change_message_id":"0a0f7589297a1b2ea7a594b031e74938f7c00b2b","unresolved":false,"context_lines":[{"line_number":219,"context_line":"\t    }"},{"line_number":220,"context_line":"\t}"},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"NOTE: Now we\u0027re using 0 to indicate unlimited storage. But we should consider"},{"line_number":223,"context_line":"to follow the other projects using -1 for unlimited quota."},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"3. Update quotas for a tenant"},{"line_number":226,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5a5ae5dd_0ebb0ac6","line":223,"range":{"start_line":222,"start_character":0,"end_line":223,"end_character":58},"updated":"2016-02-03 03:55:05.000000000","message":"looks like that it should be -1 for this. So why you don\u0027t follow the other projects this time in this spec?","commit_id":"87a6a9b8d3cf8a44bf7b852116eb6e4a40c6cf95"},{"author":{"_account_id":9581,"name":"Ren Qiaowei","email":"qiaowei.ren@intel.com","username":"qiaowei"},"change_message_id":"0a0f7589297a1b2ea7a594b031e74938f7c00b2b","unresolved":false,"context_lines":[{"line_number":251,"context_line":""},{"line_number":252,"context_line":"NOTE: You can force the update even if the quota has already been used and the"},{"line_number":253,"context_line":"reserved quota exceeds the new quota. To force the update, specify the"},{"line_number":254,"context_line":"\"force\": \"True\". Default is False. "},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"4. Deletes quotas for tenant or user to revert to default values"},{"line_number":257,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5a5ae5dd_ce2ad22c","line":254,"range":{"start_line":254,"start_character":33,"end_line":254,"end_character":35},"updated":"2016-02-03 03:55:05.000000000","message":"remove the blank space here. like 260 ^-^","commit_id":"87a6a9b8d3cf8a44bf7b852116eb6e4a40c6cf95"},{"author":{"_account_id":9581,"name":"Ren Qiaowei","email":"qiaowei.ren@intel.com","username":"qiaowei"},"change_message_id":"0a0f7589297a1b2ea7a594b031e74938f7c00b2b","unresolved":false,"context_lines":[{"line_number":263,"context_line":"Alternatives"},{"line_number":264,"context_line":"------------"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"The other way for quota is just keep what we\u0027re using, using the configuration"},{"line_number":267,"context_line":"file to store the quota and calculating the usage each time."},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5a5ae5dd_aedc3647","line":266,"range":{"start_line":266,"start_character":31,"end_line":266,"end_character":36},"updated":"2016-02-03 03:55:05.000000000","message":"is to keep?","commit_id":"87a6a9b8d3cf8a44bf7b852116eb6e4a40c6cf95"},{"author":{"_account_id":9581,"name":"Ren Qiaowei","email":"qiaowei.ren@intel.com","username":"qiaowei"},"change_message_id":"0a0f7589297a1b2ea7a594b031e74938f7c00b2b","unresolved":false,"context_lines":[{"line_number":287,"context_line":""},{"line_number":288,"context_line":"Technically, the change won\u0027t introduce any performance impact because even for"},{"line_number":289,"context_line":"now, Glance still need to talk with database to get the usage. But because now"},{"line_number":290,"context_line":"Glance doesn\u0027t have a table to store the usage, so each time Glance have to"},{"line_number":291,"context_line":"calculate. However, with this change, an usage table will be added. Which will"},{"line_number":292,"context_line":"accelerate that process. Meanwhile, a new usage table means each time when"},{"line_number":293,"context_line":"create/delete a new image, Glance needs to maintain the usage status for the"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5a5ae5dd_aeaaf683","line":290,"range":{"start_line":290,"start_character":68,"end_line":290,"end_character":72},"updated":"2016-02-03 03:55:05.000000000","message":"has","commit_id":"87a6a9b8d3cf8a44bf7b852116eb6e4a40c6cf95"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"a86b666d6c9417d0dc7ffcfe0433aafa2438ae17","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"1. All the tenants have to share the same quota"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"2. Glance has to be restarted to active the new quota"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"3. There is no way to see current usage for a tenant"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_2fe8297c","line":24,"updated":"2016-02-03 14:52:49.000000000","message":"Actually, Glance reloads the config on SIGHUP since Kilo.","commit_id":"2900461b40b501d9c3ea0d253a8a07f6d810a6a1"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"a86b666d6c9417d0dc7ffcfe0433aafa2438ae17","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"3. There is no way to see current usage for a tenant"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"4. There is no way to manage quota at the user level"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_52d66ec6","line":28,"range":{"start_line":28,"start_character":42,"end_line":28,"end_character":46},"updated":"2016-02-03 14:52:49.000000000","message":"Do you mean \u0027user\u0027 or \u0027tenant\u0027 here?  (Or both?)","commit_id":"2900461b40b501d9c3ea0d253a8a07f6d810a6a1"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"a86b666d6c9417d0dc7ffcfe0433aafa2438ae17","unresolved":false,"context_lines":[{"line_number":59,"context_line":"+------------+--------------+------+-----+---------+----------------+"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"NOTE: \u0027allocated\u0027 is added for the hierarchical-multitenancy and nested quota"},{"line_number":62,"context_line":"in the future based on the changed has done in Cinder, see [1]"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"**Table \u0027quota_usage\u0027**:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_bdb9b330","line":62,"updated":"2016-02-03 14:52:49.000000000","message":"I\u0027d like you to say some more about this.  If I\u0027m reading it correctly, the Cinder spec is going to allow an end-user with the appropriate role to set project-level quotas.  Are you proposing anything like that here?","commit_id":"2900461b40b501d9c3ea0d253a8a07f6d810a6a1"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"a86b666d6c9417d0dc7ffcfe0433aafa2438ae17","unresolved":false,"context_lines":[{"line_number":105,"context_line":"+------------+--------------+------+-----+---------+----------------+"},{"line_number":106,"context_line":"| deleted    | tinyint(1)   | YES  |     | NULL    |                |"},{"line_number":107,"context_line":"+------------+--------------+------+-----+---------+----------------+"},{"line_number":108,"context_line":"| class_name | varchar(255) | YES  | MUL | NULL    |                |"},{"line_number":109,"context_line":"+------------+--------------+------+-----+---------+----------------+"},{"line_number":110,"context_line":"| resource   | varchar(255) | YES  |     | NULL    |                |"},{"line_number":111,"context_line":"+------------+--------------+------+-----+---------+----------------+"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_92bb86c4","line":108,"updated":"2016-02-03 14:52:49.000000000","message":"What are you proposing to use for the class_name? I guess the current name of the config option?","commit_id":"2900461b40b501d9c3ea0d253a8a07f6d810a6a1"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"7715b5218474efa4cc68d7c46c7edbb02a282b38","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"1. Shows the quota for a class"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"**GET** /v2/quotas/{tenant_id}/quota-class/{class_id}"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"Response:"},{"line_number":126,"context_line":"::"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_229a9715","line":123,"range":{"start_line":123,"start_character":20,"end_line":123,"end_character":29},"updated":"2016-02-03 07:09:09.000000000","message":"Different from Nova or Cinder, all the request urls in Glance don\u0027t contain tenant_id, it could be obtained from context. So I think all the url of quota should not contain it as well.","commit_id":"2900461b40b501d9c3ea0d253a8a07f6d810a6a1"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"a86b666d6c9417d0dc7ffcfe0433aafa2438ae17","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"1. Shows the quota for a class"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"**GET** /v2/quotas/{tenant_id}/quota-class/{class_id}"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"Response:"},{"line_number":126,"context_line":"::"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_72d04a54","line":123,"range":{"start_line":123,"start_character":20,"end_line":123,"end_character":29},"in_reply_to":"5a5ae5dd_229a9715","updated":"2016-02-03 14:52:49.000000000","message":"I agree with wangxiyuan about eliminating the tenant_id.  We should probably allow filter by tenant_id for admin queries, so GET /v2/quotas/whatever?tenant\u003d{tenant_id}\n\nAlso, we\u0027ll have to bikeshed over what to call the tenant_id.  I think the current preference in OpenStack is to call it \"project ID\", though I may not be up-to-date on that.  The term we use in Glance on the Image object is \u0027owner\u0027 (though we also have the owner_is_tenant config setting, which makes a user the owner).  So that brings up another problem, namely, do we do per-user quotas, or per-tenant quotas, or make it configurable?  Presumably the operators who are using owner_is_tenant \u003d false would prefer to provide quotas per-user.","commit_id":"2900461b40b501d9c3ea0d253a8a07f6d810a6a1"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"a86b666d6c9417d0dc7ffcfe0433aafa2438ae17","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        \"quota-class\": {"},{"line_number":130,"context_line":"           \"user_storage\": 0,"},{"line_number":131,"context_line":"            \"image_property\": 128,"},{"line_number":132,"context_line":"            \"image_property\": 128,"},{"line_number":133,"context_line":"            \"image_tag\": 128,"},{"line_number":134,"context_line":"            \"image_location\": 10"},{"line_number":135,"context_line":"        }"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_0fae8d2e","line":132,"updated":"2016-02-03 14:52:49.000000000","message":"I\u0027m assuming the repetition of \u0027image_property\u0027 is a typo?","commit_id":"2900461b40b501d9c3ea0d253a8a07f6d810a6a1"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"7715b5218474efa4cc68d7c46c7edbb02a282b38","unresolved":false,"context_lines":[{"line_number":224,"context_line":""},{"line_number":225,"context_line":"NOTE: Now we\u0027re using 0 to indicate unlimited storage. But we should consider"},{"line_number":226,"context_line":"to follow the other projects using -1 for unlimited quota."},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"3. Update quotas for a tenant"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"**PUT** /v2/quotas/{tenant_id}"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_7d95923e","line":227,"updated":"2016-02-03 07:09:09.000000000","message":"I agree to keep the same with other projects. But the config way uses 0, we should be cautious to do this.","commit_id":"2900461b40b501d9c3ea0d253a8a07f6d810a6a1"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"a86b666d6c9417d0dc7ffcfe0433aafa2438ae17","unresolved":false,"context_lines":[{"line_number":224,"context_line":""},{"line_number":225,"context_line":"NOTE: Now we\u0027re using 0 to indicate unlimited storage. But we should consider"},{"line_number":226,"context_line":"to follow the other projects using -1 for unlimited quota."},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"3. Update quotas for a tenant"},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"**PUT** /v2/quotas/{tenant_id}"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_f2e75a10","line":227,"in_reply_to":"5a5ae5dd_7d95923e","updated":"2016-02-03 14:52:49.000000000","message":"Actually, we have a mix right now.\n\nuser_storage_quota \u003d\u003e 0 means unlimited\n\nimage_member_quota, image_property_quota, image_location_quota \u003d\u003e 0 means zero, negative value means unlimited","commit_id":"2900461b40b501d9c3ea0d253a8a07f6d810a6a1"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"a86b666d6c9417d0dc7ffcfe0433aafa2438ae17","unresolved":false,"context_lines":[{"line_number":299,"context_line":"Other deployer impact"},{"line_number":300,"context_line":"---------------------"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"N/A"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"Developer impact"},{"line_number":305,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_b277a201","line":302,"updated":"2016-02-03 14:52:49.000000000","message":"Well, there\u0027s going to have to be a migration of values out of the config file and into the database.  I guess for the Newton release those config options will have to be replaced with a comment saying that this configuration option is no longer valid.","commit_id":"2900461b40b501d9c3ea0d253a8a07f6d810a6a1"}]}
