)]}'
{"specs/liberty/approved/improve-lock-api.rst":[{"author":{"_account_id":5754,"name":"Alex Xu","email":"hejie.xu@intel.com","username":"xuhj"},"change_message_id":"f0a280db540dff38c1c51498f559deee40cfac52","unresolved":false,"context_lines":[{"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":"* Change return code from 202 to 200."},{"line_number":42,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":43,"context_line":"* Add a new parameter \u0027{\"ignore_status\": True/False}\u0027(optional, and default is"},{"line_number":44,"context_line":"  False) to lock/unlock post body for admin user to lock/unlock a instance no"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dac4157f_5b342edd","line":41,"updated":"2015-04-20 01:57:35.000000000","message":"I\u0027m not sure we can change this. We should avoid break back-compatible.","commit_id":"8d574430d41366b043c67c0b1fbffb8c6276a7e7"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"a84e0fdba45511168a268142721cbee9d5052883","unresolved":false,"context_lines":[{"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":"* Change return code from 202 to 200."},{"line_number":42,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":43,"context_line":"* Add a new parameter \u0027{\"ignore_status\": True/False}\u0027(optional, and default is"},{"line_number":44,"context_line":"  False) to lock/unlock post body for admin user to lock/unlock a instance no"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dac4157f_ccf762f4","line":41,"in_reply_to":"dac4157f_5b342edd","updated":"2015-04-20 06:04:58.000000000","message":"FYI: please see key pair type at , this is a backward-incompatible changes,\nhttps://github.com/openstack/nova/blob/master/nova/api/openstack/rest_api_version_history.rst","commit_id":"8d574430d41366b043c67c0b1fbffb8c6276a7e7"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"8c86e7fb810fc7c9e8aedd139487e1b0104a4eb9","unresolved":false,"context_lines":[{"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":"* Change return code from 202 to 200."},{"line_number":42,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":43,"context_line":"* Add a new parameter \u0027{\"ignore_status\": True/False}\u0027(optional, and default is"},{"line_number":44,"context_line":"  False) to lock/unlock post body for admin user to lock/unlock a instance no"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dac4157f_9bdd2673","line":41,"in_reply_to":"dac4157f_5b342edd","updated":"2015-04-20 02:27:46.000000000","message":"yes, this is a in-compatible changes, but 202 is not correct since it will return the result immediately.\n\nshouldn\u0027t we correct our fault which is made before ?\nI totally unaccept with that.","commit_id":"8d574430d41366b043c67c0b1fbffb8c6276a7e7"},{"author":{"_account_id":5754,"name":"Alex Xu","email":"hejie.xu@intel.com","username":"xuhj"},"change_message_id":"bda997f5b5804daaa761bbe5bbddd75746401705","unresolved":false,"context_lines":[{"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":"* Change return code from 202 to 200."},{"line_number":42,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":43,"context_line":"* Add a new parameter \u0027{\"ignore_status\": True/False}\u0027(optional, and default is"},{"line_number":44,"context_line":"  False) to lock/unlock post body for admin user to lock/unlock a instance no"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7ad32947_63e72ce5","line":41,"in_reply_to":"dac4157f_ccf762f4","updated":"2015-04-28 10:08:25.000000000","message":"yea, I prefer that now also. And I describe it in the devref https://review.openstack.org/#/c/177778 , hope we can get agreement on it.","commit_id":"8d574430d41366b043c67c0b1fbffb8c6276a7e7"},{"author":{"_account_id":6062,"name":"jichenjc","email":"jichenjc@cn.ibm.com","username":"jichenjc"},"change_message_id":"52b1f43be8aa51bee4579e4b18617f6c04fed56f","unresolved":false,"context_lines":[{"line_number":42,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":43,"context_line":"* Add a new parameter \u0027{\"ignore_status\": True/False}\u0027(optional, and default is"},{"line_number":44,"context_line":"  False) to lock/unlock post body for admin user to lock/unlock a instance no"},{"line_number":45,"context_line":"  matter what the lock status is."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9aa53dc9_f15d307a","line":45,"updated":"2015-04-07 20:17:47.000000000","message":"what\u0027s the benefit to do so ? if we need a user to input this param\ncan we just ingore action if it\u0027s already locked?\n\nuser is able to query the lock status anyway..","commit_id":"8d574430d41366b043c67c0b1fbffb8c6276a7e7"},{"author":{"_account_id":5754,"name":"Alex Xu","email":"hejie.xu@intel.com","username":"xuhj"},"change_message_id":"f0a280db540dff38c1c51498f559deee40cfac52","unresolved":false,"context_lines":[{"line_number":42,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":43,"context_line":"* Add a new parameter \u0027{\"ignore_status\": True/False}\u0027(optional, and default is"},{"line_number":44,"context_line":"  False) to lock/unlock post body for admin user to lock/unlock a instance no"},{"line_number":45,"context_line":"  matter what the lock status is."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dac4157f_7b37f2e3","line":45,"in_reply_to":"9aa53dc9_f15d307a","updated":"2015-04-20 01:57:35.000000000","message":"I\u0027m also not sure this is useful","commit_id":"8d574430d41366b043c67c0b1fbffb8c6276a7e7"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"8c86e7fb810fc7c9e8aedd139487e1b0104a4eb9","unresolved":false,"context_lines":[{"line_number":42,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":43,"context_line":"* Add a new parameter \u0027{\"ignore_status\": True/False}\u0027(optional, and default is"},{"line_number":44,"context_line":"  False) to lock/unlock post body for admin user to lock/unlock a instance no"},{"line_number":45,"context_line":"  matter what the lock status is."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dac4157f_bbceaab2","line":45,"in_reply_to":"9aa53dc9_f15d307a","updated":"2015-04-20 02:27:46.000000000","message":"the benefit is , user will get 409 if pass ignore_status if they lock a locked server.","commit_id":"8d574430d41366b043c67c0b1fbffb8c6276a7e7"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"8c86e7fb810fc7c9e8aedd139487e1b0104a4eb9","unresolved":false,"context_lines":[{"line_number":42,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":43,"context_line":"* Add a new parameter \u0027{\"ignore_status\": True/False}\u0027(optional, and default is"},{"line_number":44,"context_line":"  False) to lock/unlock post body for admin user to lock/unlock a instance no"},{"line_number":45,"context_line":"  matter what the lock status is."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dac4157f_9bc40693","line":45,"in_reply_to":"dac4157f_7b37f2e3","updated":"2015-04-20 02:27:46.000000000","message":"and this is optional. the benefit can be seen from my previous comments.\n\nthanks.","commit_id":"8d574430d41366b043c67c0b1fbffb8c6276a7e7"},{"author":{"_account_id":5754,"name":"Alex Xu","email":"hejie.xu@intel.com","username":"xuhj"},"change_message_id":"bda997f5b5804daaa761bbe5bbddd75746401705","unresolved":false,"context_lines":[{"line_number":42,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":43,"context_line":"* Add a new parameter \u0027{\"ignore_status\": True/False}\u0027(optional, and default is"},{"line_number":44,"context_line":"  False) to lock/unlock post body for admin user to lock/unlock a instance no"},{"line_number":45,"context_line":"  matter what the lock status is."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Alternatives"},{"line_number":48,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7ad32947_83092898","line":45,"in_reply_to":"dac4157f_bbceaab2","updated":"2015-04-28 10:08:25.000000000","message":"why use want to ignore this?","commit_id":"8d574430d41366b043c67c0b1fbffb8c6276a7e7"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"4c5183d93a1f7b84f70a21ff98b26180df552014","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"* 200 : successfully lock/unlock an instance"},{"line_number":18,"context_line":"* 404 : instance not found"},{"line_number":19,"context_line":"* 409 : locking/unlocking a locked/unlocked instance"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Problem description"},{"line_number":22,"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":5,"id":"3acd31a7_72058d78","line":19,"updated":"2015-05-01 14:31:35.000000000","message":"According to https://review.openstack.org/#/c/179386/2/guidelines/http.rst, locking an already locked instance should be a 200, not a 409. The 409 should be for actions that are currently underway -- i.e. trying to snapshot and already-snapshotting instance.","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"184681ac0c0996072fd6f131e9f20e2795584aef","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"* 200 : successfully lock/unlock an instance"},{"line_number":18,"context_line":"* 404 : instance not found"},{"line_number":19,"context_line":"* 409 : locking/unlocking a locked/unlocked instance"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Problem description"},{"line_number":22,"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":5,"id":"3acd31a7_ee1c6379","line":19,"updated":"2015-04-29 16:02:01.000000000","message":"These details should go into proposed change, really just want a summary here please","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"a766049a292ab794d712adad6093622fbbfb8c09","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"* 200 : successfully lock/unlock an instance"},{"line_number":18,"context_line":"* 404 : instance not found"},{"line_number":19,"context_line":"* 409 : locking/unlocking a locked/unlocked instance"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Problem description"},{"line_number":22,"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":5,"id":"3acd31a7_b50d3692","line":19,"in_reply_to":"3acd31a7_72058d78","updated":"2015-05-04 02:50:50.000000000","message":"sure, but that guideline is still under discussion.","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"753b83c43a6b0bf480d2f81f18e1b440cfe6e4f9","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"* 200 : successfully lock/unlock an instance"},{"line_number":18,"context_line":"* 404 : instance not found"},{"line_number":19,"context_line":"* 409 : locking/unlocking a locked/unlocked instance"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Problem description"},{"line_number":22,"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":5,"id":"3acd31a7_cdd87cf2","line":19,"in_reply_to":"3acd31a7_ee1c6379","updated":"2015-04-30 01:00:44.000000000","message":"Done","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"184681ac0c0996072fd6f131e9f20e2795584aef","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Change return code from 202 to 200."},{"line_number":44,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Alternatives"},{"line_number":47,"context_line":"------------"},{"line_number":48,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3acd31a7_e9d7bd21","line":45,"updated":"2015-04-29 16:02:01.000000000","message":"I am torn on if this is worth the impact to our API users.\n\nI like how it makes it clear you don\u0027t need the number of lock calls to match the number of unlock calls.\n\nThose generally using the API normally will probably not notice the change, so maybe its all good.","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"8d6be7be23fcf38e495f636fd2458273f55de4c3","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Change return code from 202 to 200."},{"line_number":44,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Alternatives"},{"line_number":47,"context_line":"------------"},{"line_number":48,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3acd31a7_10f8c7e4","line":45,"in_reply_to":"3acd31a7_903177ef","updated":"2015-04-30 01:06:17.000000000","message":"I totally get why it\u0027s good to have the 409 for the conflict, no doubt. I just don\u0027t think it\u0027s a big enough deal to warrant this change and clients potentially having to start handling that possibility, that\u0027s all.","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"753b83c43a6b0bf480d2f81f18e1b440cfe6e4f9","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Change return code from 202 to 200."},{"line_number":44,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Alternatives"},{"line_number":47,"context_line":"------------"},{"line_number":48,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3acd31a7_903177ef","line":45,"in_reply_to":"3acd31a7_bb390844","updated":"2015-04-30 01:00:44.000000000","message":"hi Dan,\nhow about this scenario:\n\na normal user want to lock an instance ,but this instance is locked by admin.\nCurrently ,the normal user only get 202, but the instance is not locked by admin already, normal user can not touch it. I think it\u0027s better to use another return code\nto indicate the lock operation is not successfully done.","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"1770a5fae992bfba01215cf5b08dcb4bc2a2f617","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* Change return code from 202 to 200."},{"line_number":44,"context_line":"* Raise HTTPConflict(409) when locking/unlocking a locked/unlocked instance."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"Alternatives"},{"line_number":47,"context_line":"------------"},{"line_number":48,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3acd31a7_bb390844","line":45,"in_reply_to":"3acd31a7_e9d7bd21","updated":"2015-04-29 16:27:27.000000000","message":"IMHO, this is not worth changing.","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"a4d005b62f1cdda5f408eb312ef75f58e21cca94","unresolved":false,"context_lines":[{"line_number":74,"context_line":"* 200: If the request instance is not in lock status(or is locked by users,"},{"line_number":75,"context_line":"       since admin can overwrite this status)."},{"line_number":76,"context_line":"* 404: Instance not found."},{"line_number":77,"context_line":"* 409: Instance is in locked satus(by admin)."},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"User lock request:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3acd31a7_af266214","line":77,"range":{"start_line":77,"start_character":29,"end_line":77,"end_character":34},"updated":"2015-04-29 18:20:17.000000000","message":"\"status\" is mispelled","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"753b83c43a6b0bf480d2f81f18e1b440cfe6e4f9","unresolved":false,"context_lines":[{"line_number":74,"context_line":"* 200: If the request instance is not in lock status(or is locked by users,"},{"line_number":75,"context_line":"       since admin can overwrite this status)."},{"line_number":76,"context_line":"* 404: Instance not found."},{"line_number":77,"context_line":"* 409: Instance is in locked satus(by admin)."},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"User lock request:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3acd31a7_cdff5c33","line":77,"in_reply_to":"3acd31a7_af266214","updated":"2015-04-30 01:00:44.000000000","message":"Done","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"184681ac0c0996072fd6f131e9f20e2795584aef","unresolved":false,"context_lines":[{"line_number":82,"context_line":"POST /v2.1/52a0ee83fb524376bd603547aea415a3/servers/\\"},{"line_number":83,"context_line":"767dd833-3c6d-4be4-b3ab-d39d509c517b/action"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"{\"lock\": null}"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Response:"},{"line_number":88,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3acd31a7_295255de","line":85,"updated":"2015-04-29 16:02:01.000000000","message":"I guess this is no change, I think just talking about the response changes would make this clearer","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"753b83c43a6b0bf480d2f81f18e1b440cfe6e4f9","unresolved":false,"context_lines":[{"line_number":82,"context_line":"POST /v2.1/52a0ee83fb524376bd603547aea415a3/servers/\\"},{"line_number":83,"context_line":"767dd833-3c6d-4be4-b3ab-d39d509c517b/action"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"{\"lock\": null}"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"Response:"},{"line_number":88,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3acd31a7_cd5bdc53","line":85,"in_reply_to":"3acd31a7_295255de","updated":"2015-04-30 01:00:44.000000000","message":"hi john, I think the request body is slightly strange(this is another problem which is not related with this spec), isn\u0027t it?\ndo we really want user pass {\u0027lock\u0027: null} to nova? and we don\u0027t care what is the value of \u0027lock\u0027 at all, if so, I think we may need a json schema to make user strictly pass {\"lock\": null} to our nova-api service","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"184681ac0c0996072fd6f131e9f20e2795584aef","unresolved":false,"context_lines":[{"line_number":151,"context_line":"Testing"},{"line_number":152,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"* Change lock/unlock test cases of compute_api"},{"line_number":155,"context_line":"* Add test cases for lock_server api to test HTTPConflict exception when"},{"line_number":156,"context_line":"  performing lock/unlock on a locked/unlocked server."},{"line_number":157,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3acd31a7_494b515a","line":154,"updated":"2015-04-29 16:02:01.000000000","message":"to be clear, you would be adding new test cases for the new microversion, the old versions need to keep the old behaviour.","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"753b83c43a6b0bf480d2f81f18e1b440cfe6e4f9","unresolved":false,"context_lines":[{"line_number":151,"context_line":"Testing"},{"line_number":152,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"* Change lock/unlock test cases of compute_api"},{"line_number":155,"context_line":"* Add test cases for lock_server api to test HTTPConflict exception when"},{"line_number":156,"context_line":"  performing lock/unlock on a locked/unlocked server."},{"line_number":157,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3acd31a7_ad58a057","line":154,"in_reply_to":"3acd31a7_494b515a","updated":"2015-04-30 01:00:44.000000000","message":"okay, thanks.","commit_id":"940c05fc73d132dd903dd0c88b07d94e03180862"},{"author":{"_account_id":7730,"name":"Sahid Orentino Ferdjaoui","email":"sahid.ferdjaoui@industrialdiscipline.com","username":"sahid"},"change_message_id":"f36789df9c311d8494431f5919e10062b20210bf","unresolved":false,"context_lines":[{"line_number":37,"context_line":"This propose will be applied on v2.1 microversion:"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"* Change return code from 202 to 200."},{"line_number":40,"context_line":"* Raise 409 if a normal user try to lock an amdin locked instance."},{"line_number":41,"context_line":"  Currently, when a normal user try to lock an instance but the instance is"},{"line_number":42,"context_line":"  already locked by admin(\u0027locked_by\u0027 field of instance is \u0027admin\u0027), he gets"},{"line_number":43,"context_line":"  202, which mean the operation was done without any error. but actually,"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3acd31a7_39e0d928","line":40,"updated":"2015-05-05 09:33:55.000000000","message":"s/amdin/admin","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"cebfc91a39a9334adfb3b361cb8dce17adb42ae1","unresolved":false,"context_lines":[{"line_number":37,"context_line":"This propose will be applied on v2.1 microversion:"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"* Change return code from 202 to 200."},{"line_number":40,"context_line":"* Raise 409 if a normal user try to lock an amdin locked instance."},{"line_number":41,"context_line":"  Currently, when a normal user try to lock an instance but the instance is"},{"line_number":42,"context_line":"  already locked by admin(\u0027locked_by\u0027 field of instance is \u0027admin\u0027), he gets"},{"line_number":43,"context_line":"  202, which mean the operation was done without any error. but actually,"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a016987_5b73fd80","line":40,"in_reply_to":"3acd31a7_39e0d928","updated":"2015-05-15 00:51:45.000000000","message":"sahid, thanks , will update typo when I do respin.","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":7730,"name":"Sahid Orentino Ferdjaoui","email":"sahid.ferdjaoui@industrialdiscipline.com","username":"sahid"},"change_message_id":"f36789df9c311d8494431f5919e10062b20210bf","unresolved":false,"context_lines":[{"line_number":40,"context_line":"* Raise 409 if a normal user try to lock an amdin locked instance."},{"line_number":41,"context_line":"  Currently, when a normal user try to lock an instance but the instance is"},{"line_number":42,"context_line":"  already locked by admin(\u0027locked_by\u0027 field of instance is \u0027admin\u0027), he gets"},{"line_number":43,"context_line":"  202, which mean the operation was done without any error. but actually,"},{"line_number":44,"context_line":"  he doesn\u0027t \u0027lock\u0027 the instance(\u0027locked_by\u0027 is not to set as \u0027user\u0027). we can"},{"line_number":45,"context_line":"  raise HTTPConflict(409) to warn user the lock operation was not done"},{"line_number":46,"context_line":"  correctly."}],"source_content_type":"text/x-rst","patch_set":6,"id":"3acd31a7_19f99dc7","line":43,"updated":"2015-05-05 09:33:55.000000000","message":"Actually code 202 seems to be correct here, the instance is locked\n\n  202 Accepted\n  The request has been accepted for processing, but the processing has not been completed.\n  The request might ormight not eventually be acted upon, as it might be disallowed when processing actually takes place.\n\nBut you may be right to be more consistent since if user tries to unlock the instance he will get an exception.","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"a74845e57ad2515884a1813d068d6d928ed42284","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  202, which mean the operation was done without any error. but actually,"},{"line_number":44,"context_line":"  he doesn\u0027t \u0027lock\u0027 the instance(\u0027locked_by\u0027 is not to set as \u0027user\u0027). we can"},{"line_number":45,"context_line":"  raise HTTPConflict(409) to warn user the lock operation was not done"},{"line_number":46,"context_line":"  correctly."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Alternatives"},{"line_number":49,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9af37de9_5b9c3969","line":46,"updated":"2015-05-11 11:37:08.000000000","message":"Ah, so this case really makes a lot of sense to get right.\n\nYou can\u0027t apply a user lock to something that has an admin lock.\n\nNow there are discussion around 409 vs 400, I would like to get those resolved at the summit before we merge this one, apologies.","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"4e3cc7ebab9b895cddb0e627e32de3a7c658efd4","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  202, which mean the operation was done without any error. but actually,"},{"line_number":44,"context_line":"  he doesn\u0027t \u0027lock\u0027 the instance(\u0027locked_by\u0027 is not to set as \u0027user\u0027). we can"},{"line_number":45,"context_line":"  raise HTTPConflict(409) to warn user the lock operation was not done"},{"line_number":46,"context_line":"  correctly."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Alternatives"},{"line_number":49,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3afb71cf_44c53c3a","line":46,"in_reply_to":"7a016987_1b56a5d2","updated":"2015-06-08 09:58:58.000000000","message":"I think there are some updates here:\nhttps://review.openstack.org/#/c/179386/6/guidelines/http.rst,cm\n\nIdeally we can link to the above doc when this has merged.","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"cebfc91a39a9334adfb3b361cb8dce17adb42ae1","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  202, which mean the operation was done without any error. but actually,"},{"line_number":44,"context_line":"  he doesn\u0027t \u0027lock\u0027 the instance(\u0027locked_by\u0027 is not to set as \u0027user\u0027). we can"},{"line_number":45,"context_line":"  raise HTTPConflict(409) to warn user the lock operation was not done"},{"line_number":46,"context_line":"  correctly."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Alternatives"},{"line_number":49,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a016987_1b56a5d2","line":46,"in_reply_to":"9af37de9_5b9c3969","updated":"2015-05-15 00:51:45.000000000","message":"okay, thanks John.","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"86187332f973f517271a7b38bac19a16c31eebc4","unresolved":false,"context_lines":[{"line_number":49,"context_line":"------------"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"Keep lock/unlock still as 202. Add query instance statue after bp"},{"line_number":52,"context_line":"``get-lock-status-of-instance.rst`` get implemented."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"Data model impact"},{"line_number":55,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9af37de9_5baaf971","line":52,"updated":"2015-05-11 11:38:03.000000000","message":"Can we reference the API-WG discussion here please? Around the 400 vs 409 error codes.","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"cebfc91a39a9334adfb3b361cb8dce17adb42ae1","unresolved":false,"context_lines":[{"line_number":49,"context_line":"------------"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"Keep lock/unlock still as 202. Add query instance statue after bp"},{"line_number":52,"context_line":"``get-lock-status-of-instance.rst`` get implemented."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"Data model impact"},{"line_number":55,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a016987_5b4c1d42","line":52,"in_reply_to":"9af37de9_5baaf971","updated":"2015-05-15 00:51:45.000000000","message":"sure, I will update it when we get back the result after summit","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"4e3cc7ebab9b895cddb0e627e32de3a7c658efd4","unresolved":false,"context_lines":[{"line_number":66,"context_line":"  instance."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"* Example use case:"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"admin lock request:"},{"line_number":72,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3afb71cf_84e8d4e3","line":69,"updated":"2015-06-08 09:58:58.000000000","message":"we need to define them all, not just examples.\n\nI don\u0027t think you want this to be a bullet point, see how this looks in the http doc.","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":7730,"name":"Sahid Orentino Ferdjaoui","email":"sahid.ferdjaoui@industrialdiscipline.com","username":"sahid"},"change_message_id":"f36789df9c311d8494431f5919e10062b20210bf","unresolved":false,"context_lines":[{"line_number":68,"context_line":""},{"line_number":69,"context_line":"* Example use case:"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"admin lock request:"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"POST /v2.1/52a0ee83fb524376bd603547aea415a3/servers/\\"},{"line_number":74,"context_line":"767dd833-3c6d-4be4-b3ab-d39d509c517b/action"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3acd31a7_b9918949","line":71,"updated":"2015-05-05 09:33:55.000000000","message":"lock/unlock","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":9420,"name":"Matthew Gilliard","email":"matthew.gilliard@hp.com","username":"gilliard"},"change_message_id":"879ebff5dece833002989e514d9021cf99d761bd","unresolved":false,"context_lines":[{"line_number":71,"context_line":"admin lock request:"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"POST /v2.1/52a0ee83fb524376bd603547aea415a3/servers/\\"},{"line_number":74,"context_line":"767dd833-3c6d-4be4-b3ab-d39d509c517b/action"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Response:"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"3afb71cf_c4ab6c88","line":74,"updated":"2015-06-08 10:03:58.000000000","message":"3 things:\n\n  You don\u0027t need to break the line here - I think it\u0027s confusing (ie just put one long path)\n\n  Having 2 different formats for UUIDs in the same URL makes me sad :\u0027(\n\n  There is a request body here, I assume? What does it look like?","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":7730,"name":"Sahid Orentino Ferdjaoui","email":"sahid.ferdjaoui@industrialdiscipline.com","username":"sahid"},"change_message_id":"f36789df9c311d8494431f5919e10062b20210bf","unresolved":false,"context_lines":[{"line_number":80,"context_line":"* 404: Instance not found."},{"line_number":81,"context_line":""},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"User lock request:"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"POST /v2.1/52a0ee83fb524376bd603547aea415a3/servers/\\"},{"line_number":86,"context_line":"767dd833-3c6d-4be4-b3ab-d39d509c517b/action"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3acd31a7_397fb916","line":83,"updated":"2015-05-05 09:33:55.000000000","message":"lock/unlock","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"},{"author":{"_account_id":9420,"name":"Matthew Gilliard","email":"matthew.gilliard@hp.com","username":"gilliard"},"change_message_id":"879ebff5dece833002989e514d9021cf99d761bd","unresolved":false,"context_lines":[{"line_number":111,"context_line":"---------------------"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"The v2.1 python-novaclient will get 200 instead of 202 when lock/unlock an"},{"line_number":114,"context_line":"instance immediatelly and will get 409 when a normal user try to lock an"},{"line_number":115,"context_line":"instance which is already locked by admin."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"Performance Impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"3afb71cf_24d7e0ee","line":114,"updated":"2015-06-08 10:03:58.000000000","message":"typo: immediately","commit_id":"6a16d8efda2fbde7e72bbeb4a546475ead0bcfd4"}],"specs/liberty/improve-lock-api.rst":[{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"1e83a10b4d4ceff426164c3f070b5ee37b06aaff","unresolved":false,"context_lines":[{"line_number":97,"context_line":"-----------"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"Primary assignee:"},{"line_number":100,"context_line":"  Eli Qiao \u003ctaget@linux.vnet.ibm.com\u003e"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"Work Items"},{"line_number":103,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9a80dd14_a92bfd31","line":100,"updated":"2015-03-11 03:49:05.000000000","message":"and email","commit_id":"0ec35183fa9683b66dfccbb4a2e84f2109273da0"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"1e83a10b4d4ceff426164c3f070b5ee37b06aaff","unresolved":false,"context_lines":[{"line_number":107,"context_line":"Dependencies"},{"line_number":108,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"This change should be applied to v2.1 once microversions is implemented."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"Testing"},{"line_number":113,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9a80dd14_6902e5b5","line":110,"updated":"2015-03-11 03:49:05.000000000","message":"should be None, since it is done.","commit_id":"0ec35183fa9683b66dfccbb4a2e84f2109273da0"},{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"5d2dbfb9db35607d6b966a6ae509604e974a8866","unresolved":false,"context_lines":[{"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\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\u003d\u003d\u003d"},{"line_number":8,"context_line":"improve the return code of lock server api"},{"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\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\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Currently, lock server api only returns 202(accepted) and 404(not found)."},{"line_number":12,"context_line":"The api return code is not accurate."},{"line_number":13,"context_line":"The lock/unlock api in compute-api is a sync function, so the return code"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a80dd14_449d4865","line":10,"updated":"2015-03-16 06:28:33.000000000","message":"missing launchpad blueprint link ?","commit_id":"902c6274ddf5247712ec98b462a72a70cf6826b4"},{"author":{"_account_id":12175,"name":"Eli Qiao","email":"qiaoliyong@gmail.com","username":"Eli"},"change_message_id":"b884ee9b397b6eb314a144a5cf99ff0e6d784db9","unresolved":false,"context_lines":[{"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\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\u003d\u003d\u003d"},{"line_number":8,"context_line":"improve the return code of lock server api"},{"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\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\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Currently, lock server api only returns 202(accepted) and 404(not found)."},{"line_number":12,"context_line":"The api return code is not accurate."},{"line_number":13,"context_line":"The lock/unlock api in compute-api is a sync function, so the return code"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9a80dd14_220e5133","line":10,"in_reply_to":"9a80dd14_449d4865","updated":"2015-03-17 03:11:50.000000000","message":"no bp, this is a api bug fix.\nFYI, link of discuss in J https://review.openstack.org/#/c/135506/","commit_id":"902c6274ddf5247712ec98b462a72a70cf6826b4"}]}
