)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"86b8a80843902f51ba921283807ef85cee7a8f03","unresolved":false,"context_lines":[{"line_number":13,"context_line":"DocImpact"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I1d3b572936eaeeb328d51129392ba408b849b321"},{"line_number":16,"context_line":"Partially Implements Blueprint: backend-usage-reporting"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a061dce_bfaf562a","line":16,"updated":"2016-04-08 19:20:52.000000000","message":"I think this actually needs to be in the format \"Partially-implements: blueprint backend-usage-reporting\" to be linked correctly.","commit_id":"31898e31bbcce9faa584ab1b28fc1c5e58b77fab"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"66d43a091c2984339762a4932286293764413fd9","unresolved":false,"context_lines":[{"line_number":13,"context_line":"DocImpact"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I1d3b572936eaeeb328d51129392ba408b849b321"},{"line_number":16,"context_line":"Partially Implements Blueprint: backend-usage-reporting"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a061dce_32ed3d8f","line":16,"in_reply_to":"9a061dce_bfaf562a","updated":"2016-04-08 19:40:46.000000000","message":"Thanks, made that fix. I looked at a few patches and they had different formats so I wasn\u0027t sure which was correct.","commit_id":"31898e31bbcce9faa584ab1b28fc1c5e58b77fab"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"edf65d61a18d2450ba45a9cf338113b822d2339f","unresolved":false,"context_lines":[{"line_number":10,"context_line":"the free and total space across their Cinder-managed backends,"},{"line_number":11,"context_line":"as well as the number of volumes hosted by each."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"APIImpact"},{"line_number":14,"context_line":"DocImpact"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I1d3b572936eaeeb328d51129392ba408b849b321"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"5a18252c_efd18658","line":13,"updated":"2016-04-14 21:15:49.000000000","message":"Don\u0027t think you need these *Impact tags on the spec. You\u0027ll want them on the actually code patch though.","commit_id":"7766b7a671c1604c73457437202ebb38b6c941d0"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"1b28e264fb6affc8e7f94872a00e8d45c961d356","unresolved":false,"context_lines":[{"line_number":10,"context_line":"the free and total space across their Cinder-managed backends,"},{"line_number":11,"context_line":"as well as the number of volumes hosted by each."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"APIImpact"},{"line_number":14,"context_line":"DocImpact"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I1d3b572936eaeeb328d51129392ba408b849b321"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"5a18252c_6a15643e","line":13,"in_reply_to":"5a18252c_efd18658","updated":"2016-04-14 21:29:02.000000000","message":"Done","commit_id":"7766b7a671c1604c73457437202ebb38b6c941d0"}],"specs/newton/backend-usage-reporting.rst":[{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"a8c9181edf013e8f577e3db69da59f95b9b8dd69","unresolved":false,"context_lines":[{"line_number":65,"context_line":"REST API impact"},{"line_number":66,"context_line":"---------------"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"A new API would be added for backend usage."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  * GET /v2/usage"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a061dce_f07fe6a8","line":68,"updated":"2016-04-06 10:27:22.000000000","message":"Why not to use new microversion?","commit_id":"7ea36889946fa29321a8d281af7a74b92046a413"},{"author":{"_account_id":1207,"name":"Duncan Thomas","email":"duncan.thomas@gmail.com","username":"duncan-thomas"},"change_message_id":"9d92290875753e772c296675700387945b5f3249","unresolved":false,"context_lines":[{"line_number":65,"context_line":"REST API impact"},{"line_number":66,"context_line":"---------------"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"A new API would be added for backend usage."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  * GET /v2/usage"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a061dce_67966340","line":68,"in_reply_to":"9a061dce_7b67204d","updated":"2016-04-06 17:07:01.000000000","message":"Given microversions are new, there\u0027s certainly no downside in mentioning it here","commit_id":"7ea36889946fa29321a8d281af7a74b92046a413"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"db03efce198312ac2a630d7d70de7430321895f9","unresolved":false,"context_lines":[{"line_number":65,"context_line":"REST API impact"},{"line_number":66,"context_line":"---------------"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"A new API would be added for backend usage."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  * GET /v2/usage"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a061dce_7b67204d","line":68,"in_reply_to":"9a061dce_9b7b2b28","updated":"2016-04-06 16:14:37.000000000","message":"Yes, I\u0027ll need to add a new microversion with this addition. Should that be mentioned here or is it implicit?","commit_id":"7ea36889946fa29321a8d281af7a74b92046a413"},{"author":{"_account_id":1207,"name":"Duncan Thomas","email":"duncan.thomas@gmail.com","username":"duncan-thomas"},"change_message_id":"f3b53d1737ce433e15ef55f3a8821ce7c7fe8e66","unresolved":false,"context_lines":[{"line_number":65,"context_line":"REST API impact"},{"line_number":66,"context_line":"---------------"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"A new API would be added for backend usage."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"  * GET /v2/usage"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a061dce_9b7b2b28","line":68,"in_reply_to":"9a061dce_f07fe6a8","updated":"2016-04-06 10:41:08.000000000","message":"Just about any API change will be a microversion bump now...","commit_id":"7ea36889946fa29321a8d281af7a74b92046a413"},{"author":{"_account_id":1207,"name":"Duncan Thomas","email":"duncan.thomas@gmail.com","username":"duncan-thomas"},"change_message_id":"f3b53d1737ce433e15ef55f3a8821ce7c7fe8e66","unresolved":false,"context_lines":[{"line_number":72,"context_line":"Security impact"},{"line_number":73,"context_line":"---------------"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"None"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"Notifications impact"},{"line_number":78,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a061dce_fbab4773","line":75,"range":{"start_line":75,"start_character":0,"end_line":75,"end_character":4},"updated":"2016-04-06 10:41:08.000000000","message":"New API should default to admin only in policy.json to avoid exposing more information than is currently exposed","commit_id":"7ea36889946fa29321a8d281af7a74b92046a413"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"db03efce198312ac2a630d7d70de7430321895f9","unresolved":false,"context_lines":[{"line_number":72,"context_line":"Security impact"},{"line_number":73,"context_line":"---------------"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"None"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"Notifications impact"},{"line_number":78,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a061dce_dbe62caf","line":75,"range":{"start_line":75,"start_character":0,"end_line":75,"end_character":4},"in_reply_to":"9a061dce_fbab4773","updated":"2016-04-06 16:14:37.000000000","message":"Done","commit_id":"7ea36889946fa29321a8d281af7a74b92046a413"},{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"a8c9181edf013e8f577e3db69da59f95b9b8dd69","unresolved":false,"context_lines":[{"line_number":82,"context_line":"Other end user impact"},{"line_number":83,"context_line":"---------------------"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"A CLI command will also be added to the python-cinderclient, \u0027cinder free\u0027,"},{"line_number":86,"context_line":"which will access the API and print the result out in a formatted table."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Performance Impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a061dce_d0a58247","line":85,"updated":"2016-04-06 10:27:22.000000000","message":"I\u0027m not sure that it\u0027s a best name for this command","commit_id":"7ea36889946fa29321a8d281af7a74b92046a413"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"db03efce198312ac2a630d7d70de7430321895f9","unresolved":false,"context_lines":[{"line_number":82,"context_line":"Other end user impact"},{"line_number":83,"context_line":"---------------------"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"A CLI command will also be added to the python-cinderclient, \u0027cinder free\u0027,"},{"line_number":86,"context_line":"which will access the API and print the result out in a formatted table."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Performance Impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a061dce_dbcf4c27","line":85,"in_reply_to":"9a061dce_1bbd5bb7","updated":"2016-04-06 16:14:37.000000000","message":"Sure that sounds good to me - I just went with the suggestion from the bug report to start with but that would probably be better.","commit_id":"7ea36889946fa29321a8d281af7a74b92046a413"},{"author":{"_account_id":1207,"name":"Duncan Thomas","email":"duncan.thomas@gmail.com","username":"duncan-thomas"},"change_message_id":"f3b53d1737ce433e15ef55f3a8821ce7c7fe8e66","unresolved":false,"context_lines":[{"line_number":82,"context_line":"Other end user impact"},{"line_number":83,"context_line":"---------------------"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"A CLI command will also be added to the python-cinderclient, \u0027cinder free\u0027,"},{"line_number":86,"context_line":"which will access the API and print the result out in a formatted table."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Performance Impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a061dce_1bbd5bb7","line":85,"in_reply_to":"9a061dce_d0a58247","updated":"2016-04-06 10:41:08.000000000","message":"Agreed. \u0027cinder usage\u0027 might be better?","commit_id":"7ea36889946fa29321a8d281af7a74b92046a413"},{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"a8c9181edf013e8f577e3db69da59f95b9b8dd69","unresolved":false,"context_lines":[{"line_number":130,"context_line":"Testing"},{"line_number":131,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Unit and tempest tests will be added to test the new API and ensure"},{"line_number":134,"context_line":"that the output is as expected."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a061dce_b08baec2","line":133,"updated":"2016-04-06 10:27:22.000000000","message":"I propose to add functional cinderclient tests too","commit_id":"7ea36889946fa29321a8d281af7a74b92046a413"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"db03efce198312ac2a630d7d70de7430321895f9","unresolved":false,"context_lines":[{"line_number":130,"context_line":"Testing"},{"line_number":131,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Unit and tempest tests will be added to test the new API and ensure"},{"line_number":134,"context_line":"that the output is as expected."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a061dce_7bf56055","line":133,"in_reply_to":"9a061dce_b08baec2","updated":"2016-04-06 16:14:37.000000000","message":"Done","commit_id":"7ea36889946fa29321a8d281af7a74b92046a413"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"edf65d61a18d2450ba45a9cf338113b822d2339f","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"The following changes will be made to accomplish this:"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"* A cinder.api.contrib.usage class will be added to provide the API."},{"line_number":43,"context_line":"* A new scheduler rpcapi call, get_usage, will be added to pass the API request"},{"line_number":44,"context_line":"  to the scheduler to get the usage info."},{"line_number":45,"context_line":"* A get_usage method will be added to the scheduler manager that queries each"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a18252c_efd4e620","line":42,"updated":"2016-04-14 21:15:49.000000000","message":"Are plan is to get rid of the API extensions now that we have microversions. Could you update this to reflect that this will be a new v3 API?","commit_id":"7766b7a671c1604c73457437202ebb38b6c941d0"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"1b28e264fb6affc8e7f94872a00e8d45c961d356","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"The following changes will be made to accomplish this:"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"* A cinder.api.contrib.usage class will be added to provide the API."},{"line_number":43,"context_line":"* A new scheduler rpcapi call, get_usage, will be added to pass the API request"},{"line_number":44,"context_line":"  to the scheduler to get the usage info."},{"line_number":45,"context_line":"* A get_usage method will be added to the scheduler manager that queries each"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a18252c_aa1bfc71","line":42,"in_reply_to":"5a18252c_efd4e620","updated":"2016-04-14 21:29:02.000000000","message":"Done","commit_id":"7766b7a671c1604c73457437202ebb38b6c941d0"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"edf65d61a18d2450ba45a9cf338113b822d2339f","unresolved":false,"context_lines":[{"line_number":68,"context_line":"A new API would be added for backend usage. This will also result in bumping"},{"line_number":69,"context_line":"up the current API microversion."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"  * GET /v2/usage"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"Security impact"},{"line_number":74,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a18252c_afef8ee7","line":71,"updated":"2016-04-14 21:15:49.000000000","message":"This should now be v3.","commit_id":"7766b7a671c1604c73457437202ebb38b6c941d0"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"1b28e264fb6affc8e7f94872a00e8d45c961d356","unresolved":false,"context_lines":[{"line_number":68,"context_line":"A new API would be added for backend usage. This will also result in bumping"},{"line_number":69,"context_line":"up the current API microversion."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"  * GET /v2/usage"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"Security impact"},{"line_number":74,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a18252c_ea27b4b3","line":71,"in_reply_to":"5a18252c_afef8ee7","updated":"2016-04-14 21:29:02.000000000","message":"Done","commit_id":"7766b7a671c1604c73457437202ebb38b6c941d0"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"7fc2781f19a9e7938d0e1a9e057e751813993db9","unresolved":false,"context_lines":[{"line_number":42,"context_line":"* A cinder.api.v3.usage class will be added to provide the API."},{"line_number":43,"context_line":"* A new scheduler rpcapi call, get_usage, will be added to pass the API request"},{"line_number":44,"context_line":"  to the scheduler to get the usage info."},{"line_number":45,"context_line":"* A get_usage method will be added to the scheduler manager that queries each"},{"line_number":46,"context_line":"  host for its state, parses out the needed information, and returns it as"},{"line_number":47,"context_line":"  a list of dictionaries (one for each backend)."},{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027volumes\u0027, \u0027free\u0027 and \u0027total\u0027 for each backend."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_166e08c9","line":47,"range":{"start_line":45,"start_character":2,"end_line":47,"end_character":48},"updated":"2016-04-23 00:03:44.000000000","message":"This is just returning the info from the scheduler right? Or is it asking for fresh data from the backend?","commit_id":"d97b26c5b71fb14a9f49c8cce0adc1c97b0eec8a"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"4f9d18c82be6e4981db36f191d5aadc058c81473","unresolved":false,"context_lines":[{"line_number":42,"context_line":"* A cinder.api.v3.usage class will be added to provide the API."},{"line_number":43,"context_line":"* A new scheduler rpcapi call, get_usage, will be added to pass the API request"},{"line_number":44,"context_line":"  to the scheduler to get the usage info."},{"line_number":45,"context_line":"* A get_usage method will be added to the scheduler manager that queries each"},{"line_number":46,"context_line":"  host for its state, parses out the needed information, and returns it as"},{"line_number":47,"context_line":"  a list of dictionaries (one for each backend)."},{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027volumes\u0027, \u0027free\u0027 and \u0027total\u0027 for each backend."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_532532c0","line":47,"range":{"start_line":45,"start_character":2,"end_line":47,"end_character":48},"updated":"2016-04-23 00:01:50.000000000","message":"This is just returning the info from the scheduler right? Or is it asking for fresh data from the backend?","commit_id":"d97b26c5b71fb14a9f49c8cce0adc1c97b0eec8a"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"a8aa16b48d2ca0d23c07c92e8cdd5af1c7633861","unresolved":false,"context_lines":[{"line_number":42,"context_line":"* A cinder.api.v3.usage class will be added to provide the API."},{"line_number":43,"context_line":"* A new scheduler rpcapi call, get_usage, will be added to pass the API request"},{"line_number":44,"context_line":"  to the scheduler to get the usage info."},{"line_number":45,"context_line":"* A get_usage method will be added to the scheduler manager that queries each"},{"line_number":46,"context_line":"  host for its state, parses out the needed information, and returns it as"},{"line_number":47,"context_line":"  a list of dictionaries (one for each backend)."},{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027volumes\u0027, \u0027free\u0027 and \u0027total\u0027 for each backend."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_eadcfde5","line":47,"range":{"start_line":45,"start_character":2,"end_line":47,"end_character":48},"in_reply_to":"1a122d0e_166e08c9","updated":"2016-04-26 17:59:33.000000000","message":"It\u0027s returning info from the scheduler, but it can run a request_service_capabilities to make sure that the info is fresh.","commit_id":"d97b26c5b71fb14a9f49c8cce0adc1c97b0eec8a"},{"author":{"_account_id":4523,"name":"Eric Harney","email":"eharney@redhat.com","username":"eharney"},"change_message_id":"081ce1f25582a45bb6a673d8002dca5b9fb0f0d9","unresolved":false,"context_lines":[{"line_number":42,"context_line":"* A cinder.api.v3.usage class will be added to provide the API."},{"line_number":43,"context_line":"* A new scheduler rpcapi call, get_usage, will be added to pass the API request"},{"line_number":44,"context_line":"  to the scheduler to get the usage info."},{"line_number":45,"context_line":"* A get_usage method will be added to the scheduler manager that queries each"},{"line_number":46,"context_line":"  host for its state, parses out the needed information, and returns it as"},{"line_number":47,"context_line":"  a list of dictionaries (one for each backend)."},{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027volumes\u0027, \u0027free\u0027 and \u0027total\u0027 for each backend."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_9082f7c6","line":47,"range":{"start_line":45,"start_character":2,"end_line":47,"end_character":48},"in_reply_to":"1a122d0e_766b25f2","updated":"2016-05-04 17:16:18.000000000","message":"I would not add a refresh param for this -- any use of this information in a really fine-grained way will still be racy even if you add one.  I don\u0027t see a use case where refresh would be beneficial.","commit_id":"d97b26c5b71fb14a9f49c8cce0adc1c97b0eec8a"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"4e0eb2104c4db9b4678653b236de6d681f8f58dc","unresolved":false,"context_lines":[{"line_number":42,"context_line":"* A cinder.api.v3.usage class will be added to provide the API."},{"line_number":43,"context_line":"* A new scheduler rpcapi call, get_usage, will be added to pass the API request"},{"line_number":44,"context_line":"  to the scheduler to get the usage info."},{"line_number":45,"context_line":"* A get_usage method will be added to the scheduler manager that queries each"},{"line_number":46,"context_line":"  host for its state, parses out the needed information, and returns it as"},{"line_number":47,"context_line":"  a list of dictionaries (one for each backend)."},{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027volumes\u0027, \u0027free\u0027 and \u0027total\u0027 for each backend."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_766b25f2","line":47,"range":{"start_line":45,"start_character":2,"end_line":47,"end_character":48},"in_reply_to":"1a122d0e_cfb44af2","updated":"2016-05-02 22:48:16.000000000","message":"@Ivan now that I think about it again, I\u0027m not sure a refresh param would work for this - the scheduler is polling for this stuff around every 30 seconds or so (I think), so if a user creates a new volume and then this command is run before that 30 seconds incorrect information will be displayed. Is it that much more work to poll for the information when the admin needs it?","commit_id":"d97b26c5b71fb14a9f49c8cce0adc1c97b0eec8a"},{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"b2b1ea69d3bf9bca96d080ea95b5307361635d63","unresolved":false,"context_lines":[{"line_number":42,"context_line":"* A cinder.api.v3.usage class will be added to provide the API."},{"line_number":43,"context_line":"* A new scheduler rpcapi call, get_usage, will be added to pass the API request"},{"line_number":44,"context_line":"  to the scheduler to get the usage info."},{"line_number":45,"context_line":"* A get_usage method will be added to the scheduler manager that queries each"},{"line_number":46,"context_line":"  host for its state, parses out the needed information, and returns it as"},{"line_number":47,"context_line":"  a list of dictionaries (one for each backend)."},{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027volumes\u0027, \u0027free\u0027 and \u0027total\u0027 for each backend."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_cfb44af2","line":47,"range":{"start_line":45,"start_character":2,"end_line":47,"end_character":48},"in_reply_to":"1a122d0e_eadcfde5","updated":"2016-04-29 21:37:52.000000000","message":"IMO, this method should accept \u0027refresh\u0027 param","commit_id":"d97b26c5b71fb14a9f49c8cce0adc1c97b0eec8a"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"4f9d18c82be6e4981db36f191d5aadc058c81473","unresolved":false,"context_lines":[{"line_number":47,"context_line":"  a list of dictionaries (one for each backend)."},{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027volumes\u0027, \u0027free\u0027 and \u0027total\u0027 for each backend."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Alternatives"},{"line_number":53,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_3359965c","line":50,"updated":"2016-04-23 00:01:50.000000000","message":"Whats \u0027volumes\u0027? a count? list of each? Would it make sense to have \u0027snapshots\u0027, \u0027consistency_groups\u0027, etc too? Sort of like cinder object usage for the backend.\n\nAlso curious thoughts around returning other info the scheduler consumes like reserved %, over subscription ratio, provisioned space, etc. Knowing just raw free doesn\u0027t do a ton of good if its a thin-provisioned host with an unknown amount of reserved capacity.","commit_id":"d97b26c5b71fb14a9f49c8cce0adc1c97b0eec8a"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"7fc2781f19a9e7938d0e1a9e057e751813993db9","unresolved":false,"context_lines":[{"line_number":47,"context_line":"  a list of dictionaries (one for each backend)."},{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027volumes\u0027, \u0027free\u0027 and \u0027total\u0027 for each backend."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Alternatives"},{"line_number":53,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_f670aca6","line":50,"updated":"2016-04-23 00:03:44.000000000","message":"Whats \u0027volumes\u0027? a count? list of each? Would it make sense to have \u0027snapshots\u0027, \u0027consistency_groups\u0027, etc too? Sort of like cinder object usage for the backend.\n\nAlso curious thoughts around returning other info the scheduler consumes like reserved %, over subscription ratio, provisioned space, etc. Knowing just raw free doesn\u0027t do a ton of good if its a thin-provisioned host with an unknown amount of reserved capacity.","commit_id":"d97b26c5b71fb14a9f49c8cce0adc1c97b0eec8a"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"a8aa16b48d2ca0d23c07c92e8cdd5af1c7633861","unresolved":false,"context_lines":[{"line_number":47,"context_line":"  a list of dictionaries (one for each backend)."},{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027volumes\u0027, \u0027free\u0027 and \u0027total\u0027 for each backend."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Alternatives"},{"line_number":53,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_2afa7543","line":50,"in_reply_to":"1a122d0e_f670aca6","updated":"2016-04-26 17:59:33.000000000","message":"Yes, volumes is the number of volumes - although I believe the number returned from the scheduler for total_volumes includes volumes and snapshots.. I\u0027ll double check all the info that the scheduler returns, those metrics would definitely be useful.","commit_id":"d97b26c5b71fb14a9f49c8cce0adc1c97b0eec8a"},{"author":{"_account_id":4523,"name":"Eric Harney","email":"eharney@redhat.com","username":"eharney"},"change_message_id":"848b03716dd459c406082705de6a7f37861de65f","unresolved":false,"context_lines":[{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027provisioned\u0027, \u0027free\u0027, \u0027total\u0027 and \u0027oversubscription ratio\u0027 for each"},{"line_number":51,"context_line":"  backend, with the capacities measured in GB."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Alternatives"},{"line_number":54,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_f3b3754b","line":51,"updated":"2016-05-04 17:22:21.000000000","message":"Is provisioned the # of volumes, or provisioned space?\n\nI liked the idea of including the number of volumes as well.","commit_id":"0e4c8ec09aa87d881968c606c8ca194c6a0ec3c8"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"ee130b74b3a547e28d9b813e2a535c00629041ed","unresolved":false,"context_lines":[{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027provisioned\u0027, \u0027free\u0027, \u0027total\u0027 and \u0027oversubscription ratio\u0027 for each"},{"line_number":51,"context_line":"  backend, with the capacities measured in GB."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Alternatives"},{"line_number":54,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"faac7902_527e34af","line":51,"in_reply_to":"1a122d0e_a1c4de5f","updated":"2016-05-05 19:40:47.000000000","message":"That does seem odd that we count volumes \u0026 snapshots as total_volumes.\n\nI\u0027m pretty ok with this a a starting point though, we can always extend this api to give more detailed info like volume, snapshot, cg counts later on, right?","commit_id":"0e4c8ec09aa87d881968c606c8ca194c6a0ec3c8"},{"author":{"_account_id":4523,"name":"Eric Harney","email":"eharney@redhat.com","username":"eharney"},"change_message_id":"63f2b90441c71dae7b9d129dae9376e132208a06","unresolved":false,"context_lines":[{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027provisioned\u0027, \u0027free\u0027, \u0027total\u0027 and \u0027oversubscription ratio\u0027 for each"},{"line_number":51,"context_line":"  backend, with the capacities measured in GB."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Alternatives"},{"line_number":54,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_a1c4de5f","line":51,"in_reply_to":"1a122d0e_f399b57a","updated":"2016-05-05 14:16:19.000000000","message":"Does anyone know why it includes snapshots?  That just sounds like a bug to me.","commit_id":"0e4c8ec09aa87d881968c606c8ca194c6a0ec3c8"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"fcbbdd6ce3ac0b9592e748ace1919eb6f8f635a7","unresolved":false,"context_lines":[{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027provisioned\u0027, \u0027free\u0027, \u0027total\u0027 and \u0027oversubscription ratio\u0027 for each"},{"line_number":51,"context_line":"  backend, with the capacities measured in GB."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Alternatives"},{"line_number":54,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_f399b57a","line":51,"in_reply_to":"1a122d0e_f3b3754b","updated":"2016-05-04 17:30:01.000000000","message":"It\u0027s provisioned space. I like the idea of reporting the number of volumes, but the number that the scheduler keeps track of for \u0027total_volumes\u0027 includes snapshots as well. Do you think it still makes sense to use that, or is there another way to get the # of volumes per backend?","commit_id":"0e4c8ec09aa87d881968c606c8ca194c6a0ec3c8"},{"author":{"_account_id":17275,"name":"Nate Potter","email":"nathaniel.potter@intel.com","username":"npotter"},"change_message_id":"48302b008bbc6a2c5605b6a5882915d49433e072","unresolved":false,"context_lines":[{"line_number":48,"context_line":"* A new cinder.api.views.usage class will be added to parse through the list"},{"line_number":49,"context_line":"  of backend usages and return a formatted dictionary with the columns"},{"line_number":50,"context_line":"  \u0027name\u0027, \u0027provisioned\u0027, \u0027free\u0027, \u0027total\u0027 and \u0027oversubscription ratio\u0027 for each"},{"line_number":51,"context_line":"  backend, with the capacities measured in GB."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Alternatives"},{"line_number":54,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"faac7902_15e4960b","line":51,"in_reply_to":"faac7902_527e34af","updated":"2016-05-05 19:50:57.000000000","message":"Yeah that shouldn\u0027t be a problem, just add them in to the one function I\u0027m adding in the scheduler, though we\u0027d have to find another way to get cg counts and all since it isn\u0027t directly reported in the volume service updates (to the best of my knowledge). Here\u0027s an example from my devstack setup that has 1 volume and 1 snap of it provisioned. http://paste.openstack.org/show/496266/","commit_id":"0e4c8ec09aa87d881968c606c8ca194c6a0ec3c8"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"9f5ca36c9e3ad0080606478309457fe824c48c15","unresolved":false,"context_lines":[{"line_number":69,"context_line":"A new API would be added for backend usage. This will also result in bumping"},{"line_number":70,"context_line":"up the current API microversion."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  * GET /v3/usage"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"Security impact"},{"line_number":75,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"dab17558_64f8c77d","line":72,"updated":"2016-05-06 05:55:00.000000000","message":"There is already an admin API that allows us to retrieve capabilities in pools reported by the backend.\n\n/scheduler-stats/get_pools\n\nCLI:\n\ncinder get-pools","commit_id":"0e4c8ec09aa87d881968c606c8ca194c6a0ec3c8"}]}
