)]}'
{"specs/kilo/return-req-id.rst":[{"author":{"_account_id":170,"name":"Mike Perez","email":"thingee@gmail.com","username":"thingee"},"change_message_id":"0ef72650182c61804a85312a85706c331dc022da","unresolved":false,"context_lines":[{"line_number":94,"context_line":"Other end user impact"},{"line_number":95,"context_line":"---------------------"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"This blueprint affects python-cinderclient bacuse of"},{"line_number":98,"context_line":"modifying python-cinderclient."},{"line_number":99,"context_line":"When calling methods, \u0027return_req_id\u0027 is specified as an argument."},{"line_number":100,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"7a8c0949_800f9b2d","line":97,"updated":"2014-11-06 15:05:41.000000000","message":"/bacuse/because/","commit_id":"0f448cee98e9eceae9a04f82fa0fc2ecb619fd46"},{"author":{"_account_id":9126,"name":"Chris Buccella","email":"chris@buccella.org","username":"hdd"},"change_message_id":"52f55115893af1b9bb8cde729d7cdc4d27a0a4e4","unresolved":false,"context_lines":[{"line_number":148,"context_line":"https://blueprints.launchpad.net/nova/+spec/log-request-id-mappings"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"Return request ID to caller(Glance)"},{"line_number":151,"context_line":"https://blueprints.launchpad.net/python-glanceclient/+spec/return-req-id"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"Testing"}],"source_content_type":"text/x-rst","patch_set":1,"id":"7a8c0949_1b031d74","line":151,"updated":"2014-11-07 12:02:40.000000000","message":"I think this is better as a Reference instead of a Dependency","commit_id":"0f448cee98e9eceae9a04f82fa0fc2ecb619fd46"},{"author":{"_account_id":1207,"name":"Duncan Thomas","email":"duncan.thomas@gmail.com","username":"duncan-thomas"},"change_message_id":"84ce28373f3a162f4c042b629e9787bea05643c8","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"The parameter to set whether the \u0027x-openstack-request-id\u0027 is returned or not"},{"line_number":40,"context_line":"is added.(True/False, default is false)"},{"line_number":41,"context_line":"If the parameter is true,"},{"line_number":42,"context_line":"the \u0027x-openstack-request-id\u0027 is returned in return value of the method"},{"line_number":43,"context_line":"(e.g. create method of VolumeManager) when calling cinder"},{"line_number":44,"context_line":"by using python-cinderclient."}],"source_content_type":"text/x-rst","patch_set":3,"id":"5a890539_c6861665","line":41,"updated":"2014-11-13 13:53:24.000000000","message":"Can\u0027t we just return it? As part of a tuple if necessary - existing code will ignore tuple parts it doesn\u0027t recognise.","commit_id":"2b8171a05e281c24f14a66e7d1072c5de99a6f77"},{"author":{"_account_id":7634,"name":"Takashi Natsume","email":"takanattie@gmail.com","username":"natsumet"},"change_message_id":"4f508b00c0c4a66f3fdc226af087c5aa9e1efc46","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"The parameter to set whether the \u0027x-openstack-request-id\u0027 is returned or not"},{"line_number":40,"context_line":"is added.(True/False, default is false)"},{"line_number":41,"context_line":"If the parameter is true,"},{"line_number":42,"context_line":"the \u0027x-openstack-request-id\u0027 is returned in return value of the method"},{"line_number":43,"context_line":"(e.g. create method of VolumeManager) when calling cinder"},{"line_number":44,"context_line":"by using python-cinderclient."}],"source_content_type":"text/x-rst","patch_set":3,"id":"5a890539_3b077583","line":41,"in_reply_to":"5a890539_c6861665","updated":"2014-11-18 12:27:17.000000000","message":"Duncan,\n\nThank you for your comment.\n\nIf \u0027x-openstack-request-id\u0027 is returned in return values(tuple),\nIt cannot be ignored in existing(past) code.\n\nFor example, in stable/juno(2014.2), in nova,\nin nova/volume/cinder.py\n-------------------------------------------------------------------\n(snipped...)\ndef _untranslate_volume_summary_view(context, vol):\n    \"\"\"Maps keys for volumes summary view.\"\"\"\n    d \u003d {}\n    d[\u0027id\u0027] \u003d vol.id\n    d[\u0027status\u0027] \u003d vol.status\n    d[\u0027size\u0027] \u003d vol.size\n    d[\u0027availability_zone\u0027] \u003d vol.availability_zone\n    d[\u0027created_at\u0027] \u003d vol.created_at\n(snipped...)\nclass API(object):\n    def get_all(self, context, search_opts\u003dNone):\n        search_opts \u003d search_opts or {}\n        items \u003d cinderclient(context).volumes.list(detailed\u003dTrue)\n        rval \u003d []\n\n        for item in items:\n            rval.append(_untranslate_volume_summary_view(context, item))\n\n        return rval\n(snipped...)\n-------------------------------------------------------------------\nIf cinderclient().volumes.list returns tuple including \u0027x-openstack-request-id\u0027 the element,\nIt cannot be ignored.\n\nSo the parameter is needed for compatibility.","commit_id":"2b8171a05e281c24f14a66e7d1072c5de99a6f77"},{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"dc9c19c49d7e3ead8a3fd6cc85374dc4fb446985","unresolved":false,"context_lines":[{"line_number":22,"context_line":"The x-openstack-request-id header is added to a cinder response"},{"line_number":23,"context_line":"in Icehouse."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"This blueprint will affect both v1 and v2 versions, since we want to ensure"},{"line_number":26,"context_line":"this feature still works when the services are upgraded to using v2."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a961159_7865951c","line":25,"updated":"2014-12-23 17:12:53.000000000","message":"With v1 being removed in Kilo is this necessary?  I would argue not.  Saves work.","commit_id":"203fdfb4337a937f80734d2d36f302b0aa40cc9a"},{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"dc9c19c49d7e3ead8a3fd6cc85374dc4fb446985","unresolved":false,"context_lines":[{"line_number":33,"context_line":"from cinder to cinder client. But cinder client does not return this response"},{"line_number":34,"context_line":"header back to the caller (nova)."},{"line_number":35,"context_line":"Because of this, it is not possible to map request IDs between a caller"},{"line_number":36,"context_line":"and a callee. Therefore it prevents operators from analysing logs effectively."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"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":"3a961159_b8429d65","line":36,"updated":"2014-12-23 17:12:53.000000000","message":"Thank you ... Been trying to understand what you were getting at and this helps clarify.","commit_id":"203fdfb4337a937f80734d2d36f302b0aa40cc9a"},{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"dc9c19c49d7e3ead8a3fd6cc85374dc4fb446985","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Caller (e.g. nova) should log it\u0027s request id and x-openstack-request-id"},{"line_number":48,"context_line":"returned from cinderclient in the same log message which will enable operators"},{"line_number":49,"context_line":"to get request id\u0027s mappings easily across service boundaries."},{"line_number":50,"context_line":"(Modifications required to the services using python-cinderclient library is"},{"line_number":51,"context_line":"outside the scope of this blueprint)"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a961159_9836c101","line":49,"updated":"2014-12-23 17:12:53.000000000","message":"So this requires modifications to Nova as well?  What is the status of those BPs?","commit_id":"203fdfb4337a937f80734d2d36f302b0aa40cc9a"},{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"dc9c19c49d7e3ead8a3fd6cc85374dc4fb446985","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Security impact"},{"line_number":77,"context_line":"---------------"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"None"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Notifications impact"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a961159_f80d053f","line":78,"updated":"2014-12-23 17:12:53.000000000","message":"Is there any security concern with exposing these IDs?  I suppose not as the log files should be properly secured by the administrator.","commit_id":"203fdfb4337a937f80734d2d36f302b0aa40cc9a"},{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"dc9c19c49d7e3ead8a3fd6cc85374dc4fb446985","unresolved":false,"context_lines":[{"line_number":124,"context_line":"Work Items"},{"line_number":125,"context_line":"----------"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"* Implement for V1 API"},{"line_number":128,"context_line":"* Implement for V2 API"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a961159_db0a031f","line":127,"updated":"2014-12-23 17:12:53.000000000","message":"See above comment about v1.","commit_id":"203fdfb4337a937f80734d2d36f302b0aa40cc9a"},{"author":{"_account_id":7634,"name":"Takashi Natsume","email":"takanattie@gmail.com","username":"natsumet"},"change_message_id":"0f9d5bc68dd6be9d9dae7ae34d9b68d63809ceaa","unresolved":false,"context_lines":[{"line_number":41,"context_line":"Return tuple containing response header and response body"},{"line_number":42,"context_line":"from all of the cinderclient methods (e.g. create method of VolumeManager)."},{"line_number":43,"context_line":"The response header contains \u0027x-openstack-request-id\u0027 which is returned"},{"line_number":44,"context_line":"by cinder. Methods which doesn\u0027t return any values will not be modified"},{"line_number":45,"context_line":"i.e. it will not return response header."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Caller (e.g. nova) should log it\u0027s request id and x-openstack-request-id"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a961159_783cfce1","line":44,"updated":"2015-01-15 02:10:12.000000000","message":"Although methods which doesn\u0027t return any values(e.g. delete), they call to cinder and get \u0027x-openstack-request-id\u0027 from cinder.\nSo It have to be mapped between caller\u0027s request ID and \u0027x-openstack-request-id\u0027.","commit_id":"4285342a806430c596a243c683d664ce1ff5c12b"},{"author":{"_account_id":170,"name":"Mike Perez","email":"thingee@gmail.com","username":"thingee"},"change_message_id":"2b9f270450a9ead6ac858bf86a6349e7bec70adb","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Return tuple containing response header and response body"},{"line_number":42,"context_line":"from all of the cinderclient api methods"},{"line_number":43,"context_line":"(e.g. create method of VolumeManager)."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3a961159_a5533b6a","line":40,"updated":"2015-01-19 06:24:53.000000000","message":"I need more information of what this looks like. For example, a cinderclient.volume.create returns a volume object. How do I get the tuple from that?","commit_id":"0f7d3aeaf39cfff78ebf0151d7f9af2ed7f6fef3"},{"author":{"_account_id":170,"name":"Mike Perez","email":"thingee@gmail.com","username":"thingee"},"change_message_id":"78562fa70aad9ed122bf68fa4a9fec1c645f6830","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Return tuple containing response header and response body"},{"line_number":42,"context_line":"from all of the cinderclient api methods"},{"line_number":43,"context_line":"(e.g. create method of VolumeManager)."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3a961159_88339ac3","line":40,"in_reply_to":"3a961159_567fabde","updated":"2015-01-19 23:04:20.000000000","message":"This is a pretty significant change to the client that will surely break any clients that are using the cinder client. Is there support from other OpenStack projects in changing their client return format the same? If so, can you please provide the specs for those being accepted? I think if this is being accepted cross project, we would need to talk about doing a major version update of Cinder client.","commit_id":"0f7d3aeaf39cfff78ebf0151d7f9af2ed7f6fef3"},{"author":{"_account_id":8300,"name":"Abhijeet Malawade","email":"abhijeet.malawade@gmail.com","username":"abhijeet"},"change_message_id":"93702a9b3d98c6cf5fbfa9c9d4363f86d6dce977","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Return tuple containing response header and response body"},{"line_number":42,"context_line":"from all of the cinderclient api methods"},{"line_number":43,"context_line":"(e.g. create method of VolumeManager)."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3a961159_ea1327b5","line":40,"in_reply_to":"3a961159_88339ac3","updated":"2015-01-20 10:26:30.000000000","message":"Hi Mike,\n\nI am not aware if there is support from other OpenStack projects in changing their client return format.\nCurrently glance-client V1 api is returning \u0027request-id\u0027 to caller but they have followed different approach to return \u0027request-id\u0027.\nThe return format of glance-client V1 api is not changed. glance-client patch : https://review.openstack.org/#/c/68524/7\n\nCurrently openstack projects like nova, glance-store, horizon, heat, trove, sahara are using cinder-client.\nTo not break these services after releasing new version of cinder-client with this changes, we need to add support to check type of response returned by cinder-client in these project. \nAlso we need this cinder-client return format type checking support in all above services for backward compatibility. \n\nI have added the same in \u0027Dependencies\u0027 section of spec.\n\nWe are working on adding this cinder-client return type checking support in above mentioned projects.","commit_id":"0f7d3aeaf39cfff78ebf0151d7f9af2ed7f6fef3"},{"author":{"_account_id":8300,"name":"Abhijeet Malawade","email":"abhijeet.malawade@gmail.com","username":"abhijeet"},"change_message_id":"3c75d26c99ecc0b7b76277eac58afa5b92cda981","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Return tuple containing response header and response body"},{"line_number":42,"context_line":"from all of the cinderclient api methods"},{"line_number":43,"context_line":"(e.g. create method of VolumeManager)."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3a961159_567fabde","line":40,"in_reply_to":"3a961159_a5533b6a","updated":"2015-01-19 09:29:36.000000000","message":"Hi Mike,\n\nCurrently cinder-client is returning only volume object, But with this change cinder-client will return tuple containing\nboth response headers and volume object.\n\nFor ex. - \u0027cinderclient.volume.create\u0027 will return tuple containing header and volume object like:\n\n    def _create(self, url, body, response_key, return_raw\u003dFalse, **kwargs):\n        self.run_hooks(\u0027modify_body_for_create\u0027, body, **kwargs)\n        resp, body \u003d self.api.client.post(url, body\u003dbody)\n\n        if return_raw:\n            # return tuple containing header and body\n            return (resp.headers, body[response_key])  \n\n        with self.completion_cache(\u0027human_id\u0027, self.resource_class, mode\u003d\"a\"):\n            with self.completion_cache(\u0027uuid\u0027, self.resource_class, mode\u003d\"a\"):\n                # return tuple containing header and body\n                return (resp.headers, self.resource_class(self,\n                                                          body[response_key]))\n                                                \n                                                \nAnd caller will get header and body from cinder-client like:\n\n    headers, volume \u003d cinderclient(context).volumes.create(**kwargs)\n    \n    \nFrom this headers we will get \u0027request-id\u0027 of cinder.","commit_id":"0f7d3aeaf39cfff78ebf0151d7f9af2ed7f6fef3"},{"author":{"_account_id":6825,"name":"Gary W. Smith","email":"garysmith123@gmail.com","username":"gary-w-smith"},"change_message_id":"d1fbb9ada9c05a599b1846b59fe115bb9f86d867","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Return tuple containing response header and response body"},{"line_number":42,"context_line":"from all of the cinderclient api methods"},{"line_number":43,"context_line":"(e.g. create method of VolumeManager)."}],"source_content_type":"text/x-rst","patch_set":6,"id":"da86d52c_5ec7e363","line":40,"in_reply_to":"3a961159_ea1327b5","updated":"2015-02-05 17:19:13.000000000","message":"I would like to see this done in a way that retains backward compabitibility with the current API.  Perhaps you can use a variant of your glanceclient patch by supporting a new optional kwarg \u0027return_req_id\u0027: when true it returns the tuple, but when false (the default) it returns the current value","commit_id":"0f7d3aeaf39cfff78ebf0151d7f9af2ed7f6fef3"},{"author":{"_account_id":170,"name":"Mike Perez","email":"thingee@gmail.com","username":"thingee"},"change_message_id":"8f53b7c9773dc7b878bfd2af891911962f02e3b8","unresolved":false,"context_lines":[{"line_number":57,"context_line":"                                                      loaded\u003dTrue))"},{"line_number":58,"context_line":"        else:"},{"line_number":59,"context_line":"            return (resp.headers, self.resource_class(self, body,"},{"line_number":60,"context_line":"                                                      loaded\u003dTrue))"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"And caller will get header and body from cinder-client like:"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"da86d52c_77128563","line":60,"updated":"2015-02-10 06:21:28.000000000","message":"We really can\u0027t make a change to what\u0027s returned from the client unless we do a major version bump of the client. I\u0027m not willing to do that unless this is being done cross project. I recommend proposing this in openstack/specs and bring it up in the cross project meeting.","commit_id":"cca8530af690b010bb131d76cc2ddfa0a4593f57"},{"author":{"_account_id":170,"name":"Mike Perez","email":"thingee@gmail.com","username":"thingee"},"change_message_id":"8f53b7c9773dc7b878bfd2af891911962f02e3b8","unresolved":false,"context_lines":[{"line_number":114,"context_line":"  .. code:: python"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    resp_header, volume \u003d cinderclient(context).volumes.get(volume_id,"},{"line_number":117,"context_line":"                                                            return_req_id\u003dTrue)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":7,"id":"da86d52c_9715394b","line":117,"updated":"2015-02-10 06:21:28.000000000","message":"Again it\u0027s not necessary to make this optional to receive this from the server. If the headers are given in the response, and the client wasn\u0027t expecting it, just move on.","commit_id":"cca8530af690b010bb131d76cc2ddfa0a4593f57"}]}
