)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"d59168064942bc8907775e2b00b999358ec6bae6","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"We will need to be a way to find out how much capacity is actually used,"},{"line_number":10,"context_line":"as when cloud operators bill for usage."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I2fe98a75b5a70559086dc4b78cbd935383710c57"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5ff73747_d85c274d","line":11,"range":{"start_line":11,"start_character":0,"end_line":11,"end_character":0},"updated":"2017-04-25 03:22:15.000000000","message":"Blueprint?","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"bbb940a34304d02172749a6ac9cd921e74d705f7","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"We will need to be a way to find out how much capacity is actually used,"},{"line_number":10,"context_line":"as when cloud operators bill for usage."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I2fe98a75b5a70559086dc4b78cbd935383710c57"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5ff73747_51310d0b","line":11,"range":{"start_line":11,"start_character":0,"end_line":11,"end_character":0},"in_reply_to":"5ff73747_d85c274d","updated":"2017-04-25 08:53:24.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b4ffc267a397d8f91faa5127ee267fef024e2a2c","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add spec for gathering share usage size"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"We will need to be a way to find out how much capacity is actually used,"},{"line_number":10,"context_line":"as when cloud operators bill for usage."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Partially-Implements BP share-usage-size"},{"line_number":13,"context_line":"Change-Id: I2fe98a75b5a70559086dc4b78cbd935383710c57"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"5ff73747_9b632bb2","line":10,"range":{"start_line":9,"start_character":0,"end_line":10,"end_character":39},"updated":"2017-04-25 12:36:39.000000000","message":"Describe mechanism of reporting share usages to be able to bill not for quota, but for storage usage.","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"3f1b2ab3bdac2d4a6b71b6e4d7eeb83d0f3e8eb2","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add spec for gathering share usage size"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"We will need to be a way to find out how much capacity is actually used,"},{"line_number":10,"context_line":"as when cloud operators bill for usage."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Partially-Implements BP share-usage-size"},{"line_number":13,"context_line":"Change-Id: I2fe98a75b5a70559086dc4b78cbd935383710c57"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"5ff73747_97ead772","line":10,"range":{"start_line":9,"start_character":0,"end_line":10,"end_character":39},"in_reply_to":"5ff73747_9b632bb2","updated":"2017-04-25 15:43:05.000000000","message":"Done","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"}],"specs/pike/gather_share_usage_size.rst":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"d59168064942bc8907775e2b00b999358ec6bae6","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"share usage size tracking"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"We will need to be a way to find out how much capacity is actually used,"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_5836d705","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":5},"updated":"2017-04-25 03:22:15.000000000","message":"Share","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"share usage size tracking"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"We will need to be a way to find out how much capacity is actually used,"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_c3c2f885","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":5},"in_reply_to":"5ff73747_5836d705","updated":"2017-04-25 08:53:06.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"d59168064942bc8907775e2b00b999358ec6bae6","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"We will need to be a way to find out how much capacity is actually used,"},{"line_number":12,"context_line":"as when cloud operators bill for usage."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Problem description"},{"line_number":15,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_7831930b","line":13,"range":{"start_line":13,"start_character":0,"end_line":13,"end_character":0},"updated":"2017-04-25 03:22:15.000000000","message":"Blueprint?","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"We will need to be a way to find out how much capacity is actually used,"},{"line_number":12,"context_line":"as when cloud operators bill for usage."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Problem description"},{"line_number":15,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_64f0ca68","line":13,"range":{"start_line":13,"start_character":0,"end_line":13,"end_character":0},"in_reply_to":"5ff73747_7831930b","updated":"2017-04-25 08:53:06.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":29,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Add the periodic task in share service for gathering the shares usage size."},{"line_number":32,"context_line":"The periodic task will be invoked after the share manager starts up, and we"},{"line_number":33,"context_line":"can set the interval time that determines how often the share manager will"},{"line_number":34,"context_line":"poll the driver to perform the next step of get share usage size."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"The get_usage_size() driver method is a new driver method which will be called"},{"line_number":37,"context_line":"after driver initialization and in the periodic task, that returns a"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_18a4cf56","line":34,"range":{"start_line":32,"start_character":0,"end_line":34,"end_character":65},"updated":"2017-04-25 03:21:41.000000000","message":"Is this feature mandatory, or can administrators and driver developers \"opt-in\" to enable this feature in their drivers and in their clouds?","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":29,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Add the periodic task in share service for gathering the shares usage size."},{"line_number":32,"context_line":"The periodic task will be invoked after the share manager starts up, and we"},{"line_number":33,"context_line":"can set the interval time that determines how often the share manager will"},{"line_number":34,"context_line":"poll the driver to perform the next step of get share usage size."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"The get_usage_size() driver method is a new driver method which will be called"},{"line_number":37,"context_line":"after driver initialization and in the periodic task, that returns a"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_c370b875","line":34,"range":{"start_line":32,"start_character":0,"end_line":34,"end_character":65},"in_reply_to":"5ff73747_18a4cf56","updated":"2017-04-25 08:53:06.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":33,"context_line":"can set the interval time that determines how often the share manager will"},{"line_number":34,"context_line":"poll the driver to perform the next step of get share usage size."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"The get_usage_size() driver method is a new driver method which will be called"},{"line_number":37,"context_line":"after driver initialization and in the periodic task, that returns a"},{"line_number":38,"context_line":"dictionary about shares id and shares usage size. The share manager will"},{"line_number":39,"context_line":"compare the share usage size of the returned dictionary to the previously"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_f83ec327","line":36,"range":{"start_line":36,"start_character":4,"end_line":36,"end_character":18},"updated":"2017-04-25 03:21:41.000000000","message":"The current periodic task is called _update_share_stats(), perhaps we should call this update_share_usage_stats()?","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":33,"context_line":"can set the interval time that determines how often the share manager will"},{"line_number":34,"context_line":"poll the driver to perform the next step of get share usage size."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"The get_usage_size() driver method is a new driver method which will be called"},{"line_number":37,"context_line":"after driver initialization and in the periodic task, that returns a"},{"line_number":38,"context_line":"dictionary about shares id and shares usage size. The share manager will"},{"line_number":39,"context_line":"compare the share usage size of the returned dictionary to the previously"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_7832aef3","line":36,"range":{"start_line":36,"start_character":4,"end_line":36,"end_character":18},"in_reply_to":"5ff73747_f83ec327","updated":"2017-04-25 08:53:06.000000000","message":"We need to update many share info and just report the info by update_share_stats, so current periodic task is called _update_share_stats. but now we only update share usage size, just one value of share. We could call it update_share_usage_size","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":36,"context_line":"The get_usage_size() driver method is a new driver method which will be called"},{"line_number":37,"context_line":"after driver initialization and in the periodic task, that returns a"},{"line_number":38,"context_line":"dictionary about shares id and shares usage size. The share manager will"},{"line_number":39,"context_line":"compare the share usage size of the returned dictionary to the previously"},{"line_number":40,"context_line":"value. If the value(usage size) has changed then the share info(key\u003dshare_id,"},{"line_number":41,"context_line":"value\u003dshare_usage_size) will be stored in Memcached, otherwise the share info"},{"line_number":42,"context_line":"don\u0027t need to update in Memcached. The List/Show APIs or ceilometer can get"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_98457fb6","line":39,"range":{"start_line":39,"start_character":63,"end_line":39,"end_character":73},"updated":"2017-04-25 03:21:41.000000000","message":"previous","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":36,"context_line":"The get_usage_size() driver method is a new driver method which will be called"},{"line_number":37,"context_line":"after driver initialization and in the periodic task, that returns a"},{"line_number":38,"context_line":"dictionary about shares id and shares usage size. The share manager will"},{"line_number":39,"context_line":"compare the share usage size of the returned dictionary to the previously"},{"line_number":40,"context_line":"value. If the value(usage size) has changed then the share info(key\u003dshare_id,"},{"line_number":41,"context_line":"value\u003dshare_usage_size) will be stored in Memcached, otherwise the share info"},{"line_number":42,"context_line":"don\u0027t need to update in Memcached. The List/Show APIs or ceilometer can get"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_c3f558cd","line":39,"range":{"start_line":39,"start_character":63,"end_line":39,"end_character":73},"in_reply_to":"5ff73747_98457fb6","updated":"2017-04-25 08:53:06.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":41,"context_line":"value\u003dshare_usage_size) will be stored in Memcached, otherwise the share info"},{"line_number":42,"context_line":"don\u0027t need to update in Memcached. The List/Show APIs or ceilometer can get"},{"line_number":43,"context_line":"share usage size from Memcached."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Alternatives"},{"line_number":46,"context_line":"------------"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_d852e767","line":44,"range":{"start_line":44,"start_character":0,"end_line":44,"end_character":0},"updated":"2017-04-25 03:21:41.000000000","message":"How will this call affect replicas?","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":41,"context_line":"value\u003dshare_usage_size) will be stored in Memcached, otherwise the share info"},{"line_number":42,"context_line":"don\u0027t need to update in Memcached. The List/Show APIs or ceilometer can get"},{"line_number":43,"context_line":"share usage size from Memcached."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Alternatives"},{"line_number":46,"context_line":"------------"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_b1ae112c","line":44,"range":{"start_line":44,"start_character":0,"end_line":44,"end_character":0},"in_reply_to":"5ff73747_d852e767","updated":"2017-04-25 08:53:06.000000000","message":"As I know, we could directly get the primary share instance and a secondary replica share instance usage size from backend. Did I missing something?","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":"The API microversion will have to be bumped for this."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"* Add a response parameter ``provisioned_capacity_gb`` of type ``int`` that"},{"line_number":67,"context_line":"  will display the share provisioned capacity when list/show a share or share"},{"line_number":68,"context_line":"  instances. The ``provisioned_capacity_gb`` unit is GiB."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_f855a351","line":66,"range":{"start_line":66,"start_character":29,"end_line":66,"end_character":52},"updated":"2017-04-25 03:21:41.000000000","message":"We use this attribute to signify the provisioned capacity for a thin provisioned share on a storage pool... Let\u0027s not use the same name, its confusing; perhaps: \"used_size\" or size_utilized or size_used?","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":"The API microversion will have to be bumped for this."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"* Add a response parameter ``provisioned_capacity_gb`` of type ``int`` that"},{"line_number":67,"context_line":"  will display the share provisioned capacity when list/show a share or share"},{"line_number":68,"context_line":"  instances. The ``provisioned_capacity_gb`` unit is GiB."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_03e22004","line":66,"range":{"start_line":66,"start_character":29,"end_line":66,"end_character":52},"in_reply_to":"5ff73747_f855a351","updated":"2017-04-25 08:53:06.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":64,"context_line":"The API microversion will have to be bumped for this."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"* Add a response parameter ``provisioned_capacity_gb`` of type ``int`` that"},{"line_number":67,"context_line":"  will display the share provisioned capacity when list/show a share or share"},{"line_number":68,"context_line":"  instances. The ``provisioned_capacity_gb`` unit is GiB."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  List Share"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_d8ae672d","line":68,"range":{"start_line":67,"start_character":0,"end_line":68,"end_character":57},"updated":"2017-04-25 03:21:41.000000000","message":"Would an end user ever care about this information? \n\nWhen users mount their shares they know what the consumed and available space is for the share. Why would they expect manila to tell them that? Especially if the information is not accurate, and may be stale, based on how long the polling interval is configured to be?","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":64,"context_line":"The API microversion will have to be bumped for this."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"* Add a response parameter ``provisioned_capacity_gb`` of type ``int`` that"},{"line_number":67,"context_line":"  will display the share provisioned capacity when list/show a share or share"},{"line_number":68,"context_line":"  instances. The ``provisioned_capacity_gb`` unit is GiB."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  List Share"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_51d22d5e","line":68,"range":{"start_line":67,"start_character":0,"end_line":68,"end_character":57},"in_reply_to":"5ff73747_d8ae672d","updated":"2017-04-25 08:53:06.000000000","message":"The list/show share instances APIs is the admin only. Admin need to know the share instances usage size. \n\nWhy an end user don\u0027t care about this information, if I am an end user, my shares has been managed by manila, I also want to see all shares usage size from manila quickly, It should not let user to mount their shares or enter the OS when they want to see all their shares usage size.","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":137,"context_line":""},{"line_number":138,"context_line":"* Get real share provisioned capacity from driver::"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def get_usage_size(self, context, shares, share_server\u003dNone):"},{"line_number":141,"context_line":"        \"\"\"Invoked to get those shares that the usage size need"},{"line_number":142,"context_line":"        to be update."},{"line_number":143,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_18d60fc7","line":140,"range":{"start_line":140,"start_character":46,"end_line":140,"end_character":62},"updated":"2017-04-25 03:21:41.000000000","message":"There could be multiple share servers.. What you need is the \"shares\" object to provide the share server information for each share...","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":137,"context_line":""},{"line_number":138,"context_line":"* Get real share provisioned capacity from driver::"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def get_usage_size(self, context, shares, share_server\u003dNone):"},{"line_number":141,"context_line":"        \"\"\"Invoked to get those shares that the usage size need"},{"line_number":142,"context_line":"        to be update."},{"line_number":143,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_09bd9f64","line":140,"range":{"start_line":140,"start_character":46,"end_line":140,"end_character":62},"in_reply_to":"5ff73747_18d60fc7","updated":"2017-04-25 08:53:06.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            }"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        \"\"\""},{"line_number":157,"context_line":"        raise NotImplementedError()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"Security impact"},{"line_number":160,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_d8d787bf","line":157,"range":{"start_line":157,"start_character":8,"end_line":157,"end_character":35},"updated":"2017-04-25 03:21:41.000000000","message":"What happens when a driver doesn\u0027t implement this method?","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            }"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        \"\"\""},{"line_number":157,"context_line":"        raise NotImplementedError()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"Security impact"},{"line_number":160,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_f8823e4f","line":157,"range":{"start_line":157,"start_character":8,"end_line":157,"end_character":35},"in_reply_to":"5ff73747_d8d787bf","updated":"2017-04-25 08:53:06.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":177,"context_line":"Collecting share usage could have negative service performance impact."},{"line_number":178,"context_line":"When the size of a share is known at the moment of creation and does not"},{"line_number":179,"context_line":"change without an explicit extend or shrink, we don\u0027t have to collect usage"},{"line_number":180,"context_line":"at all. Now we have to collect usage. It could be costly."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"Other deployer impact"},{"line_number":183,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_58f5b756","line":180,"range":{"start_line":180,"start_character":56,"end_line":180,"end_character":57},"updated":"2017-04-25 03:21:41.000000000","message":"Mention the periodic interval configuration option here to clarify that administrators may set this value to a large interval or disable it if necessary","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":177,"context_line":"Collecting share usage could have negative service performance impact."},{"line_number":178,"context_line":"When the size of a share is known at the moment of creation and does not"},{"line_number":179,"context_line":"change without an explicit extend or shrink, we don\u0027t have to collect usage"},{"line_number":180,"context_line":"at all. Now we have to collect usage. It could be costly."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"Other deployer impact"},{"line_number":183,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_84b51634","line":180,"range":{"start_line":180,"start_character":56,"end_line":180,"end_character":57},"in_reply_to":"5ff73747_58f5b756","updated":"2017-04-25 08:53:06.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":189,"context_line":""},{"line_number":190,"context_line":"This will require a change on the driver interface. To support this feature,"},{"line_number":191,"context_line":"drivers will need to implement the ``get_usage_size`` feature."},{"line_number":192,"context_line":"We will use the original capacity filter logic to choose the backend when you"},{"line_number":193,"context_line":"create a thin share with the limit size."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"Implementation"},{"line_number":196,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_7863d31b","line":193,"range":{"start_line":192,"start_character":0,"end_line":193,"end_character":40},"updated":"2017-04-25 03:21:41.000000000","message":"Is this an artifact of the old spec? Does it need to be here?","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":189,"context_line":""},{"line_number":190,"context_line":"This will require a change on the driver interface. To support this feature,"},{"line_number":191,"context_line":"drivers will need to implement the ``get_usage_size`` feature."},{"line_number":192,"context_line":"We will use the original capacity filter logic to choose the backend when you"},{"line_number":193,"context_line":"create a thin share with the limit size."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"Implementation"},{"line_number":196,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_63bc44dc","line":193,"range":{"start_line":192,"start_character":0,"end_line":193,"end_character":40},"in_reply_to":"5ff73747_7863d31b","updated":"2017-04-25 08:53:06.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":223,"context_line":"Documentation impact"},{"line_number":224,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"- Docstrings"},{"line_number":227,"context_line":"- Devref"},{"line_number":228,"context_line":"- API reference"},{"line_number":229,"context_line":"- User guide"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_58513736","line":226,"range":{"start_line":226,"start_character":2,"end_line":226,"end_character":12},"updated":"2017-04-25 03:21:41.000000000","message":"Don\u0027t mention docstrings and release notes. You *HAVE* to have these no matter what :)","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":223,"context_line":"Documentation impact"},{"line_number":224,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"- Docstrings"},{"line_number":227,"context_line":"- Devref"},{"line_number":228,"context_line":"- API reference"},{"line_number":229,"context_line":"- User guide"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_43c14854","line":226,"range":{"start_line":226,"start_character":2,"end_line":226,"end_character":12},"in_reply_to":"5ff73747_58513736","updated":"2017-04-25 08:53:06.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"9ec60766128ffa490837a13297ef5cd17a55e06b","unresolved":false,"context_lines":[{"line_number":226,"context_line":"- Docstrings"},{"line_number":227,"context_line":"- Devref"},{"line_number":228,"context_line":"- API reference"},{"line_number":229,"context_line":"- User guide"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"References"},{"line_number":232,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_d87307e7","line":229,"range":{"start_line":229,"start_character":2,"end_line":229,"end_character":6},"updated":"2017-04-25 03:21:41.000000000","message":"and Admin guide?","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"41627989d22e4fd8de4c994e6a2957b36d1e757c","unresolved":false,"context_lines":[{"line_number":226,"context_line":"- Docstrings"},{"line_number":227,"context_line":"- Devref"},{"line_number":228,"context_line":"- API reference"},{"line_number":229,"context_line":"- User guide"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"References"},{"line_number":232,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_c4943e8e","line":229,"range":{"start_line":229,"start_character":2,"end_line":229,"end_character":6},"in_reply_to":"5ff73747_d87307e7","updated":"2017-04-25 08:53:06.000000000","message":"Done","commit_id":"39957423218e32a997c55d797eaf6b14bb5f841c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b4ffc267a397d8f91faa5127ee267fef024e2a2c","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/manila/+spec/share-usage-size"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"We will need to be a way to find out how much capacity is actually used,"},{"line_number":14,"context_line":"as when cloud operators bill for usage."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_1bccbb5f","line":14,"range":{"start_line":13,"start_character":0,"end_line":14,"end_character":39},"updated":"2017-04-25 12:36:39.000000000","message":"We need to have a way to gather information about actual share storage usages, so cloud operators could use this information for billing.","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"3f1b2ab3bdac2d4a6b71b6e4d7eeb83d0f3e8eb2","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/manila/+spec/share-usage-size"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"We will need to be a way to find out how much capacity is actually used,"},{"line_number":14,"context_line":"as when cloud operators bill for usage."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_34f421cf","line":14,"range":{"start_line":13,"start_character":0,"end_line":14,"end_character":39},"in_reply_to":"5ff73747_1bccbb5f","updated":"2017-04-25 15:43:05.000000000","message":"Done","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b4ffc267a397d8f91faa5127ee267fef024e2a2c","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Currently, manila allow the share only have share size. A natural effect of"},{"line_number":20,"context_line":"this is it makes less sense to bill by share \"size\" and more sense to bill by"},{"line_number":21,"context_line":"share usage."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Use cases"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_5b1123ac","line":21,"range":{"start_line":19,"start_character":0,"end_line":21,"end_character":12},"updated":"2017-04-25 12:36:39.000000000","message":"Currently, it is impossible to get actual storage usage of some specific share, hence, it is impossible to bill for storage usage. It is only possible to bill for quota limits.","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"3f1b2ab3bdac2d4a6b71b6e4d7eeb83d0f3e8eb2","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Currently, manila allow the share only have share size. A natural effect of"},{"line_number":20,"context_line":"this is it makes less sense to bill by share \"size\" and more sense to bill by"},{"line_number":21,"context_line":"share usage."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Use cases"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_341d410f","line":21,"range":{"start_line":19,"start_character":0,"end_line":21,"end_character":12},"in_reply_to":"5ff73747_5b1123ac","updated":"2017-04-25 15:43:05.000000000","message":"Done","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b4ffc267a397d8f91faa5127ee267fef024e2a2c","unresolved":false,"context_lines":[{"line_number":23,"context_line":"Use cases"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"There are situations in which a admin doesn\u0027t know how much they should be"},{"line_number":27,"context_line":"charge for share usage capacity, and a user doesn\u0027t know how much they should"},{"line_number":28,"context_line":"pay for share usage capacity."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Proposed change"},{"line_number":31,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_5b492389","line":28,"range":{"start_line":26,"start_character":0,"end_line":28,"end_character":29},"updated":"2017-04-25 12:36:39.000000000","message":"There are 2 use cases:\n\n- manila could report storage usages to metering services like ceilometer\n- some storage backends do not reserve whole requested share size right away after share creation and just set quota/limit for shares, for such backends it is more suitable to bill for usage, not limit/quota.","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"3f1b2ab3bdac2d4a6b71b6e4d7eeb83d0f3e8eb2","unresolved":false,"context_lines":[{"line_number":23,"context_line":"Use cases"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"There are situations in which a admin doesn\u0027t know how much they should be"},{"line_number":27,"context_line":"charge for share usage capacity, and a user doesn\u0027t know how much they should"},{"line_number":28,"context_line":"pay for share usage capacity."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Proposed change"},{"line_number":31,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_34cc2160","line":28,"range":{"start_line":26,"start_character":0,"end_line":28,"end_character":29},"in_reply_to":"5ff73747_5b492389","updated":"2017-04-25 15:43:05.000000000","message":"Done","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b4ffc267a397d8f91faa5127ee267fef024e2a2c","unresolved":false,"context_lines":[{"line_number":42,"context_line":"dictionary about shares id and shares usage size. The share manager will"},{"line_number":43,"context_line":"compare the share usage size of the returned dictionary to the previous"},{"line_number":44,"context_line":"value. If the value(usage size) has changed then the share info(key\u003dshare_id,"},{"line_number":45,"context_line":"value\u003dshare_usage_size) will be stored in Memcached, otherwise the share info"},{"line_number":46,"context_line":"don\u0027t need to update in Memcached. The List/Show APIs or ceilometer can get"},{"line_number":47,"context_line":"share usage size from Memcached."},{"line_number":48,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_7e704da6","line":45,"range":{"start_line":45,"start_character":42,"end_line":45,"end_character":51},"updated":"2017-04-25 12:36:39.000000000","message":"Manila does not use \"Memcached\" also we do not have plans/spec for its usage. So, it is unclear who and when will implement \"Memcached\" support first, so it could be used for implementation of this spec.","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b4ffc267a397d8f91faa5127ee267fef024e2a2c","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"The API microversion will have to be bumped for this."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"* Add a response parameter ``used_size`` of type ``int`` that will display the"},{"line_number":71,"context_line":"  share provisioned capacity when list/show a share or share instances. The"},{"line_number":72,"context_line":"  ``used_size`` unit is GiB."},{"line_number":73,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_7ea5ed03","line":70,"range":{"start_line":70,"start_character":29,"end_line":70,"end_character":38},"updated":"2017-04-25 12:36:39.000000000","message":"It was \"provisioned_capacity_gb\". Why it became \"used_size\"?","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"c72dc677cc1e6e54c9ef903471bc8dc626603583","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"The API microversion will have to be bumped for this."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"* Add a response parameter ``used_size`` of type ``int`` that will display the"},{"line_number":71,"context_line":"  share provisioned capacity when list/show a share or share instances. The"},{"line_number":72,"context_line":"  ``used_size`` unit is GiB."},{"line_number":73,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_175a474e","line":70,"range":{"start_line":70,"start_character":29,"end_line":70,"end_character":38},"in_reply_to":"5ff73747_34aae1d1","updated":"2017-04-25 15:45:13.000000000","message":"+1\n\nIf the intended audience here is a cloud administrator who has access to scheduler stats API, the \"provisioned_capacity_gb\" for a storage pool that is returned from that API would mean:\n\n# NOTE(xyang): provisioned_capacity_gb is the apparent total\n# capacity of all the shares created on a backend, which is\n# greater than or equal to allocated_capacity_gb, which is the\n# apparent total capacity of all the shares created on a backend\n# in Manila.\n\nSo, if the idea is to convey what\u0027s \"used\" or consumed, we shouldn\u0027t overload the same term.","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"3f1b2ab3bdac2d4a6b71b6e4d7eeb83d0f3e8eb2","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"The API microversion will have to be bumped for this."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"* Add a response parameter ``used_size`` of type ``int`` that will display the"},{"line_number":71,"context_line":"  share provisioned capacity when list/show a share or share instances. The"},{"line_number":72,"context_line":"  ``used_size`` unit is GiB."},{"line_number":73,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_34aae1d1","line":70,"range":{"start_line":70,"start_character":29,"end_line":70,"end_character":38},"in_reply_to":"5ff73747_7ea5ed03","updated":"2017-04-25 15:43:05.000000000","message":"Because we use this attribute to signify the provisioned capacity for a thin provisioned share on a storage pool... If we use \"provisioned_capacity_gb\" in this, it could be confused.","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"0e19dea970aae3193cb75514a3967920f79caaa0","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"* Get real share provisioned capacity from driver::"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def update_share_usage_size(self, context, shares):"},{"line_number":145,"context_line":"        \"\"\"Invoked to get those shares that the usage size need"},{"line_number":146,"context_line":"        to be update."},{"line_number":147,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_a2247d0e","line":144,"range":{"start_line":144,"start_character":47,"end_line":144,"end_character":53},"updated":"2017-04-25 10:34:45.000000000","message":"I am not sure about this parameter.\n\nOn the one hand, the driver should know its own shares and not need to have the manager pass a list in.\n\nOn the other hand, perhaps you are thinking that the manager\nwill only ask for a certain subset of the shares?  If so,\nwould that be to limit the number of shares returned in a single call?\n\nI\u0027m not sure of your thinking on this.","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"ebc31902aed9b3609bdded4197c699b07978bd64","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"* Get real share provisioned capacity from driver::"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def update_share_usage_size(self, context, shares):"},{"line_number":145,"context_line":"        \"\"\"Invoked to get those shares that the usage size need"},{"line_number":146,"context_line":"        to be update."},{"line_number":147,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_9b2e8bf8","line":144,"range":{"start_line":144,"start_character":47,"end_line":144,"end_character":53},"in_reply_to":"5ff73747_a2247d0e","updated":"2017-04-25 12:18:46.000000000","message":"1. How should the driver know its own shares. In some driver, The only different thing between manila shares and other shares is share name. It is hard to find manila shares by share name. User could manually create a share with manila share name in array, and this share doesn\u0027t be managed by manila.\n\nSo the driver should not know which share is belong to manila or belong to this share service node. So, the driver should know its own shares from DB.\n\n2. We can access DB in the share manager, and we can not access DB in the driver. so we need to have the manager pass a list in.","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"b4ffc267a397d8f91faa5127ee267fef024e2a2c","unresolved":false,"context_lines":[{"line_number":184,"context_line":"Performance impact"},{"line_number":185,"context_line":"------------------"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"Collecting share usage could have negative service performance impact."},{"line_number":188,"context_line":"When the size of a share is known at the moment of creation and does not"},{"line_number":189,"context_line":"change without an explicit extend or shrink, we don\u0027t have to collect usage"},{"line_number":190,"context_line":"at all. Now we have to collect usage. It could be costly."}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_bee9351b","line":187,"range":{"start_line":187,"start_character":23,"end_line":187,"end_character":28},"updated":"2017-04-25 12:36:39.000000000","message":"Not \"could\", it will have considerable performance impact.","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"3f1b2ab3bdac2d4a6b71b6e4d7eeb83d0f3e8eb2","unresolved":false,"context_lines":[{"line_number":184,"context_line":"Performance impact"},{"line_number":185,"context_line":"------------------"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"Collecting share usage could have negative service performance impact."},{"line_number":188,"context_line":"When the size of a share is known at the moment of creation and does not"},{"line_number":189,"context_line":"change without an explicit extend or shrink, we don\u0027t have to collect usage"},{"line_number":190,"context_line":"at all. Now we have to collect usage. It could be costly."}],"source_content_type":"text/x-rst","patch_set":4,"id":"5ff73747_b4871162","line":187,"range":{"start_line":187,"start_character":23,"end_line":187,"end_character":28},"in_reply_to":"5ff73747_bee9351b","updated":"2017-04-25 15:43:05.000000000","message":"Done","commit_id":"240fa94d8ec95e292acd1199334f142502d7d836"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"f3b2d40a224dd92ced58ad6b99f8cb42e2970da0","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Share usage size tracking"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/manila/+spec/share-usage-size"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_e6e166fe","line":8,"updated":"2017-04-25 20:15:49.000000000","message":"IMHO This should be \"Share usage tracking\". The term \"usage\" already express that we are going to measure how much of the share is being used. I\u0027m afraid this impacts all the spec though.","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"b89bc0270fe880609c890ba31575af5755c961aa","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Share usage size tracking"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/manila/+spec/share-usage-size"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_16cc7768","line":8,"in_reply_to":"5ff73747_e6e166fe","updated":"2017-04-26 02:43:56.000000000","message":"\"Share usage tracking\" maybe means  share usage file number tracking, share usage number tracking, share usage size tracking or we need to track both. So if we change it to \"Share usage tracking\", it should be inexactly for user/admin/maintainer.","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"f3b2d40a224dd92ced58ad6b99f8cb42e2970da0","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://blueprints.launchpad.net/manila/+spec/share-usage-size"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"We need to have a way to gather information about actual share storage usages,"},{"line_number":14,"context_line":"so cloud operators could use this information for billing."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_a6d59ee7","line":14,"updated":"2017-04-25 20:15:49.000000000","message":"This info can be used for billing but for other purposes as well. I\u0027d say, \"so cloud operators could use this information for billing, health checks and/or other purposes.\"","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"b89bc0270fe880609c890ba31575af5755c961aa","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://blueprints.launchpad.net/manila/+spec/share-usage-size"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"We need to have a way to gather information about actual share storage usages,"},{"line_number":14,"context_line":"so cloud operators could use this information for billing."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Problem description"},{"line_number":17,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_b6c0232c","line":14,"in_reply_to":"5ff73747_a6d59ee7","updated":"2017-04-26 02:43:56.000000000","message":"Done","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"f3b2d40a224dd92ced58ad6b99f8cb42e2970da0","unresolved":false,"context_lines":[{"line_number":50,"context_line":"We will implement \"Memcached\" support in manila, in order to store share"},{"line_number":51,"context_line":"usage size info."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Alternatives"},{"line_number":54,"context_line":"------------"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Why we don\u0027t gather the space usage when we need to use it (such as : list,"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_6998871a","line":53,"updated":"2017-04-25 20:15:49.000000000","message":"Could you add bullets from the information below? I think it make it more legible.","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"b89bc0270fe880609c890ba31575af5755c961aa","unresolved":false,"context_lines":[{"line_number":50,"context_line":"We will implement \"Memcached\" support in manila, in order to store share"},{"line_number":51,"context_line":"usage size info."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Alternatives"},{"line_number":54,"context_line":"------------"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Why we don\u0027t gather the space usage when we need to use it (such as : list,"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_168917c9","line":53,"in_reply_to":"5ff73747_6998871a","updated":"2017-04-26 02:43:56.000000000","message":"Done","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"f3b2d40a224dd92ced58ad6b99f8cb42e2970da0","unresolved":false,"context_lines":[{"line_number":58,"context_line":"Because we could publish such real time information to ceilometer."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"Why we don\u0027t store the space usage in DB."},{"line_number":61,"context_line":"Because many operations need to update many info of DB, and updating the banch"},{"line_number":62,"context_line":"of usage size info will hit DB."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Why we don\u0027t use redis or a higher level abstraction."}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_e9d5b7b8","line":61,"updated":"2017-04-25 20:15:49.000000000","message":"I understand this as since it is a periodic task and accessing the db is an expensive op we should avoid storing this information in the db. Right?","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"b89bc0270fe880609c890ba31575af5755c961aa","unresolved":false,"context_lines":[{"line_number":58,"context_line":"Because we could publish such real time information to ceilometer."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"Why we don\u0027t store the space usage in DB."},{"line_number":61,"context_line":"Because many operations need to update many info of DB, and updating the banch"},{"line_number":62,"context_line":"of usage size info will hit DB."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Why we don\u0027t use redis or a higher level abstraction."}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_16fa3774","line":61,"in_reply_to":"5ff73747_e9d5b7b8","updated":"2017-04-26 02:43:56.000000000","message":"yes","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"f3b2d40a224dd92ced58ad6b99f8cb42e2970da0","unresolved":false,"context_lines":[{"line_number":62,"context_line":"of usage size info will hit DB."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Why we don\u0027t use redis or a higher level abstraction."},{"line_number":65,"context_line":"Because some OpenStack core projects already used the memcatched, such as:"},{"line_number":66,"context_line":"keystone, nova. We don\u0027t need to import another plugin when we want to deploy"},{"line_number":67,"context_line":"manila, and the memcatched already meet our requirement."},{"line_number":68,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_29eddf8a","line":65,"updated":"2017-04-25 20:15:49.000000000","message":"s/memcatched/memcached/g","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"b89bc0270fe880609c890ba31575af5755c961aa","unresolved":false,"context_lines":[{"line_number":62,"context_line":"of usage size info will hit DB."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Why we don\u0027t use redis or a higher level abstraction."},{"line_number":65,"context_line":"Because some OpenStack core projects already used the memcatched, such as:"},{"line_number":66,"context_line":"keystone, nova. We don\u0027t need to import another plugin when we want to deploy"},{"line_number":67,"context_line":"manila, and the memcatched already meet our requirement."},{"line_number":68,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_16d117fc","line":65,"in_reply_to":"5ff73747_29eddf8a","updated":"2017-04-26 02:43:56.000000000","message":"Done","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"f3b2d40a224dd92ced58ad6b99f8cb42e2970da0","unresolved":false,"context_lines":[{"line_number":64,"context_line":"Why we don\u0027t use redis or a higher level abstraction."},{"line_number":65,"context_line":"Because some OpenStack core projects already used the memcatched, such as:"},{"line_number":66,"context_line":"keystone, nova. We don\u0027t need to import another plugin when we want to deploy"},{"line_number":67,"context_line":"manila, and the memcatched already meet our requirement."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_09046349","line":67,"updated":"2017-04-25 20:15:49.000000000","message":"Ditto.","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"b89bc0270fe880609c890ba31575af5755c961aa","unresolved":false,"context_lines":[{"line_number":64,"context_line":"Why we don\u0027t use redis or a higher level abstraction."},{"line_number":65,"context_line":"Because some OpenStack core projects already used the memcatched, such as:"},{"line_number":66,"context_line":"keystone, nova. We don\u0027t need to import another plugin when we want to deploy"},{"line_number":67,"context_line":"manila, and the memcatched already meet our requirement."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_b6d5c3e7","line":67,"in_reply_to":"5ff73747_09046349","updated":"2017-04-26 02:43:56.000000000","message":"Done","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"97e0883a3e9b738d84bf92e8416ca41efb5a58a5","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":"The API microversion will have to be bumped for this."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"* Add a response parameter ``provisioned_capacity_gb`` of type ``int`` that"},{"line_number":81,"context_line":"  will display the share provisioned capacity when list/show a share or share"},{"line_number":82,"context_line":"  instances. The ``provisioned_capacity_gb`` unit is GiB."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"  List Share"},{"line_number":85,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_8d49a48c","line":82,"range":{"start_line":80,"start_character":0,"end_line":82,"end_character":57},"updated":"2017-04-25 16:26:54.000000000","message":"you must be misunderstanding what provisioned_capacity_gb means currently in manila:\n\nIt means the amount of storage that has been subscribed or claimed on the backend. It is neither the used capacity or the allocated capacity. Provisioned capacity can take into consideration storage that is not allocated via manila. \n\nTake a look at this documentation:\nhttps://docs.openstack.org/admin-guide/blockstorage-over-subscription.html","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"b89bc0270fe880609c890ba31575af5755c961aa","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":"The API microversion will have to be bumped for this."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"* Add a response parameter ``provisioned_capacity_gb`` of type ``int`` that"},{"line_number":81,"context_line":"  will display the share provisioned capacity when list/show a share or share"},{"line_number":82,"context_line":"  instances. The ``provisioned_capacity_gb`` unit is GiB."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"  List Share"},{"line_number":85,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_569f9f02","line":82,"range":{"start_line":80,"start_character":0,"end_line":82,"end_character":57},"in_reply_to":"5ff73747_7d6041a6","updated":"2017-04-26 02:43:56.000000000","message":"Done","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"f3b2d40a224dd92ced58ad6b99f8cb42e2970da0","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":"The API microversion will have to be bumped for this."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"* Add a response parameter ``provisioned_capacity_gb`` of type ``int`` that"},{"line_number":81,"context_line":"  will display the share provisioned capacity when list/show a share or share"},{"line_number":82,"context_line":"  instances. The ``provisioned_capacity_gb`` unit is GiB."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"  List Share"},{"line_number":85,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_7d6041a6","line":82,"range":{"start_line":80,"start_character":0,"end_line":82,"end_character":57},"in_reply_to":"5ff73747_8d49a48c","updated":"2017-04-25 20:15:49.000000000","message":"+1","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"b89bc0270fe880609c890ba31575af5755c961aa","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":"The API microversion will have to be bumped for this."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"* Add a response parameter ``provisioned_capacity_gb`` of type ``int`` that"},{"line_number":81,"context_line":"  will display the share provisioned capacity when list/show a share or share"},{"line_number":82,"context_line":"  instances. The ``provisioned_capacity_gb`` unit is GiB."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"  List Share"},{"line_number":85,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_969527e7","line":82,"range":{"start_line":80,"start_character":0,"end_line":82,"end_character":57},"in_reply_to":"5ff73747_8d49a48c","updated":"2017-04-26 02:43:56.000000000","message":"Done","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"f3b2d40a224dd92ced58ad6b99f8cb42e2970da0","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"* Get real share provisioned capacity from driver::"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def update_share_usage_size(self, context, shares):"},{"line_number":155,"context_line":"        \"\"\"Invoked to get those shares that the usage size need"},{"line_number":156,"context_line":"        to be update."},{"line_number":157,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_fdf8d1c4","line":154,"updated":"2017-04-25 20:15:49.000000000","message":"s/update_share_usage_size/update_share_usage/g","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"b89bc0270fe880609c890ba31575af5755c961aa","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"* Get real share provisioned capacity from driver::"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def update_share_usage_size(self, context, shares):"},{"line_number":155,"context_line":"        \"\"\"Invoked to get those shares that the usage size need"},{"line_number":156,"context_line":"        to be update."},{"line_number":157,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5ff73747_9679a7fd","line":154,"in_reply_to":"5ff73747_fdf8d1c4","updated":"2017-04-26 02:43:56.000000000","message":"above","commit_id":"84e514259969aefc1019a3647d37d8e077c213b6"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"14c403a5cd78e7e44beedd459a0cc615044ee231","unresolved":false,"context_lines":[{"line_number":27,"context_line":"* Manila could report storage usages to metering services like ceilometer."},{"line_number":28,"context_line":"* Some storage backends do not reserve whole requested share size right away"},{"line_number":29,"context_line":"  after share creation and just set quota/limit for shares, for such backends"},{"line_number":30,"context_line":"  it is more suitable to bill for usage, not limit/quota."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Proposed change"},{"line_number":33,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_fd9bec62","line":30,"range":{"start_line":30,"start_character":5,"end_line":30,"end_character":7},"updated":"2017-04-27 14:39:37.000000000","message":"Suggest: \"may be\".  It\u0027s the cloud admin\u0027s business what she bills for or even whether she uses billing or some kind of central planning to manage resources.","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"14c403a5cd78e7e44beedd459a0cc615044ee231","unresolved":false,"context_lines":[{"line_number":40,"context_line":"in their drivers and in their clouds."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"We will implement \"Memcached\" support in manila, in order to store share usage"},{"line_number":43,"context_line":"size info. And add common library method to update share usage size info by"},{"line_number":44,"context_line":"driver."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"The update_share_usage_size() driver method is a new driver method which will"},{"line_number":47,"context_line":"be called after driver initialization and in the periodic task, that get"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_5d08a090","line":44,"range":{"start_line":43,"start_character":11,"end_line":44,"end_character":7},"updated":"2017-04-27 14:39:37.000000000","message":"Given your thoughts later on about doing the update from the manager rather than from the driver, this method would no longer be needed.","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"cfe690794ae6cd8ceee4bf6d6838315b8450dcec","unresolved":false,"context_lines":[{"line_number":39,"context_line":"Administrators and driver developers can \"opt-in\" to enable this feature"},{"line_number":40,"context_line":"in their drivers and in their clouds."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"We will implement \"Memcached\" support in manila, in order to store share usage"},{"line_number":43,"context_line":"size info. And add common library method to update share usage size info by"},{"line_number":44,"context_line":"driver."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"The update_share_usage_size() driver method is a new driver method which will"},{"line_number":47,"context_line":"be called after driver initialization and in the periodic task, that get"},{"line_number":48,"context_line":"shares usage size from array and use common method to update shares usage size"},{"line_number":49,"context_line":"info(key\u003dshare_id, value\u003dshare_usage_size) in Memcached. The List/Show APIs or"},{"line_number":50,"context_line":"ceilometer can get share usage size from Memcached."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_905e2a74","line":50,"range":{"start_line":42,"start_character":0,"end_line":50,"end_character":51},"updated":"2017-04-26 21:03:05.000000000","message":"As you know, I\u0027m somewhat fond of this idea, but I\u0027d really like to get some other folks to think it through and perhaps \"shoot holes in it.\"\n\nIf the idea does survive, then we\u0027d need in this spec to indicate how the memcached namespace would be set up so that different drivers don\u0027t step on one another.\n\nOne idea, just \"brainstorming\", is that when a share is created the manager would set up a key-value pair in memcache for the share in an appropriate driver namespace (and this could be implemented relationally rather than hierarchically if that makes sense - I don\u0027t know much about memcached).  Besides avoiding concurrent update issues by multiple backends that would allow the manager to tell the driver to \"update usages\" (either by a periodic or command trigger) and the driver could just walk the namespace and do updates.\n\nSince it may take time for the driver to visit every share and update its usage it may make sense to save an \u0027updated_at\u0027 timestamp along with the usage stat?","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"14c403a5cd78e7e44beedd459a0cc615044ee231","unresolved":false,"context_lines":[{"line_number":39,"context_line":"Administrators and driver developers can \"opt-in\" to enable this feature"},{"line_number":40,"context_line":"in their drivers and in their clouds."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"We will implement \"Memcached\" support in manila, in order to store share usage"},{"line_number":43,"context_line":"size info. And add common library method to update share usage size info by"},{"line_number":44,"context_line":"driver."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"The update_share_usage_size() driver method is a new driver method which will"},{"line_number":47,"context_line":"be called after driver initialization and in the periodic task, that get"},{"line_number":48,"context_line":"shares usage size from array and use common method to update shares usage size"},{"line_number":49,"context_line":"info(key\u003dshare_id, value\u003dshare_usage_size) in Memcached. The List/Show APIs or"},{"line_number":50,"context_line":"ceilometer can get share usage size from Memcached."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_3dbf14b1","line":50,"range":{"start_line":42,"start_character":0,"end_line":50,"end_character":51},"in_reply_to":"5ff73747_5bdf95d5","updated":"2017-04-27 14:39:37.000000000","message":"Well I was thinking of using a separate thread from the driver for updating the share usages and I thought a date-time-stamp for the memcached key-values would show success status for updates.\n\nBut maybe all that is too fancy when I think about it.  If a cloud admin has a backend with a large number of shares and it takes too long they could turn off the periodic task, given your proposal, and run their own cron job outside manila that gets all share IDs for the backend and calls an api to update the shares in smaller batches (just passing some rather than all of the shares for the backend in each call to the driver).\n\nI guess there could still be a delay at service startup though ...","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":39,"context_line":"Administrators and driver developers can \"opt-in\" to enable this feature"},{"line_number":40,"context_line":"in their drivers and in their clouds."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"We will implement \"Memcached\" support in manila, in order to store share usage"},{"line_number":43,"context_line":"size info. And add common library method to update share usage size info by"},{"line_number":44,"context_line":"driver."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"The update_share_usage_size() driver method is a new driver method which will"},{"line_number":47,"context_line":"be called after driver initialization and in the periodic task, that get"},{"line_number":48,"context_line":"shares usage size from array and use common method to update shares usage size"},{"line_number":49,"context_line":"info(key\u003dshare_id, value\u003dshare_usage_size) in Memcached. The List/Show APIs or"},{"line_number":50,"context_line":"ceilometer can get share usage size from Memcached."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_5bdf95d5","line":50,"range":{"start_line":42,"start_character":0,"end_line":50,"end_character":51},"in_reply_to":"5ff73747_905e2a74","updated":"2017-04-27 12:29:51.000000000","message":"Hi Tom, I thought it again, We have manila share service child process for each backend. If we add a periodic task in share service. It means we create a periodic task for each backend, so we don\u0027t need to care about avoiding concurrent update issues by multiple backends. Because we don\u0027t need to care about two task in two different child progress.\nA periodic task is a cycle logic, but it only to do one thing (update share usage size), whatever we update memcached data in manager or we update memcached data in driver, we still need to waiting for this thing has been finished, because we need to know whether the shares usage info stored in memcatched is success. so we could not need to think about \"avoiding have the manager synchronously call into the driver and wait for the driver to return a list of usages for all shares. My concern is that this synchronous call may not scale well with a large number of shares on a backend.\"\nIf I made some mistake, please let me know.","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":64,"context_line":"  should avoid storing this information in the db."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"* Why we don\u0027t use redis or a higher level abstraction."},{"line_number":67,"context_line":"  Because some OpenStack core projects already used the memcached, such as:"},{"line_number":68,"context_line":"  keystone, nova. We don\u0027t need to import another plugin when we want to"},{"line_number":69,"context_line":"  deploy manila, and the memcached already meet our requirement."},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_81fb6c45","line":67,"range":{"start_line":67,"start_character":47,"end_line":67,"end_character":64},"updated":"2017-04-27 11:06:30.000000000","message":"used memcached","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":64,"context_line":"  should avoid storing this information in the db."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"* Why we don\u0027t use redis or a higher level abstraction."},{"line_number":67,"context_line":"  Because some OpenStack core projects already used the memcached, such as:"},{"line_number":68,"context_line":"  keystone, nova. We don\u0027t need to import another plugin when we want to"},{"line_number":69,"context_line":"  deploy manila, and the memcached already meet our requirement."},{"line_number":70,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_24694620","line":67,"range":{"start_line":67,"start_character":47,"end_line":67,"end_character":64},"in_reply_to":"5ff73747_81fb6c45","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":66,"context_line":"* Why we don\u0027t use redis or a higher level abstraction."},{"line_number":67,"context_line":"  Because some OpenStack core projects already used the memcached, such as:"},{"line_number":68,"context_line":"  keystone, nova. We don\u0027t need to import another plugin when we want to"},{"line_number":69,"context_line":"  deploy manila, and the memcached already meet our requirement."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"* Why we don\u0027t just pushing data immediately to ceilometer without any"},{"line_number":72,"context_line":"  pseudo-persistence in manila."}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_61df40d6","line":69,"range":{"start_line":69,"start_character":17,"end_line":69,"end_character":34},"updated":"2017-04-27 11:06:30.000000000","message":"and memcached","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":66,"context_line":"* Why we don\u0027t use redis or a higher level abstraction."},{"line_number":67,"context_line":"  Because some OpenStack core projects already used the memcached, such as:"},{"line_number":68,"context_line":"  keystone, nova. We don\u0027t need to import another plugin when we want to"},{"line_number":69,"context_line":"  deploy manila, and the memcached already meet our requirement."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"* Why we don\u0027t just pushing data immediately to ceilometer without any"},{"line_number":72,"context_line":"  pseudo-persistence in manila."}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_01e87c79","line":69,"range":{"start_line":69,"start_character":43,"end_line":69,"end_character":47},"updated":"2017-04-27 11:06:30.000000000","message":"meets","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":66,"context_line":"* Why we don\u0027t use redis or a higher level abstraction."},{"line_number":67,"context_line":"  Because some OpenStack core projects already used the memcached, such as:"},{"line_number":68,"context_line":"  keystone, nova. We don\u0027t need to import another plugin when we want to"},{"line_number":69,"context_line":"  deploy manila, and the memcached already meet our requirement."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"* Why we don\u0027t just pushing data immediately to ceilometer without any"},{"line_number":72,"context_line":"  pseudo-persistence in manila."}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_844dbac5","line":69,"range":{"start_line":69,"start_character":43,"end_line":69,"end_character":47},"in_reply_to":"5ff73747_01e87c79","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":66,"context_line":"* Why we don\u0027t use redis or a higher level abstraction."},{"line_number":67,"context_line":"  Because some OpenStack core projects already used the memcached, such as:"},{"line_number":68,"context_line":"  keystone, nova. We don\u0027t need to import another plugin when we want to"},{"line_number":69,"context_line":"  deploy manila, and the memcached already meet our requirement."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"* Why we don\u0027t just pushing data immediately to ceilometer without any"},{"line_number":72,"context_line":"  pseudo-persistence in manila."}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_644aaeac","line":69,"range":{"start_line":69,"start_character":17,"end_line":69,"end_character":34},"in_reply_to":"5ff73747_61df40d6","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  keystone, nova. We don\u0027t need to import another plugin when we want to"},{"line_number":69,"context_line":"  deploy manila, and the memcached already meet our requirement."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"* Why we don\u0027t just pushing data immediately to ceilometer without any"},{"line_number":72,"context_line":"  pseudo-persistence in manila."},{"line_number":73,"context_line":"  Because gathering usage size from memcached will reduce the interaction and"},{"line_number":74,"context_line":"  improve the performance when we have multiple manila share service nodes."}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_019d1c09","line":71,"range":{"start_line":71,"start_character":20,"end_line":71,"end_character":27},"updated":"2017-04-27 11:06:30.000000000","message":"push","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  keystone, nova. We don\u0027t need to import another plugin when we want to"},{"line_number":69,"context_line":"  deploy manila, and the memcached already meet our requirement."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"* Why we don\u0027t just pushing data immediately to ceilometer without any"},{"line_number":72,"context_line":"  pseudo-persistence in manila."},{"line_number":73,"context_line":"  Because gathering usage size from memcached will reduce the interaction and"},{"line_number":74,"context_line":"  improve the performance when we have multiple manila share service nodes."}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_44c9f223","line":71,"range":{"start_line":71,"start_character":20,"end_line":71,"end_character":27},"in_reply_to":"5ff73747_019d1c09","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":72,"context_line":"  pseudo-persistence in manila."},{"line_number":73,"context_line":"  Because gathering usage size from memcached will reduce the interaction and"},{"line_number":74,"context_line":"  improve the performance when we have multiple manila share service nodes."},{"line_number":75,"context_line":"  The ceilometer just need to obtain shares usage size from memcached rather"},{"line_number":76,"context_line":"  than obtain shares usage size from multiple share service nodes."},{"line_number":77,"context_line":"  We not only pushing data to ceilometer, but also pushing data to List/Show"},{"line_number":78,"context_line":"  APIs or other third party softeware that they need to obtain shares usage"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_618d00d2","line":75,"range":{"start_line":75,"start_character":2,"end_line":75,"end_character":16},"updated":"2017-04-27 11:06:30.000000000","message":"Ceilometer","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":72,"context_line":"  pseudo-persistence in manila."},{"line_number":73,"context_line":"  Because gathering usage size from memcached will reduce the interaction and"},{"line_number":74,"context_line":"  improve the performance when we have multiple manila share service nodes."},{"line_number":75,"context_line":"  The ceilometer just need to obtain shares usage size from memcached rather"},{"line_number":76,"context_line":"  than obtain shares usage size from multiple share service nodes."},{"line_number":77,"context_line":"  We not only pushing data to ceilometer, but also pushing data to List/Show"},{"line_number":78,"context_line":"  APIs or other third party softeware that they need to obtain shares usage"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_01b63c8b","line":75,"range":{"start_line":75,"start_character":22,"end_line":75,"end_character":26},"updated":"2017-04-27 11:06:30.000000000","message":"needs","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":72,"context_line":"  pseudo-persistence in manila."},{"line_number":73,"context_line":"  Because gathering usage size from memcached will reduce the interaction and"},{"line_number":74,"context_line":"  improve the performance when we have multiple manila share service nodes."},{"line_number":75,"context_line":"  The ceilometer just need to obtain shares usage size from memcached rather"},{"line_number":76,"context_line":"  than obtain shares usage size from multiple share service nodes."},{"line_number":77,"context_line":"  We not only pushing data to ceilometer, but also pushing data to List/Show"},{"line_number":78,"context_line":"  APIs or other third party softeware that they need to obtain shares usage"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_c48aa2bd","line":75,"range":{"start_line":75,"start_character":22,"end_line":75,"end_character":26},"in_reply_to":"5ff73747_01b63c8b","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":72,"context_line":"  pseudo-persistence in manila."},{"line_number":73,"context_line":"  Because gathering usage size from memcached will reduce the interaction and"},{"line_number":74,"context_line":"  improve the performance when we have multiple manila share service nodes."},{"line_number":75,"context_line":"  The ceilometer just need to obtain shares usage size from memcached rather"},{"line_number":76,"context_line":"  than obtain shares usage size from multiple share service nodes."},{"line_number":77,"context_line":"  We not only pushing data to ceilometer, but also pushing data to List/Show"},{"line_number":78,"context_line":"  APIs or other third party softeware that they need to obtain shares usage"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_e4a11e48","line":75,"range":{"start_line":75,"start_character":2,"end_line":75,"end_character":16},"in_reply_to":"5ff73747_618d00d2","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"14c403a5cd78e7e44beedd459a0cc615044ee231","unresolved":false,"context_lines":[{"line_number":72,"context_line":"  pseudo-persistence in manila."},{"line_number":73,"context_line":"  Because gathering usage size from memcached will reduce the interaction and"},{"line_number":74,"context_line":"  improve the performance when we have multiple manila share service nodes."},{"line_number":75,"context_line":"  The ceilometer just need to obtain shares usage size from memcached rather"},{"line_number":76,"context_line":"  than obtain shares usage size from multiple share service nodes."},{"line_number":77,"context_line":"  We not only pushing data to ceilometer, but also pushing data to List/Show"},{"line_number":78,"context_line":"  APIs or other third party softeware that they need to obtain shares usage"},{"line_number":79,"context_line":"  size. Some of the requirement don\u0027t need to obtain shares usage size"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_9dfbc845","line":76,"range":{"start_line":75,"start_character":2,"end_line":76,"end_character":65},"updated":"2017-04-27 14:39:37.000000000","message":"Let\u0027s check with vkmc on how ceilometer will consume the data and whether having this data in memcached is an advantage if there are multiple active share service nodes.  We\u0027ll can have multiple active share-service processes on a single node already of course, even without active-active share service, so I do think the multiple-data-producer scenario that you bring up is important for getting this design right.","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":74,"context_line":"  improve the performance when we have multiple manila share service nodes."},{"line_number":75,"context_line":"  The ceilometer just need to obtain shares usage size from memcached rather"},{"line_number":76,"context_line":"  than obtain shares usage size from multiple share service nodes."},{"line_number":77,"context_line":"  We not only pushing data to ceilometer, but also pushing data to List/Show"},{"line_number":78,"context_line":"  APIs or other third party softeware that they need to obtain shares usage"},{"line_number":79,"context_line":"  size. Some of the requirement don\u0027t need to obtain shares usage size"},{"line_number":80,"context_line":"  frequently. We need to change our manila code when we need to add new third"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_c1b3b497","line":77,"range":{"start_line":77,"start_character":2,"end_line":77,"end_character":8},"updated":"2017-04-27 11:06:30.000000000","message":"we are not","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":74,"context_line":"  improve the performance when we have multiple manila share service nodes."},{"line_number":75,"context_line":"  The ceilometer just need to obtain shares usage size from memcached rather"},{"line_number":76,"context_line":"  than obtain shares usage size from multiple share service nodes."},{"line_number":77,"context_line":"  We not only pushing data to ceilometer, but also pushing data to List/Show"},{"line_number":78,"context_line":"  APIs or other third party softeware that they need to obtain shares usage"},{"line_number":79,"context_line":"  size. Some of the requirement don\u0027t need to obtain shares usage size"},{"line_number":80,"context_line":"  frequently. We need to change our manila code when we need to add new third"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_a48796b5","line":77,"range":{"start_line":77,"start_character":2,"end_line":77,"end_character":8},"in_reply_to":"5ff73747_c1b3b497","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":75,"context_line":"  The ceilometer just need to obtain shares usage size from memcached rather"},{"line_number":76,"context_line":"  than obtain shares usage size from multiple share service nodes."},{"line_number":77,"context_line":"  We not only pushing data to ceilometer, but also pushing data to List/Show"},{"line_number":78,"context_line":"  APIs or other third party softeware that they need to obtain shares usage"},{"line_number":79,"context_line":"  size. Some of the requirement don\u0027t need to obtain shares usage size"},{"line_number":80,"context_line":"  frequently. We need to change our manila code when we need to add new third"},{"line_number":81,"context_line":"  party to obtain shares usage size, if we always pushing data immediately to"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_81a92c25","line":78,"range":{"start_line":78,"start_character":28,"end_line":78,"end_character":37},"updated":"2017-04-27 11:06:30.000000000","message":"software","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":75,"context_line":"  The ceilometer just need to obtain shares usage size from memcached rather"},{"line_number":76,"context_line":"  than obtain shares usage size from multiple share service nodes."},{"line_number":77,"context_line":"  We not only pushing data to ceilometer, but also pushing data to List/Show"},{"line_number":78,"context_line":"  APIs or other third party softeware that they need to obtain shares usage"},{"line_number":79,"context_line":"  size. Some of the requirement don\u0027t need to obtain shares usage size"},{"line_number":80,"context_line":"  frequently. We need to change our manila code when we need to add new third"},{"line_number":81,"context_line":"  party to obtain shares usage size, if we always pushing data immediately to"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_c4b3c297","line":78,"range":{"start_line":78,"start_character":28,"end_line":78,"end_character":37},"in_reply_to":"5ff73747_81a92c25","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":78,"context_line":"  APIs or other third party softeware that they need to obtain shares usage"},{"line_number":79,"context_line":"  size. Some of the requirement don\u0027t need to obtain shares usage size"},{"line_number":80,"context_line":"  frequently. We need to change our manila code when we need to add new third"},{"line_number":81,"context_line":"  party to obtain shares usage size, if we always pushing data immediately to"},{"line_number":82,"context_line":"  other project."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_414e8497","line":81,"range":{"start_line":81,"start_character":50,"end_line":81,"end_character":57},"updated":"2017-04-27 11:06:30.000000000","message":"push","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":78,"context_line":"  APIs or other third party softeware that they need to obtain shares usage"},{"line_number":79,"context_line":"  size. Some of the requirement don\u0027t need to obtain shares usage size"},{"line_number":80,"context_line":"  frequently. We need to change our manila code when we need to add new third"},{"line_number":81,"context_line":"  party to obtain shares usage size, if we always pushing data immediately to"},{"line_number":82,"context_line":"  other project."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_c47862c5","line":81,"range":{"start_line":81,"start_character":50,"end_line":81,"end_character":57},"in_reply_to":"5ff73747_414e8497","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":166,"context_line":"* Get real share provisioned capacity from driver::"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def update_share_usage_size(self, context, shares):"},{"line_number":169,"context_line":"        \"\"\"Invoked to get those shares that the usage size need"},{"line_number":170,"context_line":"        to be update."},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"        Driver can use this method to update the share usage size of"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_411c4477","line":169,"range":{"start_line":169,"start_character":22,"end_line":169,"end_character":38},"updated":"2017-04-27 11:06:30.000000000","message":"you don\u0027t get the share, you get their usage. I suggest:\n\nInvoked to get the usage size of given shares.","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":166,"context_line":"* Get real share provisioned capacity from driver::"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def update_share_usage_size(self, context, shares):"},{"line_number":169,"context_line":"        \"\"\"Invoked to get those shares that the usage size need"},{"line_number":170,"context_line":"        to be update."},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"        Driver can use this method to update the share usage size of"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_04440a73","line":169,"range":{"start_line":169,"start_character":22,"end_line":169,"end_character":38},"in_reply_to":"5ff73747_411c4477","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        to be update."},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"        Driver can use this method to update the share usage size of"},{"line_number":173,"context_line":"        the shares. To do that, you should return dictionary"},{"line_number":174,"context_line":"        of shares."},{"line_number":175,"context_line":"        :shares: None or a list of all shares for updates."},{"line_number":176,"context_line":"        :return None or a dictionary of updates in the format::"},{"line_number":177,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_c10f3435","line":174,"range":{"start_line":173,"start_character":32,"end_line":174,"end_character":18},"updated":"2017-04-27 11:06:30.000000000","message":"I recommend using past participle: \"a dictionary of shares should be returned.\"","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        to be update."},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"        Driver can use this method to update the share usage size of"},{"line_number":173,"context_line":"        the shares. To do that, you should return dictionary"},{"line_number":174,"context_line":"        of shares."},{"line_number":175,"context_line":"        :shares: None or a list of all shares for updates."},{"line_number":176,"context_line":"        :return None or a dictionary of updates in the format::"},{"line_number":177,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_a45e7641","line":174,"range":{"start_line":173,"start_character":32,"end_line":174,"end_character":18},"in_reply_to":"5ff73747_c10f3435","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":187,"context_line":"The share manager will catch the raise exception (NotImplementedError) from"},{"line_number":188,"context_line":"driver to check whether the driver can support the update_share_usage_size"},{"line_number":189,"context_line":"method. We will not invoke the periodic task to update share usage size, if"},{"line_number":190,"context_line":"all backend in share service can not support the update_share_usage_size"},{"line_number":191,"context_line":"method."},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_6102a00d","line":190,"range":{"start_line":190,"start_character":4,"end_line":190,"end_character":11},"updated":"2017-04-27 11:06:30.000000000","message":"backends","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":187,"context_line":"The share manager will catch the raise exception (NotImplementedError) from"},{"line_number":188,"context_line":"driver to check whether the driver can support the update_share_usage_size"},{"line_number":189,"context_line":"method. We will not invoke the periodic task to update share usage size, if"},{"line_number":190,"context_line":"all backend in share service can not support the update_share_usage_size"},{"line_number":191,"context_line":"method."},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_2406e61e","line":190,"range":{"start_line":190,"start_character":29,"end_line":190,"end_character":36},"updated":"2017-04-27 11:06:30.000000000","message":"cannot","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":187,"context_line":"The share manager will catch the raise exception (NotImplementedError) from"},{"line_number":188,"context_line":"driver to check whether the driver can support the update_share_usage_size"},{"line_number":189,"context_line":"method. We will not invoke the periodic task to update share usage size, if"},{"line_number":190,"context_line":"all backend in share service can not support the update_share_usage_size"},{"line_number":191,"context_line":"method."},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_44333215","line":190,"range":{"start_line":190,"start_character":29,"end_line":190,"end_character":36},"in_reply_to":"5ff73747_2406e61e","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":187,"context_line":"The share manager will catch the raise exception (NotImplementedError) from"},{"line_number":188,"context_line":"driver to check whether the driver can support the update_share_usage_size"},{"line_number":189,"context_line":"method. We will not invoke the periodic task to update share usage size, if"},{"line_number":190,"context_line":"all backend in share service can not support the update_share_usage_size"},{"line_number":191,"context_line":"method."},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_a42316bd","line":190,"range":{"start_line":190,"start_character":4,"end_line":190,"end_character":11},"in_reply_to":"5ff73747_6102a00d","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"15aa446945a74e63aacf46e722b42ce834f233ec","unresolved":false,"context_lines":[{"line_number":208,"context_line":"Performance impact"},{"line_number":209,"context_line":"------------------"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"Collecting share usage have negative service performance impact."},{"line_number":212,"context_line":"When the size of a share is known at the moment of creation and does not"},{"line_number":213,"context_line":"change without an explicit extend or shrink, we don\u0027t have to collect usage"},{"line_number":214,"context_line":"at all. Now we have to collect usage. It could be costly."}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_64174e47","line":211,"range":{"start_line":211,"start_character":23,"end_line":211,"end_character":27},"updated":"2017-04-27 11:06:30.000000000","message":"has a","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0a80024c92e58fcf5160dce6933030ee55c84f1c","unresolved":false,"context_lines":[{"line_number":208,"context_line":"Performance impact"},{"line_number":209,"context_line":"------------------"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"Collecting share usage have negative service performance impact."},{"line_number":212,"context_line":"When the size of a share is known at the moment of creation and does not"},{"line_number":213,"context_line":"change without an explicit extend or shrink, we don\u0027t have to collect usage"},{"line_number":214,"context_line":"at all. Now we have to collect usage. It could be costly."}],"source_content_type":"text/x-rst","patch_set":11,"id":"5ff73747_441c5277","line":211,"range":{"start_line":211,"start_character":23,"end_line":211,"end_character":27},"in_reply_to":"5ff73747_64174e47","updated":"2017-04-27 12:29:51.000000000","message":"Done","commit_id":"47ac8a8424f8a8d47759e77d17b3657f4158d5d3"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c9a67c414950df848688f1b700dc22ab52525be9","unresolved":false,"context_lines":[{"line_number":29,"context_line":"  after share creation and just set quota/limit for shares, for such backends"},{"line_number":30,"context_line":"  it is more suitable to bill for usage, not limit/quota."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Proposed change"},{"line_number":33,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"Add the periodic task in share service for gathering the shares usage size."},{"line_number":36,"context_line":"The periodic task will be invoked after the share manager starts up. We"}],"source_content_type":"text/x-rst","patch_set":12,"id":"5ff73747_fa5e5274","line":33,"range":{"start_line":32,"start_character":0,"end_line":33,"end_character":15},"updated":"2017-04-27 15:00:35.000000000","message":"Is it correct to say that your proposal assumes that usage of \"memcached\" becomes a requirement? If then why exactly so? It should be solution for speeding things up, not requirement.","commit_id":"2f53ccee6a1acb39c0df84e28a12027c7c59b6b2"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"c2b3a60075d1eb5f5f302226a893c4a30e59334f","unresolved":false,"context_lines":[{"line_number":39,"context_line":"Administrators and driver developers can \"opt-in\" to enable this feature"},{"line_number":40,"context_line":"in their drivers and in their clouds."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"We will implement \"Memcached\" support in manila, in order to store share usage"},{"line_number":43,"context_line":"size info. And add common library method to update share usage size info."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"The update_share_usage_size() driver method is a new driver method which will"},{"line_number":46,"context_line":"be called after driver initialization and in the periodic task, that returns a"}],"source_content_type":"text/x-rst","patch_set":12,"id":"5ff73747_a6b9c8cc","line":43,"range":{"start_line":42,"start_character":0,"end_line":43,"end_character":73},"updated":"2017-04-27 19:25:56.000000000","message":"Remove references to memcached or any kind of storing the data within Manila.\n\nReplace with reference to notifiers to export the data to a service like Ceilometer, or any other consumer of nofications.","commit_id":"2f53ccee6a1acb39c0df84e28a12027c7c59b6b2"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c9a67c414950df848688f1b700dc22ab52525be9","unresolved":false,"context_lines":[{"line_number":49,"context_line":"(The share usage size is obtained from Memcached). If the usage size value has"},{"line_number":50,"context_line":"changed then the share info (key\u003dshare_id, value\u003dshare_usage_size) will be"},{"line_number":51,"context_line":"stored in Memcached, otherwise the share info don\u0027t need to update in Memcached."},{"line_number":52,"context_line":"If the share id is not exist in the previous value (obtaining from DB by host),"},{"line_number":53,"context_line":"the share info will be removed from Memcached. The List/Show APIs or ceilometer"},{"line_number":54,"context_line":"can get share usage size from Memcached."},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"5ff73747_5a2d46fc","line":52,"range":{"start_line":52,"start_character":16,"end_line":52,"end_character":28},"updated":"2017-04-27 15:00:35.000000000","message":"s/is not exist/does not exist/","commit_id":"2f53ccee6a1acb39c0df84e28a12027c7c59b6b2"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c9a67c414950df848688f1b700dc22ab52525be9","unresolved":false,"context_lines":[{"line_number":64,"context_line":"* Why we don\u0027t store the space usage in DB."},{"line_number":65,"context_line":"  Because many operations need to update many info of DB, and gathering usage"},{"line_number":66,"context_line":"  size is a periodic task and accessing the db is an expensive operation we"},{"line_number":67,"context_line":"  should avoid storing this information in the db."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"* Why we don\u0027t use redis or a higher level abstraction."},{"line_number":70,"context_line":"  Because some OpenStack core projects already used memcached, such as:"}],"source_content_type":"text/x-rst","patch_set":12,"id":"5ff73747_5af2e671","line":67,"range":{"start_line":67,"start_character":2,"end_line":67,"end_character":50},"updated":"2017-04-27 15:00:35.000000000","message":"Yes, should, but also we should not force people to use memcached always. Only-DB access should be supported anyway.","commit_id":"2f53ccee6a1acb39c0df84e28a12027c7c59b6b2"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c9a67c414950df848688f1b700dc22ab52525be9","unresolved":false,"context_lines":[{"line_number":71,"context_line":"  keystone, nova. We don\u0027t need to import another plugin when we want to"},{"line_number":72,"context_line":"  deploy manila, and memcached already meets our requirement."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"* Why we don\u0027t just push data immediately to ceilometer without any"},{"line_number":75,"context_line":"  pseudo-persistence in manila."},{"line_number":76,"context_line":"  Because gathering usage size from memcached will reduce the interaction and"},{"line_number":77,"context_line":"  improve the performance when we have multiple manila share service nodes."},{"line_number":78,"context_line":"  Ceilometer just needs to obtain shares usage size from memcached rather"},{"line_number":79,"context_line":"  than obtain shares usage size from multiple share service nodes."},{"line_number":80,"context_line":"  We are not only pushing data to ceilometer, but also pushing data to List/Show"},{"line_number":81,"context_line":"  APIs or other third party software that they need to obtain shares usage"},{"line_number":82,"context_line":"  size. Some of the requirement don\u0027t need to obtain shares usage size"},{"line_number":83,"context_line":"  frequently. We need to change our manila code when we need to add new third"},{"line_number":84,"context_line":"  party to obtain shares usage size, if we always push data immediately to"},{"line_number":85,"context_line":"  other project."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Data model impact"},{"line_number":88,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"5ff73747_1ab69e8b","line":85,"range":{"start_line":74,"start_character":2,"end_line":85,"end_character":16},"updated":"2017-04-27 15:00:35.000000000","message":"Not really correct. memcached solves only load questions. It should not be the only source of data.","commit_id":"2f53ccee6a1acb39c0df84e28a12027c7c59b6b2"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"c2b3a60075d1eb5f5f302226a893c4a30e59334f","unresolved":false,"context_lines":[{"line_number":92,"context_line":"REST API impact"},{"line_number":93,"context_line":"---------------"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"The API microversion will have to be bumped for this."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"* Add a response parameter ``used_size`` of type ``int`` that will display"},{"line_number":98,"context_line":"  the share provisioned capacity when list/show a share or share instances."},{"line_number":99,"context_line":"  The ``used_size`` unit is GiB."},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"  List Share"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"  GET  /v2/{tenant_id}/shares?detail"},{"line_number":104,"context_line":"  Example response:"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    .. code:: json"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        {"},{"line_number":109,"context_line":"            \"shares\": ["},{"line_number":110,"context_line":"                {"},{"line_number":111,"context_line":"                    \"id\": \"507bf114-36f2-4f56-8cf4-857985ca87c1\","},{"line_number":112,"context_line":"                    \"used_size\": 30,"},{"line_number":113,"context_line":"                    ..."},{"line_number":114,"context_line":"                }"},{"line_number":115,"context_line":"            ]"},{"line_number":116,"context_line":"        }"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"  Show Share"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"  GET  /v2/{tenant_id}/shares/507bf114-36f2-4f56-8cf4-857985ca87c1"},{"line_number":121,"context_line":"  Example response:"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"    .. code:: json"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        {"},{"line_number":126,"context_line":"            \"id\": \"507bf114-36f2-4f56-8cf4-857985ca87c1\","},{"line_number":127,"context_line":"            \"used_size\": 30,"},{"line_number":128,"context_line":"            ..."},{"line_number":129,"context_line":"        }"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"  List Share Instance"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"  GET  /v2/{tenant_id}/share_instances?detail"},{"line_number":134,"context_line":"  Example response:"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    .. code:: json"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        {"},{"line_number":139,"context_line":"            \"share_instances\": ["},{"line_number":140,"context_line":"                {"},{"line_number":141,"context_line":"                    \"id\": \"507bf114-36f2-4f56-8cf4-857985ca87c1\","},{"line_number":142,"context_line":"                    \"used_size\": 30,"},{"line_number":143,"context_line":"                    ..."},{"line_number":144,"context_line":"                }"},{"line_number":145,"context_line":"            ]"},{"line_number":146,"context_line":"        }"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"  Show Share Instance"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"  GET  /v2/{tenant_id}/share_instances/507bf114-36f2-4f56-8cf4-857985ca87c1"},{"line_number":151,"context_line":"  Example response:"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"    .. code:: json"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"        {"},{"line_number":156,"context_line":"            \"id\": \"507bf114-36f2-4f56-8cf4-857985ca87c1\","},{"line_number":157,"context_line":"            \"used_size\": 30,"},{"line_number":158,"context_line":"          ..."},{"line_number":159,"context_line":"        }"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"CLI impact"},{"line_number":162,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"5ff73747_06cabc4c","line":159,"range":{"start_line":95,"start_character":0,"end_line":159,"end_character":9},"updated":"2017-04-27 19:25:56.000000000","message":"Remove REST API impact. This feature should focus on the collection of the data and leave the storage and retrieval (REST API) parts to external services.","commit_id":"2f53ccee6a1acb39c0df84e28a12027c7c59b6b2"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"c2b3a60075d1eb5f5f302226a893c4a30e59334f","unresolved":false,"context_lines":[{"line_number":222,"context_line":"Other deployer impact"},{"line_number":223,"context_line":"---------------------"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"None"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"Developer impact"},{"line_number":228,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"5ff73747_e6d7d0ed","line":225,"updated":"2017-04-27 19:25:56.000000000","message":"Need to document what deployers need to do after upgrade to or installation of Pike to activate feature. We should highlight the fact that by default the feature is disabled and enabling it is a manual process.","commit_id":"2f53ccee6a1acb39c0df84e28a12027c7c59b6b2"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"c2b3a60075d1eb5f5f302226a893c4a30e59334f","unresolved":false,"context_lines":[{"line_number":265,"context_line":"- API reference"},{"line_number":266,"context_line":"- User guide and Admin guide"},{"line_number":267,"context_line":""},{"line_number":268,"context_line":"References"},{"line_number":269,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":12,"id":"5ff73747_a6078882","line":268,"updated":"2017-04-27 19:25:56.000000000","message":"Add reference to https://specs.openstack.org/openstack/manila-specs/specs/pike/ceilometer-integration.html","commit_id":"2f53ccee6a1acb39c0df84e28a12027c7c59b6b2"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"df870542eeac4e80a2547259e5e7869c3781378a","unresolved":false,"context_lines":[{"line_number":47,"context_line":"be called after driver initialization and in the periodic task, that returns a"},{"line_number":48,"context_line":"dictionary about shares id and shares usage size. The shares usage size value"},{"line_number":49,"context_line":"info will be notified to ceilometer or other project, otherwise the share info"},{"line_number":50,"context_line":"don\u0027t need to be notified."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Alternatives"},{"line_number":53,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_0dd9a2f1","line":50,"range":{"start_line":50,"start_character":0,"end_line":50,"end_character":5},"updated":"2017-04-28 12:20:09.000000000","message":"doesn\u0027t","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"db4cc31230f7822f71d01041de10feeb2c84cbfb","unresolved":false,"context_lines":[{"line_number":47,"context_line":"be called after driver initialization and in the periodic task, that returns a"},{"line_number":48,"context_line":"dictionary about shares id and shares usage size. The shares usage size value"},{"line_number":49,"context_line":"info will be notified to ceilometer or other project, otherwise the share info"},{"line_number":50,"context_line":"don\u0027t need to be notified."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Alternatives"},{"line_number":53,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_ab15c33e","line":50,"range":{"start_line":50,"start_character":0,"end_line":50,"end_character":5},"in_reply_to":"5ff73747_0dd9a2f1","updated":"2017-05-02 02:01:38.000000000","message":"Done","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"df870542eeac4e80a2547259e5e7869c3781378a","unresolved":false,"context_lines":[{"line_number":52,"context_line":"Alternatives"},{"line_number":53,"context_line":"------------"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* Why we don\u0027t gather the space usage when we need to use it (such as : list,"},{"line_number":56,"context_line":"  show APIs)?"},{"line_number":57,"context_line":"  Because we could publish such real time information to ceilometer."},{"line_number":58,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_8df6d262","line":55,"range":{"start_line":55,"start_character":69,"end_line":55,"end_character":70},"updated":"2017-04-28 12:20:09.000000000","message":"extra space","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"db4cc31230f7822f71d01041de10feeb2c84cbfb","unresolved":false,"context_lines":[{"line_number":52,"context_line":"Alternatives"},{"line_number":53,"context_line":"------------"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* Why we don\u0027t gather the space usage when we need to use it (such as : list,"},{"line_number":56,"context_line":"  show APIs)?"},{"line_number":57,"context_line":"  Because we could publish such real time information to ceilometer."},{"line_number":58,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_8b2a077c","line":55,"range":{"start_line":55,"start_character":69,"end_line":55,"end_character":70},"in_reply_to":"5ff73747_8df6d262","updated":"2017-05-02 02:01:38.000000000","message":"Done","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"df870542eeac4e80a2547259e5e7869c3781378a","unresolved":false,"context_lines":[{"line_number":59,"context_line":"* Why we don\u0027t store the space usage?"},{"line_number":60,"context_line":"  Because we can\u0027t implement this inside manila without duplicating"},{"line_number":61,"context_line":"  functionality already in other projects like ceilometer."},{"line_number":62,"context_line":"  it\u0027s a number that changes over time if the number is too old, it might"},{"line_number":63,"context_line":"  be wildly inaccurate. This kind of data greatly benefits from historical"},{"line_number":64,"context_line":"  storage too. We\u0027re not going to push the storage/retrieval parts of the"},{"line_number":65,"context_line":"  problem outside of manila to keep manila\u0027s scope small and focused."}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_2d8a1ebe","line":62,"range":{"start_line":62,"start_character":34,"end_line":62,"end_character":41},"updated":"2017-04-28 12:20:09.000000000","message":"time. If","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"db4cc31230f7822f71d01041de10feeb2c84cbfb","unresolved":false,"context_lines":[{"line_number":59,"context_line":"* Why we don\u0027t store the space usage?"},{"line_number":60,"context_line":"  Because we can\u0027t implement this inside manila without duplicating"},{"line_number":61,"context_line":"  functionality already in other projects like ceilometer."},{"line_number":62,"context_line":"  it\u0027s a number that changes over time if the number is too old, it might"},{"line_number":63,"context_line":"  be wildly inaccurate. This kind of data greatly benefits from historical"},{"line_number":64,"context_line":"  storage too. We\u0027re not going to push the storage/retrieval parts of the"},{"line_number":65,"context_line":"  problem outside of manila to keep manila\u0027s scope small and focused."}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_2b23f3a8","line":62,"range":{"start_line":62,"start_character":34,"end_line":62,"end_character":41},"in_reply_to":"5ff73747_2d8a1ebe","updated":"2017-05-02 02:01:38.000000000","message":"Done","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"df870542eeac4e80a2547259e5e7869c3781378a","unresolved":false,"context_lines":[{"line_number":60,"context_line":"  Because we can\u0027t implement this inside manila without duplicating"},{"line_number":61,"context_line":"  functionality already in other projects like ceilometer."},{"line_number":62,"context_line":"  it\u0027s a number that changes over time if the number is too old, it might"},{"line_number":63,"context_line":"  be wildly inaccurate. This kind of data greatly benefits from historical"},{"line_number":64,"context_line":"  storage too. We\u0027re not going to push the storage/retrieval parts of the"},{"line_number":65,"context_line":"  problem outside of manila to keep manila\u0027s scope small and focused."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_6db5c67d","line":64,"range":{"start_line":63,"start_character":24,"end_line":64,"end_character":14},"updated":"2017-04-28 12:20:09.000000000","message":"I don\u0027t understand what you are saying here","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"db4cc31230f7822f71d01041de10feeb2c84cbfb","unresolved":false,"context_lines":[{"line_number":60,"context_line":"  Because we can\u0027t implement this inside manila without duplicating"},{"line_number":61,"context_line":"  functionality already in other projects like ceilometer."},{"line_number":62,"context_line":"  it\u0027s a number that changes over time if the number is too old, it might"},{"line_number":63,"context_line":"  be wildly inaccurate. This kind of data greatly benefits from historical"},{"line_number":64,"context_line":"  storage too. We\u0027re not going to push the storage/retrieval parts of the"},{"line_number":65,"context_line":"  problem outside of manila to keep manila\u0027s scope small and focused."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_4bdbdf4d","line":64,"range":{"start_line":63,"start_character":24,"end_line":64,"end_character":14},"in_reply_to":"5ff73747_6db5c67d","updated":"2017-05-02 02:01:38.000000000","message":"Done","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"df870542eeac4e80a2547259e5e7869c3781378a","unresolved":false,"context_lines":[{"line_number":61,"context_line":"  functionality already in other projects like ceilometer."},{"line_number":62,"context_line":"  it\u0027s a number that changes over time if the number is too old, it might"},{"line_number":63,"context_line":"  be wildly inaccurate. This kind of data greatly benefits from historical"},{"line_number":64,"context_line":"  storage too. We\u0027re not going to push the storage/retrieval parts of the"},{"line_number":65,"context_line":"  problem outside of manila to keep manila\u0027s scope small and focused."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Data model impact"},{"line_number":68,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_eda8b620","line":65,"range":{"start_line":64,"start_character":15,"end_line":65,"end_character":69},"updated":"2017-04-28 12:20:09.000000000","message":"I am having difficulties understanding this as well. Seems like the statement contradicts itself.","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"db4cc31230f7822f71d01041de10feeb2c84cbfb","unresolved":false,"context_lines":[{"line_number":61,"context_line":"  functionality already in other projects like ceilometer."},{"line_number":62,"context_line":"  it\u0027s a number that changes over time if the number is too old, it might"},{"line_number":63,"context_line":"  be wildly inaccurate. This kind of data greatly benefits from historical"},{"line_number":64,"context_line":"  storage too. We\u0027re not going to push the storage/retrieval parts of the"},{"line_number":65,"context_line":"  problem outside of manila to keep manila\u0027s scope small and focused."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Data model impact"},{"line_number":68,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_abe943e3","line":65,"range":{"start_line":64,"start_character":15,"end_line":65,"end_character":69},"in_reply_to":"5ff73747_eda8b620","updated":"2017-05-02 02:01:38.000000000","message":":) sorry, it is a copy error.","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"e8a0e84fb849b8b5132565a8f53db769b5c8c1f2","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"The share manager will catch the raise exception (NotImplementedError) from"},{"line_number":106,"context_line":"driver to check whether the driver can support the update_share_usage_size"},{"line_number":107,"context_line":"method. We will not invoke the periodic task to update share usage size, if"},{"line_number":108,"context_line":"all backends in share service cannot support the update_share_usage_size"},{"line_number":109,"context_line":"method."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"Security impact"},{"line_number":112,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_ae6a9e16","line":109,"range":{"start_line":107,"start_character":8,"end_line":109,"end_character":7},"updated":"2017-04-28 17:14:48.000000000","message":"Why would this matter? What if you have multi-backend and would like to know stats from the usage reporting drivers at least? Wouldn\u0027t the option to enable monitoring be backend specific (It can be in the DEFAULT section if all configured drivers support it)?\n\nIts alright if some drivers don\u0027t support it. At driver start up, if an administrator has configured a backend for monitoring, and the driver hasn\u0027t implemented this, maybe we can disable the poll and just report \u0027unknown\u0027, or alternatively, LOG that the option doesn\u0027t make sense because the method is not implemented by the specific driver).","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"db4cc31230f7822f71d01041de10feeb2c84cbfb","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"The share manager will catch the raise exception (NotImplementedError) from"},{"line_number":106,"context_line":"driver to check whether the driver can support the update_share_usage_size"},{"line_number":107,"context_line":"method. We will not invoke the periodic task to update share usage size, if"},{"line_number":108,"context_line":"all backends in share service cannot support the update_share_usage_size"},{"line_number":109,"context_line":"method."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"Security impact"},{"line_number":112,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_4b3f5f86","line":109,"range":{"start_line":107,"start_character":8,"end_line":109,"end_character":7},"in_reply_to":"5ff73747_ae6a9e16","updated":"2017-05-02 02:01:38.000000000","message":"Done","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"e8a0e84fb849b8b5132565a8f53db769b5c8c1f2","unresolved":false,"context_lines":[{"line_number":121,"context_line":"Other end user impact"},{"line_number":122,"context_line":"---------------------"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"User can see the used capacity from List/Show CLIs/APIs."},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"Performance impact"},{"line_number":127,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_d1c8efa6","line":124,"range":{"start_line":124,"start_character":0,"end_line":124,"end_character":56},"updated":"2017-04-28 17:14:48.000000000","message":"None. End users of manila have no way of consuming this unless the administrator has setup some frontend or a way to consume the output of ceilometer/gnocchi/aodh style telemetry services that are listening to the share usage notifications emitted by manila.","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"db4cc31230f7822f71d01041de10feeb2c84cbfb","unresolved":false,"context_lines":[{"line_number":121,"context_line":"Other end user impact"},{"line_number":122,"context_line":"---------------------"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"User can see the used capacity from List/Show CLIs/APIs."},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"Performance impact"},{"line_number":127,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_cb336ff5","line":124,"range":{"start_line":124,"start_character":0,"end_line":124,"end_character":56},"in_reply_to":"5ff73747_d1c8efa6","updated":"2017-05-02 02:01:38.000000000","message":"Done","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"e8a0e84fb849b8b5132565a8f53db769b5c8c1f2","unresolved":false,"context_lines":[{"line_number":132,"context_line":"at all. Now we have to collect usage. It could be costly."},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"Administrators may set the periodic interval configuration option value to"},{"line_number":135,"context_line":"a large interval or disable it if necessary. It could be less costly or no"},{"line_number":136,"context_line":"costly."},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"Other deployer impact"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_110e57e4","line":135,"range":{"start_line":135,"start_character":72,"end_line":135,"end_character":74},"updated":"2017-04-28 17:14:48.000000000","message":"not","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"db4cc31230f7822f71d01041de10feeb2c84cbfb","unresolved":false,"context_lines":[{"line_number":132,"context_line":"at all. Now we have to collect usage. It could be costly."},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"Administrators may set the periodic interval configuration option value to"},{"line_number":135,"context_line":"a large interval or disable it if necessary. It could be less costly or no"},{"line_number":136,"context_line":"costly."},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"Other deployer impact"}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_ab2ee388","line":135,"range":{"start_line":135,"start_character":72,"end_line":135,"end_character":74},"in_reply_to":"5ff73747_110e57e4","updated":"2017-05-02 02:01:38.000000000","message":"Done","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"df870542eeac4e80a2547259e5e7869c3781378a","unresolved":false,"context_lines":[{"line_number":138,"context_line":"Other deployer impact"},{"line_number":139,"context_line":"---------------------"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":" We will need to add an option for enabling and disabling sending notifications."},{"line_number":142,"context_line":"This flag will affect manila deployed with any backend."},{"line_number":143,"context_line":"By default, this option will be set to false and manila won\u0027t be sending"},{"line_number":144,"context_line":"notifications, keeping the behavior it currently has."}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_cda5fa48","line":141,"range":{"start_line":141,"start_character":0,"end_line":141,"end_character":1},"updated":"2017-04-28 12:20:09.000000000","message":"extra space","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"db4cc31230f7822f71d01041de10feeb2c84cbfb","unresolved":false,"context_lines":[{"line_number":138,"context_line":"Other deployer impact"},{"line_number":139,"context_line":"---------------------"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":" We will need to add an option for enabling and disabling sending notifications."},{"line_number":142,"context_line":"This flag will affect manila deployed with any backend."},{"line_number":143,"context_line":"By default, this option will be set to false and manila won\u0027t be sending"},{"line_number":144,"context_line":"notifications, keeping the behavior it currently has."}],"source_content_type":"text/x-rst","patch_set":13,"id":"5ff73747_4b551ff9","line":141,"range":{"start_line":141,"start_character":0,"end_line":141,"end_character":1},"in_reply_to":"5ff73747_cda5fa48","updated":"2017-05-02 02:01:38.000000000","message":"Done","commit_id":"85a1643844bfe5ef6b35e8065def6f9532a3e469"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"2710ed09a698f7736378184a6ad9b74654dda115","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        raise NotImplementedError()"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"If an administrator has configured a backend for monitoring and the driver"},{"line_number":105,"context_line":"cannot support the update_share_usage_size method. The share manager will"},{"line_number":106,"context_line":"catch the raise exception (NotImplementedError) from driver, we will not"},{"line_number":107,"context_line":"invoke the periodic task to update share usage size and LOG that the option"},{"line_number":108,"context_line":"doesn\u0027t make sense."}],"source_content_type":"text/x-rst","patch_set":14,"id":"5ff73747_3d7c4f71","line":105,"range":{"start_line":105,"start_character":49,"end_line":105,"end_character":68},"updated":"2017-05-02 10:57:57.000000000","message":", then the share manager","commit_id":"fc1940afb54aea6c15dc3e9300ad56d741477d62"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0ad724531b44d93da20653fa5ba409a4cd5b2ee1","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        raise NotImplementedError()"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"If an administrator has configured a backend for monitoring and the driver"},{"line_number":105,"context_line":"cannot support the update_share_usage_size method. The share manager will"},{"line_number":106,"context_line":"catch the raise exception (NotImplementedError) from driver, we will not"},{"line_number":107,"context_line":"invoke the periodic task to update share usage size and LOG that the option"},{"line_number":108,"context_line":"doesn\u0027t make sense."}],"source_content_type":"text/x-rst","patch_set":14,"id":"5ff73747_fde4a710","line":105,"range":{"start_line":105,"start_character":49,"end_line":105,"end_character":68},"in_reply_to":"5ff73747_3d7c4f71","updated":"2017-05-02 11:01:17.000000000","message":"Done","commit_id":"fc1940afb54aea6c15dc3e9300ad56d741477d62"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"2710ed09a698f7736378184a6ad9b74654dda115","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"If an administrator has configured a backend for monitoring and the driver"},{"line_number":105,"context_line":"cannot support the update_share_usage_size method. The share manager will"},{"line_number":106,"context_line":"catch the raise exception (NotImplementedError) from driver, we will not"},{"line_number":107,"context_line":"invoke the periodic task to update share usage size and LOG that the option"},{"line_number":108,"context_line":"doesn\u0027t make sense."},{"line_number":109,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5ff73747_bdbdff03","line":106,"range":{"start_line":106,"start_character":48,"end_line":106,"end_character":59},"updated":"2017-05-02 10:57:57.000000000","message":"from the driver","commit_id":"fc1940afb54aea6c15dc3e9300ad56d741477d62"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0ad724531b44d93da20653fa5ba409a4cd5b2ee1","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"If an administrator has configured a backend for monitoring and the driver"},{"line_number":105,"context_line":"cannot support the update_share_usage_size method. The share manager will"},{"line_number":106,"context_line":"catch the raise exception (NotImplementedError) from driver, we will not"},{"line_number":107,"context_line":"invoke the periodic task to update share usage size and LOG that the option"},{"line_number":108,"context_line":"doesn\u0027t make sense."},{"line_number":109,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5ff73747_7dbad7e1","line":106,"range":{"start_line":106,"start_character":48,"end_line":106,"end_character":59},"in_reply_to":"5ff73747_bdbdff03","updated":"2017-05-02 11:01:17.000000000","message":"Done","commit_id":"fc1940afb54aea6c15dc3e9300ad56d741477d62"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"2710ed09a698f7736378184a6ad9b74654dda115","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"If an administrator has configured a backend for monitoring and the driver"},{"line_number":105,"context_line":"cannot support the update_share_usage_size method. The share manager will"},{"line_number":106,"context_line":"catch the raise exception (NotImplementedError) from driver, we will not"},{"line_number":107,"context_line":"invoke the periodic task to update share usage size and LOG that the option"},{"line_number":108,"context_line":"doesn\u0027t make sense."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"Security impact"},{"line_number":111,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5ff73747_bd6bbf83","line":108,"range":{"start_line":106,"start_character":59,"end_line":108,"end_character":19},"updated":"2017-05-02 10:57:57.000000000","message":"\"from the driver and we will later not invoke the periodic task to update share usage size for shares of this backend. We will LOG that it is unsupported instead.\"","commit_id":"fc1940afb54aea6c15dc3e9300ad56d741477d62"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"0ad724531b44d93da20653fa5ba409a4cd5b2ee1","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"If an administrator has configured a backend for monitoring and the driver"},{"line_number":105,"context_line":"cannot support the update_share_usage_size method. The share manager will"},{"line_number":106,"context_line":"catch the raise exception (NotImplementedError) from driver, we will not"},{"line_number":107,"context_line":"invoke the periodic task to update share usage size and LOG that the option"},{"line_number":108,"context_line":"doesn\u0027t make sense."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"Security impact"},{"line_number":111,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5ff73747_3da9ef8f","line":108,"range":{"start_line":106,"start_character":59,"end_line":108,"end_character":19},"in_reply_to":"5ff73747_bd6bbf83","updated":"2017-05-02 11:01:17.000000000","message":"Done","commit_id":"fc1940afb54aea6c15dc3e9300ad56d741477d62"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"16e1624eba44df5d0a4934d9e6904fcfb30903cb","unresolved":false,"context_lines":[{"line_number":40,"context_line":"in their drivers and in their clouds."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Add notifiers for shares usage size we want to measure. Right now we intend"},{"line_number":43,"context_line":"to add notifiers to resouces (such as: shares, share groups, snapshots and"},{"line_number":44,"context_line":"etc) and publish the resouces we expect [1]."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"The update_share_usage_size() driver method is a new driver method which will"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f044301_3fae662e","line":43,"updated":"2017-05-04 15:15:15.000000000","message":"s/resouces/resources/","commit_id":"534353d228eeda738e8d44b1b2e027f72724486a"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"16e1624eba44df5d0a4934d9e6904fcfb30903cb","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Add notifiers for shares usage size we want to measure. Right now we intend"},{"line_number":43,"context_line":"to add notifiers to resouces (such as: shares, share groups, snapshots and"},{"line_number":44,"context_line":"etc) and publish the resouces we expect [1]."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"The update_share_usage_size() driver method is a new driver method which will"},{"line_number":47,"context_line":"be called after driver initialization and in the periodic task, that returns a"}],"source_content_type":"text/x-rst","patch_set":15,"id":"3f044301_df62e216","line":44,"range":{"start_line":44,"start_character":21,"end_line":44,"end_character":29},"updated":"2017-05-04 15:15:15.000000000","message":"same typo","commit_id":"534353d228eeda738e8d44b1b2e027f72724486a"}]}
