)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"9db91a65953b4460a36143a9ffd4d1f03b880750","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add update/delete resource inventory"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds two methods to add and to delete"},{"line_number":10,"context_line":"resource inventory in placement client."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Iee05962c3726411cca015c6155e59161aa023d3e"},{"line_number":13,"context_line":"Blueprint: placement-api"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"3f79a3b5_89dd5814","line":10,"updated":"2018-10-16 20:25:58.000000000","message":"You can make your commit messages line longer, up to 72 characters.","commit_id":"3943921c1ced2e6dc7986ea095e1b20718f8e553"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"fb045c46966e21579603e7331adb8a23e35bc194","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add update/delete resource inventory"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds two methods to add and to delete"},{"line_number":10,"context_line":"resource inventory in placement client."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Iee05962c3726411cca015c6155e59161aa023d3e"},{"line_number":13,"context_line":"Blueprint: placement-api"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"3f79a3b5_6ec79a12","line":10,"in_reply_to":"3f79a3b5_89dd5814","updated":"2018-10-17 03:40:53.000000000","message":"Done","commit_id":"3943921c1ced2e6dc7986ea095e1b20718f8e553"}],"blazar/utils/openstack/exceptions.py":[{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"9db91a65953b4460a36143a9ffd4d1f03b880750","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class ResourceProviderNotFound(exceptions.BlazarException):"},{"line_number":39,"context_line":"    msg_fmt \u003d _(\"No such resource provider %(uuid)s.\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class InventoryUpdateFailed(exceptions.BlazarException):"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_09c4e83f","line":39,"updated":"2018-10-16 20:25:58.000000000","message":"You can remove final dot / period to match other exception messages.","commit_id":"3943921c1ced2e6dc7986ea095e1b20718f8e553"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"fb045c46966e21579603e7331adb8a23e35bc194","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class ResourceProviderNotFound(exceptions.BlazarException):"},{"line_number":39,"context_line":"    msg_fmt \u003d _(\"No such resource provider %(uuid)s.\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class InventoryUpdateFailed(exceptions.BlazarException):"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_4ec41e0e","line":39,"in_reply_to":"3f79a3b5_09c4e83f","updated":"2018-10-17 03:40:53.000000000","message":"Done","commit_id":"3943921c1ced2e6dc7986ea095e1b20718f8e553"}],"blazar/utils/openstack/placement.py":[{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"5f4ca8e264aa43f0f285abd666ce1fbcebc0a26c","unresolved":false,"context_lines":[{"line_number":314,"context_line":"            \u0027resource_provider_generation\u0027: generation,"},{"line_number":315,"context_line":"        }"},{"line_number":316,"context_line":"        url \u003d \u0027/resource_providers/%s/inventories\u0027 % rp_uuid"},{"line_number":317,"context_line":"        resp \u003d self.put(url, payload)"},{"line_number":318,"context_line":"        if resp:"},{"line_number":319,"context_line":"            return resp.json()"},{"line_number":320,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_c1a4754f","line":317,"range":{"start_line":317,"start_character":0,"end_line":317,"end_character":37},"updated":"2018-07-23 06:25:55.000000000","message":"Could you add a comment for the reason why it uses put method here instead of delete method?  From my understand, the delete API deletes ALL inventories of the resource provider. It deletes unexpected inventories, too.","commit_id":"c47f9d3870e4bd915a3779bdcfa21682d2bc60c9"},{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"782e3212c613b49afefa3f519cd18fc4bdbaf778","unresolved":false,"context_lines":[{"line_number":312,"context_line":"            \u0027inventories\u0027: inventories,"},{"line_number":313,"context_line":"            \u0027resource_provider_generation\u0027: generation,"},{"line_number":314,"context_line":"        }"},{"line_number":315,"context_line":"        url \u003d \u0027/resource_providers/%s/inventories\u0027 % rp_uuid"},{"line_number":316,"context_line":"        # Use PUT instead of DELETE because DELETE API deletes *all*"},{"line_number":317,"context_line":"        # the inventories. Here we want to delete only a *part* of"},{"line_number":318,"context_line":"        # the inventories."},{"line_number":319,"context_line":"        resp \u003d self.put(url, payload)"},{"line_number":320,"context_line":"        if resp:"},{"line_number":321,"context_line":"            return resp.json()"},{"line_number":322,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"5f7c97a3_22c3cb5a","line":319,"range":{"start_line":315,"start_character":0,"end_line":319,"end_character":37},"updated":"2018-07-24 05:59:03.000000000","message":"I think using the \"Delete resource provider inventory\" API [1] is simpler.\n\n[1] https://developer.openstack.org/api-ref/placement/#delete-resource-provider-inventory","commit_id":"8e3179cb98a97588c5afca1c71e8f3053a56572b"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"b2cc535f7c0bdf35fb0412840ec8669a0215cc8a","unresolved":false,"context_lines":[{"line_number":312,"context_line":"            \u0027inventories\u0027: inventories,"},{"line_number":313,"context_line":"            \u0027resource_provider_generation\u0027: generation,"},{"line_number":314,"context_line":"        }"},{"line_number":315,"context_line":"        url \u003d \u0027/resource_providers/%s/inventories\u0027 % rp_uuid"},{"line_number":316,"context_line":"        # Use PUT instead of DELETE because DELETE API deletes *all*"},{"line_number":317,"context_line":"        # the inventories. Here we want to delete only a *part* of"},{"line_number":318,"context_line":"        # the inventories."},{"line_number":319,"context_line":"        resp \u003d self.put(url, payload)"},{"line_number":320,"context_line":"        if resp:"},{"line_number":321,"context_line":"            return resp.json()"},{"line_number":322,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"5f7c97a3_e7371cdb","line":319,"range":{"start_line":315,"start_character":0,"end_line":319,"end_character":37},"in_reply_to":"5f7c97a3_22c3cb5a","updated":"2018-07-24 12:40:08.000000000","message":"Ah, I missed that API. Thanks.","commit_id":"8e3179cb98a97588c5afca1c71e8f3053a56572b"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"63e91a4f35669abd9fb4e454f993ffffe41fe42a","unresolved":false,"context_lines":[{"line_number":313,"context_line":""},{"line_number":314,"context_line":"        :param host_name: The name of the target host"},{"line_number":315,"context_line":"        :param reserv_uuid: The reservation uuid"},{"line_number":316,"context_line":"        :param num: The number of the instances to reserve to the host"},{"line_number":317,"context_line":"        :return: The updated inventory record"},{"line_number":318,"context_line":"        \"\"\""},{"line_number":319,"context_line":"        # Get reservation provider uuid"}],"source_content_type":"text/x-python","patch_set":14,"id":"3f79a3b5_33423bae","line":316,"updated":"2018-10-18 17:18:24.000000000","message":"Please rephrase to (if it\u0027s what you meant):\n\nThe number of instances to reserve on the host","commit_id":"421c6fc52506089a20f9f6191c49c51a229058a2"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"659ad81e2744f09b2e03db0019f8e6e1dd39c6ea","unresolved":false,"context_lines":[{"line_number":313,"context_line":""},{"line_number":314,"context_line":"        :param host_name: The name of the target host"},{"line_number":315,"context_line":"        :param reserv_uuid: The reservation uuid"},{"line_number":316,"context_line":"        :param num: The number of the instances to reserve to the host"},{"line_number":317,"context_line":"        :return: The updated inventory record"},{"line_number":318,"context_line":"        \"\"\""},{"line_number":319,"context_line":"        # Get reservation provider uuid"}],"source_content_type":"text/x-python","patch_set":14,"id":"3f79a3b5_9fa3099c","line":316,"in_reply_to":"3f79a3b5_33423bae","updated":"2018-10-19 04:25:07.000000000","message":"Done","commit_id":"421c6fc52506089a20f9f6191c49c51a229058a2"}]}
