Uploaded image for project: 'infrautils'
  1. infrautils
  2. INFRAUTILS-47

diagstatus HTTP GET differs in response to HTTP HEAD

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vorburger Michael Vorburger
              trozet Tim Rozet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: