)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"887e5c523b0610c4d6290c35d7741db1fdff6487","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Clean invalid conflict response usages and unneccessary retries"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec describes how to replace invalid usages of conflict response,"},{"line_number":10,"context_line":"and how to descrease the load on Ironic API by that"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I373d74b95ce638f4f740b836c01cac36704dd09b"},{"line_number":13,"context_line":"Partial-Bug: #1651447"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"ba5201f7_60519e0e","line":10,"range":{"start_line":10,"start_character":11,"end_line":10,"end_character":20},"updated":"2017-01-09 23:05:48.000000000","message":"nit: typo in decrease","commit_id":"716991b0843a9af94484d6e434fa37808e0038a3"}],"specs/approved/conflict-response-and-retry-cleanup.rst":[{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"aee16a2749a7430cc190f3c1f7d30e9b5ef97c6e","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651447"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Conflict response with 409 status code is intended to cover sitatations of"},{"line_number":14,"context_line":"entity duplication. Such situations in ironic indeed result in conflict"},{"line_number":15,"context_line":"response. However, there are also incorrect usages of this response."},{"line_number":16,"context_line":"For example, conflict response is returned if node is locked."}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_173af336","line":13,"range":{"start_line":13,"start_character":60,"end_line":13,"end_character":71},"updated":"2016-12-29 12:01:25.000000000","message":"s/sitatations/situations/","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"fb432170198017453702c4a8949b3412a3f4dfbf","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651447"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Conflict response with 409 status code is intended to cover sitatations of"},{"line_number":14,"context_line":"entity duplication. Such situations in ironic indeed result in conflict"},{"line_number":15,"context_line":"response. However, there are also incorrect usages of this response."},{"line_number":16,"context_line":"For example, conflict response is returned if node is locked."}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_8f9f7802","line":13,"range":{"start_line":13,"start_character":60,"end_line":13,"end_character":71},"in_reply_to":"ba5201f7_173af336","updated":"2017-01-03 12:22:55.000000000","message":"Done","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"dd973ff03146a4b76b9ddf9eda6ded331c83089a","unresolved":false,"context_lines":[{"line_number":30,"context_line":"* PowerStateFailure"},{"line_number":31,"context_line":"* NodeAssociated"},{"line_number":32,"context_line":"* InstanceAssociated"},{"line_number":33,"context_line":"* Lack of standalone port support in porgroup"},{"line_number":34,"context_line":"* Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":35,"context_line":"* NodeLocked"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_accaa74d","line":33,"range":{"start_line":33,"start_character":37,"end_line":33,"end_character":45},"updated":"2016-12-30 17:14:32.000000000","message":"port group","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"fb432170198017453702c4a8949b3412a3f4dfbf","unresolved":false,"context_lines":[{"line_number":30,"context_line":"* PowerStateFailure"},{"line_number":31,"context_line":"* NodeAssociated"},{"line_number":32,"context_line":"* InstanceAssociated"},{"line_number":33,"context_line":"* Lack of standalone port support in porgroup"},{"line_number":34,"context_line":"* Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":35,"context_line":"* NodeLocked"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_0f9468e0","line":33,"range":{"start_line":33,"start_character":37,"end_line":33,"end_character":45},"in_reply_to":"ba5201f7_accaa74d","updated":"2017-01-03 12:22:55.000000000","message":"Done","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"aee16a2749a7430cc190f3c1f7d30e9b5ef97c6e","unresolved":false,"context_lines":[{"line_number":45,"context_line":"* kexc.RetriableConnectionFailure"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"By design, conflict should not be a reason for a retry, due to invalid value"},{"line_number":48,"context_line":"in request body (name/UUID/id/address/etc that already exsists)."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed solution would introduce a fail fast mechanism for requests that are"},{"line_number":51,"context_line":"expected to fail - invalid, duplicate values. It would also reduce the load"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_d764eb4a","line":48,"range":{"start_line":48,"start_character":55,"end_line":48,"end_character":62},"updated":"2016-12-29 12:01:25.000000000","message":"s/exsists/exists/","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"fb432170198017453702c4a8949b3412a3f4dfbf","unresolved":false,"context_lines":[{"line_number":45,"context_line":"* kexc.RetriableConnectionFailure"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"By design, conflict should not be a reason for a retry, due to invalid value"},{"line_number":48,"context_line":"in request body (name/UUID/id/address/etc that already exsists)."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed solution would introduce a fail fast mechanism for requests that are"},{"line_number":51,"context_line":"expected to fail - invalid, duplicate values. It would also reduce the load"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_6fc174e4","line":48,"range":{"start_line":48,"start_character":55,"end_line":48,"end_character":62},"in_reply_to":"ba5201f7_d764eb4a","updated":"2017-01-03 12:22:55.000000000","message":"Done","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"dd973ff03146a4b76b9ddf9eda6ded331c83089a","unresolved":false,"context_lines":[{"line_number":52,"context_line":"on Ironic API by removal of unnecessary retries. Replacing improper conflict"},{"line_number":53,"context_line":"response usages would make the code cleaner and more self-explanatory."},{"line_number":54,"context_line":"Introducing Retry-After header would enable a new functionality of identifying"},{"line_number":55,"context_line":"the need of a retry by a header, not exception type - that would give the API"},{"line_number":56,"context_line":"ability to decide which requests should be retried due to ability of future"},{"line_number":57,"context_line":"success."},{"line_number":58,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_0cc2d333","line":55,"range":{"start_line":55,"start_character":33,"end_line":55,"end_character":51},"updated":"2016-12-30 17:14:32.000000000","message":"OK, but in proposed change section you mention that exception type is still going to be the reason of retry, not the header?","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"dd973ff03146a4b76b9ddf9eda6ded331c83089a","unresolved":false,"context_lines":[{"line_number":59,"context_line":"Proposed change"},{"line_number":60,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Implement additional exception type PreconditionFailed in Ironic API,"},{"line_number":63,"context_line":"responding with status code 412 and header \"Retry-After\"."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Replace improper usages of conflict response for following exceptions:"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_acd1c7fd","line":62,"range":{"start_line":62,"start_character":36,"end_line":62,"end_character":54},"updated":"2016-12-30 17:14:32.000000000","message":"The problem with this is in its description:\n\n This response code allows the client to place preconditions\n on the current resource state (its current representations\n and metadata) and, thus, prevent the request method from\n being applied if the target resource is in an unexpected\n state.\n\nClient does not put any preconditions in this case, server does. Maybe just Bad Request would be enough?","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"dd973ff03146a4b76b9ddf9eda6ded331c83089a","unresolved":false,"context_lines":[{"line_number":60,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Implement additional exception type PreconditionFailed in Ironic API,"},{"line_number":63,"context_line":"responding with status code 412 and header \"Retry-After\"."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Replace improper usages of conflict response for following exceptions:"},{"line_number":66,"context_line":"* InvalidState -\u003e 412, Precondition Failed"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_8c032373","line":63,"range":{"start_line":63,"start_character":44,"end_line":63,"end_character":55},"updated":"2016-12-30 17:14:32.000000000","message":"Same here, its description does not really fit for our case:\n\n The Retry-After response-header field can be used with a\n 503 (Service Unavailable) response to indicate how long\n the service is expected to be unavailable to the\n requesting client. This field MAY also be used with any\n 3xx (Redirection) response to indicate the minimum time\n the user-agent is asked wait before issuing the redirected\n request. The value of this field can be either an HTTP-date\n or an integer number of seconds (in decimal) after the time\n of the response.\n\nFrom here - https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.37\n\nI think we could add some custom header and use it if none of the standard ones are suitable for us.","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"dd973ff03146a4b76b9ddf9eda6ded331c83089a","unresolved":false,"context_lines":[{"line_number":103,"context_line":"Not retrying on Conflict response, retrying on Preconditioni Failed response."},{"line_number":104,"context_line":"Additional error handler for Precondition Failed."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Typically, but not always, if there are any REST API changes, there are"},{"line_number":107,"context_line":"corresponding changes to python-ironicclient. If so, what does the user"},{"line_number":108,"context_line":"interface look like. If not, describe why there are REST API changes but"},{"line_number":109,"context_line":"no changes to the client."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"\"ironic\" CLI"},{"line_number":112,"context_line":"~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_4ce21bd7","line":109,"range":{"start_line":106,"start_character":0,"end_line":109,"end_character":25},"updated":"2016-12-30 17:14:32.000000000","message":"remove please","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"fb432170198017453702c4a8949b3412a3f4dfbf","unresolved":false,"context_lines":[{"line_number":103,"context_line":"Not retrying on Conflict response, retrying on Preconditioni Failed response."},{"line_number":104,"context_line":"Additional error handler for Precondition Failed."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Typically, but not always, if there are any REST API changes, there are"},{"line_number":107,"context_line":"corresponding changes to python-ironicclient. If so, what does the user"},{"line_number":108,"context_line":"interface look like. If not, describe why there are REST API changes but"},{"line_number":109,"context_line":"no changes to the client."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"\"ironic\" CLI"},{"line_number":112,"context_line":"~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_6f6894f6","line":109,"range":{"start_line":106,"start_character":0,"end_line":109,"end_character":25},"in_reply_to":"ba5201f7_4ce21bd7","updated":"2017-01-03 12:22:55.000000000","message":"Done","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"dd973ff03146a4b76b9ddf9eda6ded331c83089a","unresolved":false,"context_lines":[{"line_number":115,"context_line":"\"openstack baremetal\" CLI"},{"line_number":116,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":117,"context_line":"No impact"},{"line_number":118,"context_line":"Changes, if any, to the OpenStackClient plugin, \"openstack baremetal\" CLI"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"RPC API impact"},{"line_number":121,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_6ce7dfe4","line":118,"range":{"start_line":118,"start_character":0,"end_line":118,"end_character":73},"updated":"2016-12-30 17:14:32.000000000","message":"remove please","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"fb432170198017453702c4a8949b3412a3f4dfbf","unresolved":false,"context_lines":[{"line_number":115,"context_line":"\"openstack baremetal\" CLI"},{"line_number":116,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":117,"context_line":"No impact"},{"line_number":118,"context_line":"Changes, if any, to the OpenStackClient plugin, \"openstack baremetal\" CLI"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"RPC API impact"},{"line_number":121,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_2fa84c1f","line":118,"range":{"start_line":118,"start_character":0,"end_line":118,"end_character":73},"in_reply_to":"ba5201f7_6ce7dfe4","updated":"2017-01-03 12:22:55.000000000","message":"Done","commit_id":"e7f2677ad87e1ba71af24c308e006e4e10a43cd6"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6137ccecfa121543403646eeecca3d6eae376bc6","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651447"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Conflict response with 409 status code is intended to cover situations of"},{"line_number":14,"context_line":"entity duplication. Such situations in ironic indeed result in conflict"},{"line_number":15,"context_line":"response. However, there are also incorrect usages of this response."},{"line_number":16,"context_line":"For example, conflict response is returned if node is locked."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"This introduces problem with handling retries - generally if request results"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_8c3bc6d0","line":15,"range":{"start_line":13,"start_character":39,"end_line":15,"end_character":9},"updated":"2017-01-04 17:07:19.000000000","message":"At least RFC contains something else: \"The request could not be completed due to a conflict with the current state of the resource.\"","commit_id":"baee84df300b772a813d43066b42d3d32394111f"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"96495ceef9da639615d2ccfc98cd535b577694b7","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651447"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Conflict response with 409 status code is intended to cover situations of"},{"line_number":14,"context_line":"entity duplication. Such situations in ironic indeed result in conflict"},{"line_number":15,"context_line":"response. However, there are also incorrect usages of this response."},{"line_number":16,"context_line":"For example, conflict response is returned if node is locked."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"This introduces problem with handling retries - generally if request results"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_3715933f","line":15,"range":{"start_line":13,"start_character":39,"end_line":15,"end_character":9},"in_reply_to":"ba5201f7_8c3bc6d0","updated":"2017-01-06 23:22:24.000000000","message":"Yet, the sentence just after that is \"This code is only allowed in situations where it is expected that the user might be able to resolve the conflict and resubmit the request.\"\nSo basically by definition it should never lead to retry without changes in the request/sending other request before retry to resolve conflict. \n\nI\u0027ll refactor this paragraph so it explains it better, thanks!","commit_id":"baee84df300b772a813d43066b42d3d32394111f"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6137ccecfa121543403646eeecca3d6eae376bc6","unresolved":false,"context_lines":[{"line_number":37,"context_line":"These exception types, except the one mentioned first, are used improperly."},{"line_number":38,"context_line":"What is more, such overuse has consequences in client behavior;"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Currently ironic client handles retries on its side. "},{"line_number":41,"context_line":"Client retries on following exception types:"},{"line_number":42,"context_line":"* exc.Conflict"},{"line_number":43,"context_line":"* exc.ServiceUnavailable,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_acd96a85","line":40,"updated":"2017-01-04 17:07:19.000000000","message":"extra space","commit_id":"baee84df300b772a813d43066b42d3d32394111f"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"96495ceef9da639615d2ccfc98cd535b577694b7","unresolved":false,"context_lines":[{"line_number":37,"context_line":"These exception types, except the one mentioned first, are used improperly."},{"line_number":38,"context_line":"What is more, such overuse has consequences in client behavior;"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Currently ironic client handles retries on its side. "},{"line_number":41,"context_line":"Client retries on following exception types:"},{"line_number":42,"context_line":"* exc.Conflict"},{"line_number":43,"context_line":"* exc.ServiceUnavailable,"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_d7fa8042","line":40,"in_reply_to":"ba5201f7_acd96a85","updated":"2017-01-06 23:22:24.000000000","message":"Done","commit_id":"baee84df300b772a813d43066b42d3d32394111f"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6137ccecfa121543403646eeecca3d6eae376bc6","unresolved":false,"context_lines":[{"line_number":44,"context_line":"* exc.ConnectionRefused,"},{"line_number":45,"context_line":"* kexc.RetriableConnectionFailure"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"By design, conflict should not be a reason for a retry, due to invalid value"},{"line_number":48,"context_line":"in request body (name/UUID/id/address/etc that already exists)."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed solution would introduce a fail fast mechanism for requests that are"},{"line_number":51,"context_line":"expected to fail - invalid, duplicate values. It would also reduce the load"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_ac1c0a14","line":48,"range":{"start_line":47,"start_character":0,"end_line":48,"end_character":15},"updated":"2017-01-04 17:07:19.000000000","message":"Values can be valid, but can not be applied to current resource state. Important note from RFC is also \"This code is only allowed in situations where it is expected that the user might be able to resolve the conflict and resubmit the request.\" - this is not true for node locked for example.","commit_id":"baee84df300b772a813d43066b42d3d32394111f"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"96495ceef9da639615d2ccfc98cd535b577694b7","unresolved":false,"context_lines":[{"line_number":44,"context_line":"* exc.ConnectionRefused,"},{"line_number":45,"context_line":"* kexc.RetriableConnectionFailure"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"By design, conflict should not be a reason for a retry, due to invalid value"},{"line_number":48,"context_line":"in request body (name/UUID/id/address/etc that already exists)."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed solution would introduce a fail fast mechanism for requests that are"},{"line_number":51,"context_line":"expected to fail - invalid, duplicate values. It would also reduce the load"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_373cb3c7","line":48,"range":{"start_line":47,"start_character":0,"end_line":48,"end_character":15},"in_reply_to":"ba5201f7_ac1c0a14","updated":"2017-01-06 23:22:24.000000000","message":"As above - retry without changes does not make sense, I\u0027ll reformat so it explains it more clearly","commit_id":"baee84df300b772a813d43066b42d3d32394111f"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6137ccecfa121543403646eeecca3d6eae376bc6","unresolved":false,"context_lines":[{"line_number":59,"context_line":"Proposed change"},{"line_number":60,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Implement adding \"Retry-After\" header to exceptions in Ironic API."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Replace improper usages of conflict response for following exceptions:"},{"line_number":65,"context_line":"* InvalidState -\u003e 400, Bad Request"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_ccc5ce3c","line":62,"range":{"start_line":62,"start_character":18,"end_line":62,"end_character":29},"updated":"2017-01-04 17:07:19.000000000","message":"adding \"Retry-After\" header\n ++ very good idea","commit_id":"baee84df300b772a813d43066b42d3d32394111f"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6137ccecfa121543403646eeecca3d6eae376bc6","unresolved":false,"context_lines":[{"line_number":59,"context_line":"Proposed change"},{"line_number":60,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Implement adding \"Retry-After\" header to exceptions in Ironic API."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Replace improper usages of conflict response for following exceptions:"},{"line_number":65,"context_line":"* InvalidState -\u003e 400, Bad Request"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_0cb7d6d8","line":62,"range":{"start_line":62,"start_character":41,"end_line":62,"end_character":52},"updated":"2017-01-04 17:07:19.000000000","message":"responses","commit_id":"baee84df300b772a813d43066b42d3d32394111f"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6137ccecfa121543403646eeecca3d6eae376bc6","unresolved":false,"context_lines":[{"line_number":67,"context_line":"* Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":68,"context_line":"* Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":69,"context_line":" -\u003e 406, Not Acceptable"},{"line_number":70,"context_line":"* NodeLocked -\u003e 400, Bad Request"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"InvalidState, PowerStateFailure, NodeLocked exceptions should be enriched"},{"line_number":73,"context_line":"with the \"Retry-After\" header."}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_4c847ed3","line":70,"updated":"2017-01-04 17:07:19.000000000","message":"Not sure but maybe 400 -\u003e 403","commit_id":"baee84df300b772a813d43066b42d3d32394111f"},{"author":{"_account_id":6804,"name":"bruce-benjamin","email":"bruce.benjamin@jhuapl.edu","username":"bruce-benjamin"},"change_message_id":"0bc0cc77d72345a5e16a8dc716b9774fea27827a","unresolved":false,"context_lines":[{"line_number":195,"context_line":"References"},{"line_number":196,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"* https://review.openstack.org/#/q/status:open+project:openstack/ironic-specs+message:apiimpact,n,z"}],"source_content_type":"text/x-rst","patch_set":2,"id":"ba5201f7_8f5d717b","line":198,"range":{"start_line":198,"start_character":2,"end_line":198,"end_character":99},"updated":"2017-01-04 20:17:05.000000000","message":"This link doesn\u0027t show any actual reference.","commit_id":"baee84df300b772a813d43066b42d3d32394111f"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"887e5c523b0610c4d6290c35d7741db1fdff6487","unresolved":false,"context_lines":[{"line_number":43,"context_line":"* exc.Conflict"},{"line_number":44,"context_line":"* exc.ServiceUnavailable,"},{"line_number":45,"context_line":"* exc.ConnectionRefused,"},{"line_number":46,"context_line":"* kexc.RetriableConnectionFailure"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"By design, conflict should not be a reason for an automatic retry, due to"},{"line_number":49,"context_line":"the need of conflict resolution before retrying."}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_c067aae8","line":46,"range":{"start_line":46,"start_character":2,"end_line":46,"end_character":3},"updated":"2017-01-09 23:05:48.000000000","message":"nit: typo here","commit_id":"716991b0843a9af94484d6e434fa37808e0038a3"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"887e5c523b0610c4d6290c35d7741db1fdff6487","unresolved":false,"context_lines":[{"line_number":60,"context_line":"Proposed change"},{"line_number":61,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Replace improper usages of conflict response for following exceptions:"},{"line_number":66,"context_line":"* InvalidState -\u003e 400, Bad Request"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_c0cdea87","line":63,"updated":"2017-01-09 23:05:48.000000000","message":"How will the value of Retry-After be set?\n\nI\u0027m assuming you\u0027re going to be using it like this: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After\n\nso we need to decide (or allow operators to configure) how long to wait before suggesting a retry","commit_id":"716991b0843a9af94484d6e434fa37808e0038a3"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"f4a86c02de88c0a2796b877aaa2643c3c2d78b88","unresolved":false,"context_lines":[{"line_number":60,"context_line":"Proposed change"},{"line_number":61,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Replace improper usages of conflict response for following exceptions:"},{"line_number":66,"context_line":"* InvalidState -\u003e 400, Bad Request"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_e14c4244","line":63,"in_reply_to":"ba5201f7_c0cdea87","updated":"2017-01-12 16:46:22.000000000","message":"Done","commit_id":"716991b0843a9af94484d6e434fa37808e0038a3"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"887e5c523b0610c4d6290c35d7741db1fdff6487","unresolved":false,"context_lines":[{"line_number":70,"context_line":" -\u003e 406, Not Acceptable"},{"line_number":71,"context_line":"* NodeLocked -\u003e 403, Forbidden"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"InvalidState, PowerStateFailure, NodeLocked exceptions should be enriched"},{"line_number":74,"context_line":"with the \"Retry-After\" header."},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Implement handling of \"Retry-After header in Client in addition to handling"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_800e82e3","line":73,"range":{"start_line":73,"start_character":0,"end_line":73,"end_character":31},"updated":"2017-01-09 23:05:48.000000000","message":"Is Retry-After really appropriate for InvalidState/PowerStateFailure?\n\nFor InvalidState, it seems as though it\u0027s used primarily due to validation failing during a PUT/PATCH for good reason, meaning that a retry isn\u0027t guaranteed to make the call succeed: https://github.com/openstack/ironic/blob/cb7ec631f0fc6937eb05ab304f6444d6aad81102/ironic/conductor/manager.py#L158\n\nSimilarly, PowerStateFailure may indicate an issue with the hardware.\n\nI think it\u0027s appropriate for NodeLocked, though.","commit_id":"716991b0843a9af94484d6e434fa37808e0038a3"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"f4a86c02de88c0a2796b877aaa2643c3c2d78b88","unresolved":false,"context_lines":[{"line_number":70,"context_line":" -\u003e 406, Not Acceptable"},{"line_number":71,"context_line":"* NodeLocked -\u003e 403, Forbidden"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"InvalidState, PowerStateFailure, NodeLocked exceptions should be enriched"},{"line_number":74,"context_line":"with the \"Retry-After\" header."},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Implement handling of \"Retry-After header in Client in addition to handling"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a57fde8_836857bc","line":73,"range":{"start_line":73,"start_character":0,"end_line":73,"end_character":31},"in_reply_to":"ba5201f7_800e82e3","updated":"2017-01-12 16:46:22.000000000","message":"I think it is; PowerStateFailure indeed may indicate issue with the hardware, but on the other hand, it can also mean invalid power state (similar with Invalid state).","commit_id":"716991b0843a9af94484d6e434fa37808e0038a3"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"887e5c523b0610c4d6290c35d7741db1fdff6487","unresolved":false,"context_lines":[{"line_number":73,"context_line":"InvalidState, PowerStateFailure, NodeLocked exceptions should be enriched"},{"line_number":74,"context_line":"with the \"Retry-After\" header."},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Implement handling of \"Retry-After header in Client in addition to handling"},{"line_number":77,"context_line":"retries for exceptions included in a list of exceptions that result in a retry."},{"line_number":78,"context_line":"Remove exc.Conflict from that list."},{"line_number":79,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba5201f7_a0af0693","line":76,"range":{"start_line":76,"start_character":22,"end_line":76,"end_character":23},"updated":"2017-01-09 23:05:48.000000000","message":"nit: no end quote \"","commit_id":"716991b0843a9af94484d6e434fa37808e0038a3"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651447"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Conflict response with 409 status code is intended to cover situations where"},{"line_number":14,"context_line":"user is able to resolve the conflict and resubmit the request. Such situations"},{"line_number":15,"context_line":"in ironic indeed result in conflict response. However, there are also incorrect"},{"line_number":16,"context_line":"usages of this response code."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_b43be89b","line":13,"range":{"start_line":13,"start_character":23,"end_line":13,"end_character":33},"updated":"2017-01-12 21:49:42.000000000","message":"409 CONFLICT status","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651447"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Conflict response with 409 status code is intended to cover situations where"},{"line_number":14,"context_line":"user is able to resolve the conflict and resubmit the request. Such situations"},{"line_number":15,"context_line":"in ironic indeed result in conflict response. However, there are also incorrect"},{"line_number":16,"context_line":"usages of this response code."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_661e04bc","line":13,"range":{"start_line":13,"start_character":23,"end_line":13,"end_character":33},"in_reply_to":"7a3c09a3_b43be89b","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"3c3892e7fc8cd0f17a3d352ebbc19f70fb9303e0","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651447"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Conflict response with 409 status code is intended to cover situations where"},{"line_number":14,"context_line":"user is able to resolve the conflict and resubmit the request. Such situations"},{"line_number":15,"context_line":"in ironic indeed result in conflict response. However, there are also incorrect"},{"line_number":16,"context_line":"usages of this response code."},{"line_number":17,"context_line":"For example, conflict response is returned if node is locked."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_7400a0ab","line":14,"updated":"2017-01-12 21:42:01.000000000","message":"In the RFC it says: \"This code is only allowed in situations where it is expected that the user might be able to resolve the conflict and resubmit the request.\"\nhttps://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\n\nGiven that many of our 409 returns are for things like node locked, where users can retry later when it\u0027s not conflicting. I\u0027m not sure I\u0027m convinced 409 is the wrong status code for these cases (including NodeLocked).","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651447"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Conflict response with 409 status code is intended to cover situations where"},{"line_number":14,"context_line":"user is able to resolve the conflict and resubmit the request. Such situations"},{"line_number":15,"context_line":"in ironic indeed result in conflict response. However, there are also incorrect"},{"line_number":16,"context_line":"usages of this response code."},{"line_number":17,"context_line":"For example, conflict response is returned if node is locked."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_3448d82d","line":14,"range":{"start_line":14,"start_character":0,"end_line":14,"end_character":4},"updated":"2017-01-12 21:49:42.000000000","message":"a user","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://bugs.launchpad.net/ironic/+bug/1651447"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Conflict response with 409 status code is intended to cover situations where"},{"line_number":14,"context_line":"user is able to resolve the conflict and resubmit the request. Such situations"},{"line_number":15,"context_line":"in ironic indeed result in conflict response. However, there are also incorrect"},{"line_number":16,"context_line":"usages of this response code."},{"line_number":17,"context_line":"For example, conflict response is returned if node is locked."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_867930ff","line":14,"range":{"start_line":14,"start_character":0,"end_line":14,"end_character":4},"in_reply_to":"7a3c09a3_3448d82d","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Conflict response with 409 status code is intended to cover situations where"},{"line_number":14,"context_line":"user is able to resolve the conflict and resubmit the request. Such situations"},{"line_number":15,"context_line":"in ironic indeed result in conflict response. However, there are also incorrect"},{"line_number":16,"context_line":"usages of this response code."},{"line_number":17,"context_line":"For example, conflict response is returned if node is locked."},{"line_number":18,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_745fc00e","line":15,"range":{"start_line":15,"start_character":10,"end_line":15,"end_character":35},"updated":"2017-01-12 21:49:42.000000000","message":"may result in a conflict","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Conflict response with 409 status code is intended to cover situations where"},{"line_number":14,"context_line":"user is able to resolve the conflict and resubmit the request. Such situations"},{"line_number":15,"context_line":"in ironic indeed result in conflict response. However, there are also incorrect"},{"line_number":16,"context_line":"usages of this response code."},{"line_number":17,"context_line":"For example, conflict response is returned if node is locked."},{"line_number":18,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_266b1c20","line":15,"range":{"start_line":15,"start_character":10,"end_line":15,"end_character":35},"in_reply_to":"7a3c09a3_745fc00e","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":14,"context_line":"user is able to resolve the conflict and resubmit the request. Such situations"},{"line_number":15,"context_line":"in ironic indeed result in conflict response. However, there are also incorrect"},{"line_number":16,"context_line":"usages of this response code."},{"line_number":17,"context_line":"For example, conflict response is returned if node is locked."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This introduces problem with handling retries - generally if request results"},{"line_number":20,"context_line":"in conflict response, there should be no need to perform retry automatically,"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_34ac58ed","line":17,"range":{"start_line":17,"start_character":43,"end_line":17,"end_character":50},"updated":"2017-01-12 21:49:42.000000000","message":"if a node","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":16,"context_line":"usages of this response code."},{"line_number":17,"context_line":"For example, conflict response is returned if node is locked."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This introduces problem with handling retries - generally if request results"},{"line_number":20,"context_line":"in conflict response, there should be no need to perform retry automatically,"},{"line_number":21,"context_line":"as it means that conflict needs to be resolved before the retry. Yet, due to"},{"line_number":22,"context_line":"current misusages, IPA retries the request when receives conflict response."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_54e72440","line":19,"range":{"start_line":19,"start_character":5,"end_line":19,"end_character":23},"updated":"2017-01-12 21:49:42.000000000","message":"causes problems","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":16,"context_line":"usages of this response code."},{"line_number":17,"context_line":"For example, conflict response is returned if node is locked."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This introduces problem with handling retries - generally if request results"},{"line_number":20,"context_line":"in conflict response, there should be no need to perform retry automatically,"},{"line_number":21,"context_line":"as it means that conflict needs to be resolved before the retry. Yet, due to"},{"line_number":22,"context_line":"current misusages, IPA retries the request when receives conflict response."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_94cfccb2","line":19,"range":{"start_line":19,"start_character":58,"end_line":19,"end_character":68},"updated":"2017-01-12 21:49:42.000000000","message":"if a request","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":16,"context_line":"usages of this response code."},{"line_number":17,"context_line":"For example, conflict response is returned if node is locked."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This introduces problem with handling retries - generally if request results"},{"line_number":20,"context_line":"in conflict response, there should be no need to perform retry automatically,"},{"line_number":21,"context_line":"as it means that conflict needs to be resolved before the retry. Yet, due to"},{"line_number":22,"context_line":"current misusages, IPA retries the request when receives conflict response."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_06038043","line":19,"range":{"start_line":19,"start_character":5,"end_line":19,"end_character":23},"in_reply_to":"7a3c09a3_54e72440","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":16,"context_line":"usages of this response code."},{"line_number":17,"context_line":"For example, conflict response is returned if node is locked."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"This introduces problem with handling retries - generally if request results"},{"line_number":20,"context_line":"in conflict response, there should be no need to perform retry automatically,"},{"line_number":21,"context_line":"as it means that conflict needs to be resolved before the retry. Yet, due to"},{"line_number":22,"context_line":"current misusages, IPA retries the request when receives conflict response."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_26007c34","line":19,"range":{"start_line":19,"start_character":58,"end_line":19,"end_character":68},"in_reply_to":"7a3c09a3_94cfccb2","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":19,"context_line":"This introduces problem with handling retries - generally if request results"},{"line_number":20,"context_line":"in conflict response, there should be no need to perform retry automatically,"},{"line_number":21,"context_line":"as it means that conflict needs to be resolved before the retry. Yet, due to"},{"line_number":22,"context_line":"current misusages, IPA retries the request when receives conflict response."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_d4aa3485","line":22,"range":{"start_line":22,"start_character":8,"end_line":22,"end_character":17},"updated":"2017-01-12 21:49:42.000000000","message":"usage","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":19,"context_line":"This introduces problem with handling retries - generally if request results"},{"line_number":20,"context_line":"in conflict response, there should be no need to perform retry automatically,"},{"line_number":21,"context_line":"as it means that conflict needs to be resolved before the retry. Yet, due to"},{"line_number":22,"context_line":"current misusages, IPA retries the request when receives conflict response."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_34929858","line":22,"range":{"start_line":22,"start_character":43,"end_line":22,"end_character":65},"updated":"2017-01-12 21:49:42.000000000","message":"when it receives a conflict","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":19,"context_line":"This introduces problem with handling retries - generally if request results"},{"line_number":20,"context_line":"in conflict response, there should be no need to perform retry automatically,"},{"line_number":21,"context_line":"as it means that conflict needs to be resolved before the retry. Yet, due to"},{"line_number":22,"context_line":"current misusages, IPA retries the request when receives conflict response."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_e9e2c702","line":22,"range":{"start_line":22,"start_character":43,"end_line":22,"end_character":65},"in_reply_to":"7a3c09a3_34929858","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":19,"context_line":"This introduces problem with handling retries - generally if request results"},{"line_number":20,"context_line":"in conflict response, there should be no need to perform retry automatically,"},{"line_number":21,"context_line":"as it means that conflict needs to be resolved before the retry. Yet, due to"},{"line_number":22,"context_line":"current misusages, IPA retries the request when receives conflict response."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_69e5f735","line":22,"range":{"start_line":22,"start_character":8,"end_line":22,"end_character":17},"in_reply_to":"7a3c09a3_d4aa3485","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":25,"context_line":"Problem description"},{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"Conflict response is sent on following exception types:"},{"line_number":29,"context_line":" * Exceptions related to duplicate name/UUID/address"},{"line_number":30,"context_line":" * InvalidState"},{"line_number":31,"context_line":" * PowerStateFailure"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_147cbc1f","line":28,"range":{"start_line":28,"start_character":25,"end_line":28,"end_character":38},"updated":"2017-01-12 21:49:42.000000000","message":"on the following","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":25,"context_line":"Problem description"},{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"Conflict response is sent on following exception types:"},{"line_number":29,"context_line":" * Exceptions related to duplicate name/UUID/address"},{"line_number":30,"context_line":" * InvalidState"},{"line_number":31,"context_line":" * PowerStateFailure"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_e9b9e7ea","line":28,"range":{"start_line":28,"start_character":25,"end_line":28,"end_character":38},"in_reply_to":"7a3c09a3_147cbc1f","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"Conflict response is sent on following exception types:"},{"line_number":29,"context_line":" * Exceptions related to duplicate name/UUID/address"},{"line_number":30,"context_line":" * InvalidState"},{"line_number":31,"context_line":" * PowerStateFailure"},{"line_number":32,"context_line":" * NodeAssociated"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_b4e128d3","line":29,"updated":"2017-01-12 21:49:42.000000000","message":"Maybe this should be a numbered list, since Line 38 says, \"the one mentioned first\"","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"Conflict response is sent on following exception types:"},{"line_number":29,"context_line":" * Exceptions related to duplicate name/UUID/address"},{"line_number":30,"context_line":" * InvalidState"},{"line_number":31,"context_line":" * PowerStateFailure"},{"line_number":32,"context_line":" * NodeAssociated"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_49ae7b86","line":29,"in_reply_to":"7a3c09a3_b4e128d3","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":38,"context_line":"These exception types, except the one mentioned first, are used improperly."},{"line_number":39,"context_line":"What is more, such overuse has consequences in client behavior;"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Currently ironic client handles retries on its side."},{"line_number":42,"context_line":"Client retries on following exception types:"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"* exc.Conflict"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_74aa6072","line":41,"updated":"2017-01-12 21:49:42.000000000","message":"These two lines together sound a bit awkward.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":38,"context_line":"These exception types, except the one mentioned first, are used improperly."},{"line_number":39,"context_line":"What is more, such overuse has consequences in client behavior;"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Currently ironic client handles retries on its side."},{"line_number":42,"context_line":"Client retries on following exception types:"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"* exc.Conflict"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_09d2b300","line":41,"in_reply_to":"7a3c09a3_74aa6072","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":50,"context_line":"the need of conflict resolution before retrying."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Proposed solution would introduce a fail fast mechanism for requests that are"},{"line_number":53,"context_line":"expected to fail - invalid, duplicate values. It would also reduce the load"},{"line_number":54,"context_line":"on Ironic API by removal of unnecessary retries. Replacing improper conflict"},{"line_number":55,"context_line":"response usages would make the code cleaner and more self-explanatory."},{"line_number":56,"context_line":"Introducing \"Retry-After\" header would enable a new functionality of"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_74efc0b0","line":53,"range":{"start_line":53,"start_character":0,"end_line":53,"end_character":44},"updated":"2017-01-12 21:49:42.000000000","message":"I\u0027m not quite understanding this.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":50,"context_line":"the need of conflict resolution before retrying."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"Proposed solution would introduce a fail fast mechanism for requests that are"},{"line_number":53,"context_line":"expected to fail - invalid, duplicate values. It would also reduce the load"},{"line_number":54,"context_line":"on Ironic API by removal of unnecessary retries. Replacing improper conflict"},{"line_number":55,"context_line":"response usages would make the code cleaner and more self-explanatory."},{"line_number":56,"context_line":"Introducing \"Retry-After\" header would enable a new functionality of"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_54e372a3","line":53,"range":{"start_line":53,"start_character":0,"end_line":53,"end_character":44},"in_reply_to":"7a3c09a3_74efc0b0","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":53,"context_line":"expected to fail - invalid, duplicate values. It would also reduce the load"},{"line_number":54,"context_line":"on Ironic API by removal of unnecessary retries. Replacing improper conflict"},{"line_number":55,"context_line":"response usages would make the code cleaner and more self-explanatory."},{"line_number":56,"context_line":"Introducing \"Retry-After\" header would enable a new functionality of"},{"line_number":57,"context_line":"identifying the need of a retry by a header, not exception type - that would"},{"line_number":58,"context_line":"give the API ability to decide which requests should be retried due to ability"},{"line_number":59,"context_line":"of future success."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_5449e4cf","line":56,"range":{"start_line":56,"start_character":1,"end_line":56,"end_character":25},"updated":"2017-01-12 21:49:42.000000000","message":"Introducing a \"Retry-After\"","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":53,"context_line":"expected to fail - invalid, duplicate values. It would also reduce the load"},{"line_number":54,"context_line":"on Ironic API by removal of unnecessary retries. Replacing improper conflict"},{"line_number":55,"context_line":"response usages would make the code cleaner and more self-explanatory."},{"line_number":56,"context_line":"Introducing \"Retry-After\" header would enable a new functionality of"},{"line_number":57,"context_line":"identifying the need of a retry by a header, not exception type - that would"},{"line_number":58,"context_line":"give the API ability to decide which requests should be retried due to ability"},{"line_number":59,"context_line":"of future success."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_146d9c32","line":56,"range":{"start_line":56,"start_character":39,"end_line":56,"end_character":51},"updated":"2017-01-12 21:49:42.000000000","message":"enable new","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":53,"context_line":"expected to fail - invalid, duplicate values. It would also reduce the load"},{"line_number":54,"context_line":"on Ironic API by removal of unnecessary retries. Replacing improper conflict"},{"line_number":55,"context_line":"response usages would make the code cleaner and more self-explanatory."},{"line_number":56,"context_line":"Introducing \"Retry-After\" header would enable a new functionality of"},{"line_number":57,"context_line":"identifying the need of a retry by a header, not exception type - that would"},{"line_number":58,"context_line":"give the API ability to decide which requests should be retried due to ability"},{"line_number":59,"context_line":"of future success."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_b43bb6ea","line":56,"range":{"start_line":56,"start_character":39,"end_line":56,"end_character":51},"in_reply_to":"7a3c09a3_146d9c32","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":54,"context_line":"on Ironic API by removal of unnecessary retries. Replacing improper conflict"},{"line_number":55,"context_line":"response usages would make the code cleaner and more self-explanatory."},{"line_number":56,"context_line":"Introducing \"Retry-After\" header would enable a new functionality of"},{"line_number":57,"context_line":"identifying the need of a retry by a header, not exception type - that would"},{"line_number":58,"context_line":"give the API ability to decide which requests should be retried due to ability"},{"line_number":59,"context_line":"of future success."},{"line_number":60,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_744b40b1","line":57,"range":{"start_line":57,"start_character":21,"end_line":57,"end_character":43},"updated":"2017-01-12 21:49:42.000000000","message":"to retry based on the header,","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":54,"context_line":"on Ironic API by removal of unnecessary retries. Replacing improper conflict"},{"line_number":55,"context_line":"response usages would make the code cleaner and more self-explanatory."},{"line_number":56,"context_line":"Introducing \"Retry-After\" header would enable a new functionality of"},{"line_number":57,"context_line":"identifying the need of a retry by a header, not exception type - that would"},{"line_number":58,"context_line":"give the API ability to decide which requests should be retried due to ability"},{"line_number":59,"context_line":"of future success."},{"line_number":60,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_542d32a6","line":57,"range":{"start_line":57,"start_character":21,"end_line":57,"end_character":43},"in_reply_to":"7a3c09a3_744b40b1","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":55,"context_line":"response usages would make the code cleaner and more self-explanatory."},{"line_number":56,"context_line":"Introducing \"Retry-After\" header would enable a new functionality of"},{"line_number":57,"context_line":"identifying the need of a retry by a header, not exception type - that would"},{"line_number":58,"context_line":"give the API ability to decide which requests should be retried due to ability"},{"line_number":59,"context_line":"of future success."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"Proposed change"},{"line_number":62,"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":6,"id":"7a3c09a3_54e564a6","line":59,"range":{"start_line":58,"start_character":56,"end_line":59,"end_character":18},"updated":"2017-01-12 21:49:42.000000000","message":"This confuses me.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":55,"context_line":"response usages would make the code cleaner and more self-explanatory."},{"line_number":56,"context_line":"Introducing \"Retry-After\" header would enable a new functionality of"},{"line_number":57,"context_line":"identifying the need of a retry by a header, not exception type - that would"},{"line_number":58,"context_line":"give the API ability to decide which requests should be retried due to ability"},{"line_number":59,"context_line":"of future success."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"Proposed change"},{"line_number":62,"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":6,"id":"7a3c09a3_74186e85","line":59,"range":{"start_line":58,"start_character":56,"end_line":59,"end_character":18},"in_reply_to":"7a3c09a3_54e564a6","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":61,"context_line":"Proposed change"},{"line_number":62,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API. Value should"},{"line_number":65,"context_line":"be coonfigurable and default to 10 seconds."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Replace improper usages of conflict response for following exceptions:"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_d43a34e7","line":64,"updated":"2017-01-12 21:49:42.000000000","message":"Is \"Retry-After\" a standard? Is it used by other OpenStack projects?","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":61,"context_line":"Proposed change"},{"line_number":62,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API. Value should"},{"line_number":65,"context_line":"be coonfigurable and default to 10 seconds."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Replace improper usages of conflict response for following exceptions:"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_3407c61d","line":64,"in_reply_to":"7a3c09a3_d43a34e7","updated":"2017-01-13 21:13:39.000000000","message":"It is used by e.g. Nova","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":64,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API. Value should"},{"line_number":65,"context_line":"be coonfigurable and default to 10 seconds."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Replace improper usages of conflict response for following exceptions:"},{"line_number":68,"context_line":" * InvalidState -\u003e 400, Bad Request"},{"line_number":69,"context_line":" * PowerStateFailure -\u003e 400, Bad Request"},{"line_number":70,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_f4bad06d","line":67,"range":{"start_line":67,"start_character":17,"end_line":67,"end_character":59},"updated":"2017-01-12 21:49:42.000000000","message":"usage of the conflict response for the following","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":64,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API. Value should"},{"line_number":65,"context_line":"be coonfigurable and default to 10 seconds."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"Replace improper usages of conflict response for following exceptions:"},{"line_number":68,"context_line":" * InvalidState -\u003e 400, Bad Request"},{"line_number":69,"context_line":" * PowerStateFailure -\u003e 400, Bad Request"},{"line_number":70,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_0f38f3d2","line":67,"range":{"start_line":67,"start_character":17,"end_line":67,"end_character":59},"in_reply_to":"7a3c09a3_f4bad06d","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"3c3892e7fc8cd0f17a3d352ebbc19f70fb9303e0","unresolved":false,"context_lines":[{"line_number":70,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":71,"context_line":" * Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":72,"context_line":"-\u003e 406, Not Acceptable"},{"line_number":73,"context_line":" * NodeLocked -\u003e 403, Forbidden"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"InvalidState, PowerStateFailure, NodeLocked exceptions should be enriched"},{"line_number":76,"context_line":"with the \"Retry-After\" header."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_34cb7874","line":73,"updated":"2017-01-12 21:42:01.000000000","message":"Forbidden implies you\u0027re not authorized. In this case you\u0027re simply conflicting with. another node, so 409 makes the most sense.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":70,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":71,"context_line":" * Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":72,"context_line":"-\u003e 406, Not Acceptable"},{"line_number":73,"context_line":" * NodeLocked -\u003e 403, Forbidden"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"InvalidState, PowerStateFailure, NodeLocked exceptions should be enriched"},{"line_number":76,"context_line":"with the \"Retry-After\" header."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_15c2c485","line":73,"in_reply_to":"7a3c09a3_34cb7874","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"f49dae357bba55682c6637f5002b61bcd36a4ef3","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"Alternatives"},{"line_number":83,"context_line":"------------"},{"line_number":84,"context_line":"Leave improperly used 409 responses. Explicitly add \"Retry-After\" headers for"},{"line_number":85,"context_line":"specific expections while they are raised, to enable client being dependent"},{"line_number":86,"context_line":"on server\u0027s decision on whether to retry or not."},{"line_number":87,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_f471f0e1","line":84,"range":{"start_line":84,"start_character":22,"end_line":84,"end_character":35},"updated":"2017-01-12 21:49:42.000000000","message":"409 CONFLICT responses","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":22860,"name":"Solio Sarabia","email":"solio.sarabia@intel.com","username":"ssarabia"},"change_message_id":"8f270b627b4dce56380f1c5f84a418c174f3e95c","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"Alternatives"},{"line_number":83,"context_line":"------------"},{"line_number":84,"context_line":"Leave improperly used 409 responses. Explicitly add \"Retry-After\" headers for"},{"line_number":85,"context_line":"specific expections while they are raised, to enable client being dependent"},{"line_number":86,"context_line":"on server\u0027s decision on whether to retry or not."},{"line_number":87,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_02e2ba03","line":84,"range":{"start_line":84,"start_character":35,"end_line":84,"end_character":47},"updated":"2017-01-12 22:44:26.000000000","message":"s/. Explicitly/, and explicitly","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"Alternatives"},{"line_number":83,"context_line":"------------"},{"line_number":84,"context_line":"Leave improperly used 409 responses. Explicitly add \"Retry-After\" headers for"},{"line_number":85,"context_line":"specific expections while they are raised, to enable client being dependent"},{"line_number":86,"context_line":"on server\u0027s decision on whether to retry or not."},{"line_number":87,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_f5953840","line":84,"range":{"start_line":84,"start_character":35,"end_line":84,"end_character":47},"in_reply_to":"7a3c09a3_02e2ba03","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"Alternatives"},{"line_number":83,"context_line":"------------"},{"line_number":84,"context_line":"Leave improperly used 409 responses. Explicitly add \"Retry-After\" headers for"},{"line_number":85,"context_line":"specific expections while they are raised, to enable client being dependent"},{"line_number":86,"context_line":"on server\u0027s decision on whether to retry or not."},{"line_number":87,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_1593a45c","line":84,"range":{"start_line":84,"start_character":22,"end_line":84,"end_character":35},"in_reply_to":"7a3c09a3_f471f0e1","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":22860,"name":"Solio Sarabia","email":"solio.sarabia@intel.com","username":"ssarabia"},"change_message_id":"8f270b627b4dce56380f1c5f84a418c174f3e95c","unresolved":false,"context_lines":[{"line_number":82,"context_line":"Alternatives"},{"line_number":83,"context_line":"------------"},{"line_number":84,"context_line":"Leave improperly used 409 responses. Explicitly add \"Retry-After\" headers for"},{"line_number":85,"context_line":"specific expections while they are raised, to enable client being dependent"},{"line_number":86,"context_line":"on server\u0027s decision on whether to retry or not."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_621a9e19","line":85,"range":{"start_line":85,"start_character":9,"end_line":85,"end_character":19},"updated":"2017-01-12 22:44:26.000000000","message":"s/expections/exceptions","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":82,"context_line":"Alternatives"},{"line_number":83,"context_line":"------------"},{"line_number":84,"context_line":"Leave improperly used 409 responses. Explicitly add \"Retry-After\" headers for"},{"line_number":85,"context_line":"specific expections while they are raised, to enable client being dependent"},{"line_number":86,"context_line":"on server\u0027s decision on whether to retry or not."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_958dd433","line":85,"range":{"start_line":85,"start_character":9,"end_line":85,"end_character":19},"in_reply_to":"7a3c09a3_621a9e19","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"3c3892e7fc8cd0f17a3d352ebbc19f70fb9303e0","unresolved":false,"context_lines":[{"line_number":83,"context_line":"------------"},{"line_number":84,"context_line":"Leave improperly used 409 responses. Explicitly add \"Retry-After\" headers for"},{"line_number":85,"context_line":"specific expections while they are raised, to enable client being dependent"},{"line_number":86,"context_line":"on server\u0027s decision on whether to retry or not."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Data model impact"},{"line_number":89,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_74eee0ed","line":86,"updated":"2017-01-12 21:42:01.000000000","message":"I honestly prefer the alternative to the solution proposed in this specification. If we want to make the client stop retrying on all 409s, and provide retry-after instead, I\u0027m on board for that. I\u0027m not convinced for many of these cases that 409 is a better code.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":22860,"name":"Solio Sarabia","email":"solio.sarabia@intel.com","username":"ssarabia"},"change_message_id":"8f270b627b4dce56380f1c5f84a418c174f3e95c","unresolved":false,"context_lines":[{"line_number":82,"context_line":"Alternatives"},{"line_number":83,"context_line":"------------"},{"line_number":84,"context_line":"Leave improperly used 409 responses. Explicitly add \"Retry-After\" headers for"},{"line_number":85,"context_line":"specific expections while they are raised, to enable client being dependent"},{"line_number":86,"context_line":"on server\u0027s decision on whether to retry or not."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Data model impact"},{"line_number":89,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_c28c3238","line":86,"range":{"start_line":85,"start_character":43,"end_line":86,"end_character":23},"updated":"2017-01-12 22:44:26.000000000","message":"nit (change wording): to enable the client decide whether to retry or not based on the server\u0027s response.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":22860,"name":"Solio Sarabia","email":"solio.sarabia@intel.com","username":"ssarabia"},"change_message_id":"8f270b627b4dce56380f1c5f84a418c174f3e95c","unresolved":false,"context_lines":[{"line_number":99,"context_line":"\"Retry-After\" header for InvalidState, PowerStateFailure, NodeLocked"},{"line_number":100,"context_line":"exceptions."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"Will result in the need of changing client\u0027s list of exceptions that cause"},{"line_number":103,"context_line":"a request retry - removal of exc.Conflict."},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"Due to change of response codes and additional header, microversion should be"},{"line_number":106,"context_line":"incremented."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_82aa2a6f","line":103,"range":{"start_line":102,"start_character":0,"end_line":103,"end_character":42},"updated":"2017-01-12 22:44:26.000000000","message":"nit: this paragraph should be part of the first one.\n\n... NodeLocked exceptions. This will result ...","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":99,"context_line":"\"Retry-After\" header for InvalidState, PowerStateFailure, NodeLocked"},{"line_number":100,"context_line":"exceptions."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"Will result in the need of changing client\u0027s list of exceptions that cause"},{"line_number":103,"context_line":"a request retry - removal of exc.Conflict."},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"Due to change of response codes and additional header, microversion should be"},{"line_number":106,"context_line":"incremented."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_95e234d4","line":103,"range":{"start_line":102,"start_character":0,"end_line":103,"end_character":42},"in_reply_to":"7a3c09a3_82aa2a6f","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":22860,"name":"Solio Sarabia","email":"solio.sarabia@intel.com","username":"ssarabia"},"change_message_id":"8f270b627b4dce56380f1c5f84a418c174f3e95c","unresolved":false,"context_lines":[{"line_number":102,"context_line":"Will result in the need of changing client\u0027s list of exceptions that cause"},{"line_number":103,"context_line":"a request retry - removal of exc.Conflict."},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"Due to change of response codes and additional header, microversion should be"},{"line_number":106,"context_line":"incremented."},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"Client (CLI) impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_02ec7ac6","line":105,"range":{"start_line":105,"start_character":7,"end_line":105,"end_character":13},"updated":"2017-01-12 22:44:26.000000000","message":"nit: could also be plural: changes","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a338d9c853bcbb927a68a1f6d00ce27eea1c06d9","unresolved":false,"context_lines":[{"line_number":111,"context_line":""},{"line_number":112,"context_line":"\"ironic\" CLI"},{"line_number":113,"context_line":"~~~~~~~~~~~~"},{"line_number":114,"context_line":"No impact"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"\"openstack baremetal\" CLI"},{"line_number":117,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_74d8a01e","line":114,"updated":"2017-01-12 21:44:54.000000000","message":"client needs to be updated for Retry-After header","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":111,"context_line":""},{"line_number":112,"context_line":"\"ironic\" CLI"},{"line_number":113,"context_line":"~~~~~~~~~~~~"},{"line_number":114,"context_line":"No impact"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"\"openstack baremetal\" CLI"},{"line_number":117,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_7504e87d","line":114,"in_reply_to":"7a3c09a3_74d8a01e","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":6804,"name":"bruce-benjamin","email":"bruce.benjamin@jhuapl.edu","username":"bruce-benjamin"},"change_message_id":"fdd4ce8c0885308a3e125f5b9044e3068d8dc6f2","unresolved":false,"context_lines":[{"line_number":143,"context_line":""},{"line_number":144,"context_line":"Scalability impact"},{"line_number":145,"context_line":"------------------"},{"line_number":146,"context_line":"Decrease traffic to API due to disabling retries on all Conflict responses"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"Performance Impact"},{"line_number":149,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_c2ed1227","line":146,"range":{"start_line":146,"start_character":0,"end_line":146,"end_character":16},"updated":"2017-01-12 22:21:56.000000000","message":"But what about the extra traffic from the handling of \"Retry-After\" header in the client?  Also, will the retry only occur one time after the defined delay period, or will it retry periodically?  I think it should be stated if this occurs only once or multiple times.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":143,"context_line":""},{"line_number":144,"context_line":"Scalability impact"},{"line_number":145,"context_line":"------------------"},{"line_number":146,"context_line":"Decrease traffic to API due to disabling retries on all Conflict responses"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"Performance Impact"},{"line_number":149,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_951794a2","line":146,"range":{"start_line":146,"start_character":0,"end_line":146,"end_character":16},"in_reply_to":"7a3c09a3_c2ed1227","updated":"2017-01-13 21:13:39.000000000","message":"Handling of a header is not the traffic. It is an additional operation, yet performed on the client, not ironic-api. I believe that 1 additional if statement or so is not an impact worth mentioning.\n\nRetry will be performed just like other retries (defined number of times), only the condition changes.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":22860,"name":"Solio Sarabia","email":"solio.sarabia@intel.com","username":"ssarabia"},"change_message_id":"8f270b627b4dce56380f1c5f84a418c174f3e95c","unresolved":false,"context_lines":[{"line_number":170,"context_line":"Work Items"},{"line_number":171,"context_line":"----------"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"* Implement adding \"Retry-After\" header to exception"},{"line_number":174,"context_line":"* Change parent classes of listed exception types accordingly"},{"line_number":175,"context_line":"* Add adding header in specific cases (by case, or directly to derived class)"},{"line_number":176,"context_line":"* Change Clent\u0027s list of exception that will result in a retry"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_e23a0ee7","line":173,"range":{"start_line":173,"start_character":12,"end_line":173,"end_character":39},"updated":"2017-01-12 22:44:26.000000000","message":"nit: Implement implies adding.\n\nThis could be changed to: Implement \"Retry-After\" to exception.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":22860,"name":"Solio Sarabia","email":"solio.sarabia@intel.com","username":"ssarabia"},"change_message_id":"8f270b627b4dce56380f1c5f84a418c174f3e95c","unresolved":false,"context_lines":[{"line_number":172,"context_line":""},{"line_number":173,"context_line":"* Implement adding \"Retry-After\" header to exception"},{"line_number":174,"context_line":"* Change parent classes of listed exception types accordingly"},{"line_number":175,"context_line":"* Add adding header in specific cases (by case, or directly to derived class)"},{"line_number":176,"context_line":"* Change Clent\u0027s list of exception that will result in a retry"},{"line_number":177,"context_line":"* Add retrying on \"Retry-After\" header to Client"},{"line_number":178,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_a2172653","line":175,"range":{"start_line":175,"start_character":6,"end_line":175,"end_character":12},"updated":"2017-01-12 22:44:26.000000000","message":"Could be removed.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":172,"context_line":""},{"line_number":173,"context_line":"* Implement adding \"Retry-After\" header to exception"},{"line_number":174,"context_line":"* Change parent classes of listed exception types accordingly"},{"line_number":175,"context_line":"* Add adding header in specific cases (by case, or directly to derived class)"},{"line_number":176,"context_line":"* Change Clent\u0027s list of exception that will result in a retry"},{"line_number":177,"context_line":"* Add retrying on \"Retry-After\" header to Client"},{"line_number":178,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_15d9e4f3","line":175,"range":{"start_line":175,"start_character":6,"end_line":175,"end_character":12},"in_reply_to":"7a3c09a3_a2172653","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":22860,"name":"Solio Sarabia","email":"solio.sarabia@intel.com","username":"ssarabia"},"change_message_id":"8f270b627b4dce56380f1c5f84a418c174f3e95c","unresolved":false,"context_lines":[{"line_number":173,"context_line":"* Implement adding \"Retry-After\" header to exception"},{"line_number":174,"context_line":"* Change parent classes of listed exception types accordingly"},{"line_number":175,"context_line":"* Add adding header in specific cases (by case, or directly to derived class)"},{"line_number":176,"context_line":"* Change Clent\u0027s list of exception that will result in a retry"},{"line_number":177,"context_line":"* Add retrying on \"Retry-After\" header to Client"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_5d1d8765","line":176,"range":{"start_line":176,"start_character":25,"end_line":176,"end_character":34},"updated":"2017-01-12 22:44:26.000000000","message":"exceptions","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":22860,"name":"Solio Sarabia","email":"solio.sarabia@intel.com","username":"ssarabia"},"change_message_id":"8f270b627b4dce56380f1c5f84a418c174f3e95c","unresolved":false,"context_lines":[{"line_number":173,"context_line":"* Implement adding \"Retry-After\" header to exception"},{"line_number":174,"context_line":"* Change parent classes of listed exception types accordingly"},{"line_number":175,"context_line":"* Add adding header in specific cases (by case, or directly to derived class)"},{"line_number":176,"context_line":"* Change Clent\u0027s list of exception that will result in a retry"},{"line_number":177,"context_line":"* Add retrying on \"Retry-After\" header to Client"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_fd0d5338","line":176,"range":{"start_line":176,"start_character":9,"end_line":176,"end_character":16},"updated":"2017-01-12 22:44:26.000000000","message":"the client\u0027s","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":173,"context_line":"* Implement adding \"Retry-After\" header to exception"},{"line_number":174,"context_line":"* Change parent classes of listed exception types accordingly"},{"line_number":175,"context_line":"* Add adding header in specific cases (by case, or directly to derived class)"},{"line_number":176,"context_line":"* Change Clent\u0027s list of exception that will result in a retry"},{"line_number":177,"context_line":"* Add retrying on \"Retry-After\" header to Client"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_35e6e0b4","line":176,"range":{"start_line":176,"start_character":25,"end_line":176,"end_character":34},"in_reply_to":"7a3c09a3_5d1d8765","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":173,"context_line":"* Implement adding \"Retry-After\" header to exception"},{"line_number":174,"context_line":"* Change parent classes of listed exception types accordingly"},{"line_number":175,"context_line":"* Add adding header in specific cases (by case, or directly to derived class)"},{"line_number":176,"context_line":"* Change Clent\u0027s list of exception that will result in a retry"},{"line_number":177,"context_line":"* Add retrying on \"Retry-After\" header to Client"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_55e36ca3","line":176,"range":{"start_line":176,"start_character":9,"end_line":176,"end_character":16},"in_reply_to":"7a3c09a3_fd0d5338","updated":"2017-01-13 21:13:39.000000000","message":"Done","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":22860,"name":"Solio Sarabia","email":"solio.sarabia@intel.com","username":"ssarabia"},"change_message_id":"8f270b627b4dce56380f1c5f84a418c174f3e95c","unresolved":false,"context_lines":[{"line_number":194,"context_line":""},{"line_number":195,"context_line":"Documentation Impact"},{"line_number":196,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":197,"context_line":"No impact"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"References"},{"line_number":200,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_42ff6234","line":197,"range":{"start_line":197,"start_character":0,"end_line":197,"end_character":9},"updated":"2017-01-12 22:44:26.000000000","message":"I think we should document either alternative: response code changes or \"Retry-After\" response header.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"b6cf5504acd21e85e9f4363a4bab8ef43e8aa219","unresolved":false,"context_lines":[{"line_number":194,"context_line":""},{"line_number":195,"context_line":"Documentation Impact"},{"line_number":196,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":197,"context_line":"No impact"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"References"},{"line_number":200,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a3c09a3_35fd003b","line":197,"range":{"start_line":197,"start_character":0,"end_line":197,"end_character":9},"in_reply_to":"7a3c09a3_42ff6234","updated":"2017-01-13 21:13:39.000000000","message":"Currently in API documentation there is no error code listing (AFAIK); should be included if added in the future.","commit_id":"e257557a076c2290acbf1e0474af03246ee2bf4e"},{"author":{"_account_id":22860,"name":"Solio Sarabia","email":"solio.sarabia@intel.com","username":"ssarabia"},"change_message_id":"69f567b9024a04d661afbd217f777bc5670a3da4","unresolved":false,"context_lines":[{"line_number":57,"context_line":"the response header instead of received response code."},{"line_number":58,"context_line":"This will also reduce the load on Ironic API by removal of unnecessary retries."},{"line_number":59,"context_line":"Replacing improper conflict response usages would make the code cleaner"},{"line_number":60,"context_line":"and more self-explanatory. "},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Proposed change"},{"line_number":63,"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":7,"id":"7a3c09a3_bd5f1671","line":60,"range":{"start_line":60,"start_character":0,"end_line":60,"end_character":3},"updated":"2017-01-13 22:39:22.000000000","message":"Job is complaining about trailing whitespace in L60.","commit_id":"cbdf837739461cadde2e23697fddf1ae179064e2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d4002c8667b91a7f9e22353a2df31b266fb7dcd","unresolved":false,"context_lines":[{"line_number":35,"context_line":"#. Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":36,"context_line":"#. NodeLocked"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"These exception types, except the first one, are used improperly."},{"line_number":39,"context_line":"What is more, such overuse has consequences in client behavior;"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Currently the need of a retry is determined by ironic client basing on the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_fa99c720","line":38,"updated":"2017-02-19 12:59:36.000000000","message":"I\u0027d sat NodeAssociated and InstanceAssociated are also valid, and are probably the result of racing. I agree about everything else.","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"a6bd9cdf485ab571c3c718a0aa5bcf5d232f0ea1","unresolved":false,"context_lines":[{"line_number":35,"context_line":"#. Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":36,"context_line":"#. NodeLocked"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"These exception types, except the first one, are used improperly."},{"line_number":39,"context_line":"What is more, such overuse has consequences in client behavior;"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Currently the need of a retry is determined by ironic client basing on the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_ae3a6d96","line":38,"in_reply_to":"da36d5c6_fa99c720","updated":"2017-02-21 18:32:25.000000000","message":"Done","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d4002c8667b91a7f9e22353a2df31b266fb7dcd","unresolved":false,"context_lines":[{"line_number":52,"context_line":"Proposed solution will move the responsibility of determining the need of"},{"line_number":53,"context_line":"a retry to the Ironic API. This will be achieved by adding the \"Retry-After\""},{"line_number":54,"context_line":"header to specific error responses whose rootcause is expected to be"},{"line_number":55,"context_line":"automatically resolved after certain amount of time."},{"line_number":56,"context_line":"The client will be able to decide whether to perform a retry basing on"},{"line_number":57,"context_line":"the response header instead of received response code."},{"line_number":58,"context_line":"This will also reduce the load on Ironic API by removal of unnecessary retries."}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_1a9f7b04","line":55,"updated":"2017-02-19 12:59:36.000000000","message":"The problem with Retry-After is that IIRC it\u0027s specified to be used with some 5xx errors, so we may violate the HTTP standard by doing it (dunno if it matters).","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"a6bd9cdf485ab571c3c718a0aa5bcf5d232f0ea1","unresolved":false,"context_lines":[{"line_number":52,"context_line":"Proposed solution will move the responsibility of determining the need of"},{"line_number":53,"context_line":"a retry to the Ironic API. This will be achieved by adding the \"Retry-After\""},{"line_number":54,"context_line":"header to specific error responses whose rootcause is expected to be"},{"line_number":55,"context_line":"automatically resolved after certain amount of time."},{"line_number":56,"context_line":"The client will be able to decide whether to perform a retry basing on"},{"line_number":57,"context_line":"the response header instead of received response code."},{"line_number":58,"context_line":"This will also reduce the load on Ironic API by removal of unnecessary retries."}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_8e3769af","line":55,"in_reply_to":"da36d5c6_1a9f7b04","updated":"2017-02-21 18:32:25.000000000","message":"From what I see (I know it\u0027s not in RFC), this header is widely used with 413, even here: \nhttps://docs.openstack.org/developer/tempest/library/rest_client.html#tempest.lib.common.rest_client.RestClient.request\n\nIf this is considered invalid, we may introduce something custom... \u0027should-retry\u0027 or something... wdyt?","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d4002c8667b91a7f9e22353a2df31b266fb7dcd","unresolved":false,"context_lines":[{"line_number":63,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API. Value should"},{"line_number":66,"context_line":"be coonfigurable and default to 10 seconds."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Replace improper usage of conflict response for the following exceptions:"},{"line_number":69,"context_line":" * InvalidState -\u003e 400, Bad Request"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_3aa43f56","line":66,"updated":"2017-02-19 12:59:36.000000000","message":"The second problem I have with this proposal is that this way it\u0027s hard to implement increasing retries. E.g. 10 seconds is too much for the first retry (many conditions resolve in 1-2 seconds), but is fine for e.g. the third retry. Also I don\u0027t see a reason to serve a pre-configured value to a user. If we could e.g. determine somehow how much time we need.. e.g. we can check how much on average holding a lock takes, or something like that.","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"a6bd9cdf485ab571c3c718a0aa5bcf5d232f0ea1","unresolved":false,"context_lines":[{"line_number":63,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API. Value should"},{"line_number":66,"context_line":"be coonfigurable and default to 10 seconds."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Replace improper usage of conflict response for the following exceptions:"},{"line_number":69,"context_line":" * InvalidState -\u003e 400, Bad Request"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_eeb385e7","line":66,"in_reply_to":"da36d5c6_3aa43f56","updated":"2017-02-21 18:32:25.000000000","message":"I see. There are other options:\n1) Have values per specific exception; this way we can set different retry after time for NodeLocked, PowerStateFailure, etc. This wouldn\u0027t solve increasing retries though\n2) If we decide to use custom \u0027should-retry\u0027 header, then the client could implement this mechanism","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d4002c8667b91a7f9e22353a2df31b266fb7dcd","unresolved":false,"context_lines":[{"line_number":69,"context_line":" * InvalidState -\u003e 400, Bad Request"},{"line_number":70,"context_line":" * PowerStateFailure -\u003e 400, Bad Request"},{"line_number":71,"context_line":" * Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":72,"context_line":"-\u003e 406, Not Acceptable"},{"line_number":73,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"InvalidState, PowerStateFailure, NodeLocked exceptions should be enriched"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_5a89f3c9","line":72,"updated":"2017-02-19 12:59:36.000000000","message":"this should be 400 IMO. Not acceptable will also conflict with how we implement microversions.","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"a6bd9cdf485ab571c3c718a0aa5bcf5d232f0ea1","unresolved":false,"context_lines":[{"line_number":69,"context_line":" * InvalidState -\u003e 400, Bad Request"},{"line_number":70,"context_line":" * PowerStateFailure -\u003e 400, Bad Request"},{"line_number":71,"context_line":" * Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":72,"context_line":"-\u003e 406, Not Acceptable"},{"line_number":73,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"InvalidState, PowerStateFailure, NodeLocked exceptions should be enriched"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_0e6e192f","line":72,"in_reply_to":"da36d5c6_5a89f3c9","updated":"2017-02-21 18:32:25.000000000","message":"are you sure? I mean, it is raised when following things are not allowed:\n- raid config\n- soft power off\n- node logical names\n- removing chassis id\n- resource class\n- network interfaces\n- dynamic interfaces\n- port advanced fields\n- portgroup subcontroller\n- portgroup mode properties\n- other conditions in utils\nGenerally I see it being raised in 37 places in api when allow_* condition is not fulfilled","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d4002c8667b91a7f9e22353a2df31b266fb7dcd","unresolved":false,"context_lines":[{"line_number":70,"context_line":" * PowerStateFailure -\u003e 400, Bad Request"},{"line_number":71,"context_line":" * Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":72,"context_line":"-\u003e 406, Not Acceptable"},{"line_number":73,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"InvalidState, PowerStateFailure, NodeLocked exceptions should be enriched"},{"line_number":76,"context_line":"with the \"Retry-After\" header."}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_7a86b7ba","line":73,"updated":"2017-02-19 12:59:36.000000000","message":"ditto","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d4002c8667b91a7f9e22353a2df31b266fb7dcd","unresolved":false,"context_lines":[{"line_number":72,"context_line":"-\u003e 406, Not Acceptable"},{"line_number":73,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"InvalidState, PowerStateFailure, NodeLocked exceptions should be enriched"},{"line_number":76,"context_line":"with the \"Retry-After\" header."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"Implement handling of \"Retry-After\" header in Client in addition to handling"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_9a936bfa","line":75,"updated":"2017-02-19 12:59:36.000000000","message":"re InvalidState: let\u0027s be a bit smarter and only suggest retry if the current state is transient. There is no sense in retrying e.g. \"manage\" action on an \"active\" node.","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"a6bd9cdf485ab571c3c718a0aa5bcf5d232f0ea1","unresolved":false,"context_lines":[{"line_number":72,"context_line":"-\u003e 406, Not Acceptable"},{"line_number":73,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"InvalidState, PowerStateFailure, NodeLocked exceptions should be enriched"},{"line_number":76,"context_line":"with the \"Retry-After\" header."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"Implement handling of \"Retry-After\" header in Client in addition to handling"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_795121d8","line":75,"in_reply_to":"da36d5c6_9a936bfa","updated":"2017-02-21 18:32:25.000000000","message":"Done","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d4002c8667b91a7f9e22353a2df31b266fb7dcd","unresolved":false,"context_lines":[{"line_number":100,"context_line":"exceptions."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"Due to the change of response codes and additional header, microversion should"},{"line_number":103,"context_line":"be incremented."},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"Client (CLI) impact"},{"line_number":106,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_ba902fee","line":103,"updated":"2017-02-19 12:59:36.000000000","message":"Yes, this is quite important. It is going to be a breaking change.","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d4002c8667b91a7f9e22353a2df31b266fb7dcd","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"Client (CLI) impact"},{"line_number":106,"context_line":"-------------------"},{"line_number":107,"context_line":"Not retrying on Conflict response, retrying on \"Retry-After\" header."},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"\"ironic\" CLI"},{"line_number":110,"context_line":"~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_dabb2374","line":107,"updated":"2017-02-19 12:59:36.000000000","message":"Depending on the microversion, right? old microversions will still return Conflict. Also see above about increasing retry delay.","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"a6bd9cdf485ab571c3c718a0aa5bcf5d232f0ea1","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":"Client (CLI) impact"},{"line_number":106,"context_line":"-------------------"},{"line_number":107,"context_line":"Not retrying on Conflict response, retrying on \"Retry-After\" header."},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"\"ironic\" CLI"},{"line_number":110,"context_line":"~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_0edc59e3","line":107,"in_reply_to":"da36d5c6_dabb2374","updated":"2017-02-21 18:32:25.000000000","message":"yes, if we want new CLI to work with older API (and I believe we do), it has to be handled this way. I find it intuitive, however I can add it to this section to make it more explicit, if you like?","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d4002c8667b91a7f9e22353a2df31b266fb7dcd","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"\"openstack baremetal\" CLI"},{"line_number":114,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":115,"context_line":"No impact"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"RPC API impact"},{"line_number":118,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_fac0e7e2","line":115,"updated":"2017-02-19 12:59:36.000000000","message":"should be the same as \"ironic\" CLI","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"a6bd9cdf485ab571c3c718a0aa5bcf5d232f0ea1","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"\"openstack baremetal\" CLI"},{"line_number":114,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":115,"context_line":"No impact"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"RPC API impact"},{"line_number":118,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_2ed75dc0","line":115,"in_reply_to":"da36d5c6_fac0e7e2","updated":"2017-02-21 18:32:25.000000000","message":"Done","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d4002c8667b91a7f9e22353a2df31b266fb7dcd","unresolved":false,"context_lines":[{"line_number":128,"context_line":""},{"line_number":129,"context_line":"Ramdisk impact"},{"line_number":130,"context_line":"--------------"},{"line_number":131,"context_line":"No impact"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Security impact"},{"line_number":134,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_1ab69b8a","line":131,"updated":"2017-02-19 12:59:36.000000000","message":"There has to be some, IPA does not use ironicclient but does retries (or should do, at least).","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"a6bd9cdf485ab571c3c718a0aa5bcf5d232f0ea1","unresolved":false,"context_lines":[{"line_number":128,"context_line":""},{"line_number":129,"context_line":"Ramdisk impact"},{"line_number":130,"context_line":"--------------"},{"line_number":131,"context_line":"No impact"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Security impact"},{"line_number":134,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_d9412d0d","line":131,"in_reply_to":"da36d5c6_1ab69b8a","updated":"2017-02-21 18:32:25.000000000","message":"I don\u0027t see IPA calls to ironic API\u0027s REST API... maybe I\u0027m doing something wrong?","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0d4002c8667b91a7f9e22353a2df31b266fb7dcd","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"* Handle timeout configuration value"},{"line_number":171,"context_line":"* Set \"Retry-After\" header in specified exceptions"},{"line_number":172,"context_line":"* Change parent classes of listed exception types accordingly"},{"line_number":173,"context_line":"* Add header in specific cases (by case)"},{"line_number":174,"context_line":"* Change list of exceptionis that will result in a retry in the client"},{"line_number":175,"context_line":"* Retry on \"Retry-After\" header in client"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_3abb5f74","line":172,"updated":"2017-02-19 12:59:36.000000000","message":"This is somewhat more complicated. You have to provide a backward-compatibility layer, problably somewhere in the API.","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"a6bd9cdf485ab571c3c718a0aa5bcf5d232f0ea1","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"* Handle timeout configuration value"},{"line_number":171,"context_line":"* Set \"Retry-After\" header in specified exceptions"},{"line_number":172,"context_line":"* Change parent classes of listed exception types accordingly"},{"line_number":173,"context_line":"* Add header in specific cases (by case)"},{"line_number":174,"context_line":"* Change list of exceptionis that will result in a retry in the client"},{"line_number":175,"context_line":"* Retry on \"Retry-After\" header in client"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da36d5c6_d9576d00","line":172,"in_reply_to":"da36d5c6_3abb5f74","updated":"2017-02-21 18:32:25.000000000","message":"Done","commit_id":"49a47a401301e76433bbb46e6f2dcc3bd218da14"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"b77087a486782c81649e227eb5d5d613bddbcaa5","unresolved":false,"context_lines":[{"line_number":19,"context_line":"This causes problem with handling retries - generally if request results"},{"line_number":20,"context_line":"in conflict response, there should be no need to perform retry automatically,"},{"line_number":21,"context_line":"as it means that conflict needs to be resolved before the retry. Yet, due to"},{"line_number":22,"context_line":"current usages, IPA retries the request when it receives a conflict response."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da36d5c6_67b5d7ec","line":22,"range":{"start_line":22,"start_character":16,"end_line":22,"end_character":19},"updated":"2017-02-22 16:33:15.000000000","message":"s/IPA/ironic client","commit_id":"7f198426f01dd08f3df7810281a525401764d634"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"e37a8a3a2ea16680bd1084a296c252ade80de300","unresolved":false,"context_lines":[{"line_number":19,"context_line":"This causes problem with handling retries - generally if request results"},{"line_number":20,"context_line":"in conflict response, there should be no need to perform retry automatically,"},{"line_number":21,"context_line":"as it means that conflict needs to be resolved before the retry. Yet, due to"},{"line_number":22,"context_line":"current usages, IPA retries the request when it receives a conflict response."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da36d5c6_d1270fc8","line":22,"range":{"start_line":22,"start_character":16,"end_line":22,"end_character":19},"in_reply_to":"da36d5c6_67b5d7ec","updated":"2017-02-22 23:37:49.000000000","message":"Will fix :)","commit_id":"7f198426f01dd08f3df7810281a525401764d634"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"b77087a486782c81649e227eb5d5d613bddbcaa5","unresolved":false,"context_lines":[{"line_number":63,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API. Value should"},{"line_number":66,"context_line":"be coonfigurable and default to 10 seconds."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Replace improper usage of conflict response for the following exceptions:"},{"line_number":69,"context_line":" * InvalidState -\u003e 400, Bad Request"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da36d5c6_7a5e4e77","line":66,"range":{"start_line":66,"start_character":0,"end_line":66,"end_character":43},"updated":"2017-02-22 16:33:15.000000000","message":"There are two main proposals in this spec: 1) change error codes 2) add retry-after header. Agree with Dmitry, more smart mechanism is needed instead of fixed value for all cases and retry attempts. Maybe Tasks Resources can help? Also I don\u0027t like any ironic-specific custom headers like proposed \"should-retry\".","commit_id":"7f198426f01dd08f3df7810281a525401764d634"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"adb07b32d6b83e7af857dac8c36dcfb34c64bb59","unresolved":false,"context_lines":[{"line_number":63,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API. Value should"},{"line_number":66,"context_line":"be coonfigurable and default to 10 seconds."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Replace improper usage of conflict response for the following exceptions:"},{"line_number":69,"context_line":" * InvalidState -\u003e 400, Bad Request"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da36d5c6_876c75d1","line":66,"range":{"start_line":66,"start_character":0,"end_line":66,"end_character":43},"in_reply_to":"da36d5c6_514cff9d","updated":"2017-02-23 00:46:25.000000000","message":"I\u0027m not sure that this spec should be splitted. But inconsistensy of http error codes is not limited by cases described here. Vlad Drok try to collect this info. Will be good add all of these changes to one spec (new retrying cases are possible, for example no any conductor registered - 503).","commit_id":"7f198426f01dd08f3df7810281a525401764d634"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"e37a8a3a2ea16680bd1084a296c252ade80de300","unresolved":false,"context_lines":[{"line_number":63,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API. Value should"},{"line_number":66,"context_line":"be coonfigurable and default to 10 seconds."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Replace improper usage of conflict response for the following exceptions:"},{"line_number":69,"context_line":" * InvalidState -\u003e 400, Bad Request"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da36d5c6_514cff9d","line":66,"range":{"start_line":66,"start_character":0,"end_line":66,"end_character":43},"in_reply_to":"da36d5c6_7a5e4e77","updated":"2017-02-22 23:37:49.000000000","message":"I\u0027ll split this spec into 2 separate ones - one for conflict code replacement and other for retry-after, because it starts to be too mixed up and complicated. \nThank you for pointing this out","commit_id":"7f198426f01dd08f3df7810281a525401764d634"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"78b5303f63be820c8dfff8248ccceb4f76c38f1f","unresolved":false,"context_lines":[{"line_number":63,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Implement adding \"Retry-After\" header to responses in Ironic API. Value should"},{"line_number":66,"context_line":"be coonfigurable and default to 10 seconds."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Replace improper usage of conflict response for the following exceptions:"},{"line_number":69,"context_line":" * InvalidState -\u003e 400, Bad Request"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da36d5c6_4cf6f8f9","line":66,"range":{"start_line":66,"start_character":0,"end_line":66,"end_character":43},"in_reply_to":"da36d5c6_876c75d1","updated":"2017-02-23 22:55:02.000000000","message":"I think it will look cleaner... adding header also does not break compatibility between APIs (same response code and messages) and is independent of conflict response cleanup, so I think it will make sense.\n\nI went through the APIs, and I also see other inconsistencies. For example NotAuthorized exception returns Forbidden (which is something we inherited after nova, but nova folks fixed it in nova).\nOperationNotPermitted (also returning Forbidden) is raised when user\u0027s API query contains invalid filtering. And that is just the beginning! :)","commit_id":"7f198426f01dd08f3df7810281a525401764d634"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"b77087a486782c81649e227eb5d5d613bddbcaa5","unresolved":false,"context_lines":[{"line_number":72,"context_line":"-\u003e 406, Not Acceptable"},{"line_number":73,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"PowerStateFailure and NodeLocked exceptions should be enriched"},{"line_number":76,"context_line":" with the \"Retry-After\" header."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"Implement handling of \"Retry-After\" header in Client in addition to handling"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da36d5c6_1dde2c11","line":75,"range":{"start_line":75,"start_character":0,"end_line":75,"end_character":17},"updated":"2017-02-22 16:33:15.000000000","message":"Power state change is async operation, therefore this exception can not be returned to API service side. I not found any case via quick grep search. Please provide an example if you know.","commit_id":"7f198426f01dd08f3df7810281a525401764d634"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"e37a8a3a2ea16680bd1084a296c252ade80de300","unresolved":false,"context_lines":[{"line_number":72,"context_line":"-\u003e 406, Not Acceptable"},{"line_number":73,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"PowerStateFailure and NodeLocked exceptions should be enriched"},{"line_number":76,"context_line":" with the \"Retry-After\" header."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"Implement handling of \"Retry-After\" header in Client in addition to handling"}],"source_content_type":"text/x-rst","patch_set":9,"id":"da36d5c6_f176d3d5","line":75,"range":{"start_line":75,"start_character":0,"end_line":75,"end_character":17},"in_reply_to":"da36d5c6_1dde2c11","updated":"2017-02-22 23:37:49.000000000","message":"Yep, you are right - it is raised in do_sync_power_state in manager and used in _sync_power_states periodic task. Will fix.","commit_id":"7f198426f01dd08f3df7810281a525401764d634"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"96225a86905086097bbc500510cf41ddb3c67a21","unresolved":false,"context_lines":[{"line_number":73,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"PowerStateFailure and NodeLocked exceptions should be enriched"},{"line_number":76,"context_line":" with the \"Retry-After\" header."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"Implement handling of \"Retry-After\" header in Client in addition to handling"},{"line_number":79,"context_line":"retries for exceptions included in a list of exceptions that result in a retry."}],"source_content_type":"text/x-rst","patch_set":9,"id":"da36d5c6_f82dd8a8","line":76,"updated":"2017-02-22 21:51:25.000000000","message":"Also NoFreeConductorWorker (503).","commit_id":"7f198426f01dd08f3df7810281a525401764d634"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"e37a8a3a2ea16680bd1084a296c252ade80de300","unresolved":false,"context_lines":[{"line_number":73,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"PowerStateFailure and NodeLocked exceptions should be enriched"},{"line_number":76,"context_line":" with the \"Retry-After\" header."},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"Implement handling of \"Retry-After\" header in Client in addition to handling"},{"line_number":79,"context_line":"retries for exceptions included in a list of exceptions that result in a retry."}],"source_content_type":"text/x-rst","patch_set":9,"id":"da36d5c6_71510336","line":76,"in_reply_to":"da36d5c6_f82dd8a8","updated":"2017-02-22 23:37:49.000000000","message":"Will add :)","commit_id":"7f198426f01dd08f3df7810281a525401764d634"}],"specs/approved/conflict-response-cleanup.rst":[{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"a4efaea4f9d3b5ebea8bc64d35ee43bb24d738da","unresolved":false,"context_lines":[{"line_number":37,"context_line":"#. NodeLocked"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"These exception types, except 1, 4 and 5, are used improperly."},{"line_number":40,"context_line":"What is more, such overuse has consequences in client behavior;"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Currently the need of a retry is determined by ironic client basing on the"},{"line_number":43,"context_line":"received error response. Client retries on following exception types:"}],"source_content_type":"text/x-rst","patch_set":11,"id":"3a1ff146_c7ba3523","line":40,"range":{"start_line":40,"start_character":0,"end_line":40,"end_character":12},"updated":"2017-03-15 23:53:48.000000000","message":"Moreover ?","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"a4efaea4f9d3b5ebea8bc64d35ee43bb24d738da","unresolved":false,"context_lines":[{"line_number":37,"context_line":"#. NodeLocked"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"These exception types, except 1, 4 and 5, are used improperly."},{"line_number":40,"context_line":"What is more, such overuse has consequences in client behavior;"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Currently the need of a retry is determined by ironic client basing on the"},{"line_number":43,"context_line":"received error response. Client retries on following exception types:"}],"source_content_type":"text/x-rst","patch_set":11,"id":"3a1ff146_079c4dbf","line":40,"range":{"start_line":40,"start_character":62,"end_line":40,"end_character":63},"updated":"2017-03-15 23:53:48.000000000","message":"nit: s/;/./","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"a4efaea4f9d3b5ebea8bc64d35ee43bb24d738da","unresolved":false,"context_lines":[{"line_number":39,"context_line":"These exception types, except 1, 4 and 5, are used improperly."},{"line_number":40,"context_line":"What is more, such overuse has consequences in client behavior;"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Currently the need of a retry is determined by ironic client basing on the"},{"line_number":43,"context_line":"received error response. Client retries on following exception types:"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* exc.Conflict"}],"source_content_type":"text/x-rst","patch_set":11,"id":"3a1ff146_87975d8f","line":42,"range":{"start_line":42,"start_character":47,"end_line":42,"end_character":60},"updated":"2017-03-15 23:53:48.000000000","message":"Wondering if the usage is ironic-client","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"a4efaea4f9d3b5ebea8bc64d35ee43bb24d738da","unresolved":false,"context_lines":[{"line_number":39,"context_line":"These exception types, except 1, 4 and 5, are used improperly."},{"line_number":40,"context_line":"What is more, such overuse has consequences in client behavior;"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Currently the need of a retry is determined by ironic client basing on the"},{"line_number":43,"context_line":"received error response. Client retries on following exception types:"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* exc.Conflict"}],"source_content_type":"text/x-rst","patch_set":11,"id":"3a1ff146_e78c9181","line":42,"range":{"start_line":42,"start_character":61,"end_line":42,"end_character":67},"updated":"2017-03-15 23:53:48.000000000","message":"based ?","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"03aea3bce3f396e5a8f15cb3ee6f5dc73793c0dd","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Replace improper usage of conflict response for the following exceptions:"},{"line_number":60,"context_line":" * InvalidState -\u003e 400, Bad Request"},{"line_number":61,"context_line":" * PowerStateFailure -\u003e 400, Bad Request"},{"line_number":62,"context_line":" * Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":63,"context_line":"-\u003e 406, Not Acceptable"},{"line_number":64,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a1ced50_025c7fec","line":61,"updated":"2017-03-23 18:50:32.000000000","message":"Hmm, this seems like a server side problem, right? This is when the conductor is unable to set the power state for the node (because the BMC is unresponsive or whatever).\n\n400 implies I can fix my request and try again, which I clearly can\u0027t in this case.","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"03aea3bce3f396e5a8f15cb3ee6f5dc73793c0dd","unresolved":false,"context_lines":[{"line_number":61,"context_line":" * PowerStateFailure -\u003e 400, Bad Request"},{"line_number":62,"context_line":" * Disabling standalone_ports_supported if vif_port_id exists or pxe_enabled"},{"line_number":63,"context_line":"-\u003e 406, Not Acceptable"},{"line_number":64,"context_line":" * Lack of standalone support in portgroup -\u003e 406, Not Acceptable"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"PowerStateFailure and NodeLocked exceptions should still result in retry on"},{"line_number":67,"context_line":"the ironic client side. In order to achieve that, list of exceptions that"}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a1ced50_c2d3475e","line":64,"updated":"2017-03-23 18:50:32.000000000","message":"What response code will we use for NodeLocked?","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"03aea3bce3f396e5a8f15cb3ee6f5dc73793c0dd","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"REST API impact"},{"line_number":83,"context_line":"---------------"},{"line_number":84,"context_line":"Change in returned status codes (as described in proposed change),"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Due to the change of response codes microversion should be incremented."},{"line_number":87,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a1ced50_a203abbd","line":84,"updated":"2017-03-23 18:50:32.000000000","message":"nit: s/,/./","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"a4efaea4f9d3b5ebea8bc64d35ee43bb24d738da","unresolved":false,"context_lines":[{"line_number":83,"context_line":"---------------"},{"line_number":84,"context_line":"Change in returned status codes (as described in proposed change),"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Due to the change of response codes microversion should be incremented."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Client (CLI) impact"},{"line_number":89,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":11,"id":"3a1ff146_e7bad109","line":86,"range":{"start_line":86,"start_character":0,"end_line":86,"end_character":3},"updated":"2017-03-15 23:53:48.000000000","message":"due ?","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"03aea3bce3f396e5a8f15cb3ee6f5dc73793c0dd","unresolved":false,"context_lines":[{"line_number":83,"context_line":"---------------"},{"line_number":84,"context_line":"Change in returned status codes (as described in proposed change),"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Due to the change of response codes microversion should be incremented."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"Client (CLI) impact"},{"line_number":89,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a1ced50_c208a7dc","line":86,"range":{"start_line":86,"start_character":0,"end_line":86,"end_character":3},"in_reply_to":"3a1ff146_e7bad109","updated":"2017-03-23 18:50:32.000000000","message":"s/should/will/ :)","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"03aea3bce3f396e5a8f15cb3ee6f5dc73793c0dd","unresolved":false,"context_lines":[{"line_number":152,"context_line":"----------"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"* Introduce backward compatibility layer in API for exceptions"},{"line_number":155,"context_line":"* Change parent classes of listed exception types accordingly"},{"line_number":156,"context_line":"* Change list of exceptions that will result in a retry in the client"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a1ced50_e2a92392","line":155,"updated":"2017-03-23 18:50:32.000000000","message":"If I\u0027m reading things correctly, many of these exceptions come from deep in the code.\n\nMaybe instead we just introduce new exceptions that inherit from the correct parent, and raise those instead. Then catch them in the API layer, and depending on the microversion, re-raise or raise the old one. (or do the opposite, raise the old one, catch it and raise the new one if the microversion is high enough)\n\nI\u0027m curious what this compat layer looks like, maybe we\u0027re on the same page :)","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"03aea3bce3f396e5a8f15cb3ee6f5dc73793c0dd","unresolved":false,"context_lines":[{"line_number":162,"context_line":"Testing"},{"line_number":163,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":164,"context_line":"This change does not change the behavior, but the response codes, which may"},{"line_number":165,"context_line":"impact the tests."},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":168,"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"}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a1ced50_c2b987cd","line":165,"updated":"2017-03-23 18:50:32.000000000","message":"Our tests are microversion aware, so it shouldn\u0027t actually affect existing tests. Should totally add tempest or functional tests to exercise this, though. :)","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"03aea3bce3f396e5a8f15cb3ee6f5dc73793c0dd","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":"Documentation Impact"},{"line_number":173,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":174,"context_line":"No impact"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"References"},{"line_number":177,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a1ced50_02b47fcf","line":174,"updated":"2017-03-23 18:50:32.000000000","message":"API docs will need an update","commit_id":"31b84e75525d0f345becd590462cbab9d6e10326"}]}
