)]}'
{"api-ref/source/os-hypervisors.inc":[{"author":{"_account_id":6167,"name":"Ken\u0027ichi Ohmichi","email":"ken1ohmichi@gmail.com","username":"oomichi"},"change_message_id":"c0a65ffe6449f6605edc67de28a0d9d82cf4e828","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Normal response codes: 200"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),"},{"line_number":48,"context_line":"unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Request"},{"line_number":51,"context_line":"-------"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_be0d5492","line":48,"range":{"start_line":47,"start_character":22,"end_line":48,"end_character":68},"updated":"2016-04-18 23:26:51.000000000","message":"401, 403 can be happened because this requires admin user. but I don\u0027t think the other errors happen because the expected_errors() doesn\u0027t contain status codes at all.\n\nhttps://github.com/openstack/nova/blob/master/nova/api/openstack/compute/hypervisors.py#L90","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":6167,"name":"Ken\u0027ichi Ohmichi","email":"ken1ohmichi@gmail.com","username":"oomichi"},"change_message_id":"4dc1ea262f8007569dfcc20e9aa977baa1225384","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Normal response codes: 200"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),"},{"line_number":48,"context_line":"unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Request"},{"line_number":51,"context_line":"-------"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_d45563fa","line":48,"range":{"start_line":47,"start_character":22,"end_line":48,"end_character":68},"in_reply_to":"1a122d0e_2aac358b","updated":"2016-04-19 18:55:45.000000000","message":"In general, 503 and 500 are unexpected as expected_errors()\u0027s message:\n\n 501                 msg \u003d _(\u0027Unexpected API Error. Please report this at \u0027\n 502                     \u0027http://bugs.launchpad.net/nova/ and attach the Nova \u0027\n 503                     \u0027API log if possible.\\n%s\u0027) % type(exc)\n 504                 raise webob.exc.HTTPInternalServerError(explanation\u003dmsg)\n\nThat requires to report it to LP. So it is avoid to clarify them on official API site to avoid confusions, IMO.","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":6062,"name":"jichenjc","email":"jichenjc@cn.ibm.com","username":"jichenjc"},"change_message_id":"7760550b8bdaf1cafe8d4d544dac267794badb72","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Normal response codes: 200"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),"},{"line_number":48,"context_line":"unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Request"},{"line_number":51,"context_line":"-------"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_2aac358b","line":48,"range":{"start_line":47,"start_character":22,"end_line":48,"end_character":68},"in_reply_to":"1a122d0e_be0d5492","updated":"2016-04-19 18:00:41.000000000","message":"is it possible that we might return 503 or 500 ?I thought those kind of error is very generic and adopt to every API we have?","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":6062,"name":"jichenjc","email":"jichenjc@cn.ibm.com","username":"jichenjc"},"change_message_id":"77018324280331d955d0742c4f3b9e005d7c6b54","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Normal response codes: 200"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),"},{"line_number":48,"context_line":"unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Request"},{"line_number":51,"context_line":"-------"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_255d6779","line":48,"range":{"start_line":47,"start_character":22,"end_line":48,"end_character":68},"in_reply_to":"1a122d0e_d45563fa","updated":"2016-04-20 09:53:44.000000000","message":"in this case, all other error code might need change as well, at least remove 500/503 :)\nanyway,I changed it , thanks","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"c7e5dc84a25c93ce7b02120993f6e45756b339c0","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"**Example Show Hypervisor Statistics: JSON request**"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":".. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisor-statistics-resp.json"},{"line_number":90,"context_line":"   :language: javascript"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"Show Hypervisor Details"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_908e492c","line":89,"range":{"start_line":89,"start_character":57,"end_line":89,"end_character":88},"updated":"2016-04-20 02:24:20.000000000","message":"hypervisors-statistics-resp.json","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":6062,"name":"jichenjc","email":"jichenjc@cn.ibm.com","username":"jichenjc"},"change_message_id":"77018324280331d955d0742c4f3b9e005d7c6b54","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"**Example Show Hypervisor Statistics: JSON request**"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":".. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisor-statistics-resp.json"},{"line_number":90,"context_line":"   :language: javascript"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"Show Hypervisor Details"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_65259f07","line":89,"range":{"start_line":89,"start_character":57,"end_line":89,"end_character":88},"in_reply_to":"1a122d0e_908e492c","updated":"2016-04-20 09:53:44.000000000","message":"Done","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"c7e5dc84a25c93ce7b02120993f6e45756b339c0","unresolved":false,"context_lines":[{"line_number":114,"context_line":""},{"line_number":115,"context_line":"**Example Show Hypervisor Details: JSON request**"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":".. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisor-show-resp.json"},{"line_number":118,"context_line":"   :language: javascript"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Show Hypervisor Uptime"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_f07fbd14","line":117,"range":{"start_line":117,"start_character":57,"end_line":117,"end_character":81},"updated":"2016-04-20 02:24:20.000000000","message":"hypervisors-show-resp.json","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":6062,"name":"jichenjc","email":"jichenjc@cn.ibm.com","username":"jichenjc"},"change_message_id":"77018324280331d955d0742c4f3b9e005d7c6b54","unresolved":false,"context_lines":[{"line_number":114,"context_line":""},{"line_number":115,"context_line":"**Example Show Hypervisor Details: JSON request**"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":".. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisor-show-resp.json"},{"line_number":118,"context_line":"   :language: javascript"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"Show Hypervisor Uptime"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_8528bbe3","line":117,"range":{"start_line":117,"start_character":57,"end_line":117,"end_character":81},"in_reply_to":"1a122d0e_f07fbd14","updated":"2016-04-20 09:53:44.000000000","message":"Done","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"c7e5dc84a25c93ce7b02120993f6e45756b339c0","unresolved":false,"context_lines":[{"line_number":142,"context_line":""},{"line_number":143,"context_line":"**Example Show Hypervisor Uptime: JSON request**"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":".. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisor-uptime-resp.json"},{"line_number":146,"context_line":"   :language: javascript"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"Search Hypervisor"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_9095a934","line":145,"range":{"start_line":145,"start_character":57,"end_line":145,"end_character":58},"updated":"2016-04-20 02:24:20.000000000","message":"hypervisors-uptime-resp.json","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":6062,"name":"jichenjc","email":"jichenjc@cn.ibm.com","username":"jichenjc"},"change_message_id":"77018324280331d955d0742c4f3b9e005d7c6b54","unresolved":false,"context_lines":[{"line_number":142,"context_line":""},{"line_number":143,"context_line":"**Example Show Hypervisor Uptime: JSON request**"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":".. literalinclude:: ../../doc/api_samples/os-hypervisors/hypervisor-uptime-resp.json"},{"line_number":146,"context_line":"   :language: javascript"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"Search Hypervisor"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_e5188fd5","line":145,"range":{"start_line":145,"start_character":57,"end_line":145,"end_character":58},"in_reply_to":"1a122d0e_9095a934","updated":"2016-04-20 09:53:44.000000000","message":"Done","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":6167,"name":"Ken\u0027ichi Ohmichi","email":"ken1ohmichi@gmail.com","username":"oomichi"},"change_message_id":"c0a65ffe6449f6605edc67de28a0d9d82cf4e828","unresolved":false,"context_lines":[{"line_number":154,"context_line":""},{"line_number":155,"context_line":"Normal response code: 200"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),"},{"line_number":158,"context_line":"unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"Request"},{"line_number":161,"context_line":"-------"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_7e7a9cf2","line":158,"range":{"start_line":157,"start_character":22,"end_line":158,"end_character":68},"updated":"2016-04-18 23:26:51.000000000","message":"401, 403 can be happened because this requires admin user.\nin addition, 404 also can because the expected_errors() contains it.\n\nbut I don\u0027t think the other errors happen because the expected_errors() doesn\u0027t contain these status codes at all.\n\nhttps://github.com/openstack/nova/blob/master/nova/api/openstack/compute/hypervisors.py#L103","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":6062,"name":"jichenjc","email":"jichenjc@cn.ibm.com","username":"jichenjc"},"change_message_id":"77018324280331d955d0742c4f3b9e005d7c6b54","unresolved":false,"context_lines":[{"line_number":154,"context_line":""},{"line_number":155,"context_line":"Normal response code: 200"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),"},{"line_number":158,"context_line":"unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"Request"},{"line_number":161,"context_line":"-------"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_0514ab9d","line":158,"range":{"start_line":157,"start_character":22,"end_line":158,"end_character":68},"in_reply_to":"1a122d0e_7e7a9cf2","updated":"2016-04-20 09:53:44.000000000","message":"Done","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":6167,"name":"Ken\u0027ichi Ohmichi","email":"ken1ohmichi@gmail.com","username":"oomichi"},"change_message_id":"c0a65ffe6449f6605edc67de28a0d9d82cf4e828","unresolved":false,"context_lines":[{"line_number":182,"context_line":""},{"line_number":183,"context_line":"Normal response code: 200"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),"},{"line_number":186,"context_line":"unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"Request"},{"line_number":189,"context_line":"-------"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_5e7d20e6","line":186,"range":{"start_line":185,"start_character":22,"end_line":186,"end_character":68},"updated":"2016-04-18 23:26:51.000000000","message":"ditto","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"},{"author":{"_account_id":6062,"name":"jichenjc","email":"jichenjc@cn.ibm.com","username":"jichenjc"},"change_message_id":"77018324280331d955d0742c4f3b9e005d7c6b54","unresolved":false,"context_lines":[{"line_number":182,"context_line":""},{"line_number":183,"context_line":"Normal response code: 200"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),"},{"line_number":186,"context_line":"unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"Request"},{"line_number":189,"context_line":"-------"}],"source_content_type":"text/x-c++src","patch_set":1,"id":"1a122d0e_a544d7b6","line":186,"range":{"start_line":185,"start_character":22,"end_line":186,"end_character":68},"in_reply_to":"1a122d0e_5e7d20e6","updated":"2016-04-20 09:53:44.000000000","message":"Done","commit_id":"f5611d2c7073d94782a442f45b653701d37ee5ee"}]}
