)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"4372682cf2b342be1bf1f482e173302b5ed4ffa9","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This is actually wrong because this is the user\u0027s fault to not"},{"line_number":13,"context_line":"provide enough of information to inspector."},{"line_number":14,"context_line":"The error code that could be used is 400, but for more precision,"},{"line_number":15,"context_line":"better choice is 422 Unprocessable Entity."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I080dedeac7ce33135fde8c53494e618ccf07c941"},{"line_number":18,"context_line":"Closes-Bug: #1686457"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3f044301_23dc2973","line":15,"range":{"start_line":14,"start_character":0,"end_line":15,"end_character":16},"updated":"2017-05-04 00:47:06.000000000","message":"Please remove this. 422 is correct code for this case.","commit_id":"13b6a567dd2ec7bee41a228be3a0ba77e4b87ec6"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"ed1f020a3e827a1124ce38dc4337128f6d03fd4c","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This is actually wrong because this is the user\u0027s fault to not"},{"line_number":13,"context_line":"provide enough of information to inspector."},{"line_number":14,"context_line":"The error code that could be used is 400, but for more precision,"},{"line_number":15,"context_line":"better choice is 422 Unprocessable Entity."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I080dedeac7ce33135fde8c53494e618ccf07c941"},{"line_number":18,"context_line":"Closes-Bug: #1686457"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3f044301_a2bca8bb","line":15,"range":{"start_line":14,"start_character":0,"end_line":15,"end_character":16},"in_reply_to":"3f044301_23dc2973","updated":"2017-05-04 10:40:11.000000000","message":"Actually, no, investigating this more I got to the point that this status code is non-standard in pecan (does not correspond to W3S standard) and if it is used, it will be replaced by 500 Internal Error (see [0], [1], [2])\n\n[0] https://github.com/openstack/wsme/blob/master/wsmeext/pecan.py#L116-L117\n[1] https://github.com/openstack/wsme/blob/master/wsme/utils.py#L103-L107\n[2] https://github.com/python/cpython/blob/2.7/Lib/httplib.py#L164-L211","commit_id":"13b6a567dd2ec7bee41a228be3a0ba77e4b87ec6"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"1f0a1a094440828de8d6c88fd88dca0bc3ba8e39","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This is actually wrong because this is the user\u0027s fault to not"},{"line_number":13,"context_line":"provide enough of information to inspector."},{"line_number":14,"context_line":"The most suitable error code among standard ones supported by pecan"},{"line_number":15,"context_line":"is 400."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I080dedeac7ce33135fde8c53494e618ccf07c941"},{"line_number":18,"context_line":"Closes-Bug: #1686457"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3f044301_c327b6b6","line":15,"range":{"start_line":14,"start_character":29,"end_line":15,"end_character":6},"updated":"2017-05-04 12:04:47.000000000","message":"Maybe I misunderstand something, are there any limitations for application error codes in pecan?","commit_id":"1383e82eabda2e2ce14804f633a022179a7a2071"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"446ff2c78c1dcc18403cea41ef79b85348d9ea06","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This is actually wrong because this is the user\u0027s fault to not"},{"line_number":13,"context_line":"provide enough of information to inspector."},{"line_number":14,"context_line":"The most suitable error code among standard ones supported by pecan"},{"line_number":15,"context_line":"is 400."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I080dedeac7ce33135fde8c53494e618ccf07c941"},{"line_number":18,"context_line":"Closes-Bug: #1686457"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3f044301_830d2e92","line":15,"range":{"start_line":14,"start_character":29,"end_line":15,"end_character":6},"in_reply_to":"3f044301_c327b6b6","updated":"2017-05-04 12:15:25.000000000","message":"Yes, read your comment, this is right.","commit_id":"1383e82eabda2e2ce14804f633a022179a7a2071"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ef391d880a90ff36048e0a7a2bd6b6bffb25e106","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Galyna Zholtkevych \u003cgzholtkevych@mirantis.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-05-04 15:14:02 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Handle some ironic inspector HTTP 500 errors"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently ironic inspector raise HardwareInspectionFailure"},{"line_number":10,"context_line":"with 500 Internal Error if driver_info is not specified."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3f044301_0d35a846","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":44},"updated":"2017-05-05 12:46:43.000000000","message":"DNIH: raise HTTP 400 rather than 500 error","commit_id":"8d8a0f2e35c9e5e1ce13995d6f8745aa2a30e5d5"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"dbb659225fa9dc71e46ab1c7f9362f96cbc420ef","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Galyna Zholtkevych \u003cgzholtkevych@mirantis.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-05-04 15:14:02 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Handle some ironic inspector HTTP 500 errors"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently ironic inspector raise HardwareInspectionFailure"},{"line_number":10,"context_line":"with 500 Internal Error if driver_info is not specified."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3f044301_0814764d","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":44},"in_reply_to":"3f044301_0d35a846","updated":"2017-05-05 13:19:08.000000000","message":"Done","commit_id":"8d8a0f2e35c9e5e1ce13995d6f8745aa2a30e5d5"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ef391d880a90ff36048e0a7a2bd6b6bffb25e106","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Handle some ironic inspector HTTP 500 errors"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently ironic inspector raise HardwareInspectionFailure"},{"line_number":10,"context_line":"with 500 Internal Error if driver_info is not specified."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This is actually wrong because this is the user\u0027s fault to not"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3f044301_6dc2ec35","line":9,"range":{"start_line":9,"start_character":10,"end_line":9,"end_character":27},"updated":"2017-05-05 12:46:43.000000000","message":"I\u0027d say any driver inspect interface validation (not just inspector)[1]\nEsp. with inspector, the only part that can really fail is the power interface validation[2]\n\n[1] https://github.com/openstack/ironic/blob/master/ironic/conductor/manager.py#L2356,#L2363\n[2] https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/inspector.py#L98","commit_id":"8d8a0f2e35c9e5e1ce13995d6f8745aa2a30e5d5"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"dbb659225fa9dc71e46ab1c7f9362f96cbc420ef","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Handle some ironic inspector HTTP 500 errors"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently ironic inspector raise HardwareInspectionFailure"},{"line_number":10,"context_line":"with 500 Internal Error if driver_info is not specified."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This is actually wrong because this is the user\u0027s fault to not"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3f044301_281f326d","line":9,"range":{"start_line":9,"start_character":10,"end_line":9,"end_character":27},"in_reply_to":"3f044301_6dc2ec35","updated":"2017-05-05 13:19:08.000000000","message":"Yes you are right, let\u0027s be more precise","commit_id":"8d8a0f2e35c9e5e1ce13995d6f8745aa2a30e5d5"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ef391d880a90ff36048e0a7a2bd6b6bffb25e106","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Handle some ironic inspector HTTP 500 errors"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently ironic inspector raise HardwareInspectionFailure"},{"line_number":10,"context_line":"with 500 Internal Error if driver_info is not specified."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This is actually wrong because this is the user\u0027s fault to not"},{"line_number":13,"context_line":"provide enough of information to inspector."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3f044301_6d8f8ccc","line":10,"range":{"start_line":10,"start_character":27,"end_line":10,"end_character":38},"updated":"2017-05-05 12:46:43.000000000","message":"if either driver.power.validate or driver.inspect.validate fail (e.g. driver_info not provided).","commit_id":"8d8a0f2e35c9e5e1ce13995d6f8745aa2a30e5d5"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"dbb659225fa9dc71e46ab1c7f9362f96cbc420ef","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Handle some ironic inspector HTTP 500 errors"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently ironic inspector raise HardwareInspectionFailure"},{"line_number":10,"context_line":"with 500 Internal Error if driver_info is not specified."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This is actually wrong because this is the user\u0027s fault to not"},{"line_number":13,"context_line":"provide enough of information to inspector."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3f044301_43281f85","line":10,"range":{"start_line":10,"start_character":27,"end_line":10,"end_character":38},"in_reply_to":"3f044301_6d8f8ccc","updated":"2017-05-05 13:19:08.000000000","message":"Done","commit_id":"8d8a0f2e35c9e5e1ce13995d6f8745aa2a30e5d5"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"db9396066e91ec35f9c72eba7b6e5842b93338bd","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This is actually wrong because this is the user\u0027s fault to not"},{"line_number":13,"context_line":"provide enough of information to inspector."},{"line_number":14,"context_line":"The most suitable error code among standard ones supported by pecan"},{"line_number":15,"context_line":"is 400."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I080dedeac7ce33135fde8c53494e618ccf07c941"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3f044301_03fd9e39","line":14,"range":{"start_line":14,"start_character":62,"end_line":14,"end_character":67},"updated":"2017-05-04 12:28:50.000000000","message":"nit: this is wsme limitation, not pecan.","commit_id":"8d8a0f2e35c9e5e1ce13995d6f8745aa2a30e5d5"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"ef391d880a90ff36048e0a7a2bd6b6bffb25e106","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Currently ironic inspector raise HardwareInspectionFailure"},{"line_number":10,"context_line":"with 500 Internal Error if driver_info is not specified."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This is actually wrong because this is the user\u0027s fault to not"},{"line_number":13,"context_line":"provide enough of information to inspector."},{"line_number":14,"context_line":"The most suitable error code among standard ones supported by pecan"},{"line_number":15,"context_line":"is 400."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I080dedeac7ce33135fde8c53494e618ccf07c941"},{"line_number":18,"context_line":"Closes-Bug: #1686457"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3f044301_ed183c82","line":15,"range":{"start_line":12,"start_character":0,"end_line":15,"end_character":7},"updated":"2017-05-05 12:46:43.000000000","message":"I\u0027d rephrase to: Since this is an apparent client error, an HTTP error code 400-Bad request is more appropriate.","commit_id":"8d8a0f2e35c9e5e1ce13995d6f8745aa2a30e5d5"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"dbb659225fa9dc71e46ab1c7f9362f96cbc420ef","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Currently ironic inspector raise HardwareInspectionFailure"},{"line_number":10,"context_line":"with 500 Internal Error if driver_info is not specified."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This is actually wrong because this is the user\u0027s fault to not"},{"line_number":13,"context_line":"provide enough of information to inspector."},{"line_number":14,"context_line":"The most suitable error code among standard ones supported by pecan"},{"line_number":15,"context_line":"is 400."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I080dedeac7ce33135fde8c53494e618ccf07c941"},{"line_number":18,"context_line":"Closes-Bug: #1686457"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3f044301_2304f314","line":15,"range":{"start_line":12,"start_character":0,"end_line":15,"end_character":7},"in_reply_to":"3f044301_ed183c82","updated":"2017-05-05 13:19:08.000000000","message":"Ok. Discussion why not 422 - this can be seen in the patch discussion","commit_id":"8d8a0f2e35c9e5e1ce13995d6f8745aa2a30e5d5"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"28053e5c34c33ba01623d608490e47e6acc8f06a","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Raise HTTP 400 rather than 500 error"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently any driver of inspect interface validation"},{"line_number":10,"context_line":"raise HardwareInspectionFailure with 500 Internal Error"},{"line_number":11,"context_line":"if either driver.power.validate or driver.inspect.validate"},{"line_number":12,"context_line":"fail (e.g. , ``driver_info`` is not provided)."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3f044301_e725d0c3","line":9,"updated":"2017-05-08 15:27:29.000000000","message":"Is this message still correct?","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bc116e76b12f83e7de9d629c7acfb7d1a14dc2e0","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Raise HTTP 400 rather than 500 error"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently any driver of inspect interface validation"},{"line_number":10,"context_line":"raise HardwareInspectionFailure with 500 Internal Error"},{"line_number":11,"context_line":"if either driver.power.validate or driver.inspect.validate"},{"line_number":12,"context_line":"fail (e.g. , ``driver_info`` is not provided)."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"ff0f0b1f_6b32d4f3","line":9,"in_reply_to":"3f044301_e725d0c3","updated":"2017-05-18 18:51:03.000000000","message":"Ok, rephrased, thanks","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"28053e5c34c33ba01623d608490e47e6acc8f06a","unresolved":false,"context_lines":[{"line_number":10,"context_line":"raise HardwareInspectionFailure with 500 Internal Error"},{"line_number":11,"context_line":"if either driver.power.validate or driver.inspect.validate"},{"line_number":12,"context_line":"fail (e.g. , ``driver_info`` is not provided)."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Since this is an apparent client error, an HTTP error code"},{"line_number":15,"context_line":"400-Bad request is more appropriate."},{"line_number":16,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3f044301_872a8c8d","line":13,"updated":"2017-05-08 15:27:29.000000000","message":"Can it state that now it will use InvalidParameterValue exception?","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bc116e76b12f83e7de9d629c7acfb7d1a14dc2e0","unresolved":false,"context_lines":[{"line_number":10,"context_line":"raise HardwareInspectionFailure with 500 Internal Error"},{"line_number":11,"context_line":"if either driver.power.validate or driver.inspect.validate"},{"line_number":12,"context_line":"fail (e.g. , ``driver_info`` is not provided)."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Since this is an apparent client error, an HTTP error code"},{"line_number":15,"context_line":"400-Bad request is more appropriate."},{"line_number":16,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"ff0f0b1f_0ba59804","line":13,"in_reply_to":"3f044301_872a8c8d","updated":"2017-05-18 18:51:03.000000000","message":"Done.\nAlso I should note that MissingParameterValue may be also raised and this will still be correct, because it is just the ancestor of InvaslidParameterValue and will reiase same 400 Error","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"}],"ironic/common/exception.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"1f0a1a094440828de8d6c88fd88dca0bc3ba8e39","unresolved":false,"context_lines":[{"line_number":155,"context_line":"    _msg_fmt \u003d _(\u0027Conflict.\u0027)"},{"line_number":156,"context_line":"    code \u003d http_client.CONFLICT"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"class TemporaryFailure(IronicException):"},{"line_number":160,"context_line":"    _msg_fmt \u003d _(\"Resource temporarily unavailable, please retry.\")"},{"line_number":161,"context_line":"    code \u003d http_client.SERVICE_UNAVAILABLE"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f044301_6860c133","side":"PARENT","line":158,"updated":"2017-05-04 12:04:47.000000000","message":"Unrelated change, waiting for pep8 tests fail.","commit_id":"fc85902c55b94924e928f150db6a2d9f8de908fa"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"792fe12eccbceaf086564e3f28f3f859c8aeea4c","unresolved":false,"context_lines":[{"line_number":280,"context_line":"    _msg_fmt \u003d _(\"Couldn\u0027t apply patch \u0027%(patch)s\u0027. Reason: %(reason)s\")"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":""},{"line_number":283,"context_line":"class InstanceDeployFailure(IronicException):"},{"line_number":284,"context_line":"    _msg_fmt \u003d _(\"Failed to deploy instance: %(reason)s\")"},{"line_number":285,"context_line":""},{"line_number":286,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3f044301_3848c4ca","line":283,"updated":"2017-05-04 13:10:22.000000000","message":"Also for this exception \"user\" error causes \"internal server error\" code: https://github.com/openstack/ironic/blob/master/ironic/conductor/manager.py#L587","commit_id":"8d8a0f2e35c9e5e1ce13995d6f8745aa2a30e5d5"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"db9396066e91ec35f9c72eba7b6e5842b93338bd","unresolved":false,"context_lines":[{"line_number":667,"context_line":"    _msg_fmt \u003d _(\"iRMC shared file system \u0027%(share)s\u0027 is not mounted.\")"},{"line_number":668,"context_line":""},{"line_number":669,"context_line":""},{"line_number":670,"context_line":"class HardwareInspectionFailure(Invalid):"},{"line_number":671,"context_line":"    _msg_fmt \u003d _(\"Failed to inspect hardware. Reason: %(error)s\")"},{"line_number":672,"context_line":""},{"line_number":673,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3f044301_753bf5d0","line":670,"updated":"2017-05-04 12:28:50.000000000","message":"This exception also used in vendor drivers for hardware related failures of oob inspection, but ironic does this inspection asynchronously, so looks ok.","commit_id":"8d8a0f2e35c9e5e1ce13995d6f8745aa2a30e5d5"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"8afa38f4fcb9c716fec05816c3b1f6735fd05b7e","unresolved":false,"context_lines":[{"line_number":667,"context_line":"    _msg_fmt \u003d _(\"iRMC shared file system \u0027%(share)s\u0027 is not mounted.\")"},{"line_number":668,"context_line":""},{"line_number":669,"context_line":""},{"line_number":670,"context_line":"class HardwareInspectionFailure(Invalid):"},{"line_number":671,"context_line":"    _msg_fmt \u003d _(\"Failed to inspect hardware. Reason: %(error)s\")"},{"line_number":672,"context_line":""},{"line_number":673,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3f044301_bebb6ec2","line":670,"updated":"2017-05-05 20:47:05.000000000","message":"So for all the other users of this exception. Is it correct to change them to 400?\n\nFor example:\nhttps://github.com/openstack/ironic/blob/08482d215fc981f92032bc565c43f800a5c3e708/ironic/drivers/modules/drac/inspect.py#L96-L100","commit_id":"6f85cf48913a1e9234b941ad05452befd2491c5e"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"64d90401b16626b5a112d41cf79a644cbce3737c","unresolved":false,"context_lines":[{"line_number":667,"context_line":"    _msg_fmt \u003d _(\"iRMC shared file system \u0027%(share)s\u0027 is not mounted.\")"},{"line_number":668,"context_line":""},{"line_number":669,"context_line":""},{"line_number":670,"context_line":"class HardwareInspectionFailure(Invalid):"},{"line_number":671,"context_line":"    _msg_fmt \u003d _(\"Failed to inspect hardware. Reason: %(error)s\")"},{"line_number":672,"context_line":""},{"line_number":673,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3f044301_4a5b8453","line":670,"in_reply_to":"3f044301_2aacb832","updated":"2017-05-06 06:36:22.000000000","message":"+1 to change the Invalid/MissingParameterValue exception.\nAlso as pointed by John, changing the error code here may cause inconsistencies at some places.","commit_id":"6f85cf48913a1e9234b941ad05452befd2491c5e"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"b782cf6a3a2ebadb2140a51ec56fc1779a3479a4","unresolved":false,"context_lines":[{"line_number":667,"context_line":"    _msg_fmt \u003d _(\"iRMC shared file system \u0027%(share)s\u0027 is not mounted.\")"},{"line_number":668,"context_line":""},{"line_number":669,"context_line":""},{"line_number":670,"context_line":"class HardwareInspectionFailure(Invalid):"},{"line_number":671,"context_line":"    _msg_fmt \u003d _(\"Failed to inspect hardware. Reason: %(error)s\")"},{"line_number":672,"context_line":""},{"line_number":673,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3f044301_b7e13d2d","line":670,"in_reply_to":"3f044301_4a5b8453","updated":"2017-05-08 09:52:25.000000000","message":"Ok, done","commit_id":"6f85cf48913a1e9234b941ad05452befd2491c5e"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"fa3760bcd70489197b066bbe4aa978beaac7439f","unresolved":false,"context_lines":[{"line_number":667,"context_line":"    _msg_fmt \u003d _(\"iRMC shared file system \u0027%(share)s\u0027 is not mounted.\")"},{"line_number":668,"context_line":""},{"line_number":669,"context_line":""},{"line_number":670,"context_line":"class HardwareInspectionFailure(Invalid):"},{"line_number":671,"context_line":"    _msg_fmt \u003d _(\"Failed to inspect hardware. Reason: %(error)s\")"},{"line_number":672,"context_line":""},{"line_number":673,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3f044301_2aacb832","line":670,"in_reply_to":"3f044301_bebb6ec2","updated":"2017-05-06 06:14:25.000000000","message":"Will work, because this exception in other places used in async methods and does not cause API response. But I personally think that it\u0027s not consistent and better way to fix is simple remove re-raising and use Invalid/MissingParameterValue directly (like for change power state).","commit_id":"6f85cf48913a1e9234b941ad05452befd2491c5e"}],"ironic/conductor/manager.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3df147a1cf323c708fa862a4e8f3bf1ea9667f14","unresolved":false,"context_lines":[{"line_number":2360,"context_line":"            except exception.InvalidParameterValue as e:"},{"line_number":2361,"context_line":"                error \u003d (_(\"Failed to validate inspection or power info. \""},{"line_number":2362,"context_line":"                           \"Error: %(msg)s\") % {\u0027msg\u0027: e})"},{"line_number":2363,"context_line":"                raise exception.UnprocessableEntity(error\u003derror)"},{"line_number":2364,"context_line":"            except exception.IronicException as e:"},{"line_number":2365,"context_line":"                error \u003d (\"Failed to inspect hardware. \""},{"line_number":2366,"context_line":"                         \"Error: %(msg)s\") % {\u0027msg\u0027: e}"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_f66b82ee","line":2363,"updated":"2017-05-03 12:28:20.000000000","message":"we don\u0027t need a new exception here, just use HardwareInspectionFailure here too please","commit_id":"13b6a567dd2ec7bee41a228be3a0ba77e4b87ec6"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"ed1f020a3e827a1124ce38dc4337128f6d03fd4c","unresolved":false,"context_lines":[{"line_number":2360,"context_line":"            except exception.InvalidParameterValue as e:"},{"line_number":2361,"context_line":"                error \u003d (_(\"Failed to validate inspection or power info. \""},{"line_number":2362,"context_line":"                           \"Error: %(msg)s\") % {\u0027msg\u0027: e})"},{"line_number":2363,"context_line":"                raise exception.UnprocessableEntity(error\u003derror)"},{"line_number":2364,"context_line":"            except exception.IronicException as e:"},{"line_number":2365,"context_line":"                error \u003d (\"Failed to inspect hardware. \""},{"line_number":2366,"context_line":"                         \"Error: %(msg)s\") % {\u0027msg\u0027: e}"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f044301_42cba452","line":2363,"in_reply_to":"3f044301_23ae69e7","updated":"2017-05-04 10:40:11.000000000","message":"Done","commit_id":"13b6a567dd2ec7bee41a228be3a0ba77e4b87ec6"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"4372682cf2b342be1bf1f482e173302b5ed4ffa9","unresolved":false,"context_lines":[{"line_number":2360,"context_line":"            except exception.InvalidParameterValue as e:"},{"line_number":2361,"context_line":"                error \u003d (_(\"Failed to validate inspection or power info. \""},{"line_number":2362,"context_line":"                           \"Error: %(msg)s\") % {\u0027msg\u0027: e})"},{"line_number":2363,"context_line":"                raise exception.UnprocessableEntity(error\u003derror)"},{"line_number":2364,"context_line":"            except exception.IronicException as e:"},{"line_number":2365,"context_line":"                error \u003d (\"Failed to inspect hardware. \""},{"line_number":2366,"context_line":"                         \"Error: %(msg)s\") % {\u0027msg\u0027: e}"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f044301_23ae69e7","line":2363,"in_reply_to":"5ff73747_f66b82ee","updated":"2017-05-04 00:47:06.000000000","message":"+1 please change http code here","commit_id":"13b6a567dd2ec7bee41a228be3a0ba77e4b87ec6"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"e25b02ebe1f850f5b1e0034d3053f5d2ab89ab3f","unresolved":false,"context_lines":[{"line_number":2356,"context_line":"            try:"},{"line_number":2357,"context_line":"                task.driver.power.validate(task)"},{"line_number":2358,"context_line":"                task.driver.inspect.validate(task)"},{"line_number":2359,"context_line":"            except exception.InvalidParameterValue as e:"},{"line_number":2360,"context_line":"                error \u003d (_(\"Failed to validate inspection or power info. \""},{"line_number":2361,"context_line":"                           \"Error: %(msg)s\")"},{"line_number":2362,"context_line":"                         % {\u0027msg\u0027: e})"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f044301_955cd6ed","line":2359,"range":{"start_line":2359,"start_character":12,"end_line":2359,"end_character":56},"updated":"2017-05-10 06:17:39.000000000","message":"power.validate() and inspect.validate() can also raise MissingParameterValue. Ex:\nhttps://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ipmitool.py#L246-L261\nhttps://github.com/openstack/ironic/blob/master/ironic/drivers/modules/redfish/utils.py#L69-L84\nhttps://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ilo/common.py#L201-L226","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"e989b0e69b0594ea77c963c237216e165eee2d9b","unresolved":false,"context_lines":[{"line_number":2356,"context_line":"            try:"},{"line_number":2357,"context_line":"                task.driver.power.validate(task)"},{"line_number":2358,"context_line":"                task.driver.inspect.validate(task)"},{"line_number":2359,"context_line":"            except exception.InvalidParameterValue as e:"},{"line_number":2360,"context_line":"                error \u003d (_(\"Failed to validate inspection or power info. \""},{"line_number":2361,"context_line":"                           \"Error: %(msg)s\")"},{"line_number":2362,"context_line":"                         % {\u0027msg\u0027: e})"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f044301_cbc29359","line":2359,"range":{"start_line":2359,"start_character":12,"end_line":2359,"end_character":56},"in_reply_to":"3f044301_955cd6ed","updated":"2017-05-12 09:19:26.000000000","message":"I personally do not see any reason for re-raising of the same exception here. Client always knows type of request.","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bc116e76b12f83e7de9d629c7acfb7d1a14dc2e0","unresolved":false,"context_lines":[{"line_number":2356,"context_line":"            try:"},{"line_number":2357,"context_line":"                task.driver.power.validate(task)"},{"line_number":2358,"context_line":"                task.driver.inspect.validate(task)"},{"line_number":2359,"context_line":"            except exception.InvalidParameterValue as e:"},{"line_number":2360,"context_line":"                error \u003d (_(\"Failed to validate inspection or power info. \""},{"line_number":2361,"context_line":"                           \"Error: %(msg)s\")"},{"line_number":2362,"context_line":"                         % {\u0027msg\u0027: e})"}],"source_content_type":"text/x-python","patch_set":9,"id":"ff0f0b1f_f99da159","line":2359,"range":{"start_line":2359,"start_character":12,"end_line":2359,"end_character":56},"in_reply_to":"3f044301_955cd6ed","updated":"2017-05-18 18:51:03.000000000","message":"Shivanand, but this error was raising earlier in previous code and nothing about MissingParameterValue. I think MissingParameterValue can be added here though.\n\nLooking at Yuriy\u0027s comment, I think this just can be erased and the method _parse_driver_info will raise all we need","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bc116e76b12f83e7de9d629c7acfb7d1a14dc2e0","unresolved":false,"context_lines":[{"line_number":2356,"context_line":"            try:"},{"line_number":2357,"context_line":"                task.driver.power.validate(task)"},{"line_number":2358,"context_line":"                task.driver.inspect.validate(task)"},{"line_number":2359,"context_line":"            except exception.InvalidParameterValue as e:"},{"line_number":2360,"context_line":"                error \u003d (_(\"Failed to validate inspection or power info. \""},{"line_number":2361,"context_line":"                           \"Error: %(msg)s\")"},{"line_number":2362,"context_line":"                         % {\u0027msg\u0027: e})"}],"source_content_type":"text/x-python","patch_set":9,"id":"ff0f0b1f_79e1919a","line":2359,"range":{"start_line":2359,"start_character":12,"end_line":2359,"end_character":56},"in_reply_to":"3f044301_cbc29359","updated":"2017-05-18 18:51:03.000000000","message":"Oh, you\u0027re right. \nI think so. The only reason that it could be done it is the cleaner message, but now I see that MissingParameterValue inherits InvalidParameterValue,m which also will give valid status code and clean message to a user. Everything needed is already done is _parse_driver_info method","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"29bb96f9b5f97a7bc8f118bb13d9bf0ba52ad771","unresolved":false,"context_lines":[{"line_number":2360,"context_line":"                error \u003d (_(\"Failed to validate inspection or power info. \""},{"line_number":2361,"context_line":"                           \"Error: %(msg)s\")"},{"line_number":2362,"context_line":"                         % {\u0027msg\u0027: e})"},{"line_number":2363,"context_line":"                raise exception.InvalidParameterValue(err\u003derror)"},{"line_number":2364,"context_line":""},{"line_number":2365,"context_line":"            try:"},{"line_number":2366,"context_line":"                task.process_event("}],"source_content_type":"text/x-python","patch_set":9,"id":"3f044301_38a2b2af","line":2363,"range":{"start_line":2363,"start_character":32,"end_line":2363,"end_character":53},"updated":"2017-05-08 20:27:18.000000000","message":"I think the message should add what parameters are missing/invalid as this will be user facing, wdyt?","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"e25b02ebe1f850f5b1e0034d3053f5d2ab89ab3f","unresolved":false,"context_lines":[{"line_number":2360,"context_line":"                error \u003d (_(\"Failed to validate inspection or power info. \""},{"line_number":2361,"context_line":"                           \"Error: %(msg)s\")"},{"line_number":2362,"context_line":"                         % {\u0027msg\u0027: e})"},{"line_number":2363,"context_line":"                raise exception.InvalidParameterValue(err\u003derror)"},{"line_number":2364,"context_line":""},{"line_number":2365,"context_line":"            try:"},{"line_number":2366,"context_line":"                task.process_event("}],"source_content_type":"text/x-python","patch_set":9,"id":"3f044301_95a7360c","line":2363,"range":{"start_line":2363,"start_character":32,"end_line":2363,"end_character":53},"in_reply_to":"3f044301_38a2b2af","updated":"2017-05-10 06:17:39.000000000","message":"@Anup, The invalid parameter information would be part of InvalidParameterValue error message.","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bc116e76b12f83e7de9d629c7acfb7d1a14dc2e0","unresolved":false,"context_lines":[{"line_number":2360,"context_line":"                error \u003d (_(\"Failed to validate inspection or power info. \""},{"line_number":2361,"context_line":"                           \"Error: %(msg)s\")"},{"line_number":2362,"context_line":"                         % {\u0027msg\u0027: e})"},{"line_number":2363,"context_line":"                raise exception.InvalidParameterValue(err\u003derror)"},{"line_number":2364,"context_line":""},{"line_number":2365,"context_line":"            try:"},{"line_number":2366,"context_line":"                task.process_event("}],"source_content_type":"text/x-python","patch_set":9,"id":"ff0f0b1f_39c319f0","line":2363,"range":{"start_line":2363,"start_character":32,"end_line":2363,"end_character":53},"in_reply_to":"3f044301_95a7360c","updated":"2017-05-18 18:51:03.000000000","message":"Not actual anymnore since I erased catching these errors","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c18b31e61c5df0b83aebc65e8a397e8ae29be090","unresolved":false,"context_lines":[{"line_number":2325,"context_line":"                                   exception.NodeLocked,"},{"line_number":2326,"context_line":"                                   exception.InvalidParameterValue,"},{"line_number":2327,"context_line":"                                   exception.InvalidStateRequested,"},{"line_number":2328,"context_line":"                                   exception.UnsupportedDriverExtension)"},{"line_number":2329,"context_line":"    def inspect_hardware(self, context, node_id):"},{"line_number":2330,"context_line":"        \"\"\"Inspect hardware to obtain hardware properties."},{"line_number":2331,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ff0f0b1f_d3ece32a","line":2328,"updated":"2017-05-19 11:09:44.000000000","message":"MissingParameterValue is inherited from InvalidParameterValue, so it\u0027s not necessary do add it here","commit_id":"ca356df7366df846c47f78e7fa2160a4b32eb7f9"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"8e536bc790c89193b6b2fd5eb9695efd941f86c0","unresolved":false,"context_lines":[{"line_number":2325,"context_line":"                                   exception.NodeLocked,"},{"line_number":2326,"context_line":"                                   exception.InvalidParameterValue,"},{"line_number":2327,"context_line":"                                   exception.InvalidStateRequested,"},{"line_number":2328,"context_line":"                                   exception.UnsupportedDriverExtension)"},{"line_number":2329,"context_line":"    def inspect_hardware(self, context, node_id):"},{"line_number":2330,"context_line":"        \"\"\"Inspect hardware to obtain hardware properties."},{"line_number":2331,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ff0f0b1f_2c5504c7","line":2328,"updated":"2017-05-19 08:17:26.000000000","message":"We need to add the MissingParameterValue here.","commit_id":"ca356df7366df846c47f78e7fa2160a4b32eb7f9"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bdff9c4482c02a090cfc6dcef8aa56e5abb2b338","unresolved":false,"context_lines":[{"line_number":2325,"context_line":"                                   exception.NodeLocked,"},{"line_number":2326,"context_line":"                                   exception.InvalidParameterValue,"},{"line_number":2327,"context_line":"                                   exception.InvalidStateRequested,"},{"line_number":2328,"context_line":"                                   exception.UnsupportedDriverExtension)"},{"line_number":2329,"context_line":"    def inspect_hardware(self, context, node_id):"},{"line_number":2330,"context_line":"        \"\"\"Inspect hardware to obtain hardware properties."},{"line_number":2331,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ff0f0b1f_b23f0624","line":2328,"in_reply_to":"ff0f0b1f_d3ece32a","updated":"2017-05-21 18:02:58.000000000","message":"Yes, and in the doctring this is just for developer\u0027s info","commit_id":"ca356df7366df846c47f78e7fa2160a4b32eb7f9"}],"ironic/tests/unit/api/v1/test_nodes.py":[{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"29bb96f9b5f97a7bc8f118bb13d9bf0ba52ad771","unresolved":false,"context_lines":[{"line_number":2801,"context_line":"                            {\u0027target\u0027: \u0027inspect\u0027},"},{"line_number":2802,"context_line":"                            headers\u003d{api_base.Version.string: \"1.6\"},"},{"line_number":2803,"context_line":"                            expect_errors\u003dTrue)"},{"line_number":2804,"context_line":"        self.assertEqual(http_client.BAD_REQUEST, ret.status_code)  # Conflict"},{"line_number":2805,"context_line":""},{"line_number":2806,"context_line":"    @mock.patch.object(rpcapi.ConductorAPI, \u0027do_provisioning_action\u0027)"},{"line_number":2807,"context_line":"    def test_manage_from_available(self, mock_dpa):"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f044301_98466621","line":2804,"range":{"start_line":2804,"start_character":68,"end_line":2804,"end_character":78},"updated":"2017-05-08 20:27:18.000000000","message":"nit: I think you missed to remove this","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bc116e76b12f83e7de9d629c7acfb7d1a14dc2e0","unresolved":false,"context_lines":[{"line_number":2801,"context_line":"                            {\u0027target\u0027: \u0027inspect\u0027},"},{"line_number":2802,"context_line":"                            headers\u003d{api_base.Version.string: \"1.6\"},"},{"line_number":2803,"context_line":"                            expect_errors\u003dTrue)"},{"line_number":2804,"context_line":"        self.assertEqual(http_client.BAD_REQUEST, ret.status_code)  # Conflict"},{"line_number":2805,"context_line":""},{"line_number":2806,"context_line":"    @mock.patch.object(rpcapi.ConductorAPI, \u0027do_provisioning_action\u0027)"},{"line_number":2807,"context_line":"    def test_manage_from_available(self, mock_dpa):"}],"source_content_type":"text/x-python","patch_set":9,"id":"ff0f0b1f_59636d1b","line":2804,"range":{"start_line":2804,"start_character":68,"end_line":2804,"end_character":78},"in_reply_to":"3f044301_98466621","updated":"2017-05-18 18:51:03.000000000","message":"Done","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"3dfcecc8745eb5aaaa732843d7f2de13159e41b6","unresolved":false,"context_lines":[{"line_number":2802,"context_line":"                            headers\u003d{api_base.Version.string: \"1.6\"},"},{"line_number":2803,"context_line":"                            expect_errors\u003dTrue)"},{"line_number":2804,"context_line":"        self.assertEqual(http_client.BAD_REQUEST, ret.status_code)"},{"line_number":2805,"context_line":""},{"line_number":2806,"context_line":"    @mock.patch.object(rpcapi.ConductorAPI, \u0027do_provisioning_action\u0027)"},{"line_number":2807,"context_line":"    def test_manage_from_available(self, mock_dpa):"},{"line_number":2808,"context_line":"        self.node.provision_state \u003d states.AVAILABLE"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f1d235d_e93d0cbb","line":2805,"updated":"2017-07-07 07:34:24.000000000","message":"Can you add a test for exception MissingParameterValue?","commit_id":"81d498af98149df91b57adafec32b746b3bfd829"},{"author":{"_account_id":14614,"name":"Kyrylo Romanenko","display_name":"K.Romanenko","email":"romanenko-kv@hotmail.com","username":"kromanenko"},"change_message_id":"4b42ad840bfb06aeb9ba691c557ebc4d77c65b79","unresolved":false,"context_lines":[{"line_number":2802,"context_line":"                            headers\u003d{api_base.Version.string: \"1.6\"},"},{"line_number":2803,"context_line":"                            expect_errors\u003dTrue)"},{"line_number":2804,"context_line":"        self.assertEqual(http_client.BAD_REQUEST, ret.status_code)"},{"line_number":2805,"context_line":""},{"line_number":2806,"context_line":"    @mock.patch.object(rpcapi.ConductorAPI, \u0027do_provisioning_action\u0027)"},{"line_number":2807,"context_line":"    def test_manage_from_available(self, mock_dpa):"},{"line_number":2808,"context_line":"        self.node.provision_state \u003d states.AVAILABLE"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f1d235d_38fea86a","line":2805,"in_reply_to":"3f1d235d_e93d0cbb","updated":"2017-07-07 10:15:54.000000000","message":"Done, please review change.","commit_id":"81d498af98149df91b57adafec32b746b3bfd829"}],"ironic/tests/unit/conductor/test_manager.py":[{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"29bb96f9b5f97a7bc8f118bb13d9bf0ba52ad771","unresolved":false,"context_lines":[{"line_number":5154,"context_line":"        # Verify reservation has been cleared."},{"line_number":5155,"context_line":"        self.assertIsNone(node.reservation)"},{"line_number":5156,"context_line":""},{"line_number":5157,"context_line":"    def _test_inspect_hardware_validate_fail(self, mock_validate):"},{"line_number":5158,"context_line":"        mock_validate.side_effect \u003d exception.InvalidParameterValue("},{"line_number":5159,"context_line":"            \u0027Fake error message\u0027)"},{"line_number":5160,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f044301_18c01650","line":5157,"range":{"start_line":5157,"start_character":8,"end_line":5157,"end_character":44},"updated":"2017-05-08 20:27:18.000000000","message":"Think you missed @mock.patch above this","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"e25b02ebe1f850f5b1e0034d3053f5d2ab89ab3f","unresolved":false,"context_lines":[{"line_number":5154,"context_line":"        # Verify reservation has been cleared."},{"line_number":5155,"context_line":"        self.assertIsNone(node.reservation)"},{"line_number":5156,"context_line":""},{"line_number":5157,"context_line":"    def _test_inspect_hardware_validate_fail(self, mock_validate):"},{"line_number":5158,"context_line":"        mock_validate.side_effect \u003d exception.InvalidParameterValue("},{"line_number":5159,"context_line":"            \u0027Fake error message\u0027)"},{"line_number":5160,"context_line":"        node \u003d obj_utils.create_test_node(self.context, driver\u003d\u0027fake\u0027)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f044301_75fa6abd","line":5157,"range":{"start_line":5157,"start_character":8,"end_line":5157,"end_character":44},"in_reply_to":"3f044301_18c01650","updated":"2017-05-10 06:17:39.000000000","message":"@Anup, No. This method being called from L5173","commit_id":"e651a1df0ea8e0cccca9931c595a6b3999bbef98"}],"releasenotes/notes/add-new-exception-for-ironic-inspector-57d7fd2999cf4ecf.yaml":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"4372682cf2b342be1bf1f482e173302b5ed4ffa9","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Add new type of exception HTTP 422 UnprocessableEntity"},{"line_number":4,"context_line":"    to handle ironic inspector behaviour. "}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f044301_c35fc50c","line":4,"updated":"2017-05-04 00:47:06.000000000","message":"nit: extra symbol at end of line","commit_id":"13b6a567dd2ec7bee41a228be3a0ba77e4b87ec6"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"ed1f020a3e827a1124ce38dc4337128f6d03fd4c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Add new type of exception HTTP 422 UnprocessableEntity"},{"line_number":4,"context_line":"    to handle ironic inspector behaviour. "}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f044301_8282ccc7","line":4,"in_reply_to":"3f044301_c35fc50c","updated":"2017-05-04 10:40:11.000000000","message":"Done","commit_id":"13b6a567dd2ec7bee41a228be3a0ba77e4b87ec6"}],"releasenotes/notes/raise-bad-request-exception-on-validating-inspection-failure-57d7fd2999cf4ecf.yaml":[{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"64d90401b16626b5a112d41cf79a644cbce3737c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Raise HTTP 400 Bad request when fail to validate"},{"line_number":4,"context_line":"    request on inspecting."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"3f044301_2a5a784e","line":4,"updated":"2017-05-06 06:36:22.000000000","message":"Can you also state the case when this will be raised like \"inspecting a node that has no driver_info\" or something like that?","commit_id":"6f85cf48913a1e9234b941ad05452befd2491c5e"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"b782cf6a3a2ebadb2140a51ec56fc1779a3479a4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Raise HTTP 400 Bad request when fail to validate"},{"line_number":4,"context_line":"    request on inspecting."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"3f044301_f887b50e","line":4,"in_reply_to":"3f044301_2a5a784e","updated":"2017-05-08 09:52:25.000000000","message":"No, this is just the example, reference to the bug description. But actually later on it can fail due to not only not privided driver_info, but due to some other errors.\nI don\u0027t like this to specify it in such a partial way, it will cause inconsistent error messages again","commit_id":"6f85cf48913a1e9234b941ad05452befd2491c5e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c18b31e61c5df0b83aebc65e8a397e8ae29be090","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Raise HTTP 400 Bad request when fail to validate"},{"line_number":4,"context_line":"    request on inspecting."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"ff0f0b1f_b3f3af0a","line":3,"updated":"2017-05-19 11:09:44.000000000","message":"s/when fail/on failure/","commit_id":"ca356df7366df846c47f78e7fa2160a4b32eb7f9"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bdff9c4482c02a090cfc6dcef8aa56e5abb2b338","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Raise HTTP 400 Bad request when fail to validate"},{"line_number":4,"context_line":"    request on inspecting."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"ff0f0b1f_322c1601","line":3,"in_reply_to":"ff0f0b1f_b3f3af0a","updated":"2017-05-21 18:02:58.000000000","message":"Done","commit_id":"ca356df7366df846c47f78e7fa2160a4b32eb7f9"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c18b31e61c5df0b83aebc65e8a397e8ae29be090","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Raise HTTP 400 Bad request when fail to validate"},{"line_number":4,"context_line":"    request on inspecting."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"ff0f0b1f_93f66bf9","line":4,"updated":"2017-05-19 11:09:44.000000000","message":"s/request on/power or inspect interface parameters before/","commit_id":"ca356df7366df846c47f78e7fa2160a4b32eb7f9"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"961c61b6687739f2bcaa2cff77eb84237ecbad05","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Raise HTTP 400 Bad request when fail to validate"},{"line_number":4,"context_line":"    request on inspecting."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"ff0f0b1f_c493e6a2","line":4,"in_reply_to":"ff0f0b1f_93f66bf9","updated":"2017-05-19 22:21:19.000000000","message":"+1","commit_id":"ca356df7366df846c47f78e7fa2160a4b32eb7f9"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bdff9c4482c02a090cfc6dcef8aa56e5abb2b338","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Raise HTTP 400 Bad request when fail to validate"},{"line_number":4,"context_line":"    request on inspecting."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"ff0f0b1f_52ef8aaf","line":4,"in_reply_to":"ff0f0b1f_93f66bf9","updated":"2017-05-21 18:02:58.000000000","message":"Done","commit_id":"ca356df7366df846c47f78e7fa2160a4b32eb7f9"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"e499aad85da4043c8b4649026c0b52dc813743f5","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Raise HTTP 400 Bad request on failure to validate"},{"line_number":4,"context_line":"    power or inspect interface parameters before inspecting."}],"source_content_type":"text/x-yaml","patch_set":12,"id":"3f1d235d_f9b91de9","line":3,"updated":"2017-07-10 14:49:35.000000000","message":"we should mention what the old behaviour had been -- HTTP 500.\n\nI submitted a followup patch for this: https://review.openstack.org/482165","commit_id":"3bda561e318e0172d6209f1580340ed9a04a161d"}]}
