-
Improvement
-
Resolution: Done
-
Highest
-
None
-
None
Diagstatus gives 200 when using HTTP GET and 418 when using HTTP HEAD. The values should be identical as the only difference between a GET and HEAD is including the message body or not. Also, they should return an error code when the node is isolated and in FAILURE state.
[root@controller-0 ~]# curl -i -X GET http://172.17.1.14:8081/diagstatus && curl -i -X HEAD http://172.17.1.14:8081/diagstatus --max-time 5 HTTP/1.1 200 OK Content-Type: application/json;charset=utf-8 Content-Length: 132 { "timeStamp": "Tue Aug 21 21:20:07 UTC 2018", "isOperational": false, "systemReadyState": "FAILURE", "statusSummary": [] } HTTP/1.1 418 418 Content-Type: application/json;charset=utf-8 Content-Length: 132 curl: (28) Operation timed out after 5001 milliseconds with 0 out of 132 bytes received
- relates to
-
INFRAUTILS-33 Expose ready and/or diagstatus via a non-authenticated URL
- Resolved