Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-9159

Request "master" server status

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 6.0.0
    • Fix Version/s: PUP 6.0.1
    • Component/s: None
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      Previously, an agent configured to use one or more compiler servers with the `server_list` setting could skip an available server under certain conditions. Now the agent requests status of the "master" service specifically which accurately reports if the compiler service is available.
      Show
      Previously, an agent configured to use one or more compiler servers with the `server_list` setting could skip an available server under certain conditions. Now the agent requests status of the "master" service specifically which accurately reports if the compiler service is available.
    • QA Risk Assessment:
      Needs Assessment

      Description

      When using server_list the agent will request server status from status/v1/services. It is possible for the compiler to be ready, but other trapperkeeper services unrelated to compilation to be unavailable such as the broker-service. For example:

      <- "GET /status/v1/simple HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: Puppet/6.0.0 Ruby/2.5.1-p57 (x86_64-linux)\r\nHost: puppet:8140\r\n\r\n"
      -> "HTTP/1.1 503 Service Unavailable\r\n"
      -> "Date: Wed, 19 Sep 2018 22:50:52 GMT\r\n"
      -> "Content-Type: text/plain;charset=utf-8\r\n"
      -> "Content-Length: 5\r\n"
      -> "Server: Jetty(9.4.z-SNAPSHOT)\r\n"
      -> "\r\n"
      reading 5 bytes...
      -> "error"
      

      The agent should request status from status/v1/services/master instead

      $ curl -ks https://puppet:8140/status/v1/simple/master
      running
      

        Attachments

          Activity

            People

            Assignee:
            josh Josh Cooper
            Reporter:
            josh Josh Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support